@debales/ai 1.1.40 → 1.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/ai-browser.js +161 -161
- package/dist/module/ai.js +570 -570
- package/dist/module/ai.umd.js +164 -164
- package/package.json +1 -1
package/dist/module/ai.umd.js
CHANGED
|
@@ -120,7 +120,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
120
120
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,N=!0,L=!1;return{s:function(){A=A.call(T)},n:function(){var G=A.next();return N=G.done,G},e:function(G){L=!0,I=G},f:function(){try{N||A.return==null||A.return()}finally{if(L)throw I}}}}function p(T,k){if(T){if(typeof T=="string")return y(T,k);var A={}.toString.call(T).slice(8,-1);return A==="Object"&&T.constructor&&(A=T.constructor.name),A==="Map"||A==="Set"?Array.from(T):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?y(T,k):void 0}}function y(T,k){(k==null||k>T.length)&&(k=T.length);for(var A=0,D=Array(k);A<k;A++)D[A]=T[A];return D}var m={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function x(T){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(T)}function S(T,k){for(var A=[],D=Math.max(T.length,k.length),O=0;O<D;O++)A.push([T[O],k[O]]);return A}function w(T,k){if(typeof k=="string"?k=(0,n.default)({format:k},m):k=(0,n.default)(k,m),typeof T=="string"&&x(k.format)){if(k.strictMode&&T.length!==k.format.length)return!1;var A=k.delimiters.find(function(me){return k.format.indexOf(me)!==-1}),D=k.strictMode?A:k.delimiters.find(function(me){return T.indexOf(me)!==-1}),O=S(T.split(D),k.format.toLowerCase().split(A)),I={},N=h(O),L;try{for(N.s();!(L=N.n()).done;){var q=o(L.value,2),G=q[0],V=q[1];if(!G||!V||G.length!==V.length)return!1;I[V.charAt(0)]=G}}catch(me){N.e(me)}finally{N.f()}var F=I.y;if(F.startsWith("-"))return!1;if(I.y.length===2){var Y=parseInt(I.y,10);if(isNaN(Y))return!1;var ee=new Date().getFullYear()%100;Y<ee?F="20".concat(I.y):F="19".concat(I.y)}var oe=I.m;I.m.length===1&&(oe="0".concat(I.m));var J=I.d;return I.d.length===1&&(J="0".concat(I.d)),new Date("".concat(F,"-").concat(oe,"-").concat(J,"T00:00:00.000Z")).getUTCDate()===+I.d}return k.strictMode?!1:Object.prototype.toString.call(T)==="[object Date]"&&isFinite(T)}e.exports=t.default,e.exports.default=t.default}(DC,DC.exports)),DC.exports}var MC={exports:{}},q7;function aoe(){return q7||(q7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Sa());function r(d){return d&&d.__esModule?d:{default:d}}var o={hourFormat:"hour24",mode:"default"},a={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};function l(d,h){return h=(0,n.default)(h,o),typeof d!="string"?!1:a[h.hourFormat][h.mode].test(d)}e.exports=t.default,e.exports.default=t.default}(MC,MC.exports)),MC.exports}var RC={exports:{}},P7;function soe(){return P7||(P7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o={loose:!1},a=["true","false","1","0"],l=[].concat(a,["yes","no"]);function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o;return(0,n.default)(h),p.loose?l.includes(h.toLowerCase()):a.includes(h)}e.exports=t.default,e.exports.default=t.default}(RC,RC.exports)),RC.exports}var IC={exports:{}},G7;function loe(){return G7||(G7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=D;var n=r(ct());function r(O){return O&&O.__esModule?O:{default:O}}var o="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",a="(([a-zA-Z]{2,3}(-".concat(o,")?)|([a-zA-Z]{5,8}))"),l="([A-Za-z]{4})",d="([A-Za-z]{2}|\\d{3})",h="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",p="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",y="(".concat(p,"(-[A-Za-z0-9]{2,8})+)"),m="(x(-[A-Za-z0-9]{1,8})+)",x="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",S="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",w="(".concat(x,"|").concat(S,")"),T="(-|_)",k="".concat(a,"(").concat(T).concat(l,")?(").concat(T).concat(d,")?(").concat(T).concat(h,")*(").concat(T).concat(y,")*(").concat(T).concat(m,")?"),A=new RegExp("(^".concat(m,"$)|(^").concat(w,"$)|(^").concat(k,"$)"));function D(O){return(0,n.default)(O),A.test(O)}e.exports=t.default,e.exports.default=t.default}(IC,IC.exports)),IC.exports}var BC={exports:{}},V7;function uoe(){return V7||(V7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;function a(l){if((0,n.default)(l),!o.test(l))return!1;for(var d=0,h=0;h<l.length;h++)h%3===0?d+=l[h]*3:h%3===1?d+=l[h]*7:d+=l[h]*1;return d%10===0}e.exports=t.default,e.exports.default=t.default}(BC,BC.exports)),BC.exports}var Pg={},Y7;function coe(){if(Y7)return Pg;Y7=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.default=r,Pg.locales=void 0;var e=n(ct()),t=Hx();function n(o){return o&&o.__esModule?o:{default:o}}function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(o);var d=o,h=l.ignore;if(h)if(h instanceof RegExp)d=d.replace(h,"");else if(typeof h=="string")d=d.replace(new RegExp("[".concat(h.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(a in t.alpha)return t.alpha[a].test(d);throw new Error("Invalid locale '".concat(a,"'"))}return Pg.locales=Object.keys(t.alpha),Pg}var Gg={},Z7;function foe(){if(Z7)return Gg;Z7=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=r,Gg.locales=void 0;var e=n(ct()),t=Hx();function n(o){return o&&o.__esModule?o:{default:o}}function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(o);var d=o,h=l.ignore;if(h)if(h instanceof RegExp)d=d.replace(h,"");else if(typeof h=="string")d=d.replace(new RegExp("[".concat(h.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(a in t.alphanumeric)return t.alphanumeric[a].test(d);throw new Error("Invalid locale '".concat(a,"'"))}return Gg.locales=Object.keys(t.alphanumeric),Gg}var $C={exports:{}},Q7;function doe(){return Q7||(Q7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=Hx();function o(d){return d&&d.__esModule?d:{default:d}}var a=/^[0-9]+$/;function l(d,h){return(0,n.default)(d),h&&h.no_symbols?a.test(d):new RegExp("^[+-]?([0-9]*[".concat((h||{}).locale?r.decimal[h.locale]:".","])?[0-9]+$")).test(d)}e.exports=t.default,e.exports.default=t.default}($C,$C.exports)),$C.exports}var Vg={},K7;function hoe(){if(K7)return Vg;K7=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=r,Vg.locales=void 0;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};Vg.locales=Object.keys(n);function r(o,a){(0,e.default)(o);var l=o.replace(/\s/g,"").toUpperCase();return a.toUpperCase()in n&&n[a].test(l)}return Vg}var LC={exports:{}},NC={exports:{}},W7;function vO(){return W7||(W7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(ct()),r=o(m7());function o(h){return h&&h.__esModule?h:{default:h}}var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,l=/^[-+]?[0-9]+$/;function d(h,p){(0,n.default)(h),p=p||{};var y=p.allow_leading_zeroes===!1?a:l,m=!p.hasOwnProperty("min")||(0,r.default)(p.min)||h>=p.min,x=!p.hasOwnProperty("max")||(0,r.default)(p.max)||h<=p.max,S=!p.hasOwnProperty("lt")||(0,r.default)(p.lt)||h<p.lt,w=!p.hasOwnProperty("gt")||(0,r.default)(p.gt)||h>p.gt;return y.test(h)&&m&&x&&S&&w}e.exports=t.default,e.exports.default=t.default}(NC,NC.exports)),NC.exports}var X7;function poe(){return X7||(X7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(vO());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=t.default,e.exports.default=t.default}(LC,LC.exports)),LC.exports}var zC={exports:{}},J7;function goe(){return J7||(J7=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a===a.toLowerCase()}e.exports=t.default,e.exports.default=t.default}(zC,zC.exports)),zC.exports}var FC={exports:{}},eN;function moe(){return eN||(eN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a===a.toUpperCase()}e.exports=t.default,e.exports.default=t.default}(FC,FC.exports)),FC.exports}var UC={exports:{}},tN;function voe(){return tN||(tN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(ct());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function l(d,h){(0,n.default)(d),h=h||{};var p=o;if(h.allow_hyphens&&(p=a),!p.test(d))return!1;d=d.replace(/-/g,"");for(var y=0,m=2,x=14,S=0;S<x;S++){var w=d.substring(x-S-1,x-S),T=parseInt(w,10)*m;T>=10?y+=T%10+1:y+=T,m===1?m+=1:m-=1}var k=(10-y%10)%10;return k===parseInt(d.substring(14,15),10)}e.exports=t.default,e.exports.default=t.default}(UC,UC.exports)),UC.exports}var jC={exports:{}},nN;function yoe(){return nN||(nN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[\x00-\x7F]+$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(jC,jC.exports)),jC.exports}var Yg={},rN;function iN(){if(rN)return Yg;rN=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=r,Yg.fullWidth=void 0;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n=Yg.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function r(o){return(0,e.default)(o),n.test(o)}return Yg}var Zg={},oN;function aN(){if(oN)return Zg;oN=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=r,Zg.halfWidth=void 0;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n=Zg.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function r(o){return(0,e.default)(o),n.test(o)}return Zg}var HC={exports:{}},sN;function xoe(){return sN||(sN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(ct()),r=iN(),o=aN();function a(d){return d&&d.__esModule?d:{default:d}}function l(d){return(0,n.default)(d),r.fullWidth.test(d)&&o.halfWidth.test(d)}e.exports=t.default,e.exports.default=t.default}(HC,HC.exports)),HC.exports}var qC={exports:{}},lN;function boe(){return lN||(lN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/[^\x00-\x7F]/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(qC,qC.exports)),qC.exports}var PC={exports:{}},GC={exports:{}},uN;function _oe(){return uN||(uN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){var a=r.join("");return new RegExp(a,o)}e.exports=t.default,e.exports.default=t.default}(GC,GC.exports)),GC.exports}var cN;function Soe(){return cN||(cN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=o(_oe());function o(d){return d&&d.__esModule?d:{default:d}}var a=(0,r.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function l(d){return(0,n.default)(d),a.test(d)}e.exports=t.default,e.exports.default=t.default}(PC,PC.exports)),PC.exports}var VC={exports:{}},fN;function woe(){return fN||(fN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(VC,VC.exports)),VC.exports}var YC={exports:{}},ZC={exports:{}},dN;function Coe(){return dN||(dN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(o,a){return o.some(function(l){return a===l})};t.default=n,e.exports=t.default,e.exports.default=t.default}(ZC,ZC.exports)),ZC.exports}var hN;function Eoe(){return hN||(hN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=l(Sa()),r=l(ct()),o=l(Coe()),a=Hx();function l(m){return m&&m.__esModule?m:{default:m}}function d(m){var x=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[m.locale],"[0-9]{").concat(m.decimal_digits,"})").concat(m.force_decimal?"":"?","$"));return x}var h={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},p=["","-","+"];function y(m,x){if((0,r.default)(m),x=(0,n.default)(x,h),x.locale in a.decimal)return!(0,o.default)(p,m.replace(/ /g,""))&&d(x).test(m);throw new Error("Invalid locale '".concat(x.locale,"'"))}e.exports=t.default,e.exports.default=t.default}(YC,YC.exports)),YC.exports}var QC={exports:{}},pN;function gN(){return pN||(pN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0x|0h)?[0-9A-F]+$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(QC,QC.exports)),QC.exports}var KC={exports:{}},mN;function Aoe(){return mN||(mN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0o)?[0-7]+$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(KC,KC.exports)),KC.exports}var WC={exports:{}},vN;function koe(){return vN||(vN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(_7());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){return(0,n.default)(l),(0,r.default)(l)%parseInt(d,10)===0}e.exports=t.default,e.exports.default=t.default}(WC,WC.exports)),WC.exports}var XC={exports:{}},yN;function Toe(){return yN||(yN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(XC,XC.exports)),XC.exports}var JC={exports:{}},xN;function Ooe(){return xN||(xN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=r(ct());function r(m){return m&&m.__esModule?m:{default:m}}function o(m){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},o(m)}var a=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,l=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,d=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,h=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,p=/^rgba?/;function y(m,x){(0,n.default)(m);var S=!1,w=!0;if(o(x)!=="object"?arguments.length>=2&&(w=arguments[1]):(S=x.allowSpaces!==void 0?x.allowSpaces:S,w=x.includePercentValues!==void 0?x.includePercentValues:w),S){if(!p.test(m))return!1;m=m.replace(/\s/g,"")}return w?a.test(m)||l.test(m)||d.test(m)||h.test(m):a.test(m)||l.test(m)}e.exports=t.default,e.exports.default=t.default}(JC,JC.exports)),JC.exports}var eE={exports:{}},bN;function Doe(){return bN||(bN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(ct());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function l(d){(0,n.default)(d);var h=d.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return h.indexOf(",")!==-1?o.test(h):a.test(h)}e.exports=t.default,e.exports.default=t.default}(eE,eE.exports)),eE.exports}var tE={exports:{}},_N;function Moe(){return _N||(_N=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(tE,tE.exports)),tE.exports}var Qg={},SN;function Roe(){if(SN)return Qg;SN=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=l,Qg.locales=void 0;var e=t(ct());function t(d){return d&&d.__esModule?d:{default:d}}var n={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function r(d){var h=d.filter(function(p){return!(p in n)});return!(h.length>0)}function o(d,h){var p=d.replace(/[\s\-]+/gi,"").toUpperCase(),y=p.slice(0,2).toUpperCase(),m=y in n;if(h.whitelist){if(!r(h.whitelist))return!1;var x=h.whitelist.includes(y);if(!x)return!1}if(h.blacklist){var S=h.blacklist.includes(y);if(S)return!1}return m&&n[y].test(p)}function a(d){var h=d.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),p=h.slice(4)+h.slice(0,4),y=p.replace(/[A-Z]/g,function(x){return x.charCodeAt(0)-55}),m=y.match(/\d{1,7}/g).reduce(function(x,S){return Number(x+S)%97},"");return m===1}function l(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,e.default)(d),o(d,h)&&a(d)}return Qg.locales=Object.keys(n),Qg}var nE={exports:{}},Kg={},wN;function CN(){if(wN)return Kg;wN=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.CountryCodes=void 0,Kg.default=r;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function r(o){return(0,e.default)(o),n.has(o.toUpperCase())}return Kg.CountryCodes=n,Kg}var EN;function Ioe(){return EN||(EN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=CN();function o(d){return d&&d.__esModule?d:{default:d}}var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function l(d){(0,n.default)(d);var h=d.slice(4,6).toUpperCase();return!r.CountryCodes.has(h)&&h!=="XK"?!1:a.test(d)}e.exports=t.default,e.exports.default=t.default}(nE,nE.exports)),nE.exports}var rE={exports:{}},AN;function Boe(){return AN||(AN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[a-f0-9]{32}$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(rE,rE.exports)),rE.exports}var iE={exports:{}},kN;function $oe(){return kN||(kN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function a(l,d){(0,n.default)(l);var h=new RegExp("^[a-fA-F0-9]{".concat(o[d],"}$"));return h.test(l)}e.exports=t.default,e.exports.default=t.default}(iE,iE.exports)),iE.exports}var oE={exports:{}},aE={exports:{}},TN;function ON(){return TN||(TN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=o(ct()),r=o(Sa());function o(p){return p&&p.__esModule?p:{default:p}}var a=/[^A-Z0-9+\/=]/i,l=/^[A-Z0-9_\-]*$/i,d={urlSafe:!1};function h(p,y){(0,n.default)(p),y=(0,r.default)(y,d);var m=p.length;if(y.urlSafe)return l.test(p);if(m%4!==0||a.test(p))return!1;var x=p.indexOf("=");return x===-1||x===m-1||x===m-2&&p[m-1]==="="}e.exports=t.default,e.exports.default=t.default}(aE,aE.exports)),aE.exports}var DN;function Loe(){return DN||(DN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(ON());function o(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,n.default)(l);var d=l.split("."),h=d.length;return h!==3?!1:d.reduce(function(p,y){return p&&(0,r.default)(y,{urlSafe:!0})},!0)}e.exports=t.default,e.exports.default=t.default}(oE,oE.exports)),oE.exports}var sE={exports:{}},MN;function Noe(){return MN||(MN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(ct()),r=o(Sa());function o(h){return h&&h.__esModule?h:{default:h}}function a(h){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},a(h)}var l={allow_primitives:!1};function d(h,p){(0,n.default)(h);try{p=(0,r.default)(p,l);var y=[];p.allow_primitives&&(y=[null,!1,!0]);var m=JSON.parse(h);return y.includes(m)||!!m&&a(m)==="object"}catch{}return!1}e.exports=t.default,e.exports.default=t.default}(sE,sE.exports)),sE.exports}var lE={exports:{}},RN;function zoe(){return RN||(RN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=o(Sa());function o(d){return d&&d.__esModule?d:{default:d}}var a={ignore_whitespace:!1};function l(d,h){return(0,n.default)(d),h=(0,r.default)(h,a),(h.ignore_whitespace?d.trim().length:d.length)===0}e.exports=t.default,e.exports.default=t.default}(lE,lE.exports)),lE.exports}var uE={exports:{}},IN;function Foe(){return IN||(IN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}function o(l){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o(l)}function a(l,d){(0,n.default)(l);var h,p;o(d)==="object"?(h=d.min||0,p=d.max):(h=arguments[1]||0,p=arguments[2]);var y=l.match(/(\uFE0F|\uFE0E)/g)||[],m=l.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],x=l.length-y.length-m.length,S=x>=h&&(typeof p>"u"||x<=p);return S&&Array.isArray(d==null?void 0:d.discreteLengths)?d.discreteLengths.some(function(w){return w===x}):S}e.exports=t.default,e.exports.default=t.default}(uE,uE.exports)),uE.exports}var cE={exports:{}},BN;function Uoe(){return BN||(BN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(a)}e.exports=t.default,e.exports.default=t.default}(cE,cE.exports)),cE.exports}var fE={exports:{}},$N;function joe(){return $N||($N=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,6:/^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,8:/^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,nil:/^00000000-0000-0000-0000-000000000000$/i,max:/^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,all:/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i};function a(l,d){return(0,n.default)(l),d==null&&(d="all"),d in o?o[d].test(l):!1}e.exports=t.default,e.exports.default=t.default}(fE,fE.exports)),fE.exports}var dE={exports:{}},LN;function Hoe(){return LN||(LN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(gN());function o(l){return l&&l.__esModule?l:{default:l}}function a(l){return(0,n.default)(l),(0,r.default)(l)&&l.length===24}e.exports=t.default,e.exports.default=t.default}(dE,dE.exports)),dE.exports}var hE={exports:{}},NN;function qoe(){return NN||(NN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(gO());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){var d=(l==null?void 0:l.comparisonDate)||l||Date().toString(),h=(0,n.default)(d),p=(0,n.default)(a);return!!(p&&h&&p>h)}e.exports=t.default,e.exports.default=t.default}(hE,hE.exports)),hE.exports}var pE={exports:{}},zN;function Poe(){return zN||(zN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(gO());function o(l){return l&&l.__esModule?l:{default:l}}function a(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:String(new Date);(0,n.default)(l);var h=(0,r.default)(d),p=(0,r.default)(l);return!!(p&&h&&p<h)}e.exports=t.default,e.exports.default=t.default}(pE,pE.exports)),pE.exports}var gE={exports:{}},FN;function Goe(){return FN||(FN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=o(A7());function o(d){return d&&d.__esModule?d:{default:d}}function a(d){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},a(d)}function l(d,h){(0,n.default)(d);var p;if(Object.prototype.toString.call(h)==="[object Array]"){var y=[];for(p in h)({}).hasOwnProperty.call(h,p)&&(y[p]=(0,r.default)(h[p]));return y.indexOf(d)>=0}else{if(a(h)==="object")return h.hasOwnProperty(d);if(h&&typeof h.indexOf=="function")return h.indexOf(d)>=0}return!1}e.exports=t.default,e.exports.default=t.default}(gE,gE.exports)),gE.exports}var mE={exports:{}},UN;function jN(){return UN||(UN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){(0,n.default)(a);for(var l=a.replace(/[- ]+/g,""),d=0,h,p,y,m=l.length-1;m>=0;m--)h=l.substring(m,m+1),p=parseInt(h,10),y?(p*=2,p>=10?d+=p%10+1:d+=p):d+=p,y=!y;return!!(d%10===0&&l)}e.exports=t.default,e.exports.default=t.default}(mE,mE.exports)),mE.exports}var vE={exports:{}},HN;function Voe(){return HN||(HN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(ct()),r=o(jN());function o(h){return h&&h.__esModule?h:{default:h}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},l=function(){var h=[];for(var p in a)a.hasOwnProperty(p)&&h.push(a[p]);return h}();function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(h);var y=p.provider,m=h.replace(/[- ]+/g,"");if(y&&y.toLowerCase()in a){if(!a[y.toLowerCase()].test(m))return!1}else{if(y&&!(y.toLowerCase()in a))throw new Error("".concat(y," is not a valid credit card provider."));if(!l.some(function(x){return x.test(m)}))return!1}return(0,r.default)(h)}e.exports=t.default,e.exports.default=t.default}(vE,vE.exports)),vE.exports}var yE={exports:{}},qN;function Yoe(){return qN||(qN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(ct()),r=o(vO());function o(d){return d&&d.__esModule?d:{default:d}}var a={PL:function(h){(0,n.default)(h);var p={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(h!=null&&h.length===11&&(0,r.default)(h,{allow_leading_zeroes:!0})){var y=h.split("").slice(0,-1),m=y.reduce(function(w,T,k){return w+Number(T)*p[k+1]},0),x=m%10,S=Number(h.charAt(h.length-1));if(x===0&&S===0||S===10-x)return!0}return!1},ES:function(h){(0,n.default)(h);var p=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,y={X:0,Y:1,Z:2},m=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],x=h.trim().toUpperCase();if(!p.test(x))return!1;var S=x.slice(0,-1).replace(/[X,Y,Z]/g,function(w){return y[w]});return x.endsWith(m[S%23])},FI:function(h){if((0,n.default)(h),h.length!==11||!h.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var p="0123456789ABCDEFHJKLMNPRSTUVWXY",y=parseInt(h.slice(0,6),10)*1e3+parseInt(h.slice(7,10),10),m=y%31,x=p[m];return x===h.slice(10,11)},IN:function(h){var p=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,y=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],m=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],x=h.trim();if(!p.test(x))return!1;var S=0,w=x.replace(/\s/g,"").split("").map(Number).reverse();return w.forEach(function(T,k){S=y[S][m[k%8][T]]}),S===0},IR:function(h){if(!h.match(/^\d{10}$/)||(h="0000".concat(h).slice(h.length-6),parseInt(h.slice(3,9),10)===0))return!1;for(var p=parseInt(h.slice(9,10),10),y=0,m=0;m<9;m++)y+=parseInt(h.slice(m,m+1),10)*(10-m);return y%=11,y<2&&p===y||y>=2&&p===11-y},IT:function(h){return h.length!==9||h==="CA00000AA"?!1:h.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(h){var p=h.trim();if(isNaN(Number(p))||p.length!==11||p==="00000000000")return!1;var y=p.split("").map(Number),m=(11-(3*y[0]+7*y[1]+6*y[2]+1*y[3]+8*y[4]+9*y[5]+4*y[6]+5*y[7]+2*y[8])%11)%11,x=(11-(5*y[0]+4*y[1]+3*y[2]+2*y[3]+7*y[4]+6*y[5]+5*y[6]+4*y[7]+3*y[8]+2*m)%11)%11;return!(m!==y[9]||x!==y[10])},TH:function(h){if(!h.match(/^[1-8]\d{12}$/))return!1;for(var p=0,y=0;y<12;y++)p+=parseInt(h[y],10)*(13-y);return h[12]===((11-p%11)%10).toString()},LK:function(h){var p=/^[1-9]\d{8}[vx]$/i,y=/^[1-9]\d{11}$/i;return h.length===10&&p.test(h)?!0:!!(h.length===12&&y.test(h))},"he-IL":function(h){var p=/^\d{9}$/,y=h.trim();if(!p.test(y))return!1;for(var m=y,x=0,S,w=0;w<m.length;w++)S=Number(m[w])*(w%2+1),x+=S>9?S-9:S;return x%10===0},"ar-LY":function(h){var p=/^(1|2)\d{11}$/,y=h.trim();return!!p.test(y)},"ar-TN":function(h){var p=/^\d{8}$/,y=h.trim();return!!p.test(y)},"zh-CN":function(h){var p=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],y=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],m=["1","0","X","9","8","7","6","5","4","3","2"],x=function(I){return p.includes(I)},S=function(I){var N=parseInt(I.substring(0,4),10),L=parseInt(I.substring(4,6),10),q=parseInt(I.substring(6),10),G=new Date(N,L-1,q);return G>new Date?!1:G.getFullYear()===N&&G.getMonth()===L-1&&G.getDate()===q},w=function(I){for(var N=I.substring(0,17),L=0,q=0;q<17;q++)L+=parseInt(N.charAt(q),10)*parseInt(y[q],10);var G=L%11;return m[G]},T=function(I){return w(I)===I.charAt(17).toUpperCase()},k=function(I){var N=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(I);if(!N)return!1;var L=I.substring(0,2);if(N=x(L),!N)return!1;var q="19".concat(I.substring(6,12));return N=S(q),!!N},A=function(I){var N=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(I);if(!N)return!1;var L=I.substring(0,2);if(N=x(L),!N)return!1;var q=I.substring(6,14);return N=S(q),N?T(I):!1},D=function(I){var N=/^\d{15}|(\d{17}(\d|x|X))$/.test(I);return N?I.length===15?k(I):A(I):!1};return D(h)},"zh-HK":function(h){h=h.trim();var p=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,y=/^[0-9]$/;if(h=h.toUpperCase(),!p.test(h))return!1;h=h.replace(/\[|\]|\(|\)/g,""),h.length===8&&(h="3".concat(h));for(var m=0,x=0;x<=7;x++){var S=void 0;y.test(h[x])?S=h[x]:S=(h[x].charCodeAt(0)-55)%11,m+=S*(9-x)}m%=11;var w;return m===0?w="0":m===1?w="A":w=String(11-m),w===h[h.length-1]},"zh-TW":function(h){var p={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},y=h.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(y)?Array.from(y).reduce(function(m,x,S){if(S===0){var w=p[x];return w%10*9+Math.floor(w/10)}return S===9?(10-m%10-Number(x))%10===0:m+Number(x)*(9-S)},0):!1},PK:function(h){var p=/^[1-7][0-9]{4}-[0-9]{7}-[1-9]$/,y=h.trim();return p.test(y)}};function l(d,h){if((0,n.default)(d),h in a)return a[h](d);if(h==="any"){for(var p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y(d))return!0}return!1}throw new Error("Invalid locale '".concat(h,"'"))}e.exports=t.default,e.exports.default=t.default}(yE,yE.exports)),yE.exports}var xE={exports:{}},PN;function Zoe(){return PN||(PN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var n=r(ct());function r(y){return y&&y.__esModule?y:{default:y}}var o=8,a=14,l=/^(\d{8}|\d{13}|\d{14})$/;function d(y,m){return y===o||y===a?m%2===0?3:1:m%2===0?1:3}function h(y){var m=y.slice(0,-1).split("").map(function(S,w){return Number(S)*d(y.length,w)}).reduce(function(S,w){return S+w},0),x=10-m%10;return x<10?x:0}function p(y){(0,n.default)(y);var m=Number(y.slice(-1));return l.test(y)&&m===h(y)}e.exports=t.default,e.exports.default=t.default}(xE,xE.exports)),xE.exports}var bE={exports:{}},GN;function Qoe(){return GN||(GN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function a(l){if((0,n.default)(l),!o.test(l))return!1;for(var d=!0,h=0,p=l.length-2;p>=0;p--)if(l[p]>="A"&&l[p]<="Z")for(var y=l[p].charCodeAt(0)-55,m=y%10,x=Math.trunc(y/10),S=0,w=[m,x];S<w.length;S++){var T=w[S];d?T>=5?h+=1+(T-5)*2:h+=T*2:h+=T,d=!d}else{var k=l[p].charCodeAt(0)-48;d?k>=5?h+=1+(k-5)*2:h+=k*2:h+=k,d=!d}var A=Math.trunc((h+9)/10)*10-h;return+l[l.length-1]===A}e.exports=t.default,e.exports.default=t.default}(bE,bE.exports)),bE.exports}var _E={exports:{}},VN;function Koe(){return VN||(VN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,l=[1,3];function d(h,p){(0,n.default)(h);var y=String((p==null?void 0:p.version)||p);if(!(p!=null&&p.version||p))return d(h,{version:10})||d(h,{version:13});var m=h.replace(/[\s-]+/g,""),x=0;if(y==="10"){if(!o.test(m))return!1;for(var S=0;S<y-1;S++)x+=(S+1)*m.charAt(S);if(m.charAt(9)==="X"?x+=10*10:x+=10*m.charAt(9),x%11===0)return!0}else if(y==="13"){if(!a.test(m))return!1;for(var w=0;w<12;w++)x+=l[w%2]*m.charAt(w);if(m.charAt(12)-(10-x%10)%10===0)return!0}return!1}e.exports=t.default,e.exports.default=t.default}(_E,_E.exports)),_E.exports}var SE={exports:{}},YN;function Woe(){return YN||(YN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o="^\\d{4}-?\\d{3}[\\dX]$";function a(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var h=o;if(h=d.require_hyphen?h.replace("?",""):h,h=d.case_sensitive?new RegExp(h):new RegExp(h,"i"),!h.test(l))return!1;for(var p=l.replace("-","").toUpperCase(),y=0,m=0;m<p.length;m++){var x=p[m];y+=(x==="X"?10:+x)*(8-m)}return y%11===0}e.exports=t.default,e.exports.default=t.default}(SE,SE.exports)),SE.exports}var wE={exports:{}},lp={},ZN;function QN(){if(ZN)return lp;ZN=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.iso7064Check=e,lp.luhnCheck=t,lp.reverseMultiplyAndSum=n,lp.verhoeffCheck=r;function e(o){for(var a=10,l=0;l<o.length-1;l++)a=(parseInt(o[l],10)+a)%10===0?10*2%11:(parseInt(o[l],10)+a)%10*2%11;return a=a===1?0:11-a,a===parseInt(o[10],10)}function t(o){for(var a=0,l=!1,d=o.length-1;d>=0;d--){if(l){var h=parseInt(o[d],10)*2;h>9?a+=h.toString().split("").map(function(p){return parseInt(p,10)}).reduce(function(p,y){return p+y},0):a+=h}else a+=parseInt(o[d],10);l=!l}return a%10===0}function n(o,a){for(var l=0,d=0;d<o.length;d++)l+=o[d]*(a-d);return l}function r(o){for(var a=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],l=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],d=o.split("").reverse().join(""),h=0,p=0;p<d.length;p++)h=a[h][l[p%8][parseInt(d[p],10)]];return h===0}return lp}var KN;function Xoe(){return KN||(KN=1,function(e,t){function n(ne){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},n(ne)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=Et;var r=h(ct()),o=d(QN()),a=h(H7());function l(ne){if(typeof WeakMap!="function")return null;var ae=new WeakMap,ge=new WeakMap;return(l=function(Te){return Te?ge:ae})(ne)}function d(ne,ae){if(ne&&ne.__esModule)return ne;if(ne===null||n(ne)!="object"&&typeof ne!="function")return{default:ne};var ge=l(ae);if(ge&&ge.has(ne))return ge.get(ne);var Be={__proto__:null},Te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in ne)if(qe!=="default"&&{}.hasOwnProperty.call(ne,qe)){var at=Te?Object.getOwnPropertyDescriptor(ne,qe):null;at&&(at.get||at.set)?Object.defineProperty(Be,qe,at):Be[qe]=ne[qe]}return Be.default=ne,ge&&ge.set(ne,Be),Be}function h(ne){return ne&&ne.__esModule?ne:{default:ne}}function p(ne){return S(ne)||x(ne)||m(ne)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
121
121
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(ne,ae){if(ne){if(typeof ne=="string")return w(ne,ae);var ge={}.toString.call(ne).slice(8,-1);return ge==="Object"&&ne.constructor&&(ge=ne.constructor.name),ge==="Map"||ge==="Set"?Array.from(ne):ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ge)?w(ne,ae):void 0}}function x(ne){if(typeof Symbol<"u"&&ne[Symbol.iterator]!=null||ne["@@iterator"]!=null)return Array.from(ne)}function S(ne){if(Array.isArray(ne))return w(ne)}function w(ne,ae){(ae==null||ae>ne.length)&&(ae=ne.length);for(var ge=0,Be=Array(ae);ge<ae;ge++)Be[ge]=ne[ge];return Be}function T(ne){var ae=ne.slice(0,2),ge=parseInt(ne.slice(2,4),10);ge>40?(ge-=40,ae="20".concat(ae)):ge>20?(ge-=20,ae="18".concat(ae)):ae="19".concat(ae),ge<10&&(ge="0".concat(ge));var Be="".concat(ae,"/").concat(ge,"/").concat(ne.slice(4,6));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1;for(var Te=ne.split("").map(function(_e){return parseInt(_e,10)}),qe=[2,4,8,5,10,9,7,3,6],at=0,ht=0;ht<qe.length;ht++)at+=Te[ht]*qe[ht];return at=at%11===10?0:at%11,at===Te[9]}function k(ne){var ae=ne.split(""),ge=ae.filter(function(Te,qe){return qe%2}).map(function(Te){return Number(Te)*2}).join("").split(""),Be=ae.filter(function(Te,qe){return!(qe%2)}).concat(ge).map(function(Te){return Number(Te)}).reduce(function(Te,qe){return Te+qe});return Be%10===0}function A(ne){ne=ne.replace(/\W/,"");var ae=parseInt(ne.slice(0,2),10);if(ne.length===10)ae<54?ae="20".concat(ae):ae="19".concat(ae);else{if(ne.slice(6)==="000")return!1;if(ae<54)ae="19".concat(ae);else return!1}ae.length===3&&(ae=[ae.slice(0,2),"0",ae.slice(2)].join(""));var ge=parseInt(ne.slice(2,4),10);if(ge>50&&(ge-=50),ge>20){if(parseInt(ae,10)<2004)return!1;ge-=20}ge<10&&(ge="0".concat(ge));var Be="".concat(ae,"/").concat(ge,"/").concat(ne.slice(4,6));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1;if(ne.length===10&&parseInt(ne,10)%11!==0){var Te=parseInt(ne.slice(0,9),10)%11;if(parseInt(ae,10)<1986&&Te===10){if(parseInt(ne.slice(9),10)!==0)return!1}else return!1}return!0}function D(ne){return o.luhnCheck(ne)}function O(ne){for(var ae=ne.split("").map(function(_e){return parseInt(_e,10)}),ge=[],Be=0;Be<ae.length-1;Be++){ge.push("");for(var Te=0;Te<ae.length-1;Te++)ae[Be]===ae[Te]&&(ge[Be]+=Te)}if(ge=ge.filter(function(_e){return _e.length>1}),ge.length!==2&&ge.length!==3)return!1;if(ge[0].length===3){for(var qe=ge[0].split("").map(function(_e){return parseInt(_e,10)}),at=0,ht=0;ht<qe.length-1;ht++)qe[ht]+1===qe[ht+1]&&(at+=1);if(at===2)return!1}return o.iso7064Check(ne)}function I(ne){ne=ne.replace(/\W/,"");var ae=parseInt(ne.slice(4,6),10),ge=ne.slice(6,7);switch(ge){case"0":case"1":case"2":case"3":ae="19".concat(ae);break;case"4":case"9":ae<37?ae="20".concat(ae):ae="19".concat(ae);break;default:if(ae<37)ae="20".concat(ae);else if(ae>58)ae="18".concat(ae);else return!1;break}ae.length===3&&(ae=[ae.slice(0,2),"0",ae.slice(2)].join(""));var Be="".concat(ae,"/").concat(ne.slice(2,4),"/").concat(ne.slice(0,2));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1;for(var Te=ne.split("").map(function(_e){return parseInt(_e,10)}),qe=0,at=4,ht=0;ht<9;ht++)qe+=Te[ht]*at,at-=1,at===1&&(at=7);return qe%=11,qe===1?!1:qe===0?Te[9]===0:Te[9]===11-qe}function N(ne){for(var ae=ne.slice(0,8).split("").map(function(qe){return parseInt(qe,10)}),ge=0,Be=1;Be<ae.length;Be+=2)ge+=ae[Be];for(var Te=0;Te<ae.length;Te+=2)ae[Te]<2?ge+=1-ae[Te]:(ge+=2*(ae[Te]-2)+5,ae[Te]>4&&(ge+=2));return String.fromCharCode(ge%26+65)===ne.charAt(8)}function L(ne){for(var ae=ne.split("").map(function(Te){return parseInt(Te,10)}),ge=0,Be=0;Be<8;Be++)ge+=ae[Be]*Math.pow(2,8-Be);return ge%11%10===ae[8]}function q(ne){var ae=o.reverseMultiplyAndSum(ne.split("").slice(0,7).map(function(ge){return parseInt(ge,10)}),8);return ne.length===9&&ne[8]!=="W"&&(ae+=(ne[8].charCodeAt(0)-64)*9),ae%=23,ae===0?ne[7].toUpperCase()==="W":ne[7].toUpperCase()===String.fromCharCode(64+ae)}var G={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function V(){var ne=[];for(var ae in G)G.hasOwnProperty(ae)&&ne.push.apply(ne,p(G[ae]));return ne}function F(ne){return V().indexOf(ne.slice(0,2))!==-1}function Y(ne){for(var ae=0,ge=ne.split(""),Be=parseInt(ge.pop(),10),Te=0;Te<ge.length;Te++)ae+=ge[9-Te]*(2+Te%6);var qe=11-ae%11;return qe===11?qe=0:qe===10&&(qe=9),Be===qe}function ee(ne){var ae=ne.toUpperCase().split("");if(isNaN(parseInt(ae[0],10))&&ae.length>1){var ge=0;switch(ae[0]){case"Y":ge=1;break;case"Z":ge=2;break}ae.splice(0,1,ge)}else for(;ae.length<9;)ae.unshift(0);var Be=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"];ae=ae.join("");var Te=parseInt(ae.slice(0,8),10)%23;return ae[8]===Be[Te]}function oe(ne){var ae=ne.slice(1,3),ge=ne.slice(0,1);switch(ge){case"1":case"2":ae="18".concat(ae);break;case"3":case"4":ae="19".concat(ae);break;default:ae="20".concat(ae);break}var Be="".concat(ae,"/").concat(ne.slice(3,5),"/").concat(ne.slice(5,7));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1;for(var Te=ne.split("").map(function(we){return parseInt(we,10)}),qe=0,at=1,ht=0;ht<10;ht++)qe+=Te[ht]*at,at+=1,at===10&&(at=1);if(qe%11===10){qe=0,at=3;for(var _e=0;_e<10;_e++)qe+=Te[_e]*at,at+=1,at===10&&(at=1);if(qe%11===10)return Te[10]===0}return qe%11===Te[10]}function J(ne){var ae=ne.slice(4,6),ge=ne.slice(6,7);switch(ge){case"+":ae="18".concat(ae);break;case"-":ae="19".concat(ae);break;default:ae="20".concat(ae);break}var Be="".concat(ae,"/").concat(ne.slice(2,4),"/").concat(ne.slice(0,2));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1;var Te=parseInt(ne.slice(0,6)+ne.slice(7,10),10)%31;if(Te<10)return Te===parseInt(ne.slice(10),10);Te-=10;var qe=["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"];return qe[Te]===ne.slice(10)}function me(ne){if(ne.slice(2,4)!=="00"||ne.slice(4,6)!=="00"){var ae="".concat(ne.slice(0,2),"/").concat(ne.slice(2,4),"/").concat(ne.slice(4,6));if(!(0,a.default)(ae,"YY/MM/DD"))return!1}var ge=97-parseInt(ne.slice(0,9),10)%97,Be=parseInt(ne.slice(9,11),10);return!(ge!==Be&&(ge=97-parseInt("2".concat(ne.slice(0,9)),10)%97,ge!==Be))}function W(ne){ne=ne.replace(/\s/g,"");var ae=parseInt(ne.slice(0,10),10)%511,ge=parseInt(ne.slice(10,13),10);return ae===ge}function fe(ne){var ae="".concat(ne.slice(0,4),"/").concat(ne.slice(4,6),"/").concat(ne.slice(6,8));return!(0,a.default)(ae,"YYYY/MM/DD")||!o.luhnCheck(ne.slice(0,12))?!1:o.verhoeffCheck("".concat(ne.slice(0,11)).concat(ne[12]))}function he(ne){return o.iso7064Check(ne)}function Me(ne){for(var ae=ne.split("").map(function(Te){return parseInt(Te,10)}),ge=8,Be=1;Be<9;Be++)ge+=ae[Be]*(Be+1);return ge%11===ae[9]}function H(ne){for(var ae=!1,ge=!1,Be=0;Be<3;Be++)if(!ae&&/[AEIOU]/.test(ne[Be]))ae=!0;else if(!ge&&ae&&ne[Be]==="X")ge=!0;else if(Be>0&&(ae&&!ge&&!/[AEIOU]/.test(ne[Be])||ge&&!/X/.test(ne[Be])))return!1;return!0}function te(ne){var ae=ne.toUpperCase().split("");if(!H(ae.slice(0,3))||!H(ae.slice(3,6)))return!1;for(var ge=[6,7,9,10,12,13,14],Be={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},Te=0,qe=ge;Te<qe.length;Te++){var at=qe[Te];ae[at]in Be&&ae.splice(at,1,Be[ae[at]])}var ht={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"},_e=ht[ae[8]],we=parseInt(ae[9]+ae[10],10);we>40&&(we-=40),we<10&&(we="0".concat(we));var bt="".concat(ae[6]).concat(ae[7],"/").concat(_e,"/").concat(we);if(!(0,a.default)(bt,"YY/MM/DD"))return!1;for(var lt=0,wt=1;wt<ae.length-1;wt+=2){var Tt=parseInt(ae[wt],10);isNaN(Tt)&&(Tt=ae[wt].charCodeAt(0)-65),lt+=Tt}for(var Kt={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},Ht=0;Ht<ae.length-1;Ht+=2){var mn=0;if(ae[Ht]in Kt)mn=Kt[ae[Ht]];else{var pt=parseInt(ae[Ht],10);mn=2*pt+1,pt>4&&(mn+=2)}lt+=mn}return String.fromCharCode(65+lt%26)===ae[15]}function le(ne){ne=ne.replace(/\W/,"");var ae=ne.slice(0,2);if(ae!=="32"){var ge=ne.slice(2,4);if(ge!=="00"){var Be=ne.slice(4,6);switch(ne[6]){case"0":Be="18".concat(Be);break;case"1":Be="19".concat(Be);break;default:Be="20".concat(Be);break}var Te="".concat(Be,"/").concat(ne.slice(2,4),"/").concat(ae);if(!(0,a.default)(Te,"YYYY/MM/DD"))return!1}for(var qe=1101,at=[1,6,3,7,9,10,5,8,4,2],ht=0;ht<ne.length-1;ht++)qe-=parseInt(ne[ht],10)*at[ht];return parseInt(ne[10],10)===qe%11}return!0}function P(ne){if(ne.length!==9){for(var ae=ne.toUpperCase().split("");ae.length<8;)ae.unshift(0);switch(ne[7]){case"A":case"P":if(parseInt(ae[6],10)===0)return!1;break;default:{var ge=parseInt(ae.join("").slice(0,5),10);if(ge>32e3)return!1;var Be=parseInt(ae.join("").slice(5,7),10);if(ge===Be)return!1}}}return!0}function ve(ne){return o.reverseMultiplyAndSum(ne.split("").slice(0,8).map(function(ae){return parseInt(ae,10)}),9)%11===parseInt(ne[8],10)}function Ie(ne){if(ne.length===10){for(var ae=[6,5,7,2,3,4,5,6,7],ge=0,Be=0;Be<ae.length;Be++)ge+=parseInt(ne[Be],10)*ae[Be];return ge%=11,ge===10?!1:ge===parseInt(ne[9],10)}var Te=ne.slice(0,2),qe=parseInt(ne.slice(2,4),10);qe>80?(Te="18".concat(Te),qe-=80):qe>60?(Te="22".concat(Te),qe-=60):qe>40?(Te="21".concat(Te),qe-=40):qe>20?(Te="20".concat(Te),qe-=20):Te="19".concat(Te),qe<10&&(qe="0".concat(qe));var at="".concat(Te,"/").concat(qe,"/").concat(ne.slice(4,6));if(!(0,a.default)(at,"YYYY/MM/DD"))return!1;for(var ht=0,_e=1,we=0;we<ne.length-1;we++)ht+=parseInt(ne[we],10)*_e%10,_e+=2,_e>10?_e=1:_e===5&&(_e+=2);return ht=10-ht%10,ht===parseInt(ne[10],10)}function Le(ne){if(ne.length===11){var ae,ge;if(ae=0,ne==="11111111111"||ne==="22222222222"||ne==="33333333333"||ne==="44444444444"||ne==="55555555555"||ne==="66666666666"||ne==="77777777777"||ne==="88888888888"||ne==="99999999999"||ne==="00000000000")return!1;for(var Be=1;Be<=9;Be++)ae+=parseInt(ne.substring(Be-1,Be),10)*(11-Be);if(ge=ae*10%11,ge===10&&(ge=0),ge!==parseInt(ne.substring(9,10),10))return!1;ae=0;for(var Te=1;Te<=10;Te++)ae+=parseInt(ne.substring(Te-1,Te),10)*(12-Te);return ge=ae*10%11,ge===10&&(ge=0),ge===parseInt(ne.substring(10,11),10)}if(ne==="00000000000000"||ne==="11111111111111"||ne==="22222222222222"||ne==="33333333333333"||ne==="44444444444444"||ne==="55555555555555"||ne==="66666666666666"||ne==="77777777777777"||ne==="88888888888888"||ne==="99999999999999")return!1;for(var qe=ne.length-2,at=ne.substring(0,qe),ht=ne.substring(qe),_e=0,we=qe-7,bt=qe;bt>=1;bt--)_e+=at.charAt(qe-bt)*we,we-=1,we<2&&(we=9);var lt=_e%11<2?0:11-_e%11;if(lt!==parseInt(ht.charAt(0),10))return!1;qe+=1,at=ne.substring(0,qe),_e=0,we=qe-7;for(var wt=qe;wt>=1;wt--)_e+=at.charAt(qe-wt)*we,we-=1,we<2&&(we=9);return lt=_e%11<2?0:11-_e%11,lt===parseInt(ht.charAt(1),10)}function Mt(ne){var ae=11-o.reverseMultiplyAndSum(ne.split("").slice(0,8).map(function(ge){return parseInt(ge,10)}),9)%11;return ae>9?parseInt(ne[8],10)===0:ae===parseInt(ne[8],10)}function Ze(ne){if(ne.slice(0,4)!=="9000"){var ae=ne.slice(1,3);switch(ne[0]){case"1":case"2":ae="19".concat(ae);break;case"3":case"4":ae="18".concat(ae);break;case"5":case"6":ae="20".concat(ae);break}var ge="".concat(ae,"/").concat(ne.slice(3,5),"/").concat(ne.slice(5,7));if(ge.length===8){if(!(0,a.default)(ge,"YY/MM/DD"))return!1}else if(!(0,a.default)(ge,"YYYY/MM/DD"))return!1;for(var Be=ne.split("").map(function(ht){return parseInt(ht,10)}),Te=[2,7,9,1,4,6,3,5,8,2,7,9],qe=0,at=0;at<Te.length;at++)qe+=Be[at]*Te[at];return qe%11===10?Be[12]===1:Be[12]===qe%11}return!0}function nt(ne){if(ne.length===9){if(ne=ne.replace(/\W/,""),ne.slice(6)==="000")return!1;var ae=parseInt(ne.slice(0,2),10);if(ae>53)return!1;ae<10?ae="190".concat(ae):ae="19".concat(ae);var ge=parseInt(ne.slice(2,4),10);ge>50&&(ge-=50),ge<10&&(ge="0".concat(ge));var Be="".concat(ae,"/").concat(ge,"/").concat(ne.slice(4,6));if(!(0,a.default)(Be,"YYYY/MM/DD"))return!1}return!0}function Bt(ne){var ae=11-o.reverseMultiplyAndSum(ne.split("").slice(0,7).map(function(ge){return parseInt(ge,10)}),8)%11;return ae===10?parseInt(ne[7],10)===0:ae===parseInt(ne[7],10)}function zt(ne){var ae=ne.slice(0);ne.length>11&&(ae=ae.slice(2));var ge="",Be=ae.slice(2,4),Te=parseInt(ae.slice(4,6),10);if(ne.length>11)ge=ne.slice(0,4);else if(ge=ne.slice(0,2),ne.length===11&&Te<60){var qe=new Date().getFullYear().toString(),at=parseInt(qe.slice(0,2),10);if(qe=parseInt(qe,10),ne[6]==="-")parseInt("".concat(at).concat(ge),10)>qe?ge="".concat(at-1).concat(ge):ge="".concat(at).concat(ge);else if(ge="".concat(at-1).concat(ge),qe-parseInt(ge,10)<100)return!1}Te>60&&(Te-=60),Te<10&&(Te="0".concat(Te));var ht="".concat(ge,"/").concat(Be,"/").concat(Te);if(ht.length===8){if(!(0,a.default)(ht,"YY/MM/DD"))return!1}else if(!(0,a.default)(ht,"YYYY/MM/DD"))return!1;return o.luhnCheck(ne.replace(/\W/,""))}function rt(ne){for(var ae=ne.split("").map(function(qe){return parseInt(qe,10)}),ge=[-1,5,7,9,4,6,10,5,7],Be=0,Te=0;Te<ge.length;Te++)Be+=ae[Te]*ge[Te];return Be%11===10?ae[9]===0:ae[9]===Be%11}var st={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};st["lb-LU"]=st["fr-LU"],st["lt-LT"]=st["et-EE"],st["nl-BE"]=st["fr-BE"],st["fr-CA"]=st["en-CA"];var yt={"bg-BG":T,"cs-CZ":A,"de-AT":D,"de-DE":O,"dk-DK":I,"el-CY":N,"el-GR":L,"en-CA":k,"en-IE":q,"en-US":F,"es-AR":Y,"es-ES":ee,"et-EE":oe,"fi-FI":J,"fr-BE":me,"fr-FR":W,"fr-LU":fe,"hr-HR":he,"hu-HU":Me,"it-IT":te,"lv-LV":le,"mt-MT":P,"nl-NL":ve,"pl-PL":Ie,"pt-BR":Le,"pt-PT":Mt,"ro-RO":Ze,"sk-SK":nt,"sl-SI":Bt,"sv-SE":zt,"uk-UA":rt};yt["lb-LU"]=yt["fr-LU"],yt["lt-LT"]=yt["et-EE"],yt["nl-BE"]=yt["fr-BE"],yt["fr-CA"]=yt["en-CA"];var _t=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,kt={"de-AT":_t,"de-DE":/[\/\\]/g,"fr-BE":_t};kt["nl-BE"]=kt["fr-BE"];function Et(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,r.default)(ne);var ge=ne.slice(0);if(ae in st)return ae in kt&&(ge=ge.replace(kt[ae],"")),st[ae].test(ge)?ae in yt?yt[ae](ge):!0:!1;throw new Error("Invalid locale '".concat(ae,"'"))}e.exports=t.default,e.exports.default=t.default}(wE,wE.exports)),wE.exports}var Wg={},WN;function Joe(){if(WN)return Wg;WN=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=r,Wg.locales=void 0;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7[1-9]\d{8}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?0[79][567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-GT":/^(\+?502)?[2|6|7]\d{7}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[2-9]\d{7}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,"mk-MK":/^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];function r(o,a,l){if((0,e.default)(o),l&&l.strictMode&&!o.startsWith("+"))return!1;if(Array.isArray(a))return a.some(function(p){if(n.hasOwnProperty(p)){var y=n[p];if(y.test(o))return!0}return!1});if(a in n)return n[a].test(o);if(!a||a==="any"){for(var d in n)if(n.hasOwnProperty(d)){var h=n[d];if(h.test(o))return!0}return!1}throw new Error("Invalid locale '".concat(a,"'"))}return Wg.locales=Object.keys(n),Wg}var CE={exports:{}},XN;function eae(){return XN||(XN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0x)[0-9a-f]{40}$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(CE,CE.exports)),CE.exports}var EE={exports:{}},JN;function tae(){return JN||(JN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(Sa()),r=o(ct());function o(h){return h&&h.__esModule?h:{default:h}}function a(h){var p="\\d{".concat(h.digits_after_decimal[0],"}");h.digits_after_decimal.forEach(function(D,O){O!==0&&(p="".concat(p,"|\\d{").concat(D,"}"))});var y="(".concat(h.symbol.replace(/\W/,function(D){return"\\".concat(D)}),")").concat(h.require_symbol?"":"?"),m="-?",x="[1-9]\\d*",S="[1-9]\\d{0,2}(\\".concat(h.thousands_separator,"\\d{3})*"),w=["0",x,S],T="(".concat(w.join("|"),")?"),k="(\\".concat(h.decimal_separator,"(").concat(p,"))").concat(h.require_decimal?"":"?"),A=T+(h.allow_decimal||h.require_decimal?k:"");return h.allow_negatives&&!h.parens_for_negatives&&(h.negative_sign_after_digits?A+=m:h.negative_sign_before_digits&&(A=m+A)),h.allow_negative_sign_placeholder?A="( (?!\\-))?".concat(A):h.allow_space_after_symbol?A=" ?".concat(A):h.allow_space_after_digits&&(A+="( (?!$))?"),h.symbol_after_digits?A+=y:A=y+A,h.allow_negatives&&(h.parens_for_negatives?A="(\\(".concat(A,"\\)|").concat(A,")"):h.negative_sign_before_digits||h.negative_sign_after_digits||(A=m+A)),new RegExp("^(?!-? )(?=.*\\d)".concat(A,"$"))}var l={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function d(h,p){return(0,r.default)(h),p=(0,n.default)(p,l),a(p).test(h)}e.exports=t.default,e.exports.default=t.default}(EE,EE.exports)),EE.exports}var AE={exports:{}},ez;function nae(){return ez||(ez=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(ct());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/,a=/^(1|2|3|m)[A-HJ-NP-Za-km-z1-9]{25,39}$/;function l(d){return(0,n.default)(d),o.test(d)||a.test(d)}e.exports=t.default,e.exports.default=t.default}(AE,AE.exports)),AE.exports}var Xg={},tz;function rae(){if(tz)return Xg;tz=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.isFreightContainerID=void 0,Xg.isISO6346=o;var e=t(ct());function t(a){return a&&a.__esModule?a:{default:a}}var n=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,r=/^[0-9]$/;function o(a){if((0,e.default)(a),a=a.toUpperCase(),!n.test(a))return!1;if(a.length===11){for(var l=0,d=0;d<a.length-1;d++)if(r.test(a[d]))l+=a[d]*Math.pow(2,d);else{var h=void 0,p=a.charCodeAt(d)-55;p<11?h=p:p>=11&&p<=20?h=12+p%11:p>=21&&p<=30?h=23+p%21:h=34+p%31,l+=h*Math.pow(2,d)}var y=l%11;return y===10&&(y=0),Number(a[a.length-1])===y}return!0}return Xg.isFreightContainerID=o,Xg}var kE={exports:{}},nz;function iae(){return nz||(nz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);function a(l){return(0,n.default)(l),o.has(l)}e.exports=t.default,e.exports.default=t.default}(kE,kE.exports)),kE.exports}var TE={exports:{}},rz;function oae(){return rz||(rz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,l=function(p){var y=p.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(y){var m=Number(y[1]),x=Number(y[2]);return m%4===0&&m%100!==0||m%400===0?x<=366:x<=365}var S=p.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),w=S[1],T=S[2],k=S[3],A=T&&"0".concat(T).slice(-2),D=k&&"0".concat(k).slice(-2),O=new Date("".concat(w,"-").concat(A||"01","-").concat(D||"01"));return T&&k?O.getUTCFullYear()===w&&O.getUTCMonth()+1===T&&O.getUTCDate()===k:!0};function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(h);var y=p.strictSeparator?a.test(h):o.test(h);return y&&p.strict?l(h):y}e.exports=t.default,e.exports.default=t.default}(TE,TE.exports)),TE.exports}var OE={exports:{}},iz;function aae(){return iz||(iz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var n=r(ct());function r(D){return D&&D.__esModule?D:{default:D}}var o=/[0-9]{4}/,a=/(0[1-9]|1[0-2])/,l=/([12]\d|0[1-9]|3[01])/,d=/([01][0-9]|2[0-3])/,h=/[0-5][0-9]/,p=/([0-5][0-9]|60)/,y=/(\.[0-9]+)?/,m=new RegExp("[-+]".concat(d.source,":").concat(h.source)),x=new RegExp("([zZ]|".concat(m.source,")")),S=new RegExp("".concat(d.source,":").concat(h.source,":").concat(p.source).concat(y.source)),w=new RegExp("".concat(o.source,"-").concat(a.source,"-").concat(l.source)),T=new RegExp("".concat(S.source).concat(x.source)),k=new RegExp("^".concat(w.source,"[ tT]").concat(T.source,"$"));function A(D){return(0,n.default)(D),k.test(D)}e.exports=t.default,e.exports.default=t.default}(OE,OE.exports)),OE.exports}var Jg={},oz;function sae(){if(oz)return Jg;oz=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.ScriptCodes=void 0,Jg.default=r;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["Adlm","Afak","Aghb","Ahom","Arab","Aran","Armi","Armn","Avst","Bali","Bamu","Bass","Batk","Beng","Bhks","Blis","Bopo","Brah","Brai","Bugi","Buhd","Cakm","Cans","Cari","Cham","Cher","Chis","Chrs","Cirt","Copt","Cpmn","Cprt","Cyrl","Cyrs","Deva","Diak","Dogr","Dsrt","Dupl","Egyd","Egyh","Egyp","Elba","Elym","Ethi","Gara","Geok","Geor","Glag","Gong","Gonm","Goth","Gran","Grek","Gujr","Gukh","Guru","Hanb","Hang","Hani","Hano","Hans","Hant","Hatr","Hebr","Hira","Hluw","Hmng","Hmnp","Hrkt","Hung","Inds","Ital","Jamo","Java","Jpan","Jurc","Kali","Kana","Kawi","Khar","Khmr","Khoj","Kitl","Kits","Knda","Kore","Kpel","Krai","Kthi","Lana","Laoo","Latf","Latg","Latn","Leke","Lepc","Limb","Lina","Linb","Lisu","Loma","Lyci","Lydi","Mahj","Maka","Mand","Mani","Marc","Maya","Medf","Mend","Merc","Mero","Mlym","Modi","Mong","Moon","Mroo","Mtei","Mult","Mymr","Nagm","Nand","Narb","Nbat","Newa","Nkdb","Nkgb","Nkoo","Nshu","Ogam","Olck","Onao","Orkh","Orya","Osge","Osma","Ougr","Palm","Pauc","Pcun","Pelm","Perm","Phag","Phli","Phlp","Phlv","Phnx","Plrd","Piqd","Prti","Psin","Qaaa","Qaab","Qaac","Qaad","Qaae","Qaaf","Qaag","Qaah","Qaai","Qaaj","Qaak","Qaal","Qaam","Qaan","Qaao","Qaap","Qaaq","Qaar","Qaas","Qaat","Qaau","Qaav","Qaaw","Qaax","Qaay","Qaaz","Qaba","Qabb","Qabc","Qabd","Qabe","Qabf","Qabg","Qabh","Qabi","Qabj","Qabk","Qabl","Qabm","Qabn","Qabo","Qabp","Qabq","Qabr","Qabs","Qabt","Qabu","Qabv","Qabw","Qabx","Ranj","Rjng","Rohg","Roro","Runr","Samr","Sara","Sarb","Saur","Sgnw","Shaw","Shrd","Shui","Sidd","Sidt","Sind","Sinh","Sogd","Sogo","Sora","Soyo","Sund","Sunu","Sylo","Syrc","Syre","Syrj","Syrn","Tagb","Takr","Tale","Talu","Taml","Tang","Tavt","Tayo","Telu","Teng","Tfng","Tglg","Thaa","Thai","Tibt","Tirh","Tnsa","Todr","Tols","Toto","Tutg","Ugar","Vaii","Visp","Vith","Wara","Wcho","Wole","Xpeo","Xsux","Yezi","Yiii","Zanb","Zinh","Zmth","Zsye","Zsym","Zxxx","Zyyy","Zzzz"]);function r(o){return(0,e.default)(o),n.has(o)}return Jg.ScriptCodes=n,Jg}var DE={exports:{}},az;function lae(){return az||(az=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function a(l){return(0,n.default)(l),o.has(l.toUpperCase())}e.exports=t.default,e.exports.default=t.default}(DE,DE.exports)),DE.exports}var ME={exports:{}},sz;function uae(){return sz||(sz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);function a(l){return(0,n.default)(l),o.has(l)}e.exports=t.default,e.exports.default=t.default}(ME,ME.exports)),ME.exports}var em={},lz;function cae(){if(lz)return em;lz=1,Object.defineProperty(em,"__esModule",{value:!0}),em.CurrencyCodes=void 0,em.default=r;var e=t(ct());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);function r(o){return(0,e.default)(o),n.has(o.toUpperCase())}return em.CurrencyCodes=n,em}var RE={exports:{}},uz;function fae(){return uz||(uz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=o(ct()),r=o(Sa());function o(p){return p&&p.__esModule?p:{default:p}}var a=/^[A-Z2-7]+=*$/,l=/^[A-HJKMNP-TV-Z0-9]+$/,d={crockford:!1};function h(p,y){if((0,n.default)(p),y=(0,r.default)(y,d),y.crockford)return l.test(p);var m=p.length;return!!(m%8===0&&a.test(p))}e.exports=t.default,e.exports.default=t.default}(RE,RE.exports)),RE.exports}var IE={exports:{}},cz;function dae(){return cz||(cz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-HJ-NP-Za-km-z1-9]*$/;function a(l){return(0,n.default)(l),!!o.test(l)}e.exports=t.default,e.exports.default=t.default}(IE,IE.exports)),IE.exports}var BE={exports:{}},fz;function hae(){return fz||(fz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,a=/^[a-z\-]+=[a-z0-9\-]+$/i,l=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;function d(h){(0,n.default)(h);var p=h.split(",");if(p.length<2)return!1;var y=p.shift().trim().split(";"),m=y.shift();if(m.slice(0,5)!=="data:")return!1;var x=m.slice(5);if(x!==""&&!o.test(x))return!1;for(var S=0;S<y.length;S++)if(!(S===y.length-1&&y[S].toLowerCase()==="base64")&&!a.test(y[S]))return!1;for(var w=0;w<p.length;w++)if(!l.test(p[w]))return!1;return!0}e.exports=t.default,e.exports.default=t.default}(BE,BE.exports)),BE.exports}var $E={exports:{}},dz;function pae(){return dz||(dz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;function a(l){return(0,n.default)(l),l.indexOf("magnet:?")!==0?!1:o.test(l)}e.exports=t.default,e.exports.default=t.default}($E,$E.exports)),$E.exports}var LE={exports:{}},NE={exports:{}},zE={exports:{}},hz;function pz(){return hz||(hz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){if((0,n.default)(a),l){var d=new RegExp("[".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return a.replace(d,"")}for(var h=a.length-1;/\s/.test(a.charAt(h));)h-=1;return a.slice(0,h+1)}e.exports=t.default,e.exports.default=t.default}(zE,zE.exports)),zE.exports}var FE={exports:{}},gz;function mz(){return gz||(gz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);var d=l?new RegExp("^[".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return a.replace(d,"")}e.exports=t.default,e.exports.default=t.default}(FE,FE.exports)),FE.exports}var vz;function yz(){return vz||(vz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(pz()),r=o(mz());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){return(0,n.default)((0,r.default)(l,d),d)}e.exports=t.default,e.exports.default=t.default}(NE,NE.exports)),NE.exports}var xz;function gae(){return xz||(xz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var n=a(yz()),r=a(N7()),o=a(ct());function a(T){return T&&T.__esModule?T:{default:T}}function l(T,k){return p(T)||h(T,k)||m(T,k)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
122
122
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(T,k){var A=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(A!=null){var D,O,I,N,L=[],q=!0,G=!1;try{if(I=(A=A.call(T)).next,k!==0)for(;!(q=(D=I.call(A)).done)&&(L.push(D.value),L.length!==k);q=!0);}catch(V){G=!0,O=V}finally{try{if(!q&&A.return!=null&&(N=A.return(),Object(N)!==N))return}finally{if(G)throw O}}return L}}function p(T){if(Array.isArray(T))return T}function y(T,k){var A=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!A){if(Array.isArray(T)||(A=m(T))||k){A&&(T=A);var D=0,O=function(){};return{s:O,n:function(){return D>=T.length?{done:!0}:{done:!1,value:T[D++]}},e:function(G){throw G},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
123
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,N=!0,L=!1;return{s:function(){A=A.call(T)},n:function(){var G=A.next();return N=G.done,G},e:function(G){L=!0,I=G},f:function(){try{N||A.return==null||A.return()}finally{if(L)throw I}}}}function m(T,k){if(T){if(typeof T=="string")return x(T,k);var A={}.toString.call(T).slice(8,-1);return A==="Object"&&T.constructor&&(A=T.constructor.name),A==="Map"||A==="Set"?Array.from(T):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?x(T,k):void 0}}function x(T,k){(k==null||k>T.length)&&(k=T.length);for(var A=0,D=Array(k);A<k;A++)D[A]=T[A];return D}function S(T){var k=new Set(["subject","body","cc","bcc"]),A={cc:"",bcc:""},D=!1,O=T.split("&");if(O.length>4)return!1;var I=y(O),N;try{for(I.s();!(N=I.n()).done;){var L=N.value,q=L.split("="),G=l(q,2),V=G[0],F=G[1];if(V&&!k.has(V)){D=!0;break}F&&(V==="cc"||V==="bcc")&&(A[V]=F),V&&k.delete(V)}}catch(Y){I.e(Y)}finally{I.f()}return D?!1:A}function w(T,k){if((0,o.default)(T),T.indexOf("mailto:")!==0)return!1;var A=T.replace("mailto:","").split("?"),D=l(A,2),O=D[0],I=D[1],N=I===void 0?"":I;if(!O&&!N)return!0;var L=S(N);return L?"".concat(O,",").concat(L.cc,",").concat(L.bcc).split(",").every(function(q){return q=(0,n.default)(q," "),q?(0,r.default)(q,k):!0}):!1}e.exports=t.default,e.exports.default=t.default}(LE,LE.exports)),LE.exports}var UE={exports:{}},bz;function mae(){return bz||(bz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,l=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function d(h){return(0,n.default)(h),o.test(h)||a.test(h)||l.test(h)}e.exports=t.default,e.exports.default=t.default}(UE,UE.exports)),UE.exports}var jE={exports:{}},_z;function vae(){return _z||(_z=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=o(ct()),r=o(Sa());function o(m){return m&&m.__esModule?m:{default:m}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,l=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,d=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,h=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};function y(m,x){if((0,n.default)(m),x=(0,r.default)(x,p),!m.includes(","))return!1;var S=m.split(",");return S[0].startsWith("(")&&!S[1].endsWith(")")||S[1].endsWith(")")&&!S[0].startsWith("(")?!1:x.checkDMS?d.test(S[0])&&h.test(S[1]):a.test(S[0])&&l.test(S[1])}e.exports=t.default,e.exports.default=t.default}(jE,jE.exports)),jE.exports}var tm={},Sz;function yae(){if(Sz)return tm;Sz=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=d,tm.locales=void 0;var e=t(ct());function t(h){return h&&h.__esModule?h:{default:h}}var n=/^\d{3}$/,r=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,l={AD:/^AD\d{3}$/,AT:r,AU:r,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:r,BG:r,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:r,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:r,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:r,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:n,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:r,LV:/^LV\-\d{4}$/,LK:o,MG:n,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:r,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:r,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:r,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:r,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:r,ZM:o};tm.locales=Object.keys(l);function d(h,p){if((0,e.default)(h),p in l)return l[p].test(h);if(p==="any"){for(var y in l)if(l.hasOwnProperty(y)){var m=l[y];if(m.test(h))return!0}return!1}throw new Error("Invalid locale '".concat(p,"'"))}return tm}var HE={exports:{}},wz;function xae(){return wz||(wz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default}(HE,HE.exports)),HE.exports}var qE={exports:{}},Cz;function bae(){return Cz||(Cz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default}(qE,qE.exports)),qE.exports}var PE={exports:{}},GE={exports:{}},Ez;function Az(){return Ez||(Ez=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(GE,GE.exports)),GE.exports}var kz;function _ae(){return kz||(kz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(Az());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){(0,n.default)(l);var h=d?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(l,h)}e.exports=t.default,e.exports.default=t.default}(PE,PE.exports)),PE.exports}var VE={exports:{}},Tz;function Sae(){return Tz||(Tz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[^".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(VE,VE.exports)),VE.exports}var YE={exports:{}},Oz;function wae(){return Oz||(Oz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);for(var d=a.length-1;d>=0;d--)if(l.indexOf(a[d])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default}(YE,YE.exports)),YE.exports}var ZE={exports:{}},Dz;function Cae(){return Dz||(Dz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=r(Sa());function r(m){return m&&m.__esModule?m:{default:m}}var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,yandex_convert_yandexru:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],d=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],h=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(m){return m.length>1?m:""}function y(m,x){x=(0,n.default)(x,o);var S=m.split("@"),w=S.pop(),T=S.join("@"),k=[T,w];if(k[1]=k[1].toLowerCase(),k[1]==="gmail.com"||k[1]==="googlemail.com"){if(x.gmail_remove_subaddress&&(k[0]=k[0].split("+")[0]),x.gmail_remove_dots&&(k[0]=k[0].replace(/\.+/g,p)),!k[0].length)return!1;(x.all_lowercase||x.gmail_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.gmail_convert_googlemaildotcom?"gmail.com":k[1]}else if(a.indexOf(k[1])>=0){if(x.icloud_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.icloud_lowercase)&&(k[0]=k[0].toLowerCase())}else if(l.indexOf(k[1])>=0){if(x.outlookdotcom_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.outlookdotcom_lowercase)&&(k[0]=k[0].toLowerCase())}else if(d.indexOf(k[1])>=0){if(x.yahoo_remove_subaddress){var A=k[0].split("-");k[0]=A.length>1?A.slice(0,-1).join("-"):A[0]}if(!k[0].length)return!1;(x.all_lowercase||x.yahoo_lowercase)&&(k[0]=k[0].toLowerCase())}else h.indexOf(k[1])>=0?((x.all_lowercase||x.yandex_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.yandex_convert_yandexru?"yandex.ru":k[1]):x.all_lowercase&&(k[0]=k[0].toLowerCase());return k.join("@")}e.exports=t.default,e.exports.default=t.default}(ZE,ZE.exports)),ZE.exports}var QE={exports:{}},Mz;function Eae(){return Mz||(Mz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(QE,QE.exports)),QE.exports}var KE={exports:{}},Rz;function Aae(){return Rz||(Rz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o={"cs-CZ":function(d){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(d)},"de-DE":function(d){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(d)},"de-LI":function(d){return/^FL[- ]?\d{1,5}[UZ]?$/.test(d)},"en-IN":function(d){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(d)},"en-SG":function(d){return/^[A-Z]{3}[ -]?[\d]{4}[ -]?[A-Z]{1}$/.test(d)},"es-AR":function(d){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(d)},"fi-FI":function(d){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(d)},"hu-HU":function(d){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(d)},"pt-BR":function(d){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(d)},"pt-PT":function(d){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(d)},"sq-AL":function(d){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(d)},"sv-SE":function(d){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(d.trim())},"en-PK":function(d){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(d.trim())}};function a(l,d){if((0,n.default)(l),d in o)return o[d](l);if(d==="any"){for(var h in o){var p=o[h];if(p(l))return!0}return!1}throw new Error("Invalid locale '".concat(d,"'"))}e.exports=t.default,e.exports.default=t.default}(KE,KE.exports)),KE.exports}var WE={exports:{}},Iz;function kae(){return Iz||(Iz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n=o(Sa()),r=o(ct());function o(w){return w&&w.__esModule?w:{default:w}}var a=/^[A-Z]$/,l=/^[a-z]$/,d=/^[0-9]$/,h=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function y(w){var T={};return Array.from(w).forEach(function(k){var A=T[k];A?T[k]+=1:T[k]=1}),T}function m(w){var T=y(w),k={length:w.length,uniqueChars:Object.keys(T).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(T).forEach(function(A){a.test(A)?k.uppercaseCount+=T[A]:l.test(A)?k.lowercaseCount+=T[A]:d.test(A)?k.numberCount+=T[A]:h.test(A)&&(k.symbolCount+=T[A])}),k}function x(w,T){var k=0;return k+=w.uniqueChars*T.pointsPerUnique,k+=(w.length-w.uniqueChars)*T.pointsPerRepeat,w.lowercaseCount>0&&(k+=T.pointsForContainingLower),w.uppercaseCount>0&&(k+=T.pointsForContainingUpper),w.numberCount>0&&(k+=T.pointsForContainingNumber),w.symbolCount>0&&(k+=T.pointsForContainingSymbol),k}function S(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(w);var k=m(w);return T=(0,n.default)(T||{},p),T.returnScore?x(k,T):k.length>=T.minLength&&k.lowercaseCount>=T.minLowercase&&k.uppercaseCount>=T.minUppercase&&k.numberCount>=T.minNumbers&&k.symbolCount>=T.minSymbols}e.exports=t.default,e.exports.default=t.default}(WE,WE.exports)),WE.exports}var nm={},Bz;function Tae(){if(Bz)return nm;Bz=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(m)}Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=y,nm.vatMatchers=void 0;var t=a(ct()),n=o(QN());function r(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,S=new WeakMap;return(r=function(T){return T?S:x})(m)}function o(m,x){if(m&&m.__esModule)return m;if(m===null||e(m)!="object"&&typeof m!="function")return{default:m};var S=r(x);if(S&&S.has(m))return S.get(m);var w={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in m)if(k!=="default"&&{}.hasOwnProperty.call(m,k)){var A=T?Object.getOwnPropertyDescriptor(m,k):null;A&&(A.get||A.set)?Object.defineProperty(w,k,A):w[k]=m[k]}return w.default=m,S&&S.set(m,w),w}function a(m){return m&&m.__esModule?m:{default:m}}var l=function(x){var S=x.match(/^(AU)?(\d{11})$/);if(!S)return!1;var w=[10,1,3,5,7,9,11,13,15,17,19];x=x.replace(/^AU/,"");for(var T=(parseInt(x.slice(0,1),10)-1).toString()+x.slice(1),k=0,A=0;A<11;A++)k+=w[A]*T.charAt(A);return k!==0&&k%89===0},d=function(x){var S=function(T){var k=T.pop(),A=[5,4,3,2,7,6,5,4],D=(11-T.reduce(function(O,I,N){return O+I*A[N]},0)%11)%11;return k===D};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(x)&&S(x.match(/\d/g).map(function(w){return+w}))},h=function(x){var S=x.match(/^(PT)?(\d{9})$/);if(!S)return!1;var w=S[2],T=11-n.reverseMultiplyAndSum(w.split("").slice(0,8).map(function(k){return parseInt(k,10)}),9)%11;return T>9?parseInt(w[8],10)===0:T===parseInt(w[8],10)},p=nm.vatMatchers={AT:function(x){return/^(AT)?U\d{8}$/.test(x)},BE:function(x){return/^(BE)?\d{10}$/.test(x)},BG:function(x){return/^(BG)?\d{9,10}$/.test(x)},HR:function(x){return/^(HR)?\d{11}$/.test(x)},CY:function(x){return/^(CY)?\w{9}$/.test(x)},CZ:function(x){return/^(CZ)?\d{8,10}$/.test(x)},DK:function(x){return/^(DK)?\d{8}$/.test(x)},EE:function(x){return/^(EE)?\d{9}$/.test(x)},FI:function(x){return/^(FI)?\d{8}$/.test(x)},FR:function(x){return/^(FR)?\w{2}\d{9}$/.test(x)},DE:function(x){return/^(DE)?\d{9}$/.test(x)},EL:function(x){return/^(EL)?\d{9}$/.test(x)},HU:function(x){return/^(HU)?\d{8}$/.test(x)},IE:function(x){return/^(IE)?\d{7}\w{1}(W)?$/.test(x)},IT:function(x){return/^(IT)?\d{11}$/.test(x)},LV:function(x){return/^(LV)?\d{11}$/.test(x)},LT:function(x){return/^(LT)?\d{9,12}$/.test(x)},LU:function(x){return/^(LU)?\d{8}$/.test(x)},MT:function(x){return/^(MT)?\d{8}$/.test(x)},NL:function(x){return/^(NL)?\d{9}B\d{2}$/.test(x)},PL:function(x){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(x)},PT:h,RO:function(x){return/^(RO)?\d{2,10}$/.test(x)},SK:function(x){return/^(SK)?\d{10}$/.test(x)},SI:function(x){return/^(SI)?\d{8}$/.test(x)},ES:function(x){return/^(ES)?\w\d{7}[A-Z]$/.test(x)},SE:function(x){return/^(SE)?\d{12}$/.test(x)},AL:function(x){return/^(AL)?\w{9}[A-Z]$/.test(x)},MK:function(x){return/^(MK)?\d{13}$/.test(x)},AU:l,BY:function(x){return/^(УНП )?\d{9}$/.test(x)},CA:function(x){return/^(CA)?\d{9}$/.test(x)},IS:function(x){return/^(IS)?\d{5,6}$/.test(x)},IN:function(x){return/^(IN)?\d{15}$/.test(x)},ID:function(x){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(x)},IL:function(x){return/^(IL)?\d{9}$/.test(x)},KZ:function(x){return/^(KZ)?\d{12}$/.test(x)},NZ:function(x){return/^(NZ)?\d{9}$/.test(x)},NG:function(x){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(x)},NO:function(x){return/^(NO)?\d{9}MVA$/.test(x)},PH:function(x){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(x)},RU:function(x){return/^(RU)?(\d{10}|\d{12})$/.test(x)},SM:function(x){return/^(SM)?\d{5}$/.test(x)},SA:function(x){return/^(SA)?\d{15}$/.test(x)},RS:function(x){return/^(RS)?\d{9}$/.test(x)},CH:d,TR:function(x){return/^(TR)?\d{10}$/.test(x)},UA:function(x){return/^(UA)?\d{12}$/.test(x)},GB:function(x){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(x)},UZ:function(x){return/^(UZ)?\d{9}$/.test(x)},AR:function(x){return/^(AR)?\d{11}$/.test(x)},BO:function(x){return/^(BO)?\d{7}$/.test(x)},BR:function(x){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(x)},CL:function(x){return/^(CL)?\d{8}-\d{1}$/.test(x)},CO:function(x){return/^(CO)?\d{10}$/.test(x)},CR:function(x){return/^(CR)?\d{9,12}$/.test(x)},EC:function(x){return/^(EC)?\d{13}$/.test(x)},SV:function(x){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(x)},GT:function(x){return/^(GT)?\d{7}-\d{1}$/.test(x)},HN:function(x){return/^(HN)?$/.test(x)},MX:function(x){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(x)},NI:function(x){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(x)},PA:function(x){return/^(PA)?$/.test(x)},PY:function(x){return/^(PY)?\d{6,8}-\d{1}$/.test(x)},PE:function(x){return/^(PE)?\d{11}$/.test(x)},DO:function(x){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(x)},UY:function(x){return/^(UY)?\d{12}$/.test(x)},VE:function(x){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(x)}};function y(m,x){if((0,t.default)(m),(0,t.default)(x),x in p)return p[x](m);throw new Error("Invalid country code: '".concat(x,"'"))}return nm}var $z;function Oae(){return $z||($z=1,function(e,t){function n(se){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},n(se)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=et(gO()),o=et(_7()),a=et(Xie()),l=et(Jie()),d=et(eoe()),h=et(toe()),p=et(noe()),y=et(N7()),m=et(roe()),x=et(ioe()),S=et(AC()),w=et(ooe()),T=et(mO()),k=et(H7()),A=et(aoe()),D=et(soe()),O=et(loe()),I=et(uoe()),N=$r(coe()),L=$r(foe()),q=et(doe()),G=$r(hoe()),V=et(poe()),F=et(goe()),Y=et(moe()),ee=et(voe()),oe=et(yoe()),J=et(iN()),me=et(aN()),W=et(xoe()),fe=et(boe()),he=et(Soe()),Me=et(woe()),H=et(vO()),te=$r(x7()),le=et(Eoe()),P=et(gN()),ve=et(Aoe()),Ie=et(koe()),Le=et(Toe()),Mt=et(Ooe()),Ze=et(Doe()),nt=et(Moe()),Bt=$r(Roe()),zt=et(Ioe()),rt=et(Boe()),st=et($oe()),yt=et(Loe()),_t=et(Noe()),kt=et(zoe()),Et=et(Foe()),ne=et(I7()),ae=et(Uoe()),ge=et(joe()),Be=et(Hoe()),Te=et(qoe()),qe=et(Poe()),at=et(Goe()),ht=et(jN()),_e=et(Voe()),we=et(Yoe()),bt=et(Zoe()),lt=et(Qoe()),wt=et(Koe()),Tt=et(Woe()),Kt=et(Xoe()),Ht=$r(Joe()),mn=et(eae()),pt=et(tae()),Vt=et(nae()),mt=rae(),At=et(iae()),Rn=et(oae()),pr=et(aae()),Yn=et(sae()),tr=et(CN()),Ar=et(lae()),kr=et(uae()),Zn=et(cae()),nr=et(fae()),Qn=et(dae()),ai=et(ON()),Tr=et(hae()),Hn=et(pae()),on=et(gae()),vn=et(mae()),ln=et(vae()),Zi=$r(yae()),gr=et(mz()),ea=et(pz()),bo=et(yz()),Ot=et(xae()),si=et(bae()),Or=et(_ae()),li=et(Sae()),$o=et(Az()),Ai=et(wae()),Kn=et(Cae()),_o=et(Eae()),xr=et(Aae()),ki=et(kae()),Dr=et(Tae());function wa(se){if(typeof WeakMap!="function")return null;var Ae=new WeakMap,z=new WeakMap;return(wa=function(ce){return ce?z:Ae})(se)}function $r(se,Ae){if(se&&se.__esModule)return se;if(se===null||n(se)!="object"&&typeof se!="function")return{default:se};var z=wa(Ae);if(z&&z.has(se))return z.get(se);var X={__proto__:null},ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var be in se)if(be!=="default"&&{}.hasOwnProperty.call(se,be)){var Se=ce?Object.getOwnPropertyDescriptor(se,be):null;Se&&(Se.get||Se.set)?Object.defineProperty(X,be,Se):X[be]=se[be]}return X.default=se,z&&z.set(se,X),X}function et(se){return se&&se.__esModule?se:{default:se}}var Ce="13.15.0",Je={version:Ce,toDate:r.default,toFloat:o.default,toInt:a.default,toBoolean:l.default,equals:d.default,contains:h.default,matches:p.default,isEmail:y.default,isURL:m.default,isMACAddress:x.default,isIP:S.default,isIPRange:w.default,isFQDN:T.default,isBoolean:D.default,isIBAN:Bt.default,isBIC:zt.default,isAbaRouting:I.default,isAlpha:N.default,isAlphaLocales:N.locales,isAlphanumeric:L.default,isAlphanumericLocales:L.locales,isNumeric:q.default,isPassportNumber:G.default,passportNumberLocales:G.locales,isPort:V.default,isLowercase:F.default,isUppercase:Y.default,isAscii:oe.default,isFullWidth:J.default,isHalfWidth:me.default,isVariableWidth:W.default,isMultibyte:fe.default,isSemVer:he.default,isSurrogatePair:Me.default,isInt:H.default,isIMEI:ee.default,isFloat:te.default,isFloatLocales:te.locales,isDecimal:le.default,isHexadecimal:P.default,isOctal:ve.default,isDivisibleBy:Ie.default,isHexColor:Le.default,isRgbColor:Mt.default,isHSL:Ze.default,isISRC:nt.default,isMD5:rt.default,isHash:st.default,isJWT:yt.default,isJSON:_t.default,isEmpty:kt.default,isLength:Et.default,isLocale:O.default,isByteLength:ne.default,isULID:ae.default,isUUID:ge.default,isMongoId:Be.default,isAfter:Te.default,isBefore:qe.default,isIn:at.default,isLuhnNumber:ht.default,isCreditCard:_e.default,isIdentityCard:we.default,isEAN:bt.default,isISIN:lt.default,isISBN:wt.default,isISSN:Tt.default,isMobilePhone:Ht.default,isMobilePhoneLocales:Ht.locales,isPostalCode:Zi.default,isPostalCodeLocales:Zi.locales,isEthereumAddress:mn.default,isCurrency:pt.default,isBtcAddress:Vt.default,isISO6346:mt.isISO6346,isFreightContainerID:mt.isFreightContainerID,isISO6391:At.default,isISO8601:Rn.default,isISO15924:Yn.default,isRFC3339:pr.default,isISO31661Alpha2:tr.default,isISO31661Alpha3:Ar.default,isISO31661Numeric:kr.default,isISO4217:Zn.default,isBase32:nr.default,isBase58:Qn.default,isBase64:ai.default,isDataURI:Tr.default,isMagnetURI:Hn.default,isMailtoURI:on.default,isMimeType:vn.default,isLatLong:ln.default,ltrim:gr.default,rtrim:ea.default,trim:bo.default,escape:Ot.default,unescape:si.default,stripLow:Or.default,whitelist:li.default,blacklist:$o.default,isWhitelisted:Ai.default,normalizeEmail:Kn.default,toString,isSlug:_o.default,isStrongPassword:ki.default,isTaxID:Kt.default,isDate:k.default,isTime:A.default,isLicensePlate:xr.default,isVAT:Dr.default,ibanLocales:Bt.locales};t.default=Je,e.exports=t.default,e.exports.default=t.default}(uC,uC.exports)),uC.exports}var rm=Oae();const Gt={OPEN_STATE_CHANGE:"open_state_change",CHAT_BUTTON_CLICKED:"Chat button clicked",USER_FORM_FILLED:"User form filled",ADD_BULK_ITEM:"Add bulk item",USER_FORM_CLOSE:"user_form_close",CHECKOUT_CLICKED:"Checkout Clicked",ADD_TO_CART_CLICKED:"add to cart clicked",SUGGESTED_QUESTION_CLICKED:"Suggested Question Clicked",INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED:"Initial Leading Query Suggested Question Clicked",LEADING_QUERY_CLICKED:"Leading Query Clicked",COLLECTION_VIDEO_CLICKED:"Collection Video Clicked",COLLECTION_IMAGE_CLICKED:"Collection Image Clicked",VIEW_PRODUCT_CLICKED:"view product clicked",PRODUCT_VIDEO_CLICKED:"Product Video Clicked",PRODUCT_IMAGE_CLICKED:"Product Image Clicked",SHOW_SIMILAR_CLICKED:"show similar clicked",CHAT_MESSAGE_SENT:"chat_message_sent",CHAT_MESSAGE_TYPING_STARTED:"chat_message_typing_started",CHAT_MESSAGE_TYPING_ENDED:"chat_message_typing_ended",DISCOUNT_VIEWED:"discount_viewed",SHOPIFY_LINK_CLICKED:"shopify_link_clicked"},jr={OPEN_STATE_CHANGE:"open_state_change"},Lz=ie.createContext(null),_d=()=>{const e=ie.useContext(Lz);if(!e)throw new Error("useCart must be used within a CartProvider");return e};var Dae="2.0.0",im="",Nz="?",XE="function",Sd="undefined",om="object",yO="string",qx="major",dt="model",ut="name",ot="type",vt="vendor",ft="version",Ga="architecture",am="console",wn="mobile",oi="tablet",Jo="smarttv",Px="wearable",xO="xr",bO="embedded",Gx="inapp",zz="user-agent",_O=500,SO="brands",up="formFactors",wO="fullVersionList",sm="platform",CO="platformVersion",JE="bitness",wd="sec-ch-ua",Mae=wd+"-full-version-list",Rae=wd+"-arch",Iae=wd+"-"+JE,Bae=wd+"-form-factors",$ae=wd+"-"+wn,Lae=wd+"-"+dt,Fz=wd+"-"+sm,Nae=Fz+"-version",Uz=[SO,wO,wn,dt,sm,CO,Ga,up,JE],gs="browser",Uc="cpu",Iu="device",jc="engine",Ps="os",lm="result",eA="Amazon",Vx="Apple",jz="ASUS",Hz="BlackBerry",cp="Google",qz="Huawei",Pz="Lenovo",zae="Honor",EO="LG",tA="Microsoft",Gz="Motorola",Yx="Samsung",Vz="Sharp",nA="Sony",AO="Xiaomi",kO="Zebra",um="Mobile ",Zx=" Browser",Yz="Chrome",Cd="Chromecast",Fae="Edge",Qx="Firefox",Kx="Opera",Zz="Facebook",Qz="Sogou",TO="Windows",Uae=typeof window!==Sd,Va=Uae&&window.navigator?window.navigator:void 0,Ed=Va&&Va.userAgentData?Va.userAgentData:void 0,jae=function(e,t){var n={},r=t;if(!iA(t)){r={};for(var o in t)for(var a in t[o])r[a]=t[o][a].concat(r[a]?r[a]:[])}for(var l in e)n[l]=r[l]&&r[l].length%2===0?r[l].concat(e[l]):e[l];return n},rA=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},OO=function(e,t){if(typeof e===om&&e.length>0){for(var n in e)if(Hc(e[n])==Hc(t))return!0;return!1}return cm(e)?Hc(t).indexOf(Hc(e))!==-1:!1},iA=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?iA(e[n]):!1)},cm=function(e){return typeof e===yO},DO=function(e){if(e){for(var t=[],n=fp(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var o=Xx(n[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Xx(n[r]);return t}},Hc=function(e){return cm(e)?e.toLowerCase():e},MO=function(e){return cm(e)?fp(/[^\d\.]/g,e).split(".")[0]:void 0},qc=function(e){for(var t in e){var n=e[t];typeof n==om&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},fp=function(e,t){return cm(t)?t.replace(e,im):t},Wx=function(e){return fp(/\\?\"/g,e)},Xx=function(e,t){if(cm(e))return e=fp(/^\s\s*/,e),typeof t===Sd?e:e.substring(0,_O)},Kz=function(e,t){if(!(!e||!t))for(var n=0,r,o,a,l,d,h;n<t.length&&!d;){var p=t[n],y=t[n+1];for(r=o=0;r<p.length&&!d&&p[r];)if(d=p[r++].exec(e),d)for(a=0;a<y.length;a++)h=d[++o],l=y[a],typeof l===om&&l.length>0?l.length===2?typeof l[1]==XE?this[l[0]]=l[1].call(this,h):this[l[0]]=l[1]:l.length===3?typeof l[1]===XE&&!(l[1].exec&&l[1].test)?this[l[0]]=h?l[1].call(this,h,l[2]):void 0:this[l[0]]=h?h.replace(l[1],l[2]):void 0:l.length===4&&(this[l[0]]=h?l[3].call(this,h.replace(l[1],l[2])):void 0):this[l]=h||void 0;n+=2}},Jx=function(e,t){for(var n in t)if(typeof t[n]===om&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(OO(t[n][r],e))return n===Nz?void 0:n}else if(OO(t[n],e))return n===Nz?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},Wz={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Xz={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Jz={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ft,[ut,um+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ft,[ut,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ut,ft],[/opios[\/ ]+([\w\.]+)/i],[ft,[ut,Kx+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[ft,[ut,Kx+" GX"]],[/\bopr\/([\w\.]+)/i],[ft,[ut,Kx]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ft,[ut,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[ft,[ut,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ut,ft],[/quark(?:pc)?\/([-\w\.]+)/i],[ft,[ut,"Quark"]],[/\bddg\/([\w\.]+)/i],[ft,[ut,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ft,[ut,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ft,[ut,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ft,[ut,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ft,[ut,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ft,[ut,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ft,[ut,"Smart "+Pz+Zx]],[/(avast|avg)\/([\w\.]+)/i],[[ut,/(.+)/,"$1 Secure"+Zx],ft],[/\bfocus\/([\w\.]+)/i],[ft,[ut,Qx+" Focus"]],[/\bopt\/([\w\.]+)/i],[ft,[ut,Kx+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ft,[ut,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ft,[ut,"Dolphin"]],[/coast\/([\w\.]+)/i],[ft,[ut,Kx+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ft,[ut,"MIUI"+Zx]],[/fxios\/([\w\.-]+)/i],[ft,[ut,um+Qx]],[/\bqihoobrowser\/?([\w\.]*)/i],[ft,[ut,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ut,/(.+)/,"$1Browser"],ft],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ut,/(.+)/,"$1"+Zx],ft],[/samsungbrowser\/([\w\.]+)/i],[ft,[ut,Yx+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[ft,[ut,Qz+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ut,Qz+" Mobile"],ft],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ut,ft],[/(lbbrowser|rekonq)/i],[ut],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[ft,ut],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ut,Zz],ft,[ot,Gx]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[ut,ft,[ot,Gx]],[/\bgsa\/([\w\.]+) .*safari\//i],[ft,[ut,"GSA"],[ot,Gx]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ft,[ut,"TikTok"],[ot,Gx]],[/\[(linkedin)app\]/i],[ut,[ot,Gx]],[/(chromium)[\/ ]([-\w\.]+)/i],[ut,ft],[/headlesschrome(?:\/([\w\.]+)| )/i],[ft,[ut,Yz+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ut,Yz+" WebView"],ft],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ft,[ut,"Android"+Zx]],[/chrome\/([\w\.]+) mobile/i],[ft,[ut,um+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ut,ft],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[ft,[ut,um+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ut,um+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[ft,ut],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ut,[ft,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ut,ft],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ut,um+Qx],ft],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ut,"Netscape"],ft],[/(wolvic|librewolf)\/([\w\.]+)/i],[ut,ft],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ft,[ut,Qx+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ut,[ft,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ut,[ft,/[^\d\.]+./,im]]],cpu:[[/\b(?:(amd|x|x86[-_]?|wow|win)64)\b/i],[[Ga,"amd64"]],[/(ia32(?=;))/i,/((?:i[346]|x)86)[;\)]/i],[[Ga,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Ga,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Ga,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Ga,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Ga,/ower/,im,Hc]],[/(sun4\w)[;\)]/i],[[Ga,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Ga,Hc]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[dt,[vt,Yx],[ot,oi]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[dt,[vt,Yx],[ot,wn]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[dt,[vt,Vx],[ot,wn]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[dt,[vt,Vx],[ot,oi]],[/(macintosh);/i],[dt,[vt,Vx]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[dt,[vt,Vz],[ot,wn]],[/(?:honor)([-\w ]+)[;\)]/i],[dt,[vt,zae],[ot,wn]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[dt,[vt,qz],[ot,oi]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[dt,[vt,qz],[ot,wn]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[dt,/_/g," "],[vt,AO],[ot,wn]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[dt,/_/g," "],[vt,AO],[ot,oi]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[dt,[vt,"OPPO"],[ot,wn]],[/\b(opd2\d{3}a?) bui/i],[dt,[vt,"OPPO"],[ot,oi]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[dt,[vt,"Vivo"],[ot,wn]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[dt,[vt,"Realme"],[ot,wn]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[dt,[vt,Gz],[ot,wn]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[dt,[vt,Gz],[ot,oi]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[dt,[vt,EO],[ot,oi]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[dt,[vt,EO],[ot,wn]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[dt,[vt,Pz],[ot,oi]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[dt,/_/g," "],[vt,"Nokia"],[ot,wn]],[/(pixel c)\b/i],[dt,[vt,cp],[ot,oi]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[dt,[vt,cp],[ot,wn]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[dt,[vt,nA],[ot,wn]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[dt,"Xperia Tablet"],[vt,nA],[ot,oi]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[dt,[vt,"OnePlus"],[ot,wn]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[dt,[vt,eA],[ot,oi]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[dt,/(.+)/g,"Fire Phone $1"],[vt,eA],[ot,wn]],[/(playbook);[-\w\),; ]+(rim)/i],[dt,vt,[ot,oi]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[dt,[vt,Hz],[ot,wn]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[dt,[vt,jz],[ot,oi]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[dt,[vt,jz],[ot,wn]],[/(nexus 9)/i],[dt,[vt,"HTC"],[ot,oi]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[vt,[dt,/_/g," "],[ot,wn]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[dt,[vt,"TCL"],[ot,oi]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[dt,[vt,"TCL"],[ot,wn]],[/(itel) ((\w+))/i],[[vt,Hc],dt,[ot,Jx,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[dt,[vt,"Acer"],[ot,oi]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[dt,[vt,"Meizu"],[ot,wn]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[dt,[vt,"Ulefone"],[ot,wn]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[dt,[vt,"Energizer"],[ot,wn]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[dt,[vt,"Cat"],[ot,wn]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[dt,[vt,"Smartfren"],[ot,wn]],[/droid.+; (a(?:015|06[35]|142p?))/i],[dt,[vt,"Nothing"],[ot,wn]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[vt,dt,[ot,wn]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[vt,dt,[ot,oi]],[/(surface duo)/i],[dt,[vt,tA],[ot,oi]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[dt,[vt,"Fairphone"],[ot,wn]],[/(shield[\w ]+) b/i],[dt,[vt,"Nvidia"],[ot,oi]],[/(sprint) (\w+)/i],[vt,dt,[ot,wn]],[/(kin\.[onetw]{3})/i],[[dt,/\./g," "],[vt,tA],[ot,wn]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[dt,[vt,kO],[ot,oi]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[dt,[vt,kO],[ot,wn]],[/smart-tv.+(samsung)/i],[vt,[ot,Jo]],[/hbbtv.+maple;(\d+)/i],[[dt,/^/,"SmartTV"],[vt,Yx],[ot,Jo]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[vt,EO],[ot,Jo]],[/(apple) ?tv/i],[vt,[dt,Vx+" TV"],[ot,Jo]],[/crkey.*devicetype\/chromecast/i],[[dt,Cd+" Third Generation"],[vt,cp],[ot,Jo]],[/crkey.*devicetype\/([^/]*)/i],[[dt,/^/,"Chromecast "],[vt,cp],[ot,Jo]],[/fuchsia.*crkey/i],[[dt,Cd+" Nest Hub"],[vt,cp],[ot,Jo]],[/crkey/i],[[dt,Cd],[vt,cp],[ot,Jo]],[/droid.+aft(\w+)( bui|\))/i],[dt,[vt,eA],[ot,Jo]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[dt,[vt,Vz],[ot,Jo]],[/(bravia[\w ]+)( bui|\))/i],[dt,[vt,nA],[ot,Jo]],[/(mitv-\w{5}) bui/i],[dt,[vt,AO],[ot,Jo]],[/Hbbtv.*(technisat) (.*);/i],[vt,dt,[ot,Jo]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[vt,Xx],[dt,Xx],[ot,Jo]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[ot,Jo]],[/(ouya)/i,/(nintendo) (\w+)/i],[vt,dt,[ot,am]],[/droid.+; (shield) bui/i],[dt,[vt,"Nvidia"],[ot,am]],[/(playstation \w+)/i],[dt,[vt,nA],[ot,am]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[dt,[vt,tA],[ot,am]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[dt,[vt,Yx],[ot,Px]],[/((pebble))app/i],[vt,dt,[ot,Px]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[dt,[vt,Vx],[ot,Px]],[/droid.+; (wt63?0{2,3})\)/i],[dt,[vt,kO],[ot,Px]],[/droid.+; (glass) \d/i],[dt,[vt,cp],[ot,xO]],[/(pico) (4|neo3(?: link|pro)?)/i],[vt,dt,[ot,xO]],[/; (quest( \d| pro)?)/i],[dt,[vt,Zz],[ot,xO]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[vt,[ot,bO]],[/(aeobc)\b/i],[dt,[vt,eA],[ot,bO]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[dt,[ot,wn]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[dt,[ot,oi]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ot,oi]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ot,wn]],[/(android[-\w\. ]{0,9});.+buil/i],[dt,[vt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ft,[ut,Fae+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ut,ft],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ft,[ut,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ut,ft],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ft,ut]],os:[[/microsoft (windows) (vista|xp)/i],[ut,ft],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ut,[ft,Jx,Wz]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[ft,Jx,Wz],[ut,TO]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[ft,/_/g,"."],[ut,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ut,"macOS"],[ft,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[ft,[ut,Cd+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[ft,[ut,Cd+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[ft,[ut,Cd+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[ft,[ut,Cd+" Linux"]],[/crkey\/([\d\.]+)/i],[ft,[ut,Cd]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[ft,ut],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ut,ft],[/\(bb(10);/i],[ft,[ut,Hz]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[ft,[ut,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ft,[ut,Qx+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[ft,[ut,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ft,[ut,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ut,"Chrome OS"],ft],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ut,ft],[/(sunos) ?([\w\.\d]*)/i],[[ut,"Solaris"],ft],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ut,ft]]},oA=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return qc.call(e.init,[[gs,[ut,ft,qx,ot]],[Uc,[Ga]],[Iu,[ot,dt,vt]],[jc,[ut,ft]],[Ps,[ut,ft]]]),qc.call(e.isIgnore,[[gs,[ft,qx]],[jc,[ft]],[Ps,[ft]]]),qc.call(e.isIgnoreRgx,[[gs,/ ?browser$/i],[Ps,/ ?os$/i]]),qc.call(e.toString,[[gs,[ut,ft]],[Uc,[Ga]],[Iu,[vt,dt]],[jc,[ut,ft]],[Ps,[ut,ft]]]),e}(),Hae=function(e,t){var n=oA.init[t],r=oA.isIgnore[t]||0,o=oA.isIgnoreRgx[t]||0,a=oA.toString[t]||0;function l(){qc.call(this,n)}return l.prototype.getItem=function(){return e},l.prototype.withClientHints=function(){return Ed?Ed.getHighEntropyValues(Uz).then(function(d){return e.setCH(new eF(d,!1)).parseCH().get()}):e.parseCH().get()},l.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=lm&&(l.prototype.is=function(d){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!OO(r,p)&&Hc(o?fp(o,this[p]):this[p])==Hc(o?fp(o,d):d)){if(h=!0,d!=Sd)break}else if(d==Sd&&h){h=!h;break}return h},l.prototype.toString=function(){var d=im;for(var h in a)typeof this[a[h]]!==Sd&&(d+=(d?" ":im)+this[a[h]]);return d||Sd}),Ed||(l.prototype.then=function(d){var h=this,p=function(){for(var m in h)h.hasOwnProperty(m)&&(this[m]=h[m])};p.prototype={is:l.prototype.is,toString:l.prototype.toString};var y=new p;return d(y),y}),new l};function eF(e,t){if(e=e||{},qc.call(this,Uz),t)qc.call(this,[[SO,DO(e[wd])],[wO,DO(e[Mae])],[wn,/\?1/.test(e[$ae])],[dt,Wx(e[Lae])],[sm,Wx(e[Fz])],[CO,Wx(e[Nae])],[Ga,Wx(e[Rae])],[up,DO(e[Bae])],[JE,Wx(e[Iae])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Sd&&(this[n]=e[n])}function tF(e,t,n,r){return this.get=function(o){return o?this.data.hasOwnProperty(o)?this.data[o]:void 0:this.data},this.set=function(o,a){return this.data[o]=a,this},this.setCH=function(o){return this.uaCH=o,this},this.detectFeature=function(){if(Va&&Va.userAgent==this.ua)switch(this.itemType){case gs:Va.brave&&typeof Va.brave.isBrave==XE&&this.set(ut,"Brave");break;case Iu:!this.get(ot)&&Ed&&Ed[wn]&&this.set(ot,wn),this.get(dt)=="Macintosh"&&Va&&typeof Va.standalone!==Sd&&Va.maxTouchPoints&&Va.maxTouchPoints>2&&this.set(dt,"iPad").set(ot,oi);break;case Ps:!this.get(ut)&&Ed&&Ed[sm]&&this.set(ut,Ed[sm]);break;case lm:var o=this.data,a=function(l){return o[l].getItem().detectFeature().get()};this.set(gs,a(gs)).set(Uc,a(Uc)).set(Iu,a(Iu)).set(jc,a(jc)).set(Ps,a(Ps))}return this},this.parseUA=function(){return this.itemType!=lm&&Kz.call(this.data,this.ua,this.rgxMap),this.itemType==gs&&this.set(qx,MO(this.get(ft))),this},this.parseCH=function(){var o=this.uaCH,a=this.rgxMap;switch(this.itemType){case gs:var l=o[wO]||o[SO],d;if(l)for(var h in l){var p=fp(/(Google|Microsoft) /,l[h].brand||l[h]),y=l[h].version;!/not.a.brand/i.test(p)&&(!d||/chrom/i.test(d)&&!/chromi/i.test(p))&&(this.set(ut,p).set(ft,y).set(qx,MO(y)),d=p)}break;case Uc:var m=o[Ga];m&&(m&&o[JE]=="64"&&(m+="64"),Kz.call(this.data,m+";",a));break;case Iu:if(o[wn]&&this.set(ot,wn),o[dt]&&this.set(dt,o[dt]),o[dt]=="Xbox"&&this.set(ot,am).set(vt,tA),o[up]){var x;if(typeof o[up]!="string")for(var S=0;!x&&S<o[up].length;)x=Jx(o[up][S++],Xz);else x=Jx(o[up],Xz);this.set(ot,x)}break;case Ps:var w=o[sm];if(w){var T=o[CO];w==TO&&(T=parseInt(MO(T),10)>=13?"11":"10"),this.set(ut,w).set(ft,T)}this.get(ut)==TO&&o[dt]=="Xbox"&&this.set(ut,"Xbox").set(ft,void 0);break;case lm:var k=this.data,A=function(D){return k[D].getItem().setCH(o).parseCH().get()};this.set(gs,A(gs)).set(Uc,A(Uc)).set(Iu,A(Iu)).set(jc,A(jc)).set(Ps,A(Ps))}return this},qc.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",Hae(this,e)]]),this}function Pc(e,t,n){if(typeof e===om?(iA(e,!0)?(typeof t===om&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===yO&&!iA(t,!0)&&(n=t,t=void 0),n&&typeof n.append===XE){var r={};n.forEach(function(h,p){r[p]=h}),n=r}if(!(this instanceof Pc))return new Pc(e,t,n).getResult();var o=typeof e===yO?e:n&&n[zz]?n[zz]:Va&&Va.userAgent?Va.userAgent:im,a=new eF(n,!0),l=t?jae(Jz,t):Jz,d=function(h){return h==lm?function(){return new tF(h,o,l,a).set("ua",o).set(gs,this.getBrowser()).set(Uc,this.getCPU()).set(Iu,this.getDevice()).set(jc,this.getEngine()).set(Ps,this.getOS()).get()}:function(){return new tF(h,o,l[h],a).parseUA().get()}};return qc.call(this,[["getBrowser",d(gs)],["getCPU",d(Uc)],["getDevice",d(Iu)],["getEngine",d(jc)],["getOS",d(Ps)],["getResult",d(lm)],["getUA",function(){return o}],["setUA",function(h){return cm(h)&&(o=h.length>_O?Xx(h,_O):h),this}]]).setUA(o),this}Pc.VERSION=Dae,Pc.BROWSER=rA([ut,ft,qx,ot]),Pc.CPU=rA([Ga]),Pc.DEVICE=rA([dt,vt,ot,am,wn,Jo,oi,Px,bO]),Pc.ENGINE=Pc.OS=rA([ut,ft]);const Ys=class Ys{constructor(t){Yr(this,"config");Yr(this,"storedData");Yr(this,"deviceInfo");Yr(this,"localStorageKey","_dsjfs312313kj3debales_analytics_");this.config=t,this.deviceInfo=this.getDeviceInfo(),this.localStorageKey=t.localStorageKey||this.localStorageKey+this.config.projectName,this.config.testing=t.testing||(()=>!1);const n=localStorage.getItem(this.localStorageKey);if(n)this.storedData=JSON.parse(n),this.config.debug&&console.log("Using Existing Stored data:",this.storedData);else{const r=crypto.randomUUID();this.storedData={projectName:this.config.projectName,anonId:r,distinctId:r},this.config.debug&&console.log("Using New Stored data:",this.storedData),this.updateStorage()}this.config.debug&&console.log("Analytics initialized:",this.storedData)}static init(t){Ys.instance||(Ys.instance=new Ys(t))}static getInstance(){if(!Ys.instance)throw new Error("DebalesAnalytics is not initialized. Call init() first.");return Ys.instance}static async identify(t,n){return Ys.getInstance().identifyInternal(t,n)}static track(t,n){Ys.getInstance().trackInternal(t,n)}static getDistinctId(){return Ys.getInstance().storedData.distinctId}static getAnonId(){return Ys.getInstance().storedData.anonId}async identifyInternal(t,n){try{if(this.config.testing&&this.config.testing())return;let r,o,a;if(n){const{name:h,phone:p,...y}=n;r=h,o=p,a=y}const l={distinctId:this.storedData.distinctId,anonId:[this.storedData.anonId],projectName:this.config.projectName,email:t,name:r,phone:o,properties:a},d=await this.sendRequest("/api/analytic/identify",l);d&&d.success&&d.distinctId&&(this.config.debug&&console.log("identify success new distint id"),this.storedData.distinctId=d.distinctId,this.storedData.email=t,this.updateStorage(),d.isIdentified&&this.trackInternal("identify")),this.config.debug&&console.log("Identify event sent:",l)}catch(r){console.error("Failed to identify user:",r)}}trackInternal(t,n){if(this.config.testing&&this.config.testing())return;const r={projectName:this.config.projectName,distinctId:this.storedData.distinctId,anonId:this.storedData.anonId,eventName:t,osVersion:this.deviceInfo.osVersion,browserVersion:this.deviceInfo.browserVersion,operatingSystem:this.deviceInfo.os,browser:this.deviceInfo.browser,referrer:document.referrer,currentUrl:window.location.href,chatId:er()+this.config.projectName,properties:n};this.sendRequest("/api/analytic/track",r),this.config.debug&&console.log("Track event sent:",r)}updateStorage(){localStorage.setItem(this.localStorageKey,JSON.stringify(this.storedData))}async sendRequest(t,n){try{const r=await fetch(`${Ci}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){console.error("Failed to send analytics data:",r)}}getDeviceInfo(){const n=new Pc().getResult();return{browser:n.browser.name,os:n.os.name,browserVersion:n.browser.version,osVersion:n.os.version}}};Yr(Ys,"instance",null);let RO=Ys;const Bu=RO,aA=e=>{window.DebalesChat||(window.DebalesChat={isOpen:!1,projectId:e,getSessionId:()=>er(),getChatId:()=>er()+"_"+e,getAnonId:()=>Bu.getAnonId(),isIdentified:()=>{if(Fs._isIdentified())return!0;const t=Io();return!!(t&&t.email)},getIdentifiedUser:()=>Io(),getDistinctId:()=>Fs.get_distinct_id(),getOldDistinctId:()=>Bu.getDistinctId(),debug:!1,identify:(t,n)=>{Fs._isIdentified()||Fs.identify(t,{...n,project:e}),Bu.identify(t,n),Fc({email:t,name:n==null?void 0:n.name,phone:n==null?void 0:n.phone})},track:(t,n)=>{Bu.track(t,{...n,sessionId:window.DebalesChat.getSessionId()}),Fs.capture(t,{...n}),Yie(t,{...n,sessionId:er(),projectId:e})},onOpenChange:t=>{const n=r=>{t(r.detail.isOpen)};return window.addEventListener(jr.OPEN_STATE_CHANGE,n),()=>window.removeEventListener(jr.OPEN_STATE_CHANGE,n)},removeOpenChangeListener:t=>{const n=r=>{t(r.detail.isOpen)};window.removeEventListener(jr.OPEN_STATE_CHANGE,n)},open:()=>{window.DebalesChat.isOpen||window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!0,projectId:e}}))},close:()=>{window.DebalesChat.isOpen&&window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!1,projectId:e}}))},toggle:()=>{window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!window.DebalesChat.isOpen,projectId:e}}))}})};var vi=(e=>(e.DEFAULT="DEFAULT",e.SHOPIFY="SHOPIFY",e.WOOCOMMERCE="WOOCOMMERCE",e.MAGENTO="MAGENTO",e.UNKNOWN="UNKNOWN",e.THE_COLLECTIVE="THE_COLLECTIVE",e))(vi||{});class Gc{static detect(){var t,n,r,o,a,l;if(typeof window<"u"&&window.Shopify!==void 0&&window.Shopify.routes!==void 0)return vi.SHOPIFY;if(typeof window<"u"&&window.location.hostname.endsWith(".thecollective.in"))return vi.THE_COLLECTIVE;if(typeof window<"u"&&document.body.classList.contains("woocommerce"))return vi.WOOCOMMERCE;if(typeof window<"u"){if(window.MAGENTO_VERSION!==void 0||window.MAGE!==void 0||window.Mage!==void 0||["page-wrapper","magento-theme","catalog-product-view","catalog-category-view"].some(m=>document.body.classList.contains(m)))return vi.MAGENTO;const h=document.getElementsByTagName("script");for(const m of Array.from(h))if(m.src.includes("mage/")||m.src.includes("magento")||(t=m.textContent)!=null&&t.includes("Mage.")||(n=m.textContent)!=null&&n.includes("require(")||(r=m.getAttribute("data-requiremodule"))!=null&&r.startsWith("mage")||(o=m.getAttribute("data-requiremodule"))!=null&&o.startsWith("Magento"))return vi.MAGENTO;if(document.cookie.split(";").some(m=>m.trim().startsWith("mage-")||m.trim().startsWith("form_key")))return vi.MAGENTO;const y=document.getElementsByTagName("meta");for(const m of Array.from(y))if((a=m.getAttribute("content"))!=null&&a.includes("Magento")||(l=m.getAttribute("name"))!=null&&l.includes("magento"))return vi.MAGENTO}return vi.UNKNOWN}}var qae={MESSAGE:"MESSAGE"},Pae={USER:"USER"};function dp(e){try{let t=e.trim();/^[a-zA-Z]+:\/\//.test(t)||(t="https://"+t);const r={protocols:["http","https"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,validate_length:!0,allow_underscores:!0,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};if(!rm.isURL(t,r))throw new Error("Invalid URL format");return{isValid:!0,url:new URL(t)}}catch(t){return{isValid:!1,error:t instanceof Error?t.message:"Unknown error"}}}const ke=e=>e==="the-collective"||e==="the-collective-prod"||e==="debales-testing"||e==="the-collective-test",nF=e=>{if(!e||typeof e!="string")return!1;const t=dp(e);if(!t.isValid)return!1;const n=t.url.pathname.toLowerCase();return[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp"].some(o=>n.endsWith(o))},sA=K.button`
|
|
123
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,N=!0,L=!1;return{s:function(){A=A.call(T)},n:function(){var G=A.next();return N=G.done,G},e:function(G){L=!0,I=G},f:function(){try{N||A.return==null||A.return()}finally{if(L)throw I}}}}function m(T,k){if(T){if(typeof T=="string")return x(T,k);var A={}.toString.call(T).slice(8,-1);return A==="Object"&&T.constructor&&(A=T.constructor.name),A==="Map"||A==="Set"?Array.from(T):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?x(T,k):void 0}}function x(T,k){(k==null||k>T.length)&&(k=T.length);for(var A=0,D=Array(k);A<k;A++)D[A]=T[A];return D}function S(T){var k=new Set(["subject","body","cc","bcc"]),A={cc:"",bcc:""},D=!1,O=T.split("&");if(O.length>4)return!1;var I=y(O),N;try{for(I.s();!(N=I.n()).done;){var L=N.value,q=L.split("="),G=l(q,2),V=G[0],F=G[1];if(V&&!k.has(V)){D=!0;break}F&&(V==="cc"||V==="bcc")&&(A[V]=F),V&&k.delete(V)}}catch(Y){I.e(Y)}finally{I.f()}return D?!1:A}function w(T,k){if((0,o.default)(T),T.indexOf("mailto:")!==0)return!1;var A=T.replace("mailto:","").split("?"),D=l(A,2),O=D[0],I=D[1],N=I===void 0?"":I;if(!O&&!N)return!0;var L=S(N);return L?"".concat(O,",").concat(L.cc,",").concat(L.bcc).split(",").every(function(q){return q=(0,n.default)(q," "),q?(0,r.default)(q,k):!0}):!1}e.exports=t.default,e.exports.default=t.default}(LE,LE.exports)),LE.exports}var UE={exports:{}},bz;function mae(){return bz||(bz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(ct());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,l=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function d(h){return(0,n.default)(h),o.test(h)||a.test(h)||l.test(h)}e.exports=t.default,e.exports.default=t.default}(UE,UE.exports)),UE.exports}var jE={exports:{}},_z;function vae(){return _z||(_z=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=o(ct()),r=o(Sa());function o(m){return m&&m.__esModule?m:{default:m}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,l=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,d=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,h=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,p={checkDMS:!1};function y(m,x){if((0,n.default)(m),x=(0,r.default)(x,p),!m.includes(","))return!1;var S=m.split(",");return S[0].startsWith("(")&&!S[1].endsWith(")")||S[1].endsWith(")")&&!S[0].startsWith("(")?!1:x.checkDMS?d.test(S[0])&&h.test(S[1]):a.test(S[0])&&l.test(S[1])}e.exports=t.default,e.exports.default=t.default}(jE,jE.exports)),jE.exports}var tm={},Sz;function yae(){if(Sz)return tm;Sz=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=d,tm.locales=void 0;var e=t(ct());function t(h){return h&&h.__esModule?h:{default:h}}var n=/^\d{3}$/,r=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,l={AD:/^AD\d{3}$/,AT:r,AU:r,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:r,BG:r,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:r,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:r,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:r,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:n,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:r,LV:/^LV\-\d{4}$/,LK:o,MG:n,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:r,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:r,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:r,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:r,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:r,ZM:o};tm.locales=Object.keys(l);function d(h,p){if((0,e.default)(h),p in l)return l[p].test(h);if(p==="any"){for(var y in l)if(l.hasOwnProperty(y)){var m=l[y];if(m.test(h))return!0}return!1}throw new Error("Invalid locale '".concat(p,"'"))}return tm}var HE={exports:{}},wz;function xae(){return wz||(wz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default}(HE,HE.exports)),HE.exports}var qE={exports:{}},Cz;function bae(){return Cz||(Cz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default}(qE,qE.exports)),qE.exports}var PE={exports:{}},GE={exports:{}},Ez;function Az(){return Ez||(Ez=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(GE,GE.exports)),GE.exports}var kz;function _ae(){return kz||(kz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(ct()),r=o(Az());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){(0,n.default)(l);var h=d?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(l,h)}e.exports=t.default,e.exports.default=t.default}(PE,PE.exports)),PE.exports}var VE={exports:{}},Tz;function Sae(){return Tz||(Tz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[^".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(VE,VE.exports)),VE.exports}var YE={exports:{}},Oz;function wae(){return Oz||(Oz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(ct());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);for(var d=a.length-1;d>=0;d--)if(l.indexOf(a[d])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default}(YE,YE.exports)),YE.exports}var ZE={exports:{}},Dz;function Cae(){return Dz||(Dz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=r(Sa());function r(m){return m&&m.__esModule?m:{default:m}}var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,yandex_convert_yandexru:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],d=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],h=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(m){return m.length>1?m:""}function y(m,x){x=(0,n.default)(x,o);var S=m.split("@"),w=S.pop(),T=S.join("@"),k=[T,w];if(k[1]=k[1].toLowerCase(),k[1]==="gmail.com"||k[1]==="googlemail.com"){if(x.gmail_remove_subaddress&&(k[0]=k[0].split("+")[0]),x.gmail_remove_dots&&(k[0]=k[0].replace(/\.+/g,p)),!k[0].length)return!1;(x.all_lowercase||x.gmail_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.gmail_convert_googlemaildotcom?"gmail.com":k[1]}else if(a.indexOf(k[1])>=0){if(x.icloud_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.icloud_lowercase)&&(k[0]=k[0].toLowerCase())}else if(l.indexOf(k[1])>=0){if(x.outlookdotcom_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.outlookdotcom_lowercase)&&(k[0]=k[0].toLowerCase())}else if(d.indexOf(k[1])>=0){if(x.yahoo_remove_subaddress){var A=k[0].split("-");k[0]=A.length>1?A.slice(0,-1).join("-"):A[0]}if(!k[0].length)return!1;(x.all_lowercase||x.yahoo_lowercase)&&(k[0]=k[0].toLowerCase())}else h.indexOf(k[1])>=0?((x.all_lowercase||x.yandex_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.yandex_convert_yandexru?"yandex.ru":k[1]):x.all_lowercase&&(k[0]=k[0].toLowerCase());return k.join("@")}e.exports=t.default,e.exports.default=t.default}(ZE,ZE.exports)),ZE.exports}var QE={exports:{}},Mz;function Eae(){return Mz||(Mz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(QE,QE.exports)),QE.exports}var KE={exports:{}},Rz;function Aae(){return Rz||(Rz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(ct());function r(l){return l&&l.__esModule?l:{default:l}}var o={"cs-CZ":function(d){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(d)},"de-DE":function(d){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(d)},"de-LI":function(d){return/^FL[- ]?\d{1,5}[UZ]?$/.test(d)},"en-IN":function(d){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(d)},"en-SG":function(d){return/^[A-Z]{3}[ -]?[\d]{4}[ -]?[A-Z]{1}$/.test(d)},"es-AR":function(d){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(d)},"fi-FI":function(d){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(d)},"hu-HU":function(d){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(d)},"pt-BR":function(d){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(d)},"pt-PT":function(d){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(d)},"sq-AL":function(d){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(d)},"sv-SE":function(d){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(d.trim())},"en-PK":function(d){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(d.trim())}};function a(l,d){if((0,n.default)(l),d in o)return o[d](l);if(d==="any"){for(var h in o){var p=o[h];if(p(l))return!0}return!1}throw new Error("Invalid locale '".concat(d,"'"))}e.exports=t.default,e.exports.default=t.default}(KE,KE.exports)),KE.exports}var WE={exports:{}},Iz;function kae(){return Iz||(Iz=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n=o(Sa()),r=o(ct());function o(w){return w&&w.__esModule?w:{default:w}}var a=/^[A-Z]$/,l=/^[a-z]$/,d=/^[0-9]$/,h=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function y(w){var T={};return Array.from(w).forEach(function(k){var A=T[k];A?T[k]+=1:T[k]=1}),T}function m(w){var T=y(w),k={length:w.length,uniqueChars:Object.keys(T).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(T).forEach(function(A){a.test(A)?k.uppercaseCount+=T[A]:l.test(A)?k.lowercaseCount+=T[A]:d.test(A)?k.numberCount+=T[A]:h.test(A)&&(k.symbolCount+=T[A])}),k}function x(w,T){var k=0;return k+=w.uniqueChars*T.pointsPerUnique,k+=(w.length-w.uniqueChars)*T.pointsPerRepeat,w.lowercaseCount>0&&(k+=T.pointsForContainingLower),w.uppercaseCount>0&&(k+=T.pointsForContainingUpper),w.numberCount>0&&(k+=T.pointsForContainingNumber),w.symbolCount>0&&(k+=T.pointsForContainingSymbol),k}function S(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(w);var k=m(w);return T=(0,n.default)(T||{},p),T.returnScore?x(k,T):k.length>=T.minLength&&k.lowercaseCount>=T.minLowercase&&k.uppercaseCount>=T.minUppercase&&k.numberCount>=T.minNumbers&&k.symbolCount>=T.minSymbols}e.exports=t.default,e.exports.default=t.default}(WE,WE.exports)),WE.exports}var nm={},Bz;function Tae(){if(Bz)return nm;Bz=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(m)}Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=y,nm.vatMatchers=void 0;var t=a(ct()),n=o(QN());function r(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,S=new WeakMap;return(r=function(T){return T?S:x})(m)}function o(m,x){if(m&&m.__esModule)return m;if(m===null||e(m)!="object"&&typeof m!="function")return{default:m};var S=r(x);if(S&&S.has(m))return S.get(m);var w={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in m)if(k!=="default"&&{}.hasOwnProperty.call(m,k)){var A=T?Object.getOwnPropertyDescriptor(m,k):null;A&&(A.get||A.set)?Object.defineProperty(w,k,A):w[k]=m[k]}return w.default=m,S&&S.set(m,w),w}function a(m){return m&&m.__esModule?m:{default:m}}var l=function(x){var S=x.match(/^(AU)?(\d{11})$/);if(!S)return!1;var w=[10,1,3,5,7,9,11,13,15,17,19];x=x.replace(/^AU/,"");for(var T=(parseInt(x.slice(0,1),10)-1).toString()+x.slice(1),k=0,A=0;A<11;A++)k+=w[A]*T.charAt(A);return k!==0&&k%89===0},d=function(x){var S=function(T){var k=T.pop(),A=[5,4,3,2,7,6,5,4],D=(11-T.reduce(function(O,I,N){return O+I*A[N]},0)%11)%11;return k===D};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(x)&&S(x.match(/\d/g).map(function(w){return+w}))},h=function(x){var S=x.match(/^(PT)?(\d{9})$/);if(!S)return!1;var w=S[2],T=11-n.reverseMultiplyAndSum(w.split("").slice(0,8).map(function(k){return parseInt(k,10)}),9)%11;return T>9?parseInt(w[8],10)===0:T===parseInt(w[8],10)},p=nm.vatMatchers={AT:function(x){return/^(AT)?U\d{8}$/.test(x)},BE:function(x){return/^(BE)?\d{10}$/.test(x)},BG:function(x){return/^(BG)?\d{9,10}$/.test(x)},HR:function(x){return/^(HR)?\d{11}$/.test(x)},CY:function(x){return/^(CY)?\w{9}$/.test(x)},CZ:function(x){return/^(CZ)?\d{8,10}$/.test(x)},DK:function(x){return/^(DK)?\d{8}$/.test(x)},EE:function(x){return/^(EE)?\d{9}$/.test(x)},FI:function(x){return/^(FI)?\d{8}$/.test(x)},FR:function(x){return/^(FR)?\w{2}\d{9}$/.test(x)},DE:function(x){return/^(DE)?\d{9}$/.test(x)},EL:function(x){return/^(EL)?\d{9}$/.test(x)},HU:function(x){return/^(HU)?\d{8}$/.test(x)},IE:function(x){return/^(IE)?\d{7}\w{1}(W)?$/.test(x)},IT:function(x){return/^(IT)?\d{11}$/.test(x)},LV:function(x){return/^(LV)?\d{11}$/.test(x)},LT:function(x){return/^(LT)?\d{9,12}$/.test(x)},LU:function(x){return/^(LU)?\d{8}$/.test(x)},MT:function(x){return/^(MT)?\d{8}$/.test(x)},NL:function(x){return/^(NL)?\d{9}B\d{2}$/.test(x)},PL:function(x){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(x)},PT:h,RO:function(x){return/^(RO)?\d{2,10}$/.test(x)},SK:function(x){return/^(SK)?\d{10}$/.test(x)},SI:function(x){return/^(SI)?\d{8}$/.test(x)},ES:function(x){return/^(ES)?\w\d{7}[A-Z]$/.test(x)},SE:function(x){return/^(SE)?\d{12}$/.test(x)},AL:function(x){return/^(AL)?\w{9}[A-Z]$/.test(x)},MK:function(x){return/^(MK)?\d{13}$/.test(x)},AU:l,BY:function(x){return/^(УНП )?\d{9}$/.test(x)},CA:function(x){return/^(CA)?\d{9}$/.test(x)},IS:function(x){return/^(IS)?\d{5,6}$/.test(x)},IN:function(x){return/^(IN)?\d{15}$/.test(x)},ID:function(x){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(x)},IL:function(x){return/^(IL)?\d{9}$/.test(x)},KZ:function(x){return/^(KZ)?\d{12}$/.test(x)},NZ:function(x){return/^(NZ)?\d{9}$/.test(x)},NG:function(x){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(x)},NO:function(x){return/^(NO)?\d{9}MVA$/.test(x)},PH:function(x){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(x)},RU:function(x){return/^(RU)?(\d{10}|\d{12})$/.test(x)},SM:function(x){return/^(SM)?\d{5}$/.test(x)},SA:function(x){return/^(SA)?\d{15}$/.test(x)},RS:function(x){return/^(RS)?\d{9}$/.test(x)},CH:d,TR:function(x){return/^(TR)?\d{10}$/.test(x)},UA:function(x){return/^(UA)?\d{12}$/.test(x)},GB:function(x){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(x)},UZ:function(x){return/^(UZ)?\d{9}$/.test(x)},AR:function(x){return/^(AR)?\d{11}$/.test(x)},BO:function(x){return/^(BO)?\d{7}$/.test(x)},BR:function(x){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(x)},CL:function(x){return/^(CL)?\d{8}-\d{1}$/.test(x)},CO:function(x){return/^(CO)?\d{10}$/.test(x)},CR:function(x){return/^(CR)?\d{9,12}$/.test(x)},EC:function(x){return/^(EC)?\d{13}$/.test(x)},SV:function(x){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(x)},GT:function(x){return/^(GT)?\d{7}-\d{1}$/.test(x)},HN:function(x){return/^(HN)?$/.test(x)},MX:function(x){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(x)},NI:function(x){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(x)},PA:function(x){return/^(PA)?$/.test(x)},PY:function(x){return/^(PY)?\d{6,8}-\d{1}$/.test(x)},PE:function(x){return/^(PE)?\d{11}$/.test(x)},DO:function(x){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(x)},UY:function(x){return/^(UY)?\d{12}$/.test(x)},VE:function(x){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(x)}};function y(m,x){if((0,t.default)(m),(0,t.default)(x),x in p)return p[x](m);throw new Error("Invalid country code: '".concat(x,"'"))}return nm}var $z;function Oae(){return $z||($z=1,function(e,t){function n(se){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},n(se)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=et(gO()),o=et(_7()),a=et(Xie()),l=et(Jie()),d=et(eoe()),h=et(toe()),p=et(noe()),y=et(N7()),m=et(roe()),x=et(ioe()),S=et(AC()),w=et(ooe()),T=et(mO()),k=et(H7()),A=et(aoe()),D=et(soe()),O=et(loe()),I=et(uoe()),N=$r(coe()),L=$r(foe()),q=et(doe()),G=$r(hoe()),V=et(poe()),F=et(goe()),Y=et(moe()),ee=et(voe()),oe=et(yoe()),J=et(iN()),me=et(aN()),W=et(xoe()),fe=et(boe()),he=et(Soe()),Me=et(woe()),H=et(vO()),te=$r(x7()),le=et(Eoe()),P=et(gN()),ve=et(Aoe()),Ie=et(koe()),Le=et(Toe()),Mt=et(Ooe()),Ze=et(Doe()),nt=et(Moe()),Bt=$r(Roe()),zt=et(Ioe()),rt=et(Boe()),st=et($oe()),yt=et(Loe()),_t=et(Noe()),kt=et(zoe()),Et=et(Foe()),ne=et(I7()),ae=et(Uoe()),ge=et(joe()),Be=et(Hoe()),Te=et(qoe()),qe=et(Poe()),at=et(Goe()),ht=et(jN()),_e=et(Voe()),we=et(Yoe()),bt=et(Zoe()),lt=et(Qoe()),wt=et(Koe()),Tt=et(Woe()),Kt=et(Xoe()),Ht=$r(Joe()),mn=et(eae()),pt=et(tae()),Vt=et(nae()),mt=rae(),At=et(iae()),Rn=et(oae()),pr=et(aae()),Yn=et(sae()),tr=et(CN()),Ar=et(lae()),kr=et(uae()),Zn=et(cae()),nr=et(fae()),Qn=et(dae()),ai=et(ON()),Tr=et(hae()),Hn=et(pae()),on=et(gae()),vn=et(mae()),ln=et(vae()),Zi=$r(yae()),gr=et(mz()),ea=et(pz()),bo=et(yz()),Ot=et(xae()),si=et(bae()),Or=et(_ae()),li=et(Sae()),$o=et(Az()),Ai=et(wae()),Kn=et(Cae()),_o=et(Eae()),xr=et(Aae()),ki=et(kae()),Dr=et(Tae());function wa(se){if(typeof WeakMap!="function")return null;var ke=new WeakMap,z=new WeakMap;return(wa=function(ce){return ce?z:ke})(se)}function $r(se,ke){if(se&&se.__esModule)return se;if(se===null||n(se)!="object"&&typeof se!="function")return{default:se};var z=wa(ke);if(z&&z.has(se))return z.get(se);var X={__proto__:null},ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var be in se)if(be!=="default"&&{}.hasOwnProperty.call(se,be)){var Se=ce?Object.getOwnPropertyDescriptor(se,be):null;Se&&(Se.get||Se.set)?Object.defineProperty(X,be,Se):X[be]=se[be]}return X.default=se,z&&z.set(se,X),X}function et(se){return se&&se.__esModule?se:{default:se}}var Ce="13.15.0",Je={version:Ce,toDate:r.default,toFloat:o.default,toInt:a.default,toBoolean:l.default,equals:d.default,contains:h.default,matches:p.default,isEmail:y.default,isURL:m.default,isMACAddress:x.default,isIP:S.default,isIPRange:w.default,isFQDN:T.default,isBoolean:D.default,isIBAN:Bt.default,isBIC:zt.default,isAbaRouting:I.default,isAlpha:N.default,isAlphaLocales:N.locales,isAlphanumeric:L.default,isAlphanumericLocales:L.locales,isNumeric:q.default,isPassportNumber:G.default,passportNumberLocales:G.locales,isPort:V.default,isLowercase:F.default,isUppercase:Y.default,isAscii:oe.default,isFullWidth:J.default,isHalfWidth:me.default,isVariableWidth:W.default,isMultibyte:fe.default,isSemVer:he.default,isSurrogatePair:Me.default,isInt:H.default,isIMEI:ee.default,isFloat:te.default,isFloatLocales:te.locales,isDecimal:le.default,isHexadecimal:P.default,isOctal:ve.default,isDivisibleBy:Ie.default,isHexColor:Le.default,isRgbColor:Mt.default,isHSL:Ze.default,isISRC:nt.default,isMD5:rt.default,isHash:st.default,isJWT:yt.default,isJSON:_t.default,isEmpty:kt.default,isLength:Et.default,isLocale:O.default,isByteLength:ne.default,isULID:ae.default,isUUID:ge.default,isMongoId:Be.default,isAfter:Te.default,isBefore:qe.default,isIn:at.default,isLuhnNumber:ht.default,isCreditCard:_e.default,isIdentityCard:we.default,isEAN:bt.default,isISIN:lt.default,isISBN:wt.default,isISSN:Tt.default,isMobilePhone:Ht.default,isMobilePhoneLocales:Ht.locales,isPostalCode:Zi.default,isPostalCodeLocales:Zi.locales,isEthereumAddress:mn.default,isCurrency:pt.default,isBtcAddress:Vt.default,isISO6346:mt.isISO6346,isFreightContainerID:mt.isFreightContainerID,isISO6391:At.default,isISO8601:Rn.default,isISO15924:Yn.default,isRFC3339:pr.default,isISO31661Alpha2:tr.default,isISO31661Alpha3:Ar.default,isISO31661Numeric:kr.default,isISO4217:Zn.default,isBase32:nr.default,isBase58:Qn.default,isBase64:ai.default,isDataURI:Tr.default,isMagnetURI:Hn.default,isMailtoURI:on.default,isMimeType:vn.default,isLatLong:ln.default,ltrim:gr.default,rtrim:ea.default,trim:bo.default,escape:Ot.default,unescape:si.default,stripLow:Or.default,whitelist:li.default,blacklist:$o.default,isWhitelisted:Ai.default,normalizeEmail:Kn.default,toString,isSlug:_o.default,isStrongPassword:ki.default,isTaxID:Kt.default,isDate:k.default,isTime:A.default,isLicensePlate:xr.default,isVAT:Dr.default,ibanLocales:Bt.locales};t.default=Je,e.exports=t.default,e.exports.default=t.default}(uC,uC.exports)),uC.exports}var rm=Oae();const Gt={OPEN_STATE_CHANGE:"open_state_change",CHAT_BUTTON_CLICKED:"Chat button clicked",USER_FORM_FILLED:"User form filled",ADD_BULK_ITEM:"Add bulk item",USER_FORM_CLOSE:"user_form_close",CHECKOUT_CLICKED:"Checkout Clicked",ADD_TO_CART_CLICKED:"add to cart clicked",SUGGESTED_QUESTION_CLICKED:"Suggested Question Clicked",INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED:"Initial Leading Query Suggested Question Clicked",LEADING_QUERY_CLICKED:"Leading Query Clicked",COLLECTION_VIDEO_CLICKED:"Collection Video Clicked",COLLECTION_IMAGE_CLICKED:"Collection Image Clicked",VIEW_PRODUCT_CLICKED:"view product clicked",PRODUCT_VIDEO_CLICKED:"Product Video Clicked",PRODUCT_IMAGE_CLICKED:"Product Image Clicked",SHOW_SIMILAR_CLICKED:"show similar clicked",CHAT_MESSAGE_SENT:"chat_message_sent",CHAT_MESSAGE_TYPING_STARTED:"chat_message_typing_started",CHAT_MESSAGE_TYPING_ENDED:"chat_message_typing_ended",DISCOUNT_VIEWED:"discount_viewed",SHOPIFY_LINK_CLICKED:"shopify_link_clicked"},jr={OPEN_STATE_CHANGE:"open_state_change"},Lz=ie.createContext(null),_d=()=>{const e=ie.useContext(Lz);if(!e)throw new Error("useCart must be used within a CartProvider");return e};var Dae="2.0.0",im="",Nz="?",XE="function",Sd="undefined",om="object",yO="string",qx="major",dt="model",ut="name",ot="type",vt="vendor",ft="version",Ga="architecture",am="console",wn="mobile",oi="tablet",Jo="smarttv",Px="wearable",xO="xr",bO="embedded",Gx="inapp",zz="user-agent",_O=500,SO="brands",up="formFactors",wO="fullVersionList",sm="platform",CO="platformVersion",JE="bitness",wd="sec-ch-ua",Mae=wd+"-full-version-list",Rae=wd+"-arch",Iae=wd+"-"+JE,Bae=wd+"-form-factors",$ae=wd+"-"+wn,Lae=wd+"-"+dt,Fz=wd+"-"+sm,Nae=Fz+"-version",Uz=[SO,wO,wn,dt,sm,CO,Ga,up,JE],gs="browser",Uc="cpu",Iu="device",jc="engine",Ps="os",lm="result",eA="Amazon",Vx="Apple",jz="ASUS",Hz="BlackBerry",cp="Google",qz="Huawei",Pz="Lenovo",zae="Honor",EO="LG",tA="Microsoft",Gz="Motorola",Yx="Samsung",Vz="Sharp",nA="Sony",AO="Xiaomi",kO="Zebra",um="Mobile ",Zx=" Browser",Yz="Chrome",Cd="Chromecast",Fae="Edge",Qx="Firefox",Kx="Opera",Zz="Facebook",Qz="Sogou",TO="Windows",Uae=typeof window!==Sd,Va=Uae&&window.navigator?window.navigator:void 0,Ed=Va&&Va.userAgentData?Va.userAgentData:void 0,jae=function(e,t){var n={},r=t;if(!iA(t)){r={};for(var o in t)for(var a in t[o])r[a]=t[o][a].concat(r[a]?r[a]:[])}for(var l in e)n[l]=r[l]&&r[l].length%2===0?r[l].concat(e[l]):e[l];return n},rA=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},OO=function(e,t){if(typeof e===om&&e.length>0){for(var n in e)if(Hc(e[n])==Hc(t))return!0;return!1}return cm(e)?Hc(t).indexOf(Hc(e))!==-1:!1},iA=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?iA(e[n]):!1)},cm=function(e){return typeof e===yO},DO=function(e){if(e){for(var t=[],n=fp(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var o=Xx(n[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Xx(n[r]);return t}},Hc=function(e){return cm(e)?e.toLowerCase():e},MO=function(e){return cm(e)?fp(/[^\d\.]/g,e).split(".")[0]:void 0},qc=function(e){for(var t in e){var n=e[t];typeof n==om&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},fp=function(e,t){return cm(t)?t.replace(e,im):t},Wx=function(e){return fp(/\\?\"/g,e)},Xx=function(e,t){if(cm(e))return e=fp(/^\s\s*/,e),typeof t===Sd?e:e.substring(0,_O)},Kz=function(e,t){if(!(!e||!t))for(var n=0,r,o,a,l,d,h;n<t.length&&!d;){var p=t[n],y=t[n+1];for(r=o=0;r<p.length&&!d&&p[r];)if(d=p[r++].exec(e),d)for(a=0;a<y.length;a++)h=d[++o],l=y[a],typeof l===om&&l.length>0?l.length===2?typeof l[1]==XE?this[l[0]]=l[1].call(this,h):this[l[0]]=l[1]:l.length===3?typeof l[1]===XE&&!(l[1].exec&&l[1].test)?this[l[0]]=h?l[1].call(this,h,l[2]):void 0:this[l[0]]=h?h.replace(l[1],l[2]):void 0:l.length===4&&(this[l[0]]=h?l[3].call(this,h.replace(l[1],l[2])):void 0):this[l]=h||void 0;n+=2}},Jx=function(e,t){for(var n in t)if(typeof t[n]===om&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(OO(t[n][r],e))return n===Nz?void 0:n}else if(OO(t[n],e))return n===Nz?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},Wz={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Xz={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Jz={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ft,[ut,um+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ft,[ut,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ut,ft],[/opios[\/ ]+([\w\.]+)/i],[ft,[ut,Kx+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[ft,[ut,Kx+" GX"]],[/\bopr\/([\w\.]+)/i],[ft,[ut,Kx]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ft,[ut,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[ft,[ut,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[ut,ft],[/quark(?:pc)?\/([-\w\.]+)/i],[ft,[ut,"Quark"]],[/\bddg\/([\w\.]+)/i],[ft,[ut,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ft,[ut,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ft,[ut,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ft,[ut,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ft,[ut,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ft,[ut,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ft,[ut,"Smart "+Pz+Zx]],[/(avast|avg)\/([\w\.]+)/i],[[ut,/(.+)/,"$1 Secure"+Zx],ft],[/\bfocus\/([\w\.]+)/i],[ft,[ut,Qx+" Focus"]],[/\bopt\/([\w\.]+)/i],[ft,[ut,Kx+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ft,[ut,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ft,[ut,"Dolphin"]],[/coast\/([\w\.]+)/i],[ft,[ut,Kx+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ft,[ut,"MIUI"+Zx]],[/fxios\/([\w\.-]+)/i],[ft,[ut,um+Qx]],[/\bqihoobrowser\/?([\w\.]*)/i],[ft,[ut,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ut,/(.+)/,"$1Browser"],ft],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ut,/(.+)/,"$1"+Zx],ft],[/samsungbrowser\/([\w\.]+)/i],[ft,[ut,Yx+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[ft,[ut,Qz+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ut,Qz+" Mobile"],ft],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ut,ft],[/(lbbrowser|rekonq)/i],[ut],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[ft,ut],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ut,Zz],ft,[ot,Gx]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[ut,ft,[ot,Gx]],[/\bgsa\/([\w\.]+) .*safari\//i],[ft,[ut,"GSA"],[ot,Gx]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ft,[ut,"TikTok"],[ot,Gx]],[/\[(linkedin)app\]/i],[ut,[ot,Gx]],[/(chromium)[\/ ]([-\w\.]+)/i],[ut,ft],[/headlesschrome(?:\/([\w\.]+)| )/i],[ft,[ut,Yz+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ut,Yz+" WebView"],ft],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ft,[ut,"Android"+Zx]],[/chrome\/([\w\.]+) mobile/i],[ft,[ut,um+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ut,ft],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[ft,[ut,um+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ut,um+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[ft,ut],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ut,[ft,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ut,ft],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ut,um+Qx],ft],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ut,"Netscape"],ft],[/(wolvic|librewolf)\/([\w\.]+)/i],[ut,ft],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ft,[ut,Qx+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ut,[ft,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ut,[ft,/[^\d\.]+./,im]]],cpu:[[/\b(?:(amd|x|x86[-_]?|wow|win)64)\b/i],[[Ga,"amd64"]],[/(ia32(?=;))/i,/((?:i[346]|x)86)[;\)]/i],[[Ga,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Ga,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Ga,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Ga,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Ga,/ower/,im,Hc]],[/(sun4\w)[;\)]/i],[[Ga,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Ga,Hc]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[dt,[vt,Yx],[ot,oi]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[dt,[vt,Yx],[ot,wn]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[dt,[vt,Vx],[ot,wn]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[dt,[vt,Vx],[ot,oi]],[/(macintosh);/i],[dt,[vt,Vx]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[dt,[vt,Vz],[ot,wn]],[/(?:honor)([-\w ]+)[;\)]/i],[dt,[vt,zae],[ot,wn]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[dt,[vt,qz],[ot,oi]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[dt,[vt,qz],[ot,wn]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[dt,/_/g," "],[vt,AO],[ot,wn]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[dt,/_/g," "],[vt,AO],[ot,oi]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[dt,[vt,"OPPO"],[ot,wn]],[/\b(opd2\d{3}a?) bui/i],[dt,[vt,"OPPO"],[ot,oi]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[dt,[vt,"Vivo"],[ot,wn]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[dt,[vt,"Realme"],[ot,wn]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[dt,[vt,Gz],[ot,wn]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[dt,[vt,Gz],[ot,oi]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[dt,[vt,EO],[ot,oi]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[dt,[vt,EO],[ot,wn]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[dt,[vt,Pz],[ot,oi]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[dt,/_/g," "],[vt,"Nokia"],[ot,wn]],[/(pixel c)\b/i],[dt,[vt,cp],[ot,oi]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[dt,[vt,cp],[ot,wn]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[dt,[vt,nA],[ot,wn]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[dt,"Xperia Tablet"],[vt,nA],[ot,oi]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[dt,[vt,"OnePlus"],[ot,wn]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[dt,[vt,eA],[ot,oi]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[dt,/(.+)/g,"Fire Phone $1"],[vt,eA],[ot,wn]],[/(playbook);[-\w\),; ]+(rim)/i],[dt,vt,[ot,oi]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[dt,[vt,Hz],[ot,wn]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[dt,[vt,jz],[ot,oi]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[dt,[vt,jz],[ot,wn]],[/(nexus 9)/i],[dt,[vt,"HTC"],[ot,oi]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[vt,[dt,/_/g," "],[ot,wn]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[dt,[vt,"TCL"],[ot,oi]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[dt,[vt,"TCL"],[ot,wn]],[/(itel) ((\w+))/i],[[vt,Hc],dt,[ot,Jx,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[dt,[vt,"Acer"],[ot,oi]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[dt,[vt,"Meizu"],[ot,wn]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[dt,[vt,"Ulefone"],[ot,wn]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[dt,[vt,"Energizer"],[ot,wn]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[dt,[vt,"Cat"],[ot,wn]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[dt,[vt,"Smartfren"],[ot,wn]],[/droid.+; (a(?:015|06[35]|142p?))/i],[dt,[vt,"Nothing"],[ot,wn]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[vt,dt,[ot,wn]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[vt,dt,[ot,oi]],[/(surface duo)/i],[dt,[vt,tA],[ot,oi]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[dt,[vt,"Fairphone"],[ot,wn]],[/(shield[\w ]+) b/i],[dt,[vt,"Nvidia"],[ot,oi]],[/(sprint) (\w+)/i],[vt,dt,[ot,wn]],[/(kin\.[onetw]{3})/i],[[dt,/\./g," "],[vt,tA],[ot,wn]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[dt,[vt,kO],[ot,oi]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[dt,[vt,kO],[ot,wn]],[/smart-tv.+(samsung)/i],[vt,[ot,Jo]],[/hbbtv.+maple;(\d+)/i],[[dt,/^/,"SmartTV"],[vt,Yx],[ot,Jo]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[vt,EO],[ot,Jo]],[/(apple) ?tv/i],[vt,[dt,Vx+" TV"],[ot,Jo]],[/crkey.*devicetype\/chromecast/i],[[dt,Cd+" Third Generation"],[vt,cp],[ot,Jo]],[/crkey.*devicetype\/([^/]*)/i],[[dt,/^/,"Chromecast "],[vt,cp],[ot,Jo]],[/fuchsia.*crkey/i],[[dt,Cd+" Nest Hub"],[vt,cp],[ot,Jo]],[/crkey/i],[[dt,Cd],[vt,cp],[ot,Jo]],[/droid.+aft(\w+)( bui|\))/i],[dt,[vt,eA],[ot,Jo]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[dt,[vt,Vz],[ot,Jo]],[/(bravia[\w ]+)( bui|\))/i],[dt,[vt,nA],[ot,Jo]],[/(mitv-\w{5}) bui/i],[dt,[vt,AO],[ot,Jo]],[/Hbbtv.*(technisat) (.*);/i],[vt,dt,[ot,Jo]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[vt,Xx],[dt,Xx],[ot,Jo]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[ot,Jo]],[/(ouya)/i,/(nintendo) (\w+)/i],[vt,dt,[ot,am]],[/droid.+; (shield) bui/i],[dt,[vt,"Nvidia"],[ot,am]],[/(playstation \w+)/i],[dt,[vt,nA],[ot,am]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[dt,[vt,tA],[ot,am]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[dt,[vt,Yx],[ot,Px]],[/((pebble))app/i],[vt,dt,[ot,Px]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[dt,[vt,Vx],[ot,Px]],[/droid.+; (wt63?0{2,3})\)/i],[dt,[vt,kO],[ot,Px]],[/droid.+; (glass) \d/i],[dt,[vt,cp],[ot,xO]],[/(pico) (4|neo3(?: link|pro)?)/i],[vt,dt,[ot,xO]],[/; (quest( \d| pro)?)/i],[dt,[vt,Zz],[ot,xO]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[vt,[ot,bO]],[/(aeobc)\b/i],[dt,[vt,eA],[ot,bO]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[dt,[ot,wn]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[dt,[ot,oi]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ot,oi]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ot,wn]],[/(android[-\w\. ]{0,9});.+buil/i],[dt,[vt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ft,[ut,Fae+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ut,ft],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ft,[ut,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ut,ft],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ft,ut]],os:[[/microsoft (windows) (vista|xp)/i],[ut,ft],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[ut,[ft,Jx,Wz]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[ft,Jx,Wz],[ut,TO]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[ft,/_/g,"."],[ut,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ut,"macOS"],[ft,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[ft,[ut,Cd+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[ft,[ut,Cd+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[ft,[ut,Cd+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[ft,[ut,Cd+" Linux"]],[/crkey\/([\d\.]+)/i],[ft,[ut,Cd]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[ft,ut],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[ut,ft],[/\(bb(10);/i],[ft,[ut,Hz]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[ft,[ut,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ft,[ut,Qx+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[ft,[ut,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ft,[ut,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ut,"Chrome OS"],ft],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ut,ft],[/(sunos) ?([\w\.\d]*)/i],[[ut,"Solaris"],ft],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ut,ft]]},oA=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return qc.call(e.init,[[gs,[ut,ft,qx,ot]],[Uc,[Ga]],[Iu,[ot,dt,vt]],[jc,[ut,ft]],[Ps,[ut,ft]]]),qc.call(e.isIgnore,[[gs,[ft,qx]],[jc,[ft]],[Ps,[ft]]]),qc.call(e.isIgnoreRgx,[[gs,/ ?browser$/i],[Ps,/ ?os$/i]]),qc.call(e.toString,[[gs,[ut,ft]],[Uc,[Ga]],[Iu,[vt,dt]],[jc,[ut,ft]],[Ps,[ut,ft]]]),e}(),Hae=function(e,t){var n=oA.init[t],r=oA.isIgnore[t]||0,o=oA.isIgnoreRgx[t]||0,a=oA.toString[t]||0;function l(){qc.call(this,n)}return l.prototype.getItem=function(){return e},l.prototype.withClientHints=function(){return Ed?Ed.getHighEntropyValues(Uz).then(function(d){return e.setCH(new eF(d,!1)).parseCH().get()}):e.parseCH().get()},l.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=lm&&(l.prototype.is=function(d){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!OO(r,p)&&Hc(o?fp(o,this[p]):this[p])==Hc(o?fp(o,d):d)){if(h=!0,d!=Sd)break}else if(d==Sd&&h){h=!h;break}return h},l.prototype.toString=function(){var d=im;for(var h in a)typeof this[a[h]]!==Sd&&(d+=(d?" ":im)+this[a[h]]);return d||Sd}),Ed||(l.prototype.then=function(d){var h=this,p=function(){for(var m in h)h.hasOwnProperty(m)&&(this[m]=h[m])};p.prototype={is:l.prototype.is,toString:l.prototype.toString};var y=new p;return d(y),y}),new l};function eF(e,t){if(e=e||{},qc.call(this,Uz),t)qc.call(this,[[SO,DO(e[wd])],[wO,DO(e[Mae])],[wn,/\?1/.test(e[$ae])],[dt,Wx(e[Lae])],[sm,Wx(e[Fz])],[CO,Wx(e[Nae])],[Ga,Wx(e[Rae])],[up,DO(e[Bae])],[JE,Wx(e[Iae])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Sd&&(this[n]=e[n])}function tF(e,t,n,r){return this.get=function(o){return o?this.data.hasOwnProperty(o)?this.data[o]:void 0:this.data},this.set=function(o,a){return this.data[o]=a,this},this.setCH=function(o){return this.uaCH=o,this},this.detectFeature=function(){if(Va&&Va.userAgent==this.ua)switch(this.itemType){case gs:Va.brave&&typeof Va.brave.isBrave==XE&&this.set(ut,"Brave");break;case Iu:!this.get(ot)&&Ed&&Ed[wn]&&this.set(ot,wn),this.get(dt)=="Macintosh"&&Va&&typeof Va.standalone!==Sd&&Va.maxTouchPoints&&Va.maxTouchPoints>2&&this.set(dt,"iPad").set(ot,oi);break;case Ps:!this.get(ut)&&Ed&&Ed[sm]&&this.set(ut,Ed[sm]);break;case lm:var o=this.data,a=function(l){return o[l].getItem().detectFeature().get()};this.set(gs,a(gs)).set(Uc,a(Uc)).set(Iu,a(Iu)).set(jc,a(jc)).set(Ps,a(Ps))}return this},this.parseUA=function(){return this.itemType!=lm&&Kz.call(this.data,this.ua,this.rgxMap),this.itemType==gs&&this.set(qx,MO(this.get(ft))),this},this.parseCH=function(){var o=this.uaCH,a=this.rgxMap;switch(this.itemType){case gs:var l=o[wO]||o[SO],d;if(l)for(var h in l){var p=fp(/(Google|Microsoft) /,l[h].brand||l[h]),y=l[h].version;!/not.a.brand/i.test(p)&&(!d||/chrom/i.test(d)&&!/chromi/i.test(p))&&(this.set(ut,p).set(ft,y).set(qx,MO(y)),d=p)}break;case Uc:var m=o[Ga];m&&(m&&o[JE]=="64"&&(m+="64"),Kz.call(this.data,m+";",a));break;case Iu:if(o[wn]&&this.set(ot,wn),o[dt]&&this.set(dt,o[dt]),o[dt]=="Xbox"&&this.set(ot,am).set(vt,tA),o[up]){var x;if(typeof o[up]!="string")for(var S=0;!x&&S<o[up].length;)x=Jx(o[up][S++],Xz);else x=Jx(o[up],Xz);this.set(ot,x)}break;case Ps:var w=o[sm];if(w){var T=o[CO];w==TO&&(T=parseInt(MO(T),10)>=13?"11":"10"),this.set(ut,w).set(ft,T)}this.get(ut)==TO&&o[dt]=="Xbox"&&this.set(ut,"Xbox").set(ft,void 0);break;case lm:var k=this.data,A=function(D){return k[D].getItem().setCH(o).parseCH().get()};this.set(gs,A(gs)).set(Uc,A(Uc)).set(Iu,A(Iu)).set(jc,A(jc)).set(Ps,A(Ps))}return this},qc.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",Hae(this,e)]]),this}function Pc(e,t,n){if(typeof e===om?(iA(e,!0)?(typeof t===om&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===yO&&!iA(t,!0)&&(n=t,t=void 0),n&&typeof n.append===XE){var r={};n.forEach(function(h,p){r[p]=h}),n=r}if(!(this instanceof Pc))return new Pc(e,t,n).getResult();var o=typeof e===yO?e:n&&n[zz]?n[zz]:Va&&Va.userAgent?Va.userAgent:im,a=new eF(n,!0),l=t?jae(Jz,t):Jz,d=function(h){return h==lm?function(){return new tF(h,o,l,a).set("ua",o).set(gs,this.getBrowser()).set(Uc,this.getCPU()).set(Iu,this.getDevice()).set(jc,this.getEngine()).set(Ps,this.getOS()).get()}:function(){return new tF(h,o,l[h],a).parseUA().get()}};return qc.call(this,[["getBrowser",d(gs)],["getCPU",d(Uc)],["getDevice",d(Iu)],["getEngine",d(jc)],["getOS",d(Ps)],["getResult",d(lm)],["getUA",function(){return o}],["setUA",function(h){return cm(h)&&(o=h.length>_O?Xx(h,_O):h),this}]]).setUA(o),this}Pc.VERSION=Dae,Pc.BROWSER=rA([ut,ft,qx,ot]),Pc.CPU=rA([Ga]),Pc.DEVICE=rA([dt,vt,ot,am,wn,Jo,oi,Px,bO]),Pc.ENGINE=Pc.OS=rA([ut,ft]);const Ys=class Ys{constructor(t){Yr(this,"config");Yr(this,"storedData");Yr(this,"deviceInfo");Yr(this,"localStorageKey","_dsjfs312313kj3debales_analytics_");this.config=t,this.deviceInfo=this.getDeviceInfo(),this.localStorageKey=t.localStorageKey||this.localStorageKey+this.config.projectName,this.config.testing=t.testing||(()=>!1);const n=localStorage.getItem(this.localStorageKey);if(n)this.storedData=JSON.parse(n),this.config.debug&&console.log("Using Existing Stored data:",this.storedData);else{const r=crypto.randomUUID();this.storedData={projectName:this.config.projectName,anonId:r,distinctId:r},this.config.debug&&console.log("Using New Stored data:",this.storedData),this.updateStorage()}this.config.debug&&console.log("Analytics initialized:",this.storedData)}static init(t){Ys.instance||(Ys.instance=new Ys(t))}static getInstance(){if(!Ys.instance)throw new Error("DebalesAnalytics is not initialized. Call init() first.");return Ys.instance}static async identify(t,n){return Ys.getInstance().identifyInternal(t,n)}static track(t,n){Ys.getInstance().trackInternal(t,n)}static getDistinctId(){return Ys.getInstance().storedData.distinctId}static getAnonId(){return Ys.getInstance().storedData.anonId}async identifyInternal(t,n){try{if(this.config.testing&&this.config.testing())return;let r,o,a;if(n){const{name:h,phone:p,...y}=n;r=h,o=p,a=y}const l={distinctId:this.storedData.distinctId,anonId:[this.storedData.anonId],projectName:this.config.projectName,email:t,name:r,phone:o,properties:a},d=await this.sendRequest("/api/analytic/identify",l);d&&d.success&&d.distinctId&&(this.config.debug&&console.log("identify success new distint id"),this.storedData.distinctId=d.distinctId,this.storedData.email=t,this.updateStorage(),d.isIdentified&&this.trackInternal("identify")),this.config.debug&&console.log("Identify event sent:",l)}catch(r){console.error("Failed to identify user:",r)}}trackInternal(t,n){if(this.config.testing&&this.config.testing())return;const r={projectName:this.config.projectName,distinctId:this.storedData.distinctId,anonId:this.storedData.anonId,eventName:t,osVersion:this.deviceInfo.osVersion,browserVersion:this.deviceInfo.browserVersion,operatingSystem:this.deviceInfo.os,browser:this.deviceInfo.browser,referrer:document.referrer,currentUrl:window.location.href,chatId:er()+this.config.projectName,properties:n};this.sendRequest("/api/analytic/track",r),this.config.debug&&console.log("Track event sent:",r)}updateStorage(){localStorage.setItem(this.localStorageKey,JSON.stringify(this.storedData))}async sendRequest(t,n){try{const r=await fetch(`${Ci}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){console.error("Failed to send analytics data:",r)}}getDeviceInfo(){const n=new Pc().getResult();return{browser:n.browser.name,os:n.os.name,browserVersion:n.browser.version,osVersion:n.os.version}}};Yr(Ys,"instance",null);let RO=Ys;const Bu=RO,aA=e=>{window.DebalesChat||(window.DebalesChat={isOpen:!1,projectId:e,getSessionId:()=>er(),getChatId:()=>er()+"_"+e,getAnonId:()=>Bu.getAnonId(),isIdentified:()=>{if(Fs._isIdentified())return!0;const t=Io();return!!(t&&t.email)},getIdentifiedUser:()=>Io(),getDistinctId:()=>Fs.get_distinct_id(),getOldDistinctId:()=>Bu.getDistinctId(),debug:!1,identify:(t,n)=>{Fs._isIdentified()||Fs.identify(t,{...n,project:e}),Bu.identify(t,n),Fc({email:t,name:n==null?void 0:n.name,phone:n==null?void 0:n.phone})},track:(t,n)=>{Bu.track(t,{...n,sessionId:window.DebalesChat.getSessionId()}),Fs.capture(t,{...n}),Yie(t,{...n,sessionId:er(),projectId:e})},onOpenChange:t=>{const n=r=>{t(r.detail.isOpen)};return window.addEventListener(jr.OPEN_STATE_CHANGE,n),()=>window.removeEventListener(jr.OPEN_STATE_CHANGE,n)},removeOpenChangeListener:t=>{const n=r=>{t(r.detail.isOpen)};window.removeEventListener(jr.OPEN_STATE_CHANGE,n)},open:()=>{window.DebalesChat.isOpen||window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!0,projectId:e}}))},close:()=>{window.DebalesChat.isOpen&&window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!1,projectId:e}}))},toggle:()=>{window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:!window.DebalesChat.isOpen,projectId:e}}))}})};var vi=(e=>(e.DEFAULT="DEFAULT",e.SHOPIFY="SHOPIFY",e.WOOCOMMERCE="WOOCOMMERCE",e.MAGENTO="MAGENTO",e.UNKNOWN="UNKNOWN",e.THE_COLLECTIVE="THE_COLLECTIVE",e))(vi||{});class Gc{static detect(){var t,n,r,o,a,l;if(typeof window<"u"&&window.Shopify!==void 0&&window.Shopify.routes!==void 0)return vi.SHOPIFY;if(typeof window<"u"&&window.location.hostname.endsWith(".thecollective.in"))return vi.THE_COLLECTIVE;if(typeof window<"u"&&document.body.classList.contains("woocommerce"))return vi.WOOCOMMERCE;if(typeof window<"u"){if(window.MAGENTO_VERSION!==void 0||window.MAGE!==void 0||window.Mage!==void 0||["page-wrapper","magento-theme","catalog-product-view","catalog-category-view"].some(m=>document.body.classList.contains(m)))return vi.MAGENTO;const h=document.getElementsByTagName("script");for(const m of Array.from(h))if(m.src.includes("mage/")||m.src.includes("magento")||(t=m.textContent)!=null&&t.includes("Mage.")||(n=m.textContent)!=null&&n.includes("require(")||(r=m.getAttribute("data-requiremodule"))!=null&&r.startsWith("mage")||(o=m.getAttribute("data-requiremodule"))!=null&&o.startsWith("Magento"))return vi.MAGENTO;if(document.cookie.split(";").some(m=>m.trim().startsWith("mage-")||m.trim().startsWith("form_key")))return vi.MAGENTO;const y=document.getElementsByTagName("meta");for(const m of Array.from(y))if((a=m.getAttribute("content"))!=null&&a.includes("Magento")||(l=m.getAttribute("name"))!=null&&l.includes("magento"))return vi.MAGENTO}return vi.UNKNOWN}}var qae={MESSAGE:"MESSAGE"},Pae={USER:"USER"};function dp(e){try{let t=e.trim();/^[a-zA-Z]+:\/\//.test(t)||(t="https://"+t);const r={protocols:["http","https"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,validate_length:!0,allow_underscores:!0,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};if(!rm.isURL(t,r))throw new Error("Invalid URL format");return{isValid:!0,url:new URL(t)}}catch(t){return{isValid:!1,error:t instanceof Error?t.message:"Unknown error"}}}const Ee=e=>e==="the-collective"||e==="the-collective-prod"||e==="debales-testing"||e==="the-collective-test",nF=e=>{if(!e||typeof e!="string")return!1;const t=dp(e);if(!t.isValid)return!1;const n=t.url.pathname.toLowerCase();return[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp"].some(o=>n.endsWith(o))},sA=K.button`
|
|
124
124
|
width: max-content;
|
|
125
125
|
cursor: pointer;
|
|
126
126
|
border-radius: 50px !important;
|
|
@@ -153,7 +153,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
153
153
|
|
|
154
154
|
span {
|
|
155
155
|
font-size: 14px;
|
|
156
|
-
font-weight: ${e=>
|
|
156
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
157
157
|
}
|
|
158
158
|
`;K.button`
|
|
159
159
|
// Use CSS clamp() for responsive padding
|
|
@@ -163,9 +163,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
163
163
|
align-items: center;
|
|
164
164
|
gap: 4px;
|
|
165
165
|
border: none;
|
|
166
|
-
border-radius: ${e=>
|
|
166
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
167
167
|
font-size: 14px;
|
|
168
|
-
font-weight: ${e=>
|
|
168
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
169
169
|
cursor: pointer;
|
|
170
170
|
transition: all 0.2s ease-in-out;
|
|
171
171
|
|
|
@@ -188,14 +188,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
188
188
|
gap: 4px;
|
|
189
189
|
position: relative;
|
|
190
190
|
padding: 4px 12px;
|
|
191
|
-
border-radius: ${e=>
|
|
191
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
192
192
|
border: none;
|
|
193
193
|
background: linear-gradient(45deg, #54565a, #4ecdc4, #37cf95, #4eb919);
|
|
194
194
|
background-size: 200% 200%;
|
|
195
195
|
animation: gradient 3s ease infinite;
|
|
196
196
|
color: white;
|
|
197
197
|
font-size: 14px;
|
|
198
|
-
font-weight: ${e=>
|
|
198
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
199
199
|
letter-spacing: normal !important;
|
|
200
200
|
cursor: pointer;
|
|
201
201
|
|
|
@@ -277,7 +277,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
277
277
|
|
|
278
278
|
span {
|
|
279
279
|
font-size: 14px;
|
|
280
|
-
font-weight: ${e=>
|
|
280
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
281
281
|
}
|
|
282
282
|
`,Ei=K.div`
|
|
283
283
|
all: unset;
|
|
@@ -290,7 +290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
290
290
|
flex-direction: column;
|
|
291
291
|
align-items: flex-start;
|
|
292
292
|
gap: 4px;
|
|
293
|
-
border-radius: ${e=>
|
|
293
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
294
294
|
padding: 8px 13px !important;
|
|
295
295
|
letter-spacing: 0.5px !important;
|
|
296
296
|
position: relative;
|
|
@@ -303,7 +303,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
303
303
|
margin: 0 0 0px 0;
|
|
304
304
|
font-size: 16px;
|
|
305
305
|
line-height: 1.2 !important;
|
|
306
|
-
font-weight: ${e=>
|
|
306
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
h1,
|
|
@@ -316,7 +316,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
316
316
|
margin-top: 16px;
|
|
317
317
|
margin-bottom: 8px;
|
|
318
318
|
line-height: 1.2 !important;
|
|
319
|
-
font-weight: ${e=>
|
|
319
|
+
font-weight: ${e=>Ee(e.theme.botId)?"400":"600"};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
h1 {
|
|
@@ -359,7 +359,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
359
359
|
a {
|
|
360
360
|
color: #0366d6;
|
|
361
361
|
text-decoration: none;
|
|
362
|
-
font-weight: ${e=>
|
|
362
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
363
363
|
&:hover {
|
|
364
364
|
text-decoration: underline;
|
|
365
365
|
}
|
|
@@ -369,19 +369,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
369
369
|
font-family: "Courier New", Courier, monospace;
|
|
370
370
|
background-color: #f6f8fa;
|
|
371
371
|
padding: 2px 4px !important;
|
|
372
|
-
border-radius: ${e=>
|
|
372
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"3px"} !important;
|
|
373
373
|
font-size: 16px;
|
|
374
|
-
font-weight: ${e=>
|
|
374
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
pre {
|
|
378
378
|
background-color: #f6f8fa;
|
|
379
379
|
padding: 8px !important;
|
|
380
380
|
overflow-x: auto;
|
|
381
|
-
border-radius: ${e=>
|
|
381
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"3px"} !important;
|
|
382
382
|
font-size: 16px;
|
|
383
383
|
width: 100%;
|
|
384
|
-
font-weight: ${e=>
|
|
384
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
blockquote {
|
|
@@ -389,7 +389,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
389
389
|
padding: 0 8px !important;
|
|
390
390
|
color: #6a737d;
|
|
391
391
|
border-left: 3px solid #dfe2e5;
|
|
392
|
-
font-weight: ${e=>
|
|
392
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
@media screen and (max-width: 768px) {
|
|
@@ -426,7 +426,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
426
426
|
align-items: flex-start;
|
|
427
427
|
`,tle=({onCheckout:e})=>{const{cart:t,generateCartUrl:n}=_d(),{uiData:r}=Ad();return R.jsxs(ele,{children:[R.jsx(Ei,{isBot:!0,style:{width:"max-content"},dangerouslySetInnerHTML:{__html:`<span style="display: flex; align-items: center; justify-content: center;">Total Price: ${_A((t==null?void 0:t.total)??0,(t==null?void 0:t.currency)??"USD")} </span>`}}),R.jsxs(Wse,{href:n((r==null?void 0:r.shopifyShopDomain)??""),onClick:e,children:[R.jsx("span",{children:"Checkout"}),R.jsx(Zse,{style:{width:"20px",fill:r==null?void 0:r.callToActionFontColor}})]})]})};var nle={grad:.9,turn:360,rad:360/(2*Math.PI)},Vc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},yo=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Vs=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},DF=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},MF=function(e){return{r:Vs(e.r,0,255),g:Vs(e.g,0,255),b:Vs(e.b,0,255),a:Vs(e.a)}},KO=function(e){return{r:yo(e.r),g:yo(e.g),b:yo(e.b),a:yo(e.a,3)}},rle=/^#([0-9a-f]{3,8})$/i,SA=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},RF=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),d=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(d<0?d+6:d),s:a?l/a*100:0,v:a/255*100,a:o}},IF=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),d=r*(1-(t-a)*n),h=r*(1-(1-t+a)*n),p=a%6;return{r:255*[r,d,l,l,h,r][p],g:255*[h,r,r,d,l,l][p],b:255*[l,l,h,r,r,d][p],a:o}},BF=function(e){return{h:DF(e.h),s:Vs(e.s,0,100),l:Vs(e.l,0,100),a:Vs(e.a)}},$F=function(e){return{h:yo(e.h),s:yo(e.s),l:yo(e.l),a:yo(e.a,3)}},LF=function(e){return IF((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},i1=function(e){return{h:(t=RF(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},ile=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ole=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ale=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sle=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,NF={string:[[function(e){var t=rle.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?yo(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?yo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ale.exec(e)||sle.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:MF({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ile.exec(e)||ole.exec(e);if(!t)return null;var n,r,o=BF({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(nle[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return LF(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o===void 0?1:o;return Vc(t)&&Vc(n)&&Vc(r)?MF({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,a=o===void 0?1:o;if(!Vc(t)||!Vc(n)||!Vc(r))return null;var l=BF({h:Number(t),s:Number(n),l:Number(r),a:Number(a)});return LF(l)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=o===void 0?1:o;if(!Vc(t)||!Vc(n)||!Vc(r))return null;var l=function(d){return{h:DF(d.h),s:Vs(d.s,0,100),v:Vs(d.v,0,100),a:Vs(d.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)});return IF(l)},"hsv"]]},zF=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},lle=function(e){return typeof e=="string"?zF(e.trim(),NF.string):typeof e=="object"&&e!==null?zF(e,NF.object):[null,void 0]},WO=function(e,t){var n=i1(e);return{h:n.h,s:Vs(n.s+100*t,0,100),l:n.l,a:n.a}},XO=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},FF=function(e,t){var n=i1(e);return{h:n.h,s:n.s,l:Vs(n.l+100*t,0,100),a:n.a}},UF=function(){function e(t){this.parsed=lle(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return yo(XO(this.rgba),2)},e.prototype.isDark=function(){return XO(this.rgba)<.5},e.prototype.isLight=function(){return XO(this.rgba)>=.5},e.prototype.toHex=function(){return t=KO(this.rgba),n=t.r,r=t.g,o=t.b,l=(a=t.a)<1?SA(yo(255*a)):"","#"+SA(n)+SA(r)+SA(o)+l;var t,n,r,o,a,l},e.prototype.toRgb=function(){return KO(this.rgba)},e.prototype.toRgbString=function(){return t=KO(this.rgba),n=t.r,r=t.g,o=t.b,(a=t.a)<1?"rgba("+n+", "+r+", "+o+", "+a+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,a},e.prototype.toHsl=function(){return $F(i1(this.rgba))},e.prototype.toHslString=function(){return t=$F(i1(this.rgba)),n=t.h,r=t.s,o=t.l,(a=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+a+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,a},e.prototype.toHsv=function(){return t=RF(this.rgba),{h:yo(t.h),s:yo(t.s),v:yo(t.v),a:yo(t.a,3)};var t},e.prototype.invert=function(){return Nu({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Nu(WO(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Nu(WO(this.rgba,-t))},e.prototype.grayscale=function(){return Nu(WO(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Nu(FF(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Nu(FF(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Nu({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):yo(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=i1(this.rgba);return typeof t=="number"?Nu({h:t,s:n.s,l:n.l,a:n.a}):yo(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Nu(t).toHex()},e}(),Nu=function(e){return e instanceof UF?e:new UF(e)};const ule=K.div`
|
|
428
428
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
429
|
-
border-radius: 12px !important;
|
|
429
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
430
430
|
padding: 8px 13px !important;
|
|
431
431
|
width: fit-content;
|
|
432
432
|
max-width: 100%;
|
|
@@ -444,7 +444,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
444
444
|
color: ${e=>e.theme.colors.bot.font};
|
|
445
445
|
line-height: 1.2;
|
|
446
446
|
`,jF=K.button`
|
|
447
|
-
border-radius: 10px;
|
|
447
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"10px"};
|
|
448
448
|
padding: 8px 0;
|
|
449
449
|
text-align: center;
|
|
450
450
|
font-weight: 500;
|
|
@@ -535,7 +535,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
535
535
|
width: 100% !important;
|
|
536
536
|
box-sizing: border-box;
|
|
537
537
|
`,tue=K.span`
|
|
538
|
-
font-weight: ${e=>
|
|
538
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"600"};
|
|
539
539
|
overflow: hidden;
|
|
540
540
|
display: -webkit-box;
|
|
541
541
|
-webkit-box-orient: vertical;
|
|
@@ -1054,7 +1054,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1054
1054
|
flex-direction: column;
|
|
1055
1055
|
background-color: rgba(255, 255, 255, 0.8);
|
|
1056
1056
|
align-items: center;
|
|
1057
|
-
border-radius: ${e=>
|
|
1057
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"8px"};
|
|
1058
1058
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
1059
1059
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1060
1060
|
overflow: hidden;
|
|
@@ -1086,7 +1086,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1086
1086
|
gap: 8px;
|
|
1087
1087
|
box-sizing: border-box;
|
|
1088
1088
|
`,zue=K.span`
|
|
1089
|
-
font-weight: ${e=>
|
|
1089
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"600"};
|
|
1090
1090
|
overflow: hidden;
|
|
1091
1091
|
display: -webkit-box;
|
|
1092
1092
|
-webkit-box-orient: vertical;
|
|
@@ -1103,7 +1103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1103
1103
|
font-size: 14px;
|
|
1104
1104
|
}
|
|
1105
1105
|
font-size: 16px;
|
|
1106
|
-
font-weight: ${e=>
|
|
1106
|
+
font-weight: ${e=>Ee(e.theme.botId)?"400":"600"};
|
|
1107
1107
|
`,Fue=K.a`
|
|
1108
1108
|
display: flex;
|
|
1109
1109
|
padding: ${e=>e.$botId.toLowerCase().includes("gtk")?"6px 10px":"2px 10px"} !important;
|
|
@@ -1119,7 +1119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1119
1119
|
font-weight: 500;
|
|
1120
1120
|
line-height: normal;
|
|
1121
1121
|
transition: all 0.05s ease;
|
|
1122
|
-
border-radius: ${e=>
|
|
1122
|
+
border-radius: ${e=>Ee(e.$botId)?"0":e.$botId.toLowerCase().includes("gtk")?"30px":"0px"} !important;
|
|
1123
1123
|
background-color: ${e=>e.$botId.toLowerCase().includes("gtk")?e.$backgroundColor:"transparent"} !important;
|
|
1124
1124
|
|
|
1125
1125
|
&:hover {
|
|
@@ -1136,7 +1136,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1136
1136
|
justify-content: center;
|
|
1137
1137
|
align-items: center;
|
|
1138
1138
|
align-self: stretch;
|
|
1139
|
-
border-radius: ${e=>
|
|
1139
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"30px"} !important;
|
|
1140
1140
|
color: white;
|
|
1141
1141
|
border: none;
|
|
1142
1142
|
cursor: pointer;
|
|
@@ -1188,7 +1188,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1188
1188
|
position: absolute;
|
|
1189
1189
|
top: 50% !important;
|
|
1190
1190
|
transform: translateY(-50%);
|
|
1191
|
-
border-radius: ${e=>
|
|
1191
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"50%"} !important;
|
|
1192
1192
|
border: none;
|
|
1193
1193
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
1194
1194
|
z-index: 100;
|
|
@@ -1210,7 +1210,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1210
1210
|
}
|
|
1211
1211
|
`,Gue=K(rU)`
|
|
1212
1212
|
left: ${e=>Bo(e.$botId||"")?"0px":"5px"};
|
|
1213
|
-
border-radius: ${e=>
|
|
1213
|
+
border-radius: ${e=>Ee(e.$botId||"")?"0":Bo(e.$botId||"")?"0 50% 50% 0":"50%"} !important;
|
|
1214
1214
|
|
|
1215
1215
|
@media (max-width: 768px) {
|
|
1216
1216
|
left: ${e=>Bo(e.$botId||"")?"0px":"10px"};
|
|
@@ -1218,19 +1218,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1218
1218
|
}
|
|
1219
1219
|
`,Vue=K(rU)`
|
|
1220
1220
|
right: ${e=>Bo(e.$botId||"")?"0px":"5px"};
|
|
1221
|
-
border-radius: ${e=>
|
|
1221
|
+
border-radius: ${e=>Ee(e.$botId||"")?"0":Bo(e.$botId||"")?"50% 0 0 50%":"50%"} !important;
|
|
1222
1222
|
|
|
1223
1223
|
@media (max-width: 768px) {
|
|
1224
1224
|
right: ${e=>Bo(e.$botId||"")?"0px":"10px"};
|
|
1225
1225
|
z-index: 110; /* Ensure it's above other elements */
|
|
1226
1226
|
}
|
|
1227
|
-
`,MA=({message:e,botId:t,uidata:n,onSendMessage:r,loading:o,storeMetaData:a,platform:l,setShowVariantModel:d,setSelectedProduct:h,setCartVersion:p})=>{const[y,m]=AA({align:"center",containScroll:"trimSnaps",dragFree:!0}),[x,S]=ie.useState(!1),[w,T]=ie.useState(!0),[k,A]=ie.useState(0),D=ie.useRef([]),O=ie.useRef(null),{addToCart:I,generateProductUrl:N,addCartAttributes:L,cart:q}=_d(),G=ie.useCallback(()=>m&&m.scrollPrev(),[m]),V=ie.useCallback(()=>m&&m.scrollNext(),[m]),F=ie.useCallback(()=>{m&&(S(m.canScrollPrev()),T(m.canScrollNext()),A(m.selectedScrollSnap()))},[m]),Y=ie.useCallback(J=>{J.forEach(me=>{me.isIntersecting?D.current.forEach((W,fe)=>{W&&(fe===k?W.play():W.pause())}):D.current.forEach(W=>{W&&W.pause()})})},[k]),ee=ie.useCallback(J=>{if(!J.compare_at_price||!J.price)return null;const me=parseFloat(J.compare_at_price),W=parseFloat(J.price);if(me<=W)return null;const fe=(me-W)/me*100;return fe>0?Math.round(fe):null},[]);ie.useEffect(()=>{if(m)return m.on("select",F),F(),()=>{m.off("select",F)}},[m,F]),ie.useEffect(()=>{if(!O.current)return;const J=new IntersectionObserver(Y,{root:null,rootMargin:"0px",threshold:.6}),me=O.current;return J.observe(me),()=>{J.unobserve(me)}},[Y]),ie.useEffect(()=>{if(!m)return;const J=()=>{m.reInit()};return window.addEventListener("resize",J),()=>{window.removeEventListener("resize",J)}},[m]);const oe=(J,me,W)=>{let fe=J.link;try{if(me==="GTK-Restaurant"){const he=J.name.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");fe=new URL(`/order/want-gtk-hoboken/item-${he}_${J.product_id}`,fe.replace("www.","")).toString()}else if(me==="gtk-catering")fe=new URL(`https://${W}/catering/want-gtk-hoboken/items/add/${J.handle}`).toString();else return N(W,J);return fe}catch(he){return console.error("Error formatting product URL:",he),fe}};return!e.products||e.products.length===0?null:R.jsxs(Mue,{ref:O,children:[R.jsx(Rue,{ref:y,$botId:t,children:R.jsx(Iue,{children:e.products.map((J,me)=>{var W;return R.jsxs(Bue,{$botId:t,children:[!
|
|
1227
|
+
`,MA=({message:e,botId:t,uidata:n,onSendMessage:r,loading:o,storeMetaData:a,platform:l,setShowVariantModel:d,setSelectedProduct:h,setCartVersion:p})=>{const[y,m]=AA({align:"center",containScroll:"trimSnaps",dragFree:!0}),[x,S]=ie.useState(!1),[w,T]=ie.useState(!0),[k,A]=ie.useState(0),D=ie.useRef([]),O=ie.useRef(null),{addToCart:I,generateProductUrl:N,addCartAttributes:L,cart:q}=_d(),G=ie.useCallback(()=>m&&m.scrollPrev(),[m]),V=ie.useCallback(()=>m&&m.scrollNext(),[m]),F=ie.useCallback(()=>{m&&(S(m.canScrollPrev()),T(m.canScrollNext()),A(m.selectedScrollSnap()))},[m]),Y=ie.useCallback(J=>{J.forEach(me=>{me.isIntersecting?D.current.forEach((W,fe)=>{W&&(fe===k?W.play():W.pause())}):D.current.forEach(W=>{W&&W.pause()})})},[k]),ee=ie.useCallback(J=>{if(!J.compare_at_price||!J.price)return null;const me=parseFloat(J.compare_at_price),W=parseFloat(J.price);if(me<=W)return null;const fe=(me-W)/me*100;return fe>0?Math.round(fe):null},[]);ie.useEffect(()=>{if(m)return m.on("select",F),F(),()=>{m.off("select",F)}},[m,F]),ie.useEffect(()=>{if(!O.current)return;const J=new IntersectionObserver(Y,{root:null,rootMargin:"0px",threshold:.6}),me=O.current;return J.observe(me),()=>{J.unobserve(me)}},[Y]),ie.useEffect(()=>{if(!m)return;const J=()=>{m.reInit()};return window.addEventListener("resize",J),()=>{window.removeEventListener("resize",J)}},[m]);const oe=(J,me,W)=>{let fe=J.link;try{if(me==="GTK-Restaurant"){const he=J.name.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-");fe=new URL(`/order/want-gtk-hoboken/item-${he}_${J.product_id}`,fe.replace("www.","")).toString()}else if(me==="gtk-catering")fe=new URL(`https://${W}/catering/want-gtk-hoboken/items/add/${J.handle}`).toString();else return N(W,J);return fe}catch(he){return console.error("Error formatting product URL:",he),fe}};return!e.products||e.products.length===0?null:R.jsxs(Mue,{ref:O,children:[R.jsx(Rue,{ref:y,$botId:t,children:R.jsx(Iue,{children:e.products.map((J,me)=>{var W;return R.jsxs(Bue,{$botId:t,children:[!Ee(t)&&J.compare_at_price&&ee(J)&&R.jsx(jue,{children:R.jsxs(Hue,{children:[ee(J),"% OFF"]})}),R.jsxs($ue,{onClick:()=>{o||(t.toLowerCase().includes("gtk")||Ee(t)?(window.open(oe(J,t,n.shopifyShopDomain||""),"_blank"),window.DebalesChat.track(Gt.VIEW_PRODUCT_CLICKED,{productName:J.name,productPrice:J.price?bA(J.price):void 0,productLink:J.link,message:e.conversationId})):r({message:"Tell me about "+J.name+" product"}))},$disabled:o,$botId:t,children:[R.jsx(Lue,{$botId:t,children:(W=J==null?void 0:J.image)!=null&&W[0]&&nF(J.image[0])?R.jsx("video",{ref:fe=>{D.current[me]=fe},style:{width:"100%",height:"auto",objectFit:"cover",aspectRatio:"1/1",margin:"0"},muted:!0,loop:!0,onClick:()=>{window.DebalesChat.track(Gt.PRODUCT_VIDEO_CLICKED,{product:J,message:e.conversationId})},src:J.image[0]}):R.jsx("img",{style:{width:"100%",height:"auto",objectFit:"cover",aspectRatio:"1/1",margin:"0"},onClick:()=>{window.DebalesChat.track(Gt.PRODUCT_IMAGE_CLICKED,{product:J,message:e.conversationId})},src:J.image[0]==="No image available"?"https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg":J.image[0],alt:"Product Image Not Available"})}),R.jsxs(Nue,{children:[R.jsx(zue,{title:J.name,children:J.name}),J.price&&R.jsxs(Pue,{children:[Ee(t)?R.jsx(tU,{children:_A(J.price,n.currency||"INR",Ee(t))}):R.jsx(tU,{dangerouslySetInnerHTML:{__html:OF(J.price,a)}}),J.compare_at_price&&ee(J)&&R.jsx(que,{children:Ee(t)?R.jsxs(R.Fragment,{children:[R.jsx(nU,{children:_A(J.compare_at_price,n.currency||"INR",!0)}),R.jsxs("span",{style:{color:"#ef4444"},children:[ee(J),"% OFF"]})]}):R.jsx(nU,{dangerouslySetInnerHTML:{__html:OF(J.compare_at_price,a)}})})]}),l!==vi.DEFAULT&&l!==vi.UNKNOWN&&J.price&&R.jsx(R.Fragment,{children:R.jsx(Uue,{$botId:t,style:{backgroundColor:n.callToActionBackgroundColor||"#F48722",color:n.callToActionFontColor||"#ffffff"},onClick:fe=>{var Me;fe.stopPropagation();const he=((Me=J.options)==null?void 0:Me.every(H=>H.values.length===1))||!1;l===vi.SHOPIFY||l===vi.THE_COLLECTIVE&&!he?(d(!0),h(J)):(console.log("AddToCartButton: Adding to cart",J),I(J.variantId||"",1,{productId:J.productId||""}),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:J.name,price:J.price?bA(J.price):void 0,link:J.link,message:e.conversationId,currentCart:q})),p(H=>H+1)},children:Ee(t)?"Add to Bag":"Add to Cart"})}),J.price&&R.jsxs(Fue,{$botId:t,$backgroundColor:n.callToActionBackgroundColor||"#F48722",title:"product-link",href:oe(J,t,n.shopifyShopDomain||""),onClick:fe=>{fe.stopPropagation(),t.toLowerCase().includes("gtk")&&(fe.preventDefault(),r({message:"Show products similar to "+J.name})),window.DebalesChat.track(t.toLowerCase().includes("gtk")?Gt.SHOW_SIMILAR_CLICKED:Gt.VIEW_PRODUCT_CLICKED,{productName:J.name,productPrice:J.price?bA(J.price):void 0,productLink:J.link,message:e.conversationId}),L({dbls_method:"view_product"})},children:[R.jsx("span",{style:{marginRight:"6px"},children:t.toLowerCase().includes("gtk")?"Show Similar":"View Product"}),t.toLowerCase().includes("gtk")?R.jsx(Kse,{}):R.jsx(Qse,{})]})]})]})]},me)})})}),e.products.length>1&&R.jsxs(R.Fragment,{children:[R.jsx(Gue,{onClick:G,disabled:!x,$botId:t,style:{backgroundColor:n.callToActionBackgroundColor||"#F48722",color:n.callToActionFontColor||"#ffffff"},children:R.jsx(kF,{uiData:n})}),R.jsx(Vue,{onClick:V,disabled:!w,$botId:t,style:{backgroundColor:n.callToActionBackgroundColor||"#F48722",color:n.callToActionFontColor||"#ffffff"},children:R.jsx(TF,{uiData:n})})]})]})},Yue=K.div`
|
|
1228
1228
|
display: flex;
|
|
1229
1229
|
flex-direction: column;
|
|
1230
1230
|
gap: 4px;
|
|
1231
1231
|
`,Zue=K.label`
|
|
1232
1232
|
font-size: 14px;
|
|
1233
|
-
font-weight: ${e=>
|
|
1233
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1234
1234
|
color: #344054;
|
|
1235
1235
|
|
|
1236
1236
|
span {
|
|
@@ -1241,7 +1241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1241
1241
|
border: 1px solid #d0d5dd;
|
|
1242
1242
|
border-radius: 8px;
|
|
1243
1243
|
font-size: 14px;
|
|
1244
|
-
font-weight: ${e=>
|
|
1244
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
1245
1245
|
width: 93%;
|
|
1246
1246
|
outline: none;
|
|
1247
1247
|
|
|
@@ -1298,7 +1298,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1298
1298
|
gap: 4px;
|
|
1299
1299
|
padding: 8px 10px !important;
|
|
1300
1300
|
border: 1px solid rgba(0, 0, 0, 0.2) !important;
|
|
1301
|
-
border-radius: ${e=>
|
|
1301
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"};
|
|
1302
1302
|
cursor: pointer;
|
|
1303
1303
|
min-width: 55px;
|
|
1304
1304
|
background: white;
|
|
@@ -1306,7 +1306,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1306
1306
|
|
|
1307
1307
|
span {
|
|
1308
1308
|
font-size: 14px;
|
|
1309
|
-
font-weight: ${e=>
|
|
1309
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
span.flag {
|
|
@@ -1320,7 +1320,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1320
1320
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
|
|
1321
1321
|
padding: 8px 0 !important;
|
|
1322
1322
|
font-size: 16px !important;
|
|
1323
|
-
font-weight: ${e=>
|
|
1323
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
1324
1324
|
outline: none !important;
|
|
1325
1325
|
line-height: normal !important;
|
|
1326
1326
|
height: 20px !important;
|
|
@@ -1458,7 +1458,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1458
1458
|
flex-direction: column;
|
|
1459
1459
|
gap: 4px;
|
|
1460
1460
|
background-color: ${e=>e.theme.colors.bot.message||"#fff"};
|
|
1461
|
-
border-radius: ${e=>
|
|
1461
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"};
|
|
1462
1462
|
padding: 16px;
|
|
1463
1463
|
margin-top: 8px;
|
|
1464
1464
|
margin-bottom: 8px;
|
|
@@ -1468,7 +1468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1468
1468
|
gap: 4px;
|
|
1469
1469
|
`,cU=K.label`
|
|
1470
1470
|
font-size: 14px;
|
|
1471
|
-
font-weight: ${e=>
|
|
1471
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1472
1472
|
color: #344054;
|
|
1473
1473
|
|
|
1474
1474
|
span {
|
|
@@ -1487,7 +1487,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1487
1487
|
gap: 6.402px;
|
|
1488
1488
|
border-radius: 8px !important;
|
|
1489
1489
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
1490
|
-
font-weight: ${e=>
|
|
1490
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1491
1491
|
font-size: 14px;
|
|
1492
1492
|
background: transparent !important;
|
|
1493
1493
|
cursor: pointer;
|
|
@@ -1502,7 +1502,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1502
1502
|
height: auto !important;
|
|
1503
1503
|
color: rgba(0, 0, 0, 0.8);
|
|
1504
1504
|
font-size: 16px;
|
|
1505
|
-
font-weight: ${e=>
|
|
1505
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1506
1506
|
line-height: normal !important;
|
|
1507
1507
|
word-wrap: break-word;
|
|
1508
1508
|
`,pce=K.div`
|
|
@@ -1517,9 +1517,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1517
1517
|
justify-content: center;
|
|
1518
1518
|
align-items: center;
|
|
1519
1519
|
gap: 6.402px;
|
|
1520
|
-
border-radius: ${e=>
|
|
1520
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
1521
1521
|
border: none;
|
|
1522
|
-
font-weight: ${e=>
|
|
1522
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1523
1523
|
font-size: 14px;
|
|
1524
1524
|
background: ${e=>e.theme.colors.cta.background} !important;
|
|
1525
1525
|
box-shadow: 0px 0px 8.963px 0px rgba(0, 0, 0, 0.3);
|
|
@@ -1565,7 +1565,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1565
1565
|
cursor: pointer;
|
|
1566
1566
|
`,vce=K.div`
|
|
1567
1567
|
font-size: 16px;
|
|
1568
|
-
font-weight: ${e=>
|
|
1568
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
1569
1569
|
color: #101828;
|
|
1570
1570
|
margin-bottom: 12px;
|
|
1571
1571
|
`,yce=K.div`
|
|
@@ -1575,9 +1575,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1575
1575
|
margin-bottom: 8px;
|
|
1576
1576
|
padding: 8px 12px;
|
|
1577
1577
|
background-color: ${e=>e.theme.colors.bot.message||"#f0f4f9"};
|
|
1578
|
-
border-radius: ${e=>
|
|
1578
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"};
|
|
1579
1579
|
width: fit-content;
|
|
1580
|
-
`,RA=({inChat:e=!1,showFormInstructions:t=!1,setShowModel:n})=>{const[r,o]=ie.useState(null),[a,l]=ie.useState(""),[d,h]=ie.useState({name:"",email:"",phone:""}),{pendingQuestion:p,onSendMessage:y,showUserInfoModel:m,uiData:x,setUserInfo:S,setIsFormClosedByUser:w}=Ad(),T=k=>{var O,I;console.log("handle submit called"),k.preventDefault();const A=
|
|
1580
|
+
`,RA=({inChat:e=!1,showFormInstructions:t=!1,setShowModel:n})=>{const[r,o]=ie.useState(null),[a,l]=ie.useState(""),[d,h]=ie.useState({name:"",email:"",phone:""}),{pendingQuestion:p,onSendMessage:y,showUserInfoModel:m,uiData:x,setUserInfo:S,setIsFormClosedByUser:w}=Ad(),T=k=>{var O,I;console.log("handle submit called"),k.preventDefault();const A=Ee(window.DebalesChat.projectId||"")?{name:d.name.trim(),email:d.email.trim(),phone:d.phone.trim()||a.trim()}:{name:(O=new FormData(k.currentTarget).get("name"))==null?void 0:O.toString().trim(),email:(I=new FormData(k.currentTarget).get("email"))==null?void 0:I.toString().trim(),phone:a.trim()},D=/^[A-Za-z\s]+$/;if(x!=null&&x.pluginConfig.collectedUserInfo.name)if(A.name){if(!D.test(A.name)){o({field:"name",message:"Only letters and spaces are allowed"});return}}else{o({field:"name",message:"Name is required"});return}if(x!=null&&x.pluginConfig.collectedUserInfo.email)if(A.email){if(!rm.isEmail(A.email)){o({field:"email",message:"Invalid email address"});return}}else{o({field:"email",message:"Email is required"});return}if(x!=null&&x.pluginConfig.collectedUserInfo.phone){if(!A.phone){o({field:"phone",message:"Phone number is required"});return}if(!/^\+?\d{1,3} \d{10}$/.test(A.phone)){o({field:"phone",message:"Please enter a valid 10-digit phone number with country code"});return}}A.phone=A.phone.replace(/\s+/g,""),S(A),n(!1),console.log("closinginfo model"),window.DebalesChat.projectId==="blossom-and-rhyme-6"&&(A!=null&&A.email&&bd.identify(A.email),A!=null&&A.name&&bd.people.set({$name:A.name}),A!=null&&A.phone&&bd.people.set({$phone:A.phone})),A&&A.email&&(window.DebalesChat.identify(A.email,{name:A.name,phone:A.phone,email:A.email}),x!=null&&x.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:A.email,first_name:A.name,phone:A.phone,from:"Debales-Chatbot"})),window.DebalesChat.track(Gt.USER_FORM_FILLED,{name:A==null?void 0:A.name,email:A==null?void 0:A.email,phone:A==null?void 0:A.phone}),o(null),console.log("pendingQuestion",p),setTimeout(()=>{p&&y({message:p.question,answer:p.answer,products:p.products})},0)};if(ie.useEffect(()=>{console.log("showUserInfoModel",m)},[m]),!m)return null;if(e){const k=x!=null&&x.pluginConfig?x.pluginConfig.collectedUserInfo.modelHeading:"Fill in your details to start chat!🚀";return R.jsxs("div",{style:{marginInline:"10px",marginBlock:"8px"},children:[!t&&R.jsx(yce,{children:k}),R.jsxs(dce,{onSubmit:T,"data-testid":"user-info-form-container-in-chat",children:[t&&R.jsx(vce,{children:k}),(x==null?void 0:x.pluginConfig.collectedUserInfo.name)&&(Ee(window.DebalesChat.projectId||"")?R.jsx(Vl,{label:"Name",name:"name",type:"text",value:d.name,onChange:A=>h(D=>({...D,name:A.target.value})),required:!0,error:r&&r.field==="name"?r.message:void 0,isCollectiveBot:!0}):R.jsx(iU,{label:"Name",name:"name",type:"text",FieldError:r,placeholder:"John Doe","data-testid":"user-info-model-name-input"})),(x==null?void 0:x.pluginConfig.collectedUserInfo.email)&&(Ee(window.DebalesChat.projectId||"")?R.jsx(Vl,{label:window.DebalesChat.projectId==="catch-org-ai"?"Business Mail":"Email",name:"email",type:"email",value:d.email,onChange:A=>h(D=>({...D,email:A.target.value})),required:!0,error:r&&r.field==="email"?r.message:void 0,isCollectiveBot:!0}):R.jsx(iU,{label:window.DebalesChat.projectId==="catch-org-ai"?"Business Mail":"Email",name:"email",type:"text",placeholder:"johndoe@gmail.com",FieldError:r,"data-testid":"user-info-model-email-input"})),(x==null?void 0:x.pluginConfig.collectedUserInfo.phone)&&R.jsxs(uU,{children:[R.jsxs(cU,{children:["Phone",R.jsx("span",{children:"*"})]}),R.jsx(lU,{label:"Phone",name:"phone",FieldError:r,onChange:A=>{l(A)},countryCode:x==null?void 0:x.countryCode,"data-testid":"user-info-model-phone-input"})]}),R.jsxs(pU,{children:["By submitting, you agree to our"," ",R.jsx(gU,{href:`${Ci}/privacy-policy`,target:"_blank",children:"Privacy Policy"})]}),R.jsxs(fU,{children:[R.jsx(hU,{type:"submit","data-testid":"user-info-model-submit-button",children:"Submit"}),(x==null?void 0:x.pluginConfig.collectedUserInfo.isOptional)===!0&&R.jsx(dU,{onClick:A=>{A.preventDefault(),w(!0),p&&y({message:p.question,answer:p.answer,products:p.products}),window.DebalesChat.track(Gt.USER_FORM_CLOSE,{source:"skip_button_clicked"}),n(!1)},"data-testid":"user-info-model-skip-button",children:"Skip"})]})]})]})}return R.jsxs(R.Fragment,{children:[R.jsx(cce,{}),R.jsxs(fce,{"data-testid":"user-info-model-container",children:[R.jsxs("div",{style:{width:"100%",height:"40px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[R.jsx(hce,{children:x!=null&&x.pluginConfig?x==null?void 0:x.pluginConfig.collectedUserInfo.modelHeading:"Fill in your details to start chat!🚀"}),(x==null?void 0:x.pluginConfig.collectedUserInfo.isOptional)===!0&&R.jsx(gce,{onClick:()=>{w(!0),p&&y({message:p.question,answer:p.answer,products:p.products}),window.DebalesChat.track(Gt.USER_FORM_CLOSE,{source:"close_button_clicked"}),n(!1)},"data-cy":"user-info-model-close-button",children:R.jsx(hm,{botNameColor:x==null?void 0:x.headerFontColor})})]}),R.jsx(pce,{children:R.jsxs(mce,{onSubmit:T,children:[(x==null?void 0:x.pluginConfig.collectedUserInfo.name)&&R.jsx(oU,{label:"Name",name:"name",type:"text",FieldError:r,placeholder:"John Doe","data-cy":"user-info-model-name-input"}),(x==null?void 0:x.pluginConfig.collectedUserInfo.email)&&(Ee(window.DebalesChat.projectId||"")?R.jsx(Vl,{label:window.DebalesChat.projectId==="catch-org-ai"?"Business Mail":"Email",name:"email",type:"email",value:d.email,onChange:k=>h(A=>({...A,email:k.target.value})),required:!0,error:r&&r.field==="email"?r.message:void 0,isCollectiveBot:!0}):R.jsx(oU,{label:window.DebalesChat.projectId==="catch-org-ai"?"Business Mail":"Email",name:"email",type:"text",placeholder:"johndoe@gmail.com",FieldError:r,"data-cy":"user-info-model-email-input"})),(x==null?void 0:x.pluginConfig.collectedUserInfo.phone)&&R.jsxs(uU,{children:[R.jsxs(cU,{children:["Phone",R.jsx("span",{children:"*"})]}),R.jsx(lU,{label:"Phone",name:"phone",FieldError:r,onChange:k=>{l(k)},"data-cy":"user-info-model-phone-input",countryCode:x==null?void 0:x.countryCode})]}),R.jsxs(pU,{children:["By submitting, you agree to our"," ",R.jsx(gU,{href:`${Ci}/privacy-policy`,target:"_blank",children:"Privacy Policy"})]}),R.jsxs(fU,{children:[R.jsx(hU,{type:"submit","data-cy":"user-info-model-submit-button",children:"Submit"}),(x==null?void 0:x.pluginConfig.collectedUserInfo.isOptional)===!0&&R.jsx(dU,{onClick:k=>{k.preventDefault(),w(!0),p&&y({message:p.question,answer:p.answer,products:p.products}),window.DebalesChat.track(Gt.USER_FORM_CLOSE,{source:"skip_button_clicked"}),n(!1)},"data-cy":"user-info-model-skip-button",children:"Skip"})]})]})})]})]})},xce=K.div`
|
|
1581
1581
|
position: absolute;
|
|
1582
1582
|
top: 0 !important;
|
|
1583
1583
|
left: 0 !important;
|
|
@@ -1599,7 +1599,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1599
1599
|
flex-direction: column;
|
|
1600
1600
|
align-items: flex-start;
|
|
1601
1601
|
gap: 8px;
|
|
1602
|
-
border-radius: ${e=>
|
|
1602
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"16px"} !important;
|
|
1603
1603
|
color: #000000;
|
|
1604
1604
|
background: #fff;
|
|
1605
1605
|
box-shadow: 0px 128px 36px 0px rgba(0, 0, 0, 0);
|
|
@@ -1620,7 +1620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1620
1620
|
`,Cce=K.button`
|
|
1621
1621
|
width: 100%;
|
|
1622
1622
|
padding: 8px;
|
|
1623
|
-
border-radius: ${e=>
|
|
1623
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"4px"};
|
|
1624
1624
|
border: 1px solid #ddd;
|
|
1625
1625
|
background-color: #fff;
|
|
1626
1626
|
text-align: left;
|
|
@@ -1659,7 +1659,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1659
1659
|
max-height: 144px;
|
|
1660
1660
|
overflow-y: auto;
|
|
1661
1661
|
border: 1px solid #ddd;
|
|
1662
|
-
border-radius: ${e=>
|
|
1662
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"4px"};
|
|
1663
1663
|
background-color: #fff;
|
|
1664
1664
|
list-style: none;
|
|
1665
1665
|
margin: 2px 0 0 0;
|
|
@@ -1689,12 +1689,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1689
1689
|
|
|
1690
1690
|
&::-webkit-scrollbar-track {
|
|
1691
1691
|
background: #f1f1f1;
|
|
1692
|
-
border-radius: ${e=>
|
|
1692
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"3px"};
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
&::-webkit-scrollbar-thumb {
|
|
1696
1696
|
background: #888;
|
|
1697
|
-
border-radius: ${e=>
|
|
1697
|
+
border-radius: ${e=>Ee(e.$botId)?"0":"3px"};
|
|
1698
1698
|
}
|
|
1699
1699
|
|
|
1700
1700
|
&::-webkit-scrollbar-thumb:hover {
|
|
@@ -1748,20 +1748,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1748
1748
|
height: auto !important;
|
|
1749
1749
|
color: rgba(0, 0, 0, 0.8);
|
|
1750
1750
|
font-size: 16px;
|
|
1751
|
-
font-weight: ${e=>
|
|
1751
|
+
font-weight: ${e=>Ee(e.theme.botId)?"400":"700"};
|
|
1752
1752
|
line-height: normal !important;
|
|
1753
1753
|
word-wrap: break-word;
|
|
1754
|
-
`,IA=({uidata:e,product:t,showModel:n,setShowModel:r,onVariantSelect:o,botId:a})=>{const[l,d]=ie.useState([]),[h,p]=ie.useState([]),[y,m]=ie.useState({}),[x,S]=ie.useState(!0),[w,T]=ie.useState(null),[k,A]=ie.useState(""),D=Gc.detect();ie.useEffect(()=>{const q=async()=>{try{const V=dp(e.shopifyShopDomain||"");if(!V.isValid)throw new Error("Invalid URL");let F;if(t!=null&&t.handle)F=await fetch(new URL(`/products/${t.handle}.js`,V.url));else{const he=t==null?void 0:t.link.replace(/^https:\/\/https:\/\//,"https://"),Me=new URL((he==null?void 0:he.split("?")[0])+".js");Me.hostname=V.url.hostname,F=await fetch(Me)}const Y=await F.json(),ee=Y.variants.filter(he=>he.available),oe={};Y.options.forEach(he=>{oe[he.name]=new Set}),ee.forEach(he=>{he.options.forEach((Me,H)=>{oe[Y.options[H].name].add(Me)})});const J=Y.options.map(he=>({name:he.name,values:Array.from(oe[he.name])})).filter(he=>he.values.length>0);d(J);const me=J.every(he=>he.values.length===1),W=ee.map(he=>({id:he.id.toString(),title:Y.title,options:he.options,available:he.available,price:Number((he.price/100).toFixed(2))}));p(W);const fe={};if(J.forEach(he=>{fe[he.name]=he.values[0]}),m(fe),me){const he=W.find(Me=>J.every((H,te)=>Me.options[te]===H.values[0]));he&&(o(he),r(!1))}S(!1)}catch(V){console.error("⛓️💥⛓️💥Error fetching product data:",V),S(!1)}},G=async()=>{var V,F;try{if(!(t!=null&&t.options)){console.warn("No product options available for The Collective product"),S(!1);return}if(t.options.every(me=>me.values.length===1)){const me={id:((V=t.variantId)==null?void 0:V.toString())||"default",title:t.name||"",options:t.options.map(W=>W.values[0]),available:!0,price:((F=t.price)==null?void 0:F.toString())||"0"};o(me),r(!1),S(!1);return}const ee=t.options.filter(me=>me.values.length>1);if(ee.length===0){console.log("No variant options found for The Collective product"),S(!1);return}d(ee);const oe=[];ee.forEach((me,W)=>{me.values.forEach((fe,he)=>{var le,P;const Me=((le=me.sizeids)==null?void 0:le[he])||`variant-${W}-${he}`,H=ee.map((ve,Ie)=>Ie===W?fe:ve.values[0]),te={id:Me,title:t.name||"",options:H,available:!0,price:((P=t.price)==null?void 0:P.toString())||"0"};oe.push(te)})}),p(oe);const J={};ee.forEach(me=>{J[me.name]=me.values[0]}),m(J),S(!1)}catch(Y){console.error("⛓️💥⛓️💥Error processing The Collective product data:",Y),S(!1)}};n&&t&&D===vi.SHOPIFY?q():n&&t&&D===vi.THE_COLLECTIVE&&G()},[t,n,o,r,e.shopifyShopDomain,D]);const O=(q,G)=>{m(V=>({...V,[q]:G}))},I=()=>(console.log("Selected Options:",y),console.log("Available Variants:",h),h.find(G=>{const V=l.every((F,Y)=>G.options[Y]===y[F.name]);return console.log("Checking variant:",G,"Matches:",V),V})),N=()=>l.every(q=>y[q.name]&&y[q.name].trim()!==""),L=()=>{if(!N()){A("Please select all options to continue");return}const q=I();q?(A(""),o(q),r(!1)):A("This variant combination is not available")};return ie.useEffect(()=>{A("")},[y]),ie.useEffect(()=>{n||T(null)},[n]),!n||l.length===0||l.every(q=>q.values.length===1)||x?null:R.jsxs(R.Fragment,{children:[R.jsx(xce,{}),R.jsxs(bce,{$botId:a,children:[R.jsx(Tce,{onClick:()=>r(!1),type:"button",children:"×"}),R.jsx(Dce,{children:"Please Select from Options"}),l.map(q=>R.jsxs(_ce,{children:[R.jsx(Sce,{children:q.name}),R.jsx(Oce,{options:q.values,selectedOption:y[q.name],onSelect:G=>O(q.name,G),name:q.name,activeDropdown:w,setActiveDropdown:T,botId:a})]},q.name)),k&&R.jsx(kce,{children:k}),R.jsx("button",{onClick:L,type:"button",style:{backgroundColor:e.callToActionBackgroundColor||"#F48722",color:e.callToActionFontColor||"#fff",padding:"10px",border:"none",borderRadius:"8px",width:"100%",cursor:"pointer",minHeight:"44px",fontSize:"16px",textTransform:
|
|
1754
|
+
`,IA=({uidata:e,product:t,showModel:n,setShowModel:r,onVariantSelect:o,botId:a})=>{const[l,d]=ie.useState([]),[h,p]=ie.useState([]),[y,m]=ie.useState({}),[x,S]=ie.useState(!0),[w,T]=ie.useState(null),[k,A]=ie.useState(""),D=Gc.detect();ie.useEffect(()=>{const q=async()=>{try{const V=dp(e.shopifyShopDomain||"");if(!V.isValid)throw new Error("Invalid URL");let F;if(t!=null&&t.handle)F=await fetch(new URL(`/products/${t.handle}.js`,V.url));else{const he=t==null?void 0:t.link.replace(/^https:\/\/https:\/\//,"https://"),Me=new URL((he==null?void 0:he.split("?")[0])+".js");Me.hostname=V.url.hostname,F=await fetch(Me)}const Y=await F.json(),ee=Y.variants.filter(he=>he.available),oe={};Y.options.forEach(he=>{oe[he.name]=new Set}),ee.forEach(he=>{he.options.forEach((Me,H)=>{oe[Y.options[H].name].add(Me)})});const J=Y.options.map(he=>({name:he.name,values:Array.from(oe[he.name])})).filter(he=>he.values.length>0);d(J);const me=J.every(he=>he.values.length===1),W=ee.map(he=>({id:he.id.toString(),title:Y.title,options:he.options,available:he.available,price:Number((he.price/100).toFixed(2))}));p(W);const fe={};if(J.forEach(he=>{fe[he.name]=he.values[0]}),m(fe),me){const he=W.find(Me=>J.every((H,te)=>Me.options[te]===H.values[0]));he&&(o(he),r(!1))}S(!1)}catch(V){console.error("⛓️💥⛓️💥Error fetching product data:",V),S(!1)}},G=async()=>{var V,F;try{if(!(t!=null&&t.options)){console.warn("No product options available for The Collective product"),S(!1);return}if(t.options.every(me=>me.values.length===1)){const me={id:((V=t.variantId)==null?void 0:V.toString())||"default",title:t.name||"",options:t.options.map(W=>W.values[0]),available:!0,price:((F=t.price)==null?void 0:F.toString())||"0"};o(me),r(!1),S(!1);return}const ee=t.options.filter(me=>me.values.length>1);if(ee.length===0){console.log("No variant options found for The Collective product"),S(!1);return}d(ee);const oe=[];ee.forEach((me,W)=>{me.values.forEach((fe,he)=>{var le,P;const Me=((le=me.sizeids)==null?void 0:le[he])||`variant-${W}-${he}`,H=ee.map((ve,Ie)=>Ie===W?fe:ve.values[0]),te={id:Me,title:t.name||"",options:H,available:!0,price:((P=t.price)==null?void 0:P.toString())||"0"};oe.push(te)})}),p(oe);const J={};ee.forEach(me=>{J[me.name]=me.values[0]}),m(J),S(!1)}catch(Y){console.error("⛓️💥⛓️💥Error processing The Collective product data:",Y),S(!1)}};n&&t&&D===vi.SHOPIFY?q():n&&t&&D===vi.THE_COLLECTIVE&&G()},[t,n,o,r,e.shopifyShopDomain,D]);const O=(q,G)=>{m(V=>({...V,[q]:G}))},I=()=>(console.log("Selected Options:",y),console.log("Available Variants:",h),h.find(G=>{const V=l.every((F,Y)=>G.options[Y]===y[F.name]);return console.log("Checking variant:",G,"Matches:",V),V})),N=()=>l.every(q=>y[q.name]&&y[q.name].trim()!==""),L=()=>{if(!N()){A("Please select all options to continue");return}const q=I();q?(A(""),o(q),r(!1)):A("This variant combination is not available")};return ie.useEffect(()=>{A("")},[y]),ie.useEffect(()=>{n||T(null)},[n]),!n||l.length===0||l.every(q=>q.values.length===1)||x?null:R.jsxs(R.Fragment,{children:[R.jsx(xce,{}),R.jsxs(bce,{$botId:a,children:[R.jsx(Tce,{onClick:()=>r(!1),type:"button",children:"×"}),R.jsx(Dce,{children:"Please Select from Options"}),l.map(q=>R.jsxs(_ce,{children:[R.jsx(Sce,{children:q.name}),R.jsx(Oce,{options:q.values,selectedOption:y[q.name],onSelect:G=>O(q.name,G),name:q.name,activeDropdown:w,setActiveDropdown:T,botId:a})]},q.name)),k&&R.jsx(kce,{children:k}),R.jsx("button",{onClick:L,type:"button",style:{backgroundColor:e.callToActionBackgroundColor||"#F48722",color:e.callToActionFontColor||"#fff",padding:"10px",border:"none",borderRadius:Ee(a)?"0":"8px",width:"100%",cursor:"pointer",minHeight:"44px",fontSize:"16px",textTransform:Ee(a)?"uppercase":"capitalize"},title:"Select Variant",children:"Continue"})]})]})},Mce=K.form`
|
|
1755
1755
|
padding: 2px;
|
|
1756
1756
|
margin: 8px 12px;
|
|
1757
1757
|
position: relative;
|
|
1758
1758
|
z-index: 3;
|
|
1759
1759
|
flex: 0 0 auto;
|
|
1760
1760
|
box-sizing: border-box;
|
|
1761
|
-
border-radius: ${e=>
|
|
1761
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
1762
1762
|
background: #fff;
|
|
1763
1763
|
overflow: hidden;
|
|
1764
|
-
box-shadow: ${e=>
|
|
1764
|
+
box-shadow: ${e=>Ee(e.theme.botId)?"none":"0 0 15px rgba(55, 155, 251, 0.3)"};
|
|
1765
1765
|
|
|
1766
1766
|
&::before {
|
|
1767
1767
|
content: "";
|
|
@@ -1772,7 +1772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1772
1772
|
bottom: 0;
|
|
1773
1773
|
border-radius: inherit;
|
|
1774
1774
|
padding: 2px; /* 3px border thickness */
|
|
1775
|
-
background: ${e=>
|
|
1775
|
+
background: ${e=>Ee(e.theme.botId)?"#000":"conic-gradient(from 0deg, #0ead3f, #00b200, #1ca77e, #379bfb, #0ead3f)"};
|
|
1776
1776
|
mask:
|
|
1777
1777
|
linear-gradient(#fff 0 0) content-box,
|
|
1778
1778
|
linear-gradient(#fff 0 0);
|
|
@@ -1814,7 +1814,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1814
1814
|
position: relative;
|
|
1815
1815
|
z-index: 1;
|
|
1816
1816
|
background-color: #fff;
|
|
1817
|
-
border-radius: ${e=>
|
|
1817
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
1818
1818
|
`,Ice=K.input`
|
|
1819
1819
|
all: unset;
|
|
1820
1820
|
border: none;
|
|
@@ -1822,7 +1822,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1822
1822
|
height: 48px !important;
|
|
1823
1823
|
resize: none;
|
|
1824
1824
|
font-size: 16px !important;
|
|
1825
|
-
font-weight: ${e=>
|
|
1825
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
1826
1826
|
line-height: 24px !important;
|
|
1827
1827
|
overflow: hidden;
|
|
1828
1828
|
-webkit-box-flex: 1;
|
|
@@ -1871,7 +1871,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1871
1871
|
margin-top: 0 !important;
|
|
1872
1872
|
margin-bottom: 0 !important;
|
|
1873
1873
|
border-width: 0 !important;
|
|
1874
|
-
border-radius: ${e=>
|
|
1874
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
1875
1875
|
line-height: normal !important;
|
|
1876
1876
|
|
|
1877
1877
|
&:hover {
|
|
@@ -2005,7 +2005,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2005
2005
|
-ms-flex-negative: 0;
|
|
2006
2006
|
flex-shrink: 0;
|
|
2007
2007
|
object-fit: contain;
|
|
2008
|
-
border-radius: ${e=>
|
|
2008
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
2009
2009
|
padding: 2px !important;
|
|
2010
2010
|
|
|
2011
2011
|
@media screen and (max-width: 768px) {
|
|
@@ -2059,7 +2059,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2059
2059
|
z-index: 2147483647;
|
|
2060
2060
|
background-color: ${e=>e.$backgroundColor};
|
|
2061
2061
|
color: ${e=>e.$headerFontColor};
|
|
2062
|
-
border-radius: ${e=>
|
|
2062
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"16px"} !important;
|
|
2063
2063
|
padding: 0 !important;
|
|
2064
2064
|
margin: 0 !important;
|
|
2065
2065
|
display: flex;
|
|
@@ -2085,7 +2085,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2085
2085
|
left: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"16px":"auto":e.$fullScreenOnMobile?"0":e.$isLeft?"16px":"auto"};
|
|
2086
2086
|
right: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"auto":"16px":e.$fullScreenOnMobile?"0":e.$isLeft?"auto":"16px"};
|
|
2087
2087
|
bottom: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$topOffset||"16px":e.$fullScreenOnMobile?"0":e.$topOffset||"16px"};
|
|
2088
|
-
border-radius: ${e=>
|
|
2088
|
+
border-radius: ${e=>Ee(e.theme.botId)||e.$mobileDisplayMode==="full-screen"?"0":e.$mobileDisplayMode==="half-screen"?"16px 16px 0 0":"16px"} !important;
|
|
2089
2089
|
overflow: hidden;
|
|
2090
2090
|
touch-action: manipulation;
|
|
2091
2091
|
/* Apply proper touch action for mobile modes to allow content scrolling */
|
|
@@ -2108,14 +2108,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2108
2108
|
display: flex;
|
|
2109
2109
|
align-items: center;
|
|
2110
2110
|
padding: 2px;
|
|
2111
|
-
border-radius: ${e=>
|
|
2111
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
2112
2112
|
background: conic-gradient(#0ead3f, #00b200, #1ca77e, #379bfb, #0ead3f);
|
|
2113
2113
|
`,Vce=K.div`
|
|
2114
2114
|
display: flex;
|
|
2115
2115
|
align-items: center;
|
|
2116
2116
|
background: #fff;
|
|
2117
2117
|
padding: 0 16px 0 3px; /* Adjusted padding */
|
|
2118
|
-
border-radius: ${e=>
|
|
2118
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
2119
2119
|
height: 40px; /* Adjusted height */
|
|
2120
2120
|
font-weight: 600;
|
|
2121
2121
|
font-size: 16px; /* Adjusted font-size */
|
|
@@ -2123,9 +2123,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2123
2123
|
`,yU=K.button`
|
|
2124
2124
|
width: 40px;
|
|
2125
2125
|
height: 40px;
|
|
2126
|
-
border-radius: ${e=>
|
|
2126
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
2127
2127
|
border: 1.5px solid rgba(0, 0, 0, 0.3);
|
|
2128
|
-
background: ${e=>
|
|
2128
|
+
background: ${e=>Ee(e.theme.botId)?e.$iconBG:"#fff"};
|
|
2129
2129
|
display: flex;
|
|
2130
2130
|
align-items: center;
|
|
2131
2131
|
justify-content: center;
|
|
@@ -2133,7 +2133,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2133
2133
|
cursor: pointer;
|
|
2134
2134
|
transition: background 0.2s;
|
|
2135
2135
|
&:hover {
|
|
2136
|
-
background: ${e=>!
|
|
2136
|
+
background: ${e=>!Ee(e.theme.botId)&&"#f5f5f5"};
|
|
2137
2137
|
}
|
|
2138
2138
|
`,Yce=K.div`
|
|
2139
2139
|
z-index: 2147483647;
|
|
@@ -2162,12 +2162,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2162
2162
|
|
|
2163
2163
|
&::-webkit-scrollbar-track {
|
|
2164
2164
|
background: #f8f5f5;
|
|
2165
|
-
border-radius: ${e=>
|
|
2165
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"5px"} !important;
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
2168
|
&::-webkit-scrollbar-thumb {
|
|
2169
2169
|
background: #7a7979;
|
|
2170
|
-
border-radius: ${e=>
|
|
2170
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"5px"} !important;
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
2173
|
/* Improved scrolling behavior for all mobile modes */
|
|
@@ -2302,12 +2302,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2302
2302
|
justify-content: center;
|
|
2303
2303
|
text-align: left;
|
|
2304
2304
|
align-self: stretch;
|
|
2305
|
-
border-radius: ${e=>
|
|
2305
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
2306
2306
|
color: white;
|
|
2307
2307
|
border: none;
|
|
2308
2308
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
2309
2309
|
font-size: 14px;
|
|
2310
|
-
font-weight: ${e=>
|
|
2310
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
2311
2311
|
line-height: 20px !important;
|
|
2312
2312
|
transition: all 0.05s ease;
|
|
2313
2313
|
height: auto !important;
|
|
@@ -2497,7 +2497,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2497
2497
|
margin: 4px 10px 4px;
|
|
2498
2498
|
padding: 16px 16px;
|
|
2499
2499
|
background-color: ${e=>e.theme.colors.bot.message||"#fff"};
|
|
2500
|
-
border-radius: ${e=>
|
|
2500
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
2501
2501
|
width: 100%;
|
|
2502
2502
|
max-width: 320px;
|
|
2503
2503
|
`,sD=K.div`
|
|
@@ -2511,7 +2511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2511
2511
|
margin-bottom: 8px;
|
|
2512
2512
|
font-size: 16px;
|
|
2513
2513
|
color: #1c1c1c;
|
|
2514
|
-
font-weight: ${e=>
|
|
2514
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
2515
2515
|
|
|
2516
2516
|
span {
|
|
2517
2517
|
color: #ff3b30;
|
|
@@ -2520,30 +2520,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2520
2520
|
width: calc(100% - 26px);
|
|
2521
2521
|
padding: 12px;
|
|
2522
2522
|
border: 1px solid #d0d5dd;
|
|
2523
|
-
border-radius: ${e=>
|
|
2523
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
2524
2524
|
font-size: 16px;
|
|
2525
|
-
font-weight: ${e=>
|
|
2526
|
-
background-color: ${e=>
|
|
2525
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
2526
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
2527
2527
|
|
|
2528
2528
|
&:focus {
|
|
2529
2529
|
outline: none;
|
|
2530
2530
|
border-color: #f48722;
|
|
2531
|
-
background-color: ${e=>
|
|
2531
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
2532
2532
|
}
|
|
2533
2533
|
`,afe=K.textarea`
|
|
2534
2534
|
width: calc(100% - 26px);
|
|
2535
2535
|
padding: 12px;
|
|
2536
2536
|
border: 1px solid #d0d5dd;
|
|
2537
|
-
border-radius: ${e=>
|
|
2537
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
2538
2538
|
font-size: 16px;
|
|
2539
|
-
font-weight: ${e=>
|
|
2540
|
-
background-color: ${e=>
|
|
2539
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
2540
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
2541
2541
|
resize: none;
|
|
2542
2542
|
|
|
2543
2543
|
&:focus {
|
|
2544
2544
|
outline: none;
|
|
2545
2545
|
border-color: #f48722;
|
|
2546
|
-
background-color: ${e=>
|
|
2546
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
2547
2547
|
}
|
|
2548
2548
|
`,sfe=K.button`
|
|
2549
2549
|
height: 40px !important;
|
|
@@ -2552,9 +2552,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2552
2552
|
background-color: ${e=>e.theme.colors.cta.background};
|
|
2553
2553
|
color: ${e=>e.theme.colors.cta.font};
|
|
2554
2554
|
border: none;
|
|
2555
|
-
border-radius: ${e=>
|
|
2555
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
2556
2556
|
font-size: 14px;
|
|
2557
|
-
font-weight: ${e=>
|
|
2557
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
2558
2558
|
cursor: pointer;
|
|
2559
2559
|
transition: all 0.3s ease;
|
|
2560
2560
|
justify-content: center;
|
|
@@ -2614,11 +2614,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2614
2614
|
opacity: 0;
|
|
2615
2615
|
z-index: 1;
|
|
2616
2616
|
bottom: 0;
|
|
2617
|
-
`,AU=({botId:e})=>{var $r,et;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,setSuggestedQuestions:T,showUserInfoModel:k,setShowUserInfoModel:A,isUserInfoNeeded:D,setPendingQuestion:O}=Ad(),{cart:I,addToCart:N,generateCartUrl:L,addCartAttributes:q}=_d(),G=Dc("use-chatbot-icon-size"),V=Gc.detect(),F=t==null?void 0:t.isLeft,Y=cA(),ee=t==null?void 0:t.heightOption,[oe,J]=tt.useState(!1),[me,W]=tt.useState(!1),[fe,he]=ie.useState(""),[Me,H]=ie.useState(""),[,te]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let Ce=Io();if(!Ce&&window.Thinkific){const Je=window.Thinkific.current_user;Je&&(Ce={name:Je.full_name,email:Je.email},Fc(Ce))}Bu.init({projectName:e,debug:!1,testing:jx}),Ce&&Ce.email&&(window.DebalesChat.identify(Ce.email,{name:Ce.name,phone:Ce.phone,email:Ce.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:Ce.email,first_name:Ce.name,phone:Ce.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const le=tt.useRef(null),P=jn(_n.CLICKED_QUESTIONS,{botId:e}),[ve,Ie]=ie.useState(()=>{try{const Ce=sessionStorage.getItem(P);return Ce?new Set(JSON.parse(Ce)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(P,JSON.stringify(Array.from(ve)))}catch(Ce){console.error("Failed to save to sessionStorage:",Ce)}},[ve]);const Le=ie.useCallback((Ce,Je)=>{Ce?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:Ce,source:Je,projectId:e}})),setTimeout(()=>{W(!0)},50)):(W(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:Ce,source:Je,projectId:e}})))},[]);ie.useEffect(()=>{const Ce=Je=>{J(Je.detail.isOpen),Je.detail.isOpen&&setTimeout(()=>W(!0),50),window.DebalesChat.isOpen=Je.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:Je.detail.isOpen,source:Je.detail.source})};return window.addEventListener(jr.OPEN_STATE_CHANGE,Ce),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,Ce)}},[]),ie.useEffect(()=>{const Ce=Je=>{J(Je.detail.isOpen),window.DebalesChat.isOpen=Je.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:Je.detail.isOpen})};return window.addEventListener(jr.OPEN_STATE_CHANGE,Ce),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,Ce)}},[]);const[Mt,Ze]=tt.useState(!1),[nt,Bt]=tt.useState(()=>{const Ce=jn(_n.PENDING_BULK_ITEMS,{botId:e}),Je=sessionStorage.getItem(Ce);return Je?JSON.parse(Je):[]});tt.useEffect(()=>{const Ce=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(Ce,JSON.stringify(nt))},[nt,e]);const[zt,rt]=ie.useState(!1),[st,yt]=ie.useState({name:"",email:"",message:""}),[_t,kt]=ie.useState([]),[Et,ne]=ie.useState({name:"",email:"",message:""}),[ae,ge]=ie.useState(null),[Be,Te]=ie.useState(!1),qe=Fl("exit_model"),[at,ht]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[_e,we]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1}),[bt,lt]=ie.useState(!1),[wt,Tt]=ie.useState(!0),[Kt,Ht]=ie.useState(!1),[mn,pt]=ie.useState(!1),[Vt,mt]=ie.useState(!1),[At,Rn]=ie.useState(!1),pr=2e3,Yn=ie.useCallback(()=>{const Ce=le.current;if(!Ce){mt(!1),Rn(!1),Tt(!0);return}if(ke(e)){mt(!1);return}const Je=Ce.scrollTop,se=Ce.scrollHeight,Ae=Ce.clientHeight,z=se>Ae,X=1,ce=Je<=X,be=Je+Ae>=se-X;z?(mt(!ce),Rn(!be),Tt(be)):(mt(!1),Rn(!1),Tt(!0))},[le,mt,Rn,Tt]);tt.useEffect(()=>{const Ce=le.current;if(oe&&Ce){Yn(),Ce.addEventListener("scroll",Yn);const Je=new ResizeObserver(Yn);return Je.observe(Ce),()=>{Ce.removeEventListener("scroll",Yn),Je.unobserve(Ce)}}else oe||(mt(!1),Rn(!1),Tt(!0))},[oe,h,bt,Yn]);const[tr,Ar]=fm(_n.SHOW_CART_SUMMARY,!0);tt.useEffect(()=>{var Ce,Je,se,Ae,z,X;if(h.length>0&&!p){const ce=h[h.length-1],be=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),Se=ce.isBot&&ce.conversationId===l&&ce.conversationId!==be,Qe=(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0&&ce.conversationId===l;if(Se){lt(!0),we(Ln=>({...Ln,initialMessage:!0})),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),ce.conversationId||""),ht({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const Rt=2e3;let Qt=Rt;const en=[{type:"collections",condition:((Ce=ce.collections)==null?void 0:Ce.length)&&((Je=ce.collections)==null?void 0:Je.length)>0},{type:"products",condition:((se=ce.products)==null?void 0:se.length)&&((Ae=ce.products)==null?void 0:Ae.length)>0},{type:"leadingQueries",condition:h.length>=1&&((z=ce.leading_queries)==null?void 0:z.length)&&((X=ce.leading_queries)==null?void 0:X.length)>0},{type:"cartSummary",condition:(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0},{type:"bulkItems",condition:(nt==null?void 0:nt.length)>0}].filter(Ln=>Ln.condition);if(en.length===0){lt(!1),we(Ln=>({...Ln,initialMessage:!1,leadingQueries:!1}));return}en.forEach(({type:Ln},rn)=>{setTimeout(()=>{if(we(lr=>({...lr,[Ln]:!0})),ht(lr=>({...lr,[Ln]:!0})),wt&&le.current){const lr=le.current;lr.scrollHeight-lr.scrollTop<=lr.clientHeight&&_a(le)}rn===en.length-1&<(!1)},Qt),Qt+=Rt})}else Qe&&ht(Rt=>({...Rt,cartSummary:!0}))}},[h,p,l,I==null?void 0:I.itemCount,nt==null?void 0:nt.length,wt,e]),tt.useEffect(()=>{if(!o&&h.length>0){const Ce=le.current;Ce&&wt&&Ce.scrollHeight-Ce.scrollTop<=Ce.clientHeight+100&&setTimeout(()=>_a(le),100)}},[h.length,o,wt]),tt.useEffect(()=>{const Ce=document.querySelector('meta[name="viewport"]'),Je=Ce==null?void 0:Ce.content;if(oe){let se=Ce;const Ae=window.matchMedia("(max-width: 768px)").matches;se?se.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(se=document.createElement("meta"),se.name="viewport",se.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(se)),Ae&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const z=se;return()=>{Je&&z&&(z.content=Je),Ae&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[oe,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{const Ce=setTimeout(()=>{Ze(!0)},1e3);return()=>clearTimeout(Ce)},[]),tt.useEffect(()=>{if(oe&&h.length>0&&!o){const Ce=le.current;Ce&&setTimeout(()=>{Ce.scrollTop=Ce.scrollHeight},100)}},[oe,h.length,o]),tt.useEffect(()=>{I!=null&&I.itemCount&&I.itemCount===0&&!o&&setTimeout(()=>_a(le),100)},[I==null?void 0:I.itemCount,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const kr=tt.useRef(window.location.pathname.split("?")[0]),Zn=tt.useRef(w),nr=Fl("acquisition_agent");tt.useEffect(()=>{Zn.current=w},[w]);const Qn=tt.useCallback(async Ce=>{console.log("Calling acquisition API for path:",Ce);try{const Je=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(Je.ok){const se=await Je.json();if(se.Popup_Message){const Ae=[...Zn.current];Ae.push({question:se.Popup_Message,answer:"",path:Ce,nameSpace:e,type:"dynamic",Follow_up_Question:se.Follow_up_Question}),T(Ae)}}}catch(Je){console.error("Error fetching acquisition data:",Je)}},[e,T]),ai=tt.useCallback(()=>{const Ce=window.location.pathname.split("?")[0],Je=kr.current;console.log("URL change detected:",{currentPath:Je,newPath:Ce}),Ce!==Je&&(console.log("Path changed, calling acquisition API"),kr.current=Ce,Qn(Ce))},[Qn]);tt.useEffect(()=>{if(!nr||(t==null?void 0:t.show_bot)===!1)return;console.log("Setting up acquisition agent");const Ce=window.location.pathname.split("?")[0];Qn(Ce);const Je=()=>{ai()},se=history.pushState,Ae=history.replaceState;return history.pushState=function(...z){se.apply(this,z),setTimeout(ai,0)},history.replaceState=function(...z){Ae.apply(this,z),setTimeout(ai,0)},window.addEventListener("popstate",Je),()=>{window.removeEventListener("popstate",Je),history.pushState=se,history.replaceState=Ae}},[nr,t==null?void 0:t.show_bot,Qn,ai]);const[Tr,Hn]=ie.useState(!1),[on,vn]=ie.useState(!1),[ln,Zi]=ie.useState(null),gr=async Ce=>{const Je=er();if(W(!1),Ce&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Je,userRating:Ce,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(se){console.error("Error submitting rating:",se)}setTimeout(()=>{vn(!1),Le(!1,"close_button_clicked")},1e3)},ea=Ce=>{y(!0),nt.forEach(se=>{console.debug("handleBulkItemsAddition : Adding item to cart:",se),N(se.id,se.quantity)}),Ar(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:nt,message:Ce});const Je=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:Ce,isBot:!0}];m(Je),x(Je),d(Ce),Bt([]),y(!1)},bo=()=>{var Ce;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((Ce=window.shiprocketCheckoutEvents)!=null&&Ce.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1},Ot=async Ce=>{Ce.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(I==null?void 0:I.total),cart:I}),q({dbls_method:"checkout_clicked"}),bo()&&Le(!1,"checkout_clicked")},[si,Or]=ie.useState([]);tt.useEffect(()=>{const Ce=Qie(aC(w));Or(Ce)},[w]);const li=tt.useMemo(()=>si.map(Ce=>{if(Array.isArray(Ce)){const Je=Ce.filter(Ae=>!ve.has(Ae.question));if(Je.length===0)return null;const se={isHighlighted:Ce[0].isHighlighted,enable:Ce[0].enable,type:Ce[0].type};return Je.map(Ae=>({...Ae,...se}))}else return ve.has(Ce.question)?null:Ce}).filter(Boolean),[si,ve]);tt.useEffect(()=>{const Ce=Ae=>{const z=Ae.detail.formId;switch(Ae.detail.type){case"open":case"embedOpen":setTimeout(()=>{const ce=Je(z);ce&&he(ce)},800);break;case"close":fe&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{Le(!0,"klaviyo_form_closed"),H(z),r({message:fe,fromKlaviyo:!0})},1e4);break}},Je=Ae=>{const z=document.querySelector(`[data-testid="klaviyo-form-${Ae}"]`);if(console.log(`formElement text ${Ae} =>`,z==null?void 0:z.innerText,z==null?void 0:z.textContent),z instanceof HTMLElement){const X=z.innerText||z.textContent;if(X)return console.log("Found form text:",X),`=> Klaviyo form content:
|
|
2617
|
+
`,AU=({botId:e})=>{var $r,et;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,setSuggestedQuestions:T,showUserInfoModel:k,setShowUserInfoModel:A,isUserInfoNeeded:D,setPendingQuestion:O}=Ad(),{cart:I,addToCart:N,generateCartUrl:L,addCartAttributes:q}=_d(),G=Dc("use-chatbot-icon-size"),V=Gc.detect(),F=t==null?void 0:t.isLeft,Y=cA(),ee=t==null?void 0:t.heightOption,[oe,J]=tt.useState(!1),[me,W]=tt.useState(!1),[fe,he]=ie.useState(""),[Me,H]=ie.useState(""),[,te]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let Ce=Io();if(!Ce&&window.Thinkific){const Je=window.Thinkific.current_user;Je&&(Ce={name:Je.full_name,email:Je.email},Fc(Ce))}Bu.init({projectName:e,debug:!1,testing:jx}),Ce&&Ce.email&&(window.DebalesChat.identify(Ce.email,{name:Ce.name,phone:Ce.phone,email:Ce.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:Ce.email,first_name:Ce.name,phone:Ce.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const le=tt.useRef(null),P=jn(_n.CLICKED_QUESTIONS,{botId:e}),[ve,Ie]=ie.useState(()=>{try{const Ce=sessionStorage.getItem(P);return Ce?new Set(JSON.parse(Ce)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(P,JSON.stringify(Array.from(ve)))}catch(Ce){console.error("Failed to save to sessionStorage:",Ce)}},[ve]);const Le=ie.useCallback((Ce,Je)=>{Ce?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:Ce,source:Je,projectId:e}})),setTimeout(()=>{W(!0)},50)):(W(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:Ce,source:Je,projectId:e}})))},[]);ie.useEffect(()=>{const Ce=Je=>{J(Je.detail.isOpen),Je.detail.isOpen&&setTimeout(()=>W(!0),50),window.DebalesChat.isOpen=Je.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:Je.detail.isOpen,source:Je.detail.source})};return window.addEventListener(jr.OPEN_STATE_CHANGE,Ce),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,Ce)}},[]),ie.useEffect(()=>{const Ce=Je=>{J(Je.detail.isOpen),window.DebalesChat.isOpen=Je.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:Je.detail.isOpen})};return window.addEventListener(jr.OPEN_STATE_CHANGE,Ce),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,Ce)}},[]);const[Mt,Ze]=tt.useState(!1),[nt,Bt]=tt.useState(()=>{const Ce=jn(_n.PENDING_BULK_ITEMS,{botId:e}),Je=sessionStorage.getItem(Ce);return Je?JSON.parse(Je):[]});tt.useEffect(()=>{const Ce=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(Ce,JSON.stringify(nt))},[nt,e]);const[zt,rt]=ie.useState(!1),[st,yt]=ie.useState({name:"",email:"",message:""}),[_t,kt]=ie.useState([]),[Et,ne]=ie.useState({name:"",email:"",message:""}),[ae,ge]=ie.useState(null),[Be,Te]=ie.useState(!1),qe=Fl("exit_model"),[at,ht]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[_e,we]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1}),[bt,lt]=ie.useState(!1),[wt,Tt]=ie.useState(!0),[Kt,Ht]=ie.useState(!1),[mn,pt]=ie.useState(!1),[Vt,mt]=ie.useState(!1),[At,Rn]=ie.useState(!1),pr=2e3,Yn=ie.useCallback(()=>{const Ce=le.current;if(!Ce){mt(!1),Rn(!1),Tt(!0);return}if(Ee(e)){mt(!1);return}const Je=Ce.scrollTop,se=Ce.scrollHeight,ke=Ce.clientHeight,z=se>ke,X=1,ce=Je<=X,be=Je+ke>=se-X;z?(mt(!ce),Rn(!be),Tt(be)):(mt(!1),Rn(!1),Tt(!0))},[le,mt,Rn,Tt]);tt.useEffect(()=>{const Ce=le.current;if(oe&&Ce){Yn(),Ce.addEventListener("scroll",Yn);const Je=new ResizeObserver(Yn);return Je.observe(Ce),()=>{Ce.removeEventListener("scroll",Yn),Je.unobserve(Ce)}}else oe||(mt(!1),Rn(!1),Tt(!0))},[oe,h,bt,Yn]);const[tr,Ar]=fm(_n.SHOW_CART_SUMMARY,!0);tt.useEffect(()=>{var Ce,Je,se,ke,z,X;if(h.length>0&&!p){const ce=h[h.length-1],be=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),Se=ce.isBot&&ce.conversationId===l&&ce.conversationId!==be,Qe=(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0&&ce.conversationId===l;if(Se){lt(!0),we(Ln=>({...Ln,initialMessage:!0})),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),ce.conversationId||""),ht({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const Rt=2e3;let Qt=Rt;const en=[{type:"collections",condition:((Ce=ce.collections)==null?void 0:Ce.length)&&((Je=ce.collections)==null?void 0:Je.length)>0},{type:"products",condition:((se=ce.products)==null?void 0:se.length)&&((ke=ce.products)==null?void 0:ke.length)>0},{type:"leadingQueries",condition:h.length>=1&&((z=ce.leading_queries)==null?void 0:z.length)&&((X=ce.leading_queries)==null?void 0:X.length)>0},{type:"cartSummary",condition:(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0},{type:"bulkItems",condition:(nt==null?void 0:nt.length)>0}].filter(Ln=>Ln.condition);if(en.length===0){lt(!1),we(Ln=>({...Ln,initialMessage:!1,leadingQueries:!1}));return}en.forEach(({type:Ln},rn)=>{setTimeout(()=>{if(we(lr=>({...lr,[Ln]:!0})),ht(lr=>({...lr,[Ln]:!0})),wt&&le.current){const lr=le.current;lr.scrollHeight-lr.scrollTop<=lr.clientHeight&&_a(le)}rn===en.length-1&<(!1)},Qt),Qt+=Rt})}else Qe&&ht(Rt=>({...Rt,cartSummary:!0}))}},[h,p,l,I==null?void 0:I.itemCount,nt==null?void 0:nt.length,wt,e]),tt.useEffect(()=>{if(!o&&h.length>0){const Ce=le.current;Ce&&wt&&Ce.scrollHeight-Ce.scrollTop<=Ce.clientHeight+100&&setTimeout(()=>_a(le),100)}},[h.length,o,wt]),tt.useEffect(()=>{const Ce=document.querySelector('meta[name="viewport"]'),Je=Ce==null?void 0:Ce.content;if(oe){let se=Ce;const ke=window.matchMedia("(max-width: 768px)").matches;se?se.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(se=document.createElement("meta"),se.name="viewport",se.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(se)),ke&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const z=se;return()=>{Je&&z&&(z.content=Je),ke&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[oe,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{const Ce=setTimeout(()=>{Ze(!0)},1e3);return()=>clearTimeout(Ce)},[]),tt.useEffect(()=>{if(oe&&h.length>0&&!o){const Ce=le.current;Ce&&setTimeout(()=>{Ce.scrollTop=Ce.scrollHeight},100)}},[oe,h.length,o]),tt.useEffect(()=>{I!=null&&I.total&&!o&&setTimeout(()=>_a(le),100)},[I==null?void 0:I.total,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const kr=tt.useRef(window.location.pathname.split("?")[0]),Zn=tt.useRef(w),nr=Fl("acquisition_agent");tt.useEffect(()=>{Zn.current=w},[w]);const Qn=tt.useCallback(async Ce=>{console.log("Calling acquisition API for path:",Ce);try{const Je=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(Je.ok){const se=await Je.json();if(se.Popup_Message){const ke=[...Zn.current];ke.push({question:se.Popup_Message,answer:"",path:Ce,nameSpace:e,type:"dynamic",Follow_up_Question:se.Follow_up_Question}),T(ke)}}}catch(Je){console.error("Error fetching acquisition data:",Je)}},[e,T]),ai=tt.useCallback(()=>{const Ce=window.location.pathname.split("?")[0],Je=kr.current;console.log("URL change detected:",{currentPath:Je,newPath:Ce}),Ce!==Je&&(console.log("Path changed, calling acquisition API"),kr.current=Ce,Qn(Ce))},[Qn]);tt.useEffect(()=>{if(!nr||(t==null?void 0:t.show_bot)===!1)return;console.log("Setting up acquisition agent");const Ce=window.location.pathname.split("?")[0];Qn(Ce);const Je=()=>{ai()},se=history.pushState,ke=history.replaceState;return history.pushState=function(...z){se.apply(this,z),setTimeout(ai,0)},history.replaceState=function(...z){ke.apply(this,z),setTimeout(ai,0)},window.addEventListener("popstate",Je),()=>{window.removeEventListener("popstate",Je),history.pushState=se,history.replaceState=ke}},[nr,t==null?void 0:t.show_bot,Qn,ai]);const[Tr,Hn]=ie.useState(!1),[on,vn]=ie.useState(!1),[ln,Zi]=ie.useState(null),gr=async Ce=>{const Je=er();if(W(!1),Ce&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Je,userRating:Ce,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(se){console.error("Error submitting rating:",se)}setTimeout(()=>{vn(!1),Le(!1,"close_button_clicked")},1e3)},ea=Ce=>{y(!0),nt.forEach(se=>{console.debug("handleBulkItemsAddition : Adding item to cart:",se),N(se.id,se.quantity)}),Ar(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:nt,message:Ce});const Je=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:Ce,isBot:!0}];m(Je),x(Je),d(Ce),Bt([]),y(!1)},bo=()=>{var Ce;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((Ce=window.shiprocketCheckoutEvents)!=null&&Ce.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1},Ot=async Ce=>{Ce.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(I==null?void 0:I.total),cart:I}),q({dbls_method:"checkout_clicked"}),bo()&&Le(!1,"checkout_clicked")},[si,Or]=ie.useState([]);tt.useEffect(()=>{const Ce=Qie(aC(w));Or(Ce)},[w]);const li=tt.useMemo(()=>si.map(Ce=>{if(Array.isArray(Ce)){const Je=Ce.filter(ke=>!ve.has(ke.question));if(Je.length===0)return null;const se={isHighlighted:Ce[0].isHighlighted,enable:Ce[0].enable,type:Ce[0].type};return Je.map(ke=>({...ke,...se}))}else return ve.has(Ce.question)?null:Ce}).filter(Boolean),[si,ve]);tt.useEffect(()=>{const Ce=ke=>{const z=ke.detail.formId;switch(ke.detail.type){case"open":case"embedOpen":setTimeout(()=>{const ce=Je(z);ce&&he(ce)},800);break;case"close":fe&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{Le(!0,"klaviyo_form_closed"),H(z),r({message:fe,fromKlaviyo:!0})},1e4);break}},Je=ke=>{const z=document.querySelector(`[data-testid="klaviyo-form-${ke}"]`);if(console.log(`formElement text ${ke} =>`,z==null?void 0:z.innerText,z==null?void 0:z.textContent),z instanceof HTMLElement){const X=z.innerText||z.textContent;if(X)return console.log("Found form text:",X),`=> Klaviyo form content:
|
|
2618
2618
|
|
|
2619
2619
|
`+X+`
|
|
2620
2620
|
|
|
2621
|
-
=> User Action: Klaviyo form closed`}return""},se=Ae=>{Ae instanceof CustomEvent&&Ce(Ae)};return window.addEventListener("klaviyoForms",se),()=>{window.removeEventListener("klaviyoForms",se)}},[fe,t,r]);const[$o,Ai]=ie.useState(!1),Kn=ee==="Highest"?"120px":ee==="Higher"?"60px":"15px",_o=async()=>{if(Be){console.warn("Support request called while already in support mode");return}try{const Ce=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:st.name,userEmail:st.email,userMessage:st.message,tag:"support"})});if(Ce.ok){const Je=await Ce.json(),{contactId:se,ticketId:Ae}=Je;if(se&&Ae){const X=hp.connect(`${c7}/api/v1/live-agent`);if(!X){console.error("Failed to create support socket connection"),m(en=>[...en,{text:"Sorry, we couldn't establish a connection to support. Please try again.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}X.emit("join_ticket_conversation",{ticketID:Ae,role:"contact",contactID:se,nameSpace:e});const ce=en=>{console.log("Joined support conversation:",en),m(Ln=>[...Ln,{text:"You are now connected to live support. A support agent will join shortly.",isBot:!0,conversationId:`support-live-${Date.now()}`}])},be=en=>{console.log("Received conversation history:",en.length,"messages")},Se=en=>{console.log("Support agent joined:",en),m(Ln=>[...Ln,{text:"A support agent has joined the conversation. You can now chat directly with them.",isBot:!0,conversationId:`agent-joined-${Date.now()}`}])},Qe=en=>{console.log("New support message:",en),m(Ln=>[...Ln,{text:en.text||en.content,isBot:!0,conversationId:`support-msg-${Date.now()}`}])},Rt=()=>{console.log("Support connection disconnected"),m(en=>[...en,{text:"Support connection has ended. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-end-${Date.now()}`}]),Te(!1)};X.on("joined_ticket_conversation",ce),X.on("conversation_history",be),X.on("participant_joined",Se),X.on("message",Qe),X.on("disconnect",Rt),ge(X),Te(!0);const Qt=()=>{X.off("joined_ticket_conversation",ce),X.off("conversation_history",be),X.off("participant_joined",Se),X.off("new_message",Qe),X.off("disconnect",Rt)};X.cleanupHandlers=Qt}const z=`support-confirm-${Date.now()}`;m(X=>[...X,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:_t,conversationId:z}]),d(z),ht(X=>({...X,leadingQueries:!0})),kt([]),console.log("Connected to support with existing user info:",Io())}else{const Je=await Ce.json();console.error("Failed to connect to support:",Je),m(se=>[...se,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(Je=>[...Je,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},xr=()=>{if(ke(e)){const Ae=dp("https://test.thecollective.in/content/customersupport");Ae.isValid&&(t!=null&&t.shopifyShopDomain&&(Ae.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(Ae.url.toString()),"_blank"));return}if(Be){console.warn("Already in support mode");return}const Ce=Io();let Je=[];const se=h[h.length-1];se!=null&&se.leading_queries&&se.leading_queries.length>0?Je=se.leading_queries:h.length<=1&&(Je=si.flatMap(Ae=>Array.isArray(Ae)?Ae.map(z=>z.question):[Ae.question]).slice(0,4)),kt(Je),Ce&&Ce.name&&Ce.email&&yt({name:Ce==null?void 0:Ce.name,email:Ce==null?void 0:Ce.email,message:""}),m(Ae=>[...Ae,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),rt(!0)},ki=async Ce=>{Ce.preventDefault();const Je={name:"",email:"",message:""};let se=!0;const Ae=st.name.trim(),z=st.message.trim();Ae||(Je.name="Name cannot be empty or just whitespace.",se=!1),(!st.email||!rm.isEmail(st.email))&&(Je.email="Please enter a valid email address.",se=!1),z||(Je.message="Message cannot be empty or just whitespace.",se=!1),ne(Je),se&&(Fc({name:Ae,email:st.email}),rt(!1),m(X=>X.slice(0,-1)),await _o())};tt.useEffect(()=>{if(h.length===1&&h[0].isBot){we(Je=>({...Je,leadingQueries:!0}));const Ce=setTimeout(()=>{we(Je=>({...Je,leadingQueries:!1}))},2e3);return()=>clearTimeout(Ce)}},[h]),tt.useEffect(()=>()=>{ae&&(ae.cleanupHandlers&&ae.cleanupHandlers(),hp.disconnect(),ge(null),Te(!1))},[ae]);const Dr=()=>{hp.emit("send_message",{content:"The Contact has left the conversation.",type:"text",timestamp:new Date().toISOString()}),hp.emit("leave_conversation",{role:"contact"}),ae&&(ae.cleanupHandlers&&ae.cleanupHandlers(),hp.disconnect(),ge(null),Te(!1),m(Ce=>[...Ce,{text:"You have exited live support mode. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-exit-${Date.now()}`}]))},wa=Ce=>{if(!Be){console.warn("Attempted to send support message when not in support mode");return}if(!hp.getIsConnected()){console.error("Support socket is not connected"),m(Je=>[...Je,{text:"Connection lost. Please wait while we reconnect you to support.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}hp.emit("send_message",{content:Ce,type:"text",timestamp:new Date().toISOString()}),m(Je=>[...Je,{text:Ce,isBot:!1,conversationId:`support-user-${Date.now()}`}])};return console.debug("main render"),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(rfe,{}),!oe&&(li==null?void 0:li.length)!==0&&R.jsx(nfe,{className:Mt?"visible":"",$botId:e,$iconSize:G,$removeLogoBackground:t.removeLogoBackground,topOffset:Kn,style:{right:F?"auto":"24px",left:F?"24px":"auto",display:"flex",flexDirection:"column",alignItems:F?"flex-start":"flex-end"},children:_e.suggestions?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:_e.suggestions})}):li.map((Ce,Je)=>{if(Array.isArray(Ce)){const se=Ce.map(Ae=>({question:Ae.question,isHighlighted:Ae.isHighlighted??!1})).filter(Ae=>!ve.has(Ae.question));return R.jsx(wU,{$index:Je,$totalCount:li.length,children:R.jsx(gue,{messages:se,botId:e,uiData:t,onClick:Ae=>{const z=Ce.find(X=>X.question===Ae);Le(!0,"suggested_question_clicked"),Ie(X=>{const ce=new Set(X);return ce.add(Ae),ce}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:z}),!D&&z?(Ht(!1),pt(!0),r({message:z.Follow_up_Question??z.question,answer:z==null?void 0:z.answer,products:z==null?void 0:z.products,fromKlaviyo:!1,leading_queries:z==null?void 0:z.leading_queries,followUpQuestion:z==null?void 0:z.Follow_up_Question,messType:"suggested_question"})):(Ht(!1),pt(!0),A(!0),O(z))}})},Je)}else return R.jsx(wU,{$index:Je,$totalCount:li.length,children:R.jsx(hue,{value:`${Ce.question}`,index:Je,botId:e,uiData:t,onClose:()=>{Ie(se=>{const Ae=new Set(se);return Ae.add(Ce.question),Ae})},onClick:()=>{Le(!0,"suggested_question_clicked"),Ie(se=>{const Ae=new Set(se);return Ae.add(Ce.question),Ae}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:Ce}),D?(Ht(!1),pt(!0),A(!0),O(Ce)):(Ht(!1),pt(!0),r({message:Ce.question,answer:Ce.answer,products:Ce.products,leading_queries:Ce.leading_queries,followUpQuestion:Ce.Follow_up_Question,messType:"suggested_question"}))},isHighlighted:Ce.isHighlighted??!1})},Je)})}),R.jsxs(Nce,{$topOffset:Kn,$removeLogoBackground:t.removeLogoBackground,style:{display:oe?"none":"inline-flex",right:F?"auto":"24px",left:F?"24px":"auto"},children:[R.jsx(zce,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Kn,$iconSize:G}),R.jsx(Fce,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:G,$removeLogoBackground:t.removeLogoBackground,topOffset:Kn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),Le(!oe,"chat_button_clicked"),!oe){const Ce=S();Ce.length>0?(m(Ce),Ht(!1),pt(!0)):(Ht(!0),pt(!1),we(Je=>({...Je,initialMessage:!0,leadingQueries:!0})),ht({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1}),setTimeout(()=>{Ht(!1),pt(!0),we(se=>({...se,initialMessage:!1}));const Je={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([Je]),we(se=>({...se,leadingQueries:!0})),setTimeout(()=>{ht(se=>({...se,leadingQueries:!0}))},pr)},pr))}},"aria-label":"Chat",style:{display:oe?"none":"inline-flex",right:F?"auto":"24px",left:F?"24px":"auto"},children:R.jsx(Uce,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"})})]}),oe&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Pce,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:F,$topOffset:Kn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:me,"data-testid":"debales-chat-container",children:[R.jsxs(Yce,{$backgroundColor:ke(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(vU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),ke(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(jce,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(qce,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(Hce,{})]})]}):R.jsx(Gce,{children:R.jsxs(Vce,{children:[R.jsx(vU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[Be&&R.jsxs("div",{style:{background:"#4CAF50",color:"white",padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:"500",display:"flex",alignItems:"center",gap:"4px"},children:[R.jsx("span",{style:{fontSize:"8px"},children:"●"}),"Live Support",R.jsx("button",{onClick:Dr,style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"12px",marginLeft:"4px",padding:"2px 4px",borderRadius:"4px"},title:"Exit Support",children:"✕"})]}),R.jsxs(ife,{children:[R.jsx(yU,{$iconBG:t.backgroundColor,onClick:xr,"aria-label":"Support","data-testid":"debales-support-button",disabled:Be,style:{opacity:Be?.5:1,cursor:Be?"not-allowed":"pointer"},children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(CU,{children:Be?"Already connected to live support":"Click to chat with a Live Support Agent now."})]}),R.jsx(yU,{$iconBG:t.backgroundColor,onClick:()=>{qe?vn(!0):Le(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(ffe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Vt?1:0}})]}),R.jsxs(Kce,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[$o&&((et=($r=t.pluginConfig)==null?void 0:$r.collectedUserInfo)==null?void 0:et.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{Ai(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:ln,showModel:Tr,setShowModel:Hn,onVariantSelect:Ce=>{console.debug("VariantSelectionModel : Adding item to cart:",Ce),N(Ce.id,1,{productId:(ln==null?void 0:ln.productId)||""}),Ar(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:Ce.title,price:Number(Ce.price),link:`https://${t.shopifyShopDomain}/variants/${Ce.id}`,message:l,chatId:er()+e})},botId:e}),on&&R.jsx(OA,{setShowExitModal:vn,handleCloseChatbot:gr,chatId:er()+e}),R.jsxs(Zce,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:le,$mobileDisplayMode:t.mobileDisplayMode,"data-testid":"debales-conversation-group",children:[R.jsx(ufe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Vt?1:0}}),R.jsxs(Qce,{children:[mn&&h.map((Ce,Je)=>{const se=Ce.isBot,Ae=sp(Ce.text);return Ce.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[se&&R.jsxs(xU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:se?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(SU,{children:[Ae.map(z=>R.jsx("div",{children:R.jsx(Ei,{isBot:se,children:R.jsx(od,{components:{a:({href:X,children:ce})=>{const be=()=>{X!=null&&X.startsWith("https://shop.catch.org/")&&window.DebalesChat.track(Gt.SHOPIFY_LINK_CLICKED)};return R.jsx("a",{href:X,target:"_blank",onClick:be,children:ce})}},remarkPlugins:[VS,lC],children:z})})})),Ce.collections&&l===Ce.conversationId&&at.collections&&R.jsx(kA,{message:Ce,botId:e,uidata:t,onSendMessage:r,loading:p}),Ce.products&&l===Ce.conversationId&&at.products&&R.jsx(MA,{message:Ce,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:V,setShowVariantModel:Hn,setSelectedProduct:Zi,setCartVersion:te}),o&&R.jsx(aD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Me]),Le(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),I&&I.itemCount>0&&l===Ce.conversationId&&at.cartSummary&&tr&&R.jsx(wA,{onCheckout:Ot,onKeepShopping:()=>{Ar(!1)}}),nt&&nt.length>0&&l===Ce.conversationId&&at.bulkItems&&R.jsx(sA,{onClick:()=>ea(Ce.conversationId),children:"Add Bulk Items to Cart"}),k&&h.indexOf(Ce)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:z=>{var ce,be;const X=typeof z=="function"?z(k):z;A(X),!X&&((be=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)!=null&&be.discount)&&Ai(!0)},inChat:!0,showFormInstructions:!1})}),zt&&h.indexOf(Ce)===h.length-1&&R.jsxs(ofe,{onSubmit:ki,noValidate:!0,"data-testid":"debales-support-form",children:[ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:st.name,onChange:z=>yt(X=>({...X,name:z.target.value})),required:!0,error:Et.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:st.email,onChange:z=>yt(X=>({...X,email:z.target.value})),required:!0,error:Et.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:st.message,onChange:z=>yt(X=>({...X,message:z.target.value})),required:!0,error:Et.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(sD,{children:[R.jsxs(lD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(EU,{type:"text",required:!0,value:st.name,onChange:z=>yt(X=>({...X,name:z.target.value})),placeholder:"John"}),Et.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.name})]}),R.jsxs(sD,{children:[R.jsxs(lD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(EU,{type:"email",required:!0,value:st.email,onChange:z=>yt(X=>({...X,email:z.target.value})),placeholder:"olivia@untitledui.com"}),Et.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.email})]}),R.jsxs(sD,{children:[R.jsxs(lD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(afe,{required:!0,value:st.message,onChange:z=>yt(X=>({...X,message:z.target.value})),placeholder:"I need help with..."}),Et.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.message})]})]}),R.jsx(lfe,{children:R.jsx(sfe,{type:"submit",children:"Submit"})})]}),bt&&!p&&l===Ce.conversationId&&R.jsx(Ei,{isBot:se,children:R.jsx(vs,{loading:bt})})]})]}),!se&&R.jsx(efe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!se,children:R.jsx(od,{children:Ce.text})})}),h.length==1&&Je==0&&!k&&R.jsx(aD,{children:_e.leadingQueries?R.jsx(Ei,{isBot:se??!0,children:R.jsx(vs,{loading:_e.leadingQueries})}):si.map(z=>Array.isArray(z)?z[0]:z).map((z,X)=>R.jsxs(_U,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{D?(A(!0),O({question:z.question,answer:z.answer,products:z.products,path:"/",nameSpace:window.DebalesChat.projectId})):(Ht(!1),pt(!0),r({message:z.question,answer:z.answer,products:z.products,leading_queries:z.leading_queries,followUpQuestion:z.Follow_up_Question,messType:"leading_query"})),Ie(ce=>{const be=new Set(ce);return be.add(z.question),be}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:z.question})},disabled:p,$disabled:p,children:[z.question,R.jsx(bU,{color:t.callToActionFontColor})]},X))}),Ce.leading_queries&&Ce.leading_queries.length>0&&l===Ce.conversationId&&at.leadingQueries&&!o&&!k&&R.jsx(aD,{children:Ce.leading_queries.map((z,X)=>R.jsxs(_U,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{D?(A(!0),O({question:z,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:z,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:z})},disabled:p,$disabled:p,children:[z,R.jsx(bU,{color:t.callToActionFontColor})]},X))})]},Je)}),(p||Kt)&&!Be&&R.jsxs(xU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(SU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||Kt})})})})]})]}),R.jsx(cfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:At?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(Jce,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1,isInSupportMode:Be,onSupportMessage:wa})}),(t.debales_branding??!0)&&R.jsxs(Wce,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Xce,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),Y.shadowRoot)]})},dfe=K.p`
|
|
2621
|
+
=> User Action: Klaviyo form closed`}return""},se=ke=>{ke instanceof CustomEvent&&Ce(ke)};return window.addEventListener("klaviyoForms",se),()=>{window.removeEventListener("klaviyoForms",se)}},[fe,t,r]);const[$o,Ai]=ie.useState(!1),Kn=ee==="Highest"?"120px":ee==="Higher"?"60px":"15px",_o=async()=>{if(Be){console.warn("Support request called while already in support mode");return}try{const Ce=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:st.name,userEmail:st.email,userMessage:st.message,tag:"support"})});if(Ce.ok){const Je=await Ce.json(),{contactId:se,ticketId:ke}=Je;if(se&&ke){const X=hp.connect(`${c7}/api/v1/live-agent`);if(!X){console.error("Failed to create support socket connection"),m(en=>[...en,{text:"Sorry, we couldn't establish a connection to support. Please try again.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}X.emit("join_ticket_conversation",{ticketID:ke,role:"contact",contactID:se,nameSpace:e});const ce=en=>{console.log("Joined support conversation:",en),m(Ln=>[...Ln,{text:"You are now connected to live support. A support agent will join shortly.",isBot:!0,conversationId:`support-live-${Date.now()}`}])},be=en=>{console.log("Received conversation history:",en.length,"messages")},Se=en=>{console.log("Support agent joined:",en),m(Ln=>[...Ln,{text:"A support agent has joined the conversation. You can now chat directly with them.",isBot:!0,conversationId:`agent-joined-${Date.now()}`}])},Qe=en=>{console.log("New support message:",en),m(Ln=>[...Ln,{text:en.text||en.content,isBot:!0,conversationId:`support-msg-${Date.now()}`}])},Rt=()=>{console.log("Support connection disconnected"),m(en=>[...en,{text:"Support connection has ended. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-end-${Date.now()}`}]),Te(!1)};X.on("joined_ticket_conversation",ce),X.on("conversation_history",be),X.on("participant_joined",Se),X.on("message",Qe),X.on("disconnect",Rt),ge(X),Te(!0);const Qt=()=>{X.off("joined_ticket_conversation",ce),X.off("conversation_history",be),X.off("participant_joined",Se),X.off("new_message",Qe),X.off("disconnect",Rt)};X.cleanupHandlers=Qt}const z=`support-confirm-${Date.now()}`;m(X=>[...X,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:_t,conversationId:z}]),d(z),ht(X=>({...X,leadingQueries:!0})),kt([]),console.log("Connected to support with existing user info:",Io())}else{const Je=await Ce.json();console.error("Failed to connect to support:",Je),m(se=>[...se,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(Je=>[...Je,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},xr=()=>{if(Ee(e)){const ke=dp("https://test.thecollective.in/content/customersupport");ke.isValid&&(t!=null&&t.shopifyShopDomain&&(ke.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(ke.url.toString()),"_blank"));return}if(Be){console.warn("Already in support mode");return}const Ce=Io();let Je=[];const se=h[h.length-1];se!=null&&se.leading_queries&&se.leading_queries.length>0?Je=se.leading_queries:h.length<=1&&(Je=si.flatMap(ke=>Array.isArray(ke)?ke.map(z=>z.question):[ke.question]).slice(0,4)),kt(Je),Ce&&Ce.name&&Ce.email&&yt({name:Ce==null?void 0:Ce.name,email:Ce==null?void 0:Ce.email,message:""}),m(ke=>[...ke,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),rt(!0)},ki=async Ce=>{Ce.preventDefault();const Je={name:"",email:"",message:""};let se=!0;const ke=st.name.trim(),z=st.message.trim();ke||(Je.name="Name cannot be empty or just whitespace.",se=!1),(!st.email||!rm.isEmail(st.email))&&(Je.email="Please enter a valid email address.",se=!1),z||(Je.message="Message cannot be empty or just whitespace.",se=!1),ne(Je),se&&(Fc({name:ke,email:st.email}),rt(!1),m(X=>X.slice(0,-1)),await _o())};tt.useEffect(()=>{if(h.length===1&&h[0].isBot){we(Je=>({...Je,leadingQueries:!0}));const Ce=setTimeout(()=>{we(Je=>({...Je,leadingQueries:!1}))},2e3);return()=>clearTimeout(Ce)}},[h]),tt.useEffect(()=>()=>{ae&&(ae.cleanupHandlers&&ae.cleanupHandlers(),hp.disconnect(),ge(null),Te(!1))},[ae]);const Dr=()=>{hp.emit("send_message",{content:"The Contact has left the conversation.",type:"text",timestamp:new Date().toISOString()}),hp.emit("leave_conversation",{role:"contact"}),ae&&(ae.cleanupHandlers&&ae.cleanupHandlers(),hp.disconnect(),ge(null),Te(!1),m(Ce=>[...Ce,{text:"You have exited live support mode. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-exit-${Date.now()}`}]))},wa=Ce=>{if(!Be){console.warn("Attempted to send support message when not in support mode");return}if(!hp.getIsConnected()){console.error("Support socket is not connected"),m(Je=>[...Je,{text:"Connection lost. Please wait while we reconnect you to support.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}hp.emit("send_message",{content:Ce,type:"text",timestamp:new Date().toISOString()}),m(Je=>[...Je,{text:Ce,isBot:!1,conversationId:`support-user-${Date.now()}`}])};return console.debug("main render"),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(rfe,{}),!oe&&(li==null?void 0:li.length)!==0&&R.jsx(nfe,{className:Mt?"visible":"",$botId:e,$iconSize:G,$removeLogoBackground:t.removeLogoBackground,topOffset:Kn,style:{right:F?"auto":"24px",left:F?"24px":"auto",display:"flex",flexDirection:"column",alignItems:F?"flex-start":"flex-end"},children:_e.suggestions?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:_e.suggestions})}):li.map((Ce,Je)=>{if(Array.isArray(Ce)){const se=Ce.map(ke=>({question:ke.question,isHighlighted:ke.isHighlighted??!1})).filter(ke=>!ve.has(ke.question));return R.jsx(wU,{$index:Je,$totalCount:li.length,children:R.jsx(gue,{messages:se,botId:e,uiData:t,onClick:ke=>{const z=Ce.find(X=>X.question===ke);Le(!0,"suggested_question_clicked"),Ie(X=>{const ce=new Set(X);return ce.add(ke),ce}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:z}),!D&&z?(Ht(!1),pt(!0),r({message:z.Follow_up_Question??z.question,answer:z==null?void 0:z.answer,products:z==null?void 0:z.products,fromKlaviyo:!1,leading_queries:z==null?void 0:z.leading_queries,followUpQuestion:z==null?void 0:z.Follow_up_Question,messType:"suggested_question"})):(Ht(!1),pt(!0),A(!0),O(z))}})},Je)}else return R.jsx(wU,{$index:Je,$totalCount:li.length,children:R.jsx(hue,{value:`${Ce.question}`,index:Je,botId:e,uiData:t,onClose:()=>{Ie(se=>{const ke=new Set(se);return ke.add(Ce.question),ke})},onClick:()=>{Le(!0,"suggested_question_clicked"),Ie(se=>{const ke=new Set(se);return ke.add(Ce.question),ke}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:Ce}),D?(Ht(!1),pt(!0),A(!0),O(Ce)):(Ht(!1),pt(!0),r({message:Ce.question,answer:Ce.answer,products:Ce.products,leading_queries:Ce.leading_queries,followUpQuestion:Ce.Follow_up_Question,messType:"suggested_question"}))},isHighlighted:Ce.isHighlighted??!1})},Je)})}),R.jsxs(Nce,{$topOffset:Kn,$removeLogoBackground:t.removeLogoBackground,style:{display:oe?"none":"inline-flex",right:F?"auto":"24px",left:F?"24px":"auto"},children:[R.jsx(zce,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Kn,$iconSize:G}),R.jsx(Fce,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:G,$removeLogoBackground:t.removeLogoBackground,topOffset:Kn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),Le(!oe,"chat_button_clicked"),!oe){const Ce=S();Ce.length>0?(m(Ce),Ht(!1),pt(!0)):(Ht(!0),pt(!1),we(Je=>({...Je,initialMessage:!0,leadingQueries:!0})),ht({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1}),setTimeout(()=>{Ht(!1),pt(!0),we(se=>({...se,initialMessage:!1}));const Je={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([Je]),we(se=>({...se,leadingQueries:!0})),setTimeout(()=>{ht(se=>({...se,leadingQueries:!0}))},pr)},pr))}},"aria-label":"Chat",style:{display:oe?"none":"inline-flex",right:F?"auto":"24px",left:F?"24px":"auto"},children:R.jsx(Uce,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"})})]}),oe&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Pce,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:F,$topOffset:Kn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:me,"data-testid":"debales-chat-container",children:[R.jsxs(Yce,{$backgroundColor:Ee(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(vU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Ee(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(jce,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(qce,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(Hce,{})]})]}):R.jsx(Gce,{children:R.jsxs(Vce,{children:[R.jsx(vU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[Be&&R.jsxs("div",{style:{background:"#4CAF50",color:"white",padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:"500",display:"flex",alignItems:"center",gap:"4px"},children:[R.jsx("span",{style:{fontSize:"8px"},children:"●"}),"Live Support",R.jsx("button",{onClick:Dr,style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"12px",marginLeft:"4px",padding:"2px 4px",borderRadius:"4px"},title:"Exit Support",children:"✕"})]}),R.jsxs(ife,{children:[R.jsx(yU,{$iconBG:t.backgroundColor,onClick:xr,"aria-label":"Support","data-testid":"debales-support-button",disabled:Be,style:{opacity:Be?.5:1,cursor:Be?"not-allowed":"pointer"},children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(CU,{children:Be?"Already connected to live support":"Click to chat with a Live Support Agent now."})]}),R.jsx(yU,{$iconBG:t.backgroundColor,onClick:()=>{qe?vn(!0):Le(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(ffe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Vt?1:0}})]}),R.jsxs(Kce,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[$o&&((et=($r=t.pluginConfig)==null?void 0:$r.collectedUserInfo)==null?void 0:et.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{Ai(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:ln,showModel:Tr,setShowModel:Hn,onVariantSelect:Ce=>{console.debug("VariantSelectionModel : Adding item to cart:",Ce),N(Ce.id,1,{productId:(ln==null?void 0:ln.productId)||""}),Ar(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:Ce.title,price:Number(Ce.price),link:`https://${t.shopifyShopDomain}/variants/${Ce.id}`,message:l,chatId:er()+e})},botId:e}),on&&R.jsx(OA,{setShowExitModal:vn,handleCloseChatbot:gr,chatId:er()+e}),R.jsxs(Zce,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:le,$mobileDisplayMode:t.mobileDisplayMode,"data-testid":"debales-conversation-group",children:[R.jsx(ufe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Vt?1:0}}),R.jsxs(Qce,{children:[mn&&h.map((Ce,Je)=>{const se=Ce.isBot,ke=sp(Ce.text);return Ce.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[se&&R.jsxs(xU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:se?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(SU,{children:[ke.map(z=>R.jsx("div",{children:R.jsx(Ei,{isBot:se,children:R.jsx(od,{components:{a:({href:X,children:ce})=>{const be=()=>{X!=null&&X.startsWith("https://shop.catch.org/")&&window.DebalesChat.track(Gt.SHOPIFY_LINK_CLICKED)};return R.jsx("a",{href:X,target:"_blank",onClick:be,children:ce})}},remarkPlugins:[VS,lC],children:z})})})),Ce.collections&&l===Ce.conversationId&&at.collections&&R.jsx(kA,{message:Ce,botId:e,uidata:t,onSendMessage:r,loading:p}),Ce.products&&l===Ce.conversationId&&at.products&&R.jsx(MA,{message:Ce,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:V,setShowVariantModel:Hn,setSelectedProduct:Zi,setCartVersion:te}),o&&R.jsx(aD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Me]),Le(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),I&&I.itemCount>0&&l===Ce.conversationId&&at.cartSummary&&tr&&R.jsx(wA,{onCheckout:Ot,onKeepShopping:()=>{Ar(!1)}}),nt&&nt.length>0&&l===Ce.conversationId&&at.bulkItems&&R.jsx(sA,{onClick:()=>ea(Ce.conversationId),children:"Add Bulk Items to Cart"}),k&&h.indexOf(Ce)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:z=>{var ce,be;const X=typeof z=="function"?z(k):z;A(X),!X&&((be=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)!=null&&be.discount)&&Ai(!0)},inChat:!0,showFormInstructions:!1})}),zt&&h.indexOf(Ce)===h.length-1&&R.jsxs(ofe,{onSubmit:ki,noValidate:!0,"data-testid":"debales-support-form",children:[Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:st.name,onChange:z=>yt(X=>({...X,name:z.target.value})),required:!0,error:Et.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:st.email,onChange:z=>yt(X=>({...X,email:z.target.value})),required:!0,error:Et.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:st.message,onChange:z=>yt(X=>({...X,message:z.target.value})),required:!0,error:Et.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(sD,{children:[R.jsxs(lD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(EU,{type:"text",required:!0,value:st.name,onChange:z=>yt(X=>({...X,name:z.target.value})),placeholder:"John"}),Et.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.name})]}),R.jsxs(sD,{children:[R.jsxs(lD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(EU,{type:"email",required:!0,value:st.email,onChange:z=>yt(X=>({...X,email:z.target.value})),placeholder:"olivia@untitledui.com"}),Et.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.email})]}),R.jsxs(sD,{children:[R.jsxs(lD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(afe,{required:!0,value:st.message,onChange:z=>yt(X=>({...X,message:z.target.value})),placeholder:"I need help with..."}),Et.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Et.message})]})]}),R.jsx(lfe,{children:R.jsx(sfe,{type:"submit",children:"Submit"})})]}),bt&&!p&&l===Ce.conversationId&&R.jsx(Ei,{isBot:se,children:R.jsx(vs,{loading:bt})})]})]}),!se&&R.jsx(efe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!se,children:R.jsx(od,{children:Ce.text})})}),h.length==1&&Je==0&&!k&&R.jsx(aD,{children:_e.leadingQueries?R.jsx(Ei,{isBot:se??!0,children:R.jsx(vs,{loading:_e.leadingQueries})}):si.map(z=>Array.isArray(z)?z[0]:z).map((z,X)=>R.jsxs(_U,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{D?(A(!0),O({question:z.question,answer:z.answer,products:z.products,path:"/",nameSpace:window.DebalesChat.projectId})):(Ht(!1),pt(!0),r({message:z.question,answer:z.answer,products:z.products,leading_queries:z.leading_queries,followUpQuestion:z.Follow_up_Question,messType:"leading_query"})),Ie(ce=>{const be=new Set(ce);return be.add(z.question),be}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:z.question})},disabled:p,$disabled:p,children:[z.question,R.jsx(bU,{color:t.callToActionFontColor})]},X))}),Ce.leading_queries&&Ce.leading_queries.length>0&&l===Ce.conversationId&&at.leadingQueries&&!o&&!k&&R.jsx(aD,{children:Ce.leading_queries.map((z,X)=>R.jsxs(_U,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{D?(A(!0),O({question:z,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:z,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:z})},disabled:p,$disabled:p,children:[z,R.jsx(bU,{color:t.callToActionFontColor})]},X))})]},Je)}),(p||Kt)&&!Be&&R.jsxs(xU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(SU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||Kt})})})})]})]}),R.jsx(cfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:At?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(Jce,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1,isInSupportMode:Be,onSupportMessage:wa})}),(t.debales_branding??!0)&&R.jsxs(Wce,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Xce,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),Y.shadowRoot)]})},dfe=K.p`
|
|
2622
2622
|
margin: 0;
|
|
2623
2623
|
font-size: 16px;
|
|
2624
2624
|
text-align: left;
|
|
@@ -2781,7 +2781,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2781
2781
|
-ms-flex-negative: 0;
|
|
2782
2782
|
flex-shrink: 0;
|
|
2783
2783
|
object-fit: contain;
|
|
2784
|
-
border-radius: ${e=>
|
|
2784
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
2785
2785
|
padding: 2px !important;
|
|
2786
2786
|
|
|
2787
2787
|
@media screen and (max-width: 768px) {
|
|
@@ -2835,7 +2835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2835
2835
|
z-index: 2147483647;
|
|
2836
2836
|
background-color: ${e=>e.$backgroundColor};
|
|
2837
2837
|
color: ${e=>e.$headerFontColor};
|
|
2838
|
-
border-radius: ${e=>
|
|
2838
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"16px"} !important;
|
|
2839
2839
|
padding: 0 !important;
|
|
2840
2840
|
margin: 0 !important;
|
|
2841
2841
|
display: flex;
|
|
@@ -2861,7 +2861,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2861
2861
|
left: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"16px":"auto":e.$fullScreenOnMobile?"0":e.$isLeft?"16px":"auto"};
|
|
2862
2862
|
right: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"auto":"16px":e.$fullScreenOnMobile?"0":e.$isLeft?"auto":"16px"};
|
|
2863
2863
|
bottom: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$topOffset||"16px":e.$fullScreenOnMobile?"0":e.$topOffset||"16px"};
|
|
2864
|
-
border-radius: ${e=>
|
|
2864
|
+
border-radius: ${e=>Ee(e.theme.botId)||e.$mobileDisplayMode==="full-screen"?"0":e.$mobileDisplayMode==="half-screen"?"16px 16px 0 0":"16px"} !important;
|
|
2865
2865
|
overflow: hidden;
|
|
2866
2866
|
touch-action: manipulation;
|
|
2867
2867
|
/* Apply proper touch action for mobile modes to allow content scrolling */
|
|
@@ -2884,14 +2884,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2884
2884
|
display: flex;
|
|
2885
2885
|
align-items: center;
|
|
2886
2886
|
padding: 2px;
|
|
2887
|
-
border-radius: ${e=>
|
|
2887
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
2888
2888
|
background: conic-gradient(#0ead3f, #00b200, #1ca77e, #379bfb, #0ead3f);
|
|
2889
2889
|
`,kfe=K.div`
|
|
2890
2890
|
display: flex;
|
|
2891
2891
|
align-items: center;
|
|
2892
2892
|
background: #fff;
|
|
2893
2893
|
padding: 0 16px 0 3px; /* Adjusted padding */
|
|
2894
|
-
border-radius: ${e=>
|
|
2894
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
2895
2895
|
height: 40px; /* Adjusted height */
|
|
2896
2896
|
font-weight: 600;
|
|
2897
2897
|
font-size: 16px; /* Adjusted font-size */
|
|
@@ -2899,9 +2899,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2899
2899
|
`,OU=K.button`
|
|
2900
2900
|
width: 40px;
|
|
2901
2901
|
height: 40px;
|
|
2902
|
-
border-radius: ${e=>
|
|
2902
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
2903
2903
|
border: 1.5px solid rgba(0, 0, 0, 0.3);
|
|
2904
|
-
background: ${e=>
|
|
2904
|
+
background: ${e=>Ee(e.theme.botId)?e.$iconBG:"#fff"};
|
|
2905
2905
|
display: flex;
|
|
2906
2906
|
align-items: center;
|
|
2907
2907
|
justify-content: center;
|
|
@@ -2909,7 +2909,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2909
2909
|
cursor: pointer;
|
|
2910
2910
|
transition: background 0.2s;
|
|
2911
2911
|
&:hover {
|
|
2912
|
-
background: ${e=>!
|
|
2912
|
+
background: ${e=>!Ee(e.theme.botId)&&"#f5f5f5"};
|
|
2913
2913
|
}
|
|
2914
2914
|
`,Tfe=K.div`
|
|
2915
2915
|
z-index: 2147483647;
|
|
@@ -2943,7 +2943,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2943
2943
|
|
|
2944
2944
|
&::-webkit-scrollbar-thumb {
|
|
2945
2945
|
background: #7a7979;
|
|
2946
|
-
border-radius: ${e=>
|
|
2946
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"5px"} !important;
|
|
2947
2947
|
}
|
|
2948
2948
|
|
|
2949
2949
|
/* Improved scrolling behavior for all mobile modes */
|
|
@@ -3079,12 +3079,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3079
3079
|
justify-content: center;
|
|
3080
3080
|
text-align: left;
|
|
3081
3081
|
align-self: stretch;
|
|
3082
|
-
border-radius: ${e=>
|
|
3082
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
3083
3083
|
color: white;
|
|
3084
3084
|
border: none;
|
|
3085
3085
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
3086
3086
|
font-size: 14px;
|
|
3087
|
-
font-weight: ${e=>
|
|
3087
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
3088
3088
|
line-height: 20px !important;
|
|
3089
3089
|
transition: all 0.05s ease;
|
|
3090
3090
|
height: auto !important;
|
|
@@ -3259,7 +3259,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3259
3259
|
margin: 4px 10px 4px;
|
|
3260
3260
|
padding: 16px 16px;
|
|
3261
3261
|
background-color: ${e=>e.theme.colors.bot.message||"#fff"};
|
|
3262
|
-
border-radius: ${e=>
|
|
3262
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
3263
3263
|
width: 100%;
|
|
3264
3264
|
max-width: 320px;
|
|
3265
3265
|
`,fD=K.div`
|
|
@@ -3273,7 +3273,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3273
3273
|
margin-bottom: 8px;
|
|
3274
3274
|
font-size: 16px;
|
|
3275
3275
|
color: #1c1c1c;
|
|
3276
|
-
font-weight: ${e=>
|
|
3276
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
3277
3277
|
|
|
3278
3278
|
span {
|
|
3279
3279
|
color: #ff3b30;
|
|
@@ -3282,30 +3282,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3282
3282
|
width: calc(100% - 26px);
|
|
3283
3283
|
padding: 12px;
|
|
3284
3284
|
border: 1px solid #d0d5dd;
|
|
3285
|
-
border-radius: ${e=>
|
|
3285
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
3286
3286
|
font-size: 16px;
|
|
3287
|
-
font-weight: ${e=>
|
|
3288
|
-
background-color: ${e=>
|
|
3287
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
3288
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
3289
3289
|
|
|
3290
3290
|
&:focus {
|
|
3291
3291
|
outline: none;
|
|
3292
3292
|
border-color: #f48722;
|
|
3293
|
-
background-color: ${e=>
|
|
3293
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
3294
3294
|
}
|
|
3295
3295
|
`,Hfe=K.textarea`
|
|
3296
3296
|
width: calc(100% - 26px);
|
|
3297
3297
|
padding: 12px;
|
|
3298
3298
|
border: 1px solid #d0d5dd;
|
|
3299
|
-
border-radius: ${e=>
|
|
3299
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
3300
3300
|
font-size: 16px;
|
|
3301
|
-
font-weight: ${e=>
|
|
3302
|
-
background-color: ${e=>
|
|
3301
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
3302
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
3303
3303
|
resize: none;
|
|
3304
3304
|
|
|
3305
3305
|
&:focus {
|
|
3306
3306
|
outline: none;
|
|
3307
3307
|
border-color: #f48722;
|
|
3308
|
-
background-color: ${e=>
|
|
3308
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
3309
3309
|
}
|
|
3310
3310
|
`,qfe=K.button`
|
|
3311
3311
|
height: 40px !important;
|
|
@@ -3314,9 +3314,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3314
3314
|
background-color: ${e=>e.theme.colors.cta.background};
|
|
3315
3315
|
color: ${e=>e.theme.colors.cta.font};
|
|
3316
3316
|
border: none;
|
|
3317
|
-
border-radius: ${e=>
|
|
3317
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
3318
3318
|
font-size: 14px;
|
|
3319
|
-
font-weight: ${e=>
|
|
3319
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
3320
3320
|
cursor: pointer;
|
|
3321
3321
|
transition: all 0.3s ease;
|
|
3322
3322
|
justify-content: center;
|
|
@@ -3376,11 +3376,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3376
3376
|
opacity: 0;
|
|
3377
3377
|
z-index: 1;
|
|
3378
3378
|
bottom: 0;
|
|
3379
|
-
`,Zfe=({botId:e})=>{var se,Ae;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),[Ie,Le]=tt.useState(!1),[Mt,Ze]=tt.useState(!1),nt=Fl("acquisition_agent"),[Bt,zt]=ie.useState(window.location.pathname),rt=ie.useCallback(async()=>{try{if(!nt||(t==null?void 0:t.show_bot)===!1)return;const z=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(z.ok){const X=await z.json(),ce=window.location.pathname,be=3;le(Se=>{const Qe=[...Se],Rt={question:X.Popup_Message,answer:"",path:ce,nameSpace:e,type:"dynamic",Follow_up_Question:X.Follow_up_Question};return Qe.length>=be&&Qe.shift(),Qe.push(Rt),console.log("updated questions in ChatbotComponent1",Qe),Qe})}else console.error("Failed to fetch new acquisition question")}catch(z){console.error("Error fetching new acquisition question:",z)}},[e,nt,t==null?void 0:t.show_bot]);ie.useEffect(()=>{const z=()=>{const be=window.location.pathname;be!==Bt&&(zt(be),rt())};window.addEventListener("popstate",z);const X=history.pushState,ce=history.replaceState;return history.pushState=function(...be){X.apply(this,be),z()},history.replaceState=function(...be){ce.apply(this,be),z()},()=>{window.removeEventListener("popstate",z),history.pushState=X,history.replaceState=ce}},[Bt,rt]),ie.useEffect(()=>{const z=rn=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const lr=document.documentElement.scrollHeight,Hr=document.documentElement.clientHeight,Ti=window.scrollY,Xr=lr-Hr;return Xr<=0?rn:Ti/Xr*100>50?0:rn}return rn};if(J&&!Ie&&(ee.current=z(J.showing_delay||2e3)),!J||Ie||te.length===0)return;let X,ce,be,Se;const Qe=J.showing_delay||2e3,Rt=J.showing_delay||2e3,Qt=J.show_for||4e3,en=J.hide_timing||4e3,Ln=async()=>{if(te.length===0||!te[P]){Se=setTimeout(()=>{te.length>0&&ve(rn=>rn%te.length)},en+500);return}X=setTimeout(()=>{Ie||(W(!0),ce=setTimeout(async()=>{Ie||(he(!0),H(!0),be=setTimeout(async()=>{Ie||(H(!1),he(!1),W(!1),ve(rn=>(rn+1)%te.length),Se=setTimeout(()=>{Ln()},en))},Qt))},Rt))},ee.current)};return te.length===0&&e?rt().then(()=>{if(!Ie&&te.length>0){ve(0);const rn=z(Qe);ee.current=rn,Ln()}}):!Ie&&te.length>0&&Ln(),()=>{clearTimeout(X),clearTimeout(ce),clearTimeout(be),clearTimeout(Se)}},[J,Ie,rt,te,P,e]);const[st,yt]=ie.useState(!1);ie.useEffect(()=>{const z=()=>{yt(window.matchMedia("(max-width: 768px)").matches)};return z(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[]);const[_t,kt]=ie.useState(""),[Et,ne]=ie.useState(""),[,ae]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let z=Io();if(!z&&window.Thinkific){const X=window.Thinkific.current_user;X&&(z={name:X.full_name,email:X.email},Fc(z))}Bu.init({projectName:e,debug:!1,testing:jx}),z&&z.email&&(window.DebalesChat.identify(z.email,{name:z.name,phone:z.phone,email:z.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:z.email,first_name:z.name,phone:z.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const ge=tt.useRef(null),Be=jn(_n.CLICKED_QUESTIONS,{botId:e}),[Te,qe]=ie.useState(()=>{try{const z=sessionStorage.getItem(Be);return z?new Set(JSON.parse(z)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(Te)))}catch(z){console.error("Failed to save to sessionStorage:",z)}},[Te]);const at=ie.useCallback((z,X)=>{z?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})),setTimeout(()=>{Ze(!0)},50)):(Ze(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})))},[]),[ht,_e]=fm(_n.SHOW_CART_SUMMARY,!0);ie.useEffect(()=>{const z=X=>{Le(X.detail.isOpen),X.detail.isOpen&&setTimeout(()=>Ze(!0),50),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen,source:X.detail.source})};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[]),ie.useEffect(()=>{const z=X=>{Le(X.detail.isOpen),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen})};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[]);const[we,bt]=tt.useState(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e}),X=sessionStorage.getItem(z);return X?JSON.parse(X):[]});tt.useEffect(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(z,JSON.stringify(we))},[we,e]);const[lt,wt]=ie.useState(!1),[Tt,Kt]=ie.useState({name:"",email:"",message:""}),[Ht,mn]=ie.useState([]),[pt,Vt]=ie.useState({name:"",email:"",message:""}),mt=Fl("exit_model"),[At,Rn]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[pr,Yn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Yn(X=>({...X,leadingQueries:!0}));const z=setTimeout(()=>{Yn(X=>({...X,leadingQueries:!1}))},2e3);return()=>clearTimeout(z)}},[h,T]);const[tr,Ar]=ie.useState(!1),[kr,Zn]=ie.useState(!0),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),[vn,ln]=ie.useState(!1),Zi=500,gr=ie.useCallback(()=>{const z=ge.current;if(!z){on(!1),ln(!1),Zn(!0);return}if(ke(e)){on(!1);return}const X=z.scrollTop,ce=z.scrollHeight,be=z.clientHeight,Se=ce>be,Qe=1,Rt=X<=Qe,Qt=X+be>=ce-Qe;Se?(on(!Rt),ln(!Qt),Zn(Qt)):(on(!1),ln(!1),Zn(!0))},[ge,on,ln,Zn]);tt.useEffect(()=>{const z=ge.current;if(Ie&&z){gr(),z.addEventListener("scroll",gr);const X=new ResizeObserver(gr);return X.observe(z),()=>{z.removeEventListener("scroll",gr),X.unobserve(z)}}else Ie||(on(!1),ln(!1),Zn(!0))},[Ie,h,tr,gr]),tt.useEffect(()=>{var z,X,ce,be,Se,Qe;if(h.length>0&&!p){const Rt=h[h.length-1],Qt=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),en=Rt.isBot&&Rt.conversationId===l&&Rt.conversationId!==Qt,Ln=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Rt.conversationId===l;if(en){Ar(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Rt.conversationId||""),Rn({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const rn=2e3;let lr=rn;const Hr=[{type:"collections",condition:((z=Rt.collections)==null?void 0:z.length)&&((X=Rt.collections)==null?void 0:X.length)>0},{type:"products",condition:((ce=Rt.products)==null?void 0:ce.length)&&((be=Rt.products)==null?void 0:be.length)>0},{type:"leadingQueries",condition:((Se=Rt.leading_queries)==null?void 0:Se.length)&&((Qe=Rt.leading_queries)==null?void 0:Qe.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(we==null?void 0:we.length)>0}].filter(Ti=>Ti.condition);if(Hr.length===0){Ar(!1);return}Hr.forEach(({type:Ti},Xr)=>{setTimeout(()=>{if(Rn(Qi=>({...Qi,[Ti]:!0})),kr&&ge.current){const Qi=ge.current;Qi.scrollHeight-Qi.scrollTop<=Qi.clientHeight&&_a(ge)}Xr===Hr.length-1&&Ar(!1)},lr),lr+=rn})}else Ln&&Rn(rn=>({...rn,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,we==null?void 0:we.length,kr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const z=ge.current;z&&kr&&z.scrollHeight-z.scrollTop<=z.clientHeight+100&&setTimeout(()=>_a(ge),100)}},[h.length,o,kr]),tt.useEffect(()=>{const z=document.querySelector('meta[name="viewport"]'),X=z==null?void 0:z.content;if(Ie){let ce=z;const be=window.matchMedia("(max-width: 768px)").matches;ce?ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ce=document.createElement("meta"),ce.name="viewport",ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ce)),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Se=ce;return()=>{X&&Se&&(Se.content=X),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(Ie&&h.length>0&&!o){const z=setTimeout(()=>{ge.current&&_a(ge)},150);return()=>clearTimeout(z)}},[Ie,h.length,o]),tt.useEffect(()=>{O!=null&&O.itemCount&&O.itemCount===0&&!o&&setTimeout(()=>_a(ge),100)},[O==null?void 0:O.itemCount,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(!1),[Or,li]=ie.useState(null),$o=async z=>{const X=er();if(Ze(!1),z&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:X,userRating:z,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ce){console.error("Error submitting rating:",ce)}setTimeout(()=>{si(!1),at(!1,"close_button_clicked")},1e3)},Ai=z=>{y(!0),we.forEach(ce=>{I(ce.id,ce.quantity)}),_e(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:we,message:z});const X=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:z,isBot:!0}];m(X),x(X),d(z),bt([]),y(!1)},Kn=()=>{var z;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((z=window.shiprocketCheckoutEvents)!=null&&z.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},_o=async z=>{z.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),Kn()&&at(!1,"checkout_clicked")};tt.useEffect(()=>{const z=aC(w);le(X=>[...z.filter(be=>!X.some(Se=>Se.question===be.question))])},[w]),tt.useEffect(()=>{const z=be=>{const Se=be.detail.formId;switch(be.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Rt=X(Se);Rt&&kt(Rt)},800);break;case"close":_t&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),ne(Se),r({message:_t,fromKlaviyo:!0})},1e4);break}},X=be=>{const Se=document.querySelector(`[data-testid="klaviyo-form-${be}"]`);if(console.log(`formElement text ${be} =>`,Se==null?void 0:Se.innerText,Se==null?void 0:Se.textContent),Se instanceof HTMLElement){const Qe=Se.innerText||Se.textContent;if(Qe)return console.log("Found form text:",Qe),`=> Klaviyo form content:
|
|
3379
|
+
`,Zfe=({botId:e})=>{var se,ke;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),[Ie,Le]=tt.useState(!1),[Mt,Ze]=tt.useState(!1),nt=Fl("acquisition_agent"),[Bt,zt]=ie.useState(window.location.pathname),rt=ie.useCallback(async()=>{try{if(!nt||(t==null?void 0:t.show_bot)===!1)return;const z=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(z.ok){const X=await z.json(),ce=window.location.pathname,be=3;le(Se=>{const Qe=[...Se],Rt={question:X.Popup_Message,answer:"",path:ce,nameSpace:e,type:"dynamic",Follow_up_Question:X.Follow_up_Question};return Qe.length>=be&&Qe.shift(),Qe.push(Rt),console.log("updated questions in ChatbotComponent1",Qe),Qe})}else console.error("Failed to fetch new acquisition question")}catch(z){console.error("Error fetching new acquisition question:",z)}},[e,nt,t==null?void 0:t.show_bot]);ie.useEffect(()=>{const z=()=>{const be=window.location.pathname;be!==Bt&&(zt(be),rt())};window.addEventListener("popstate",z);const X=history.pushState,ce=history.replaceState;return history.pushState=function(...be){X.apply(this,be),z()},history.replaceState=function(...be){ce.apply(this,be),z()},()=>{window.removeEventListener("popstate",z),history.pushState=X,history.replaceState=ce}},[Bt,rt]),ie.useEffect(()=>{const z=rn=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const lr=document.documentElement.scrollHeight,Hr=document.documentElement.clientHeight,Ti=window.scrollY,Xr=lr-Hr;return Xr<=0?rn:Ti/Xr*100>50?0:rn}return rn};if(J&&!Ie&&(ee.current=z(J.showing_delay||2e3)),!J||Ie||te.length===0)return;let X,ce,be,Se;const Qe=J.showing_delay||2e3,Rt=J.showing_delay||2e3,Qt=J.show_for||4e3,en=J.hide_timing||4e3,Ln=async()=>{if(te.length===0||!te[P]){Se=setTimeout(()=>{te.length>0&&ve(rn=>rn%te.length)},en+500);return}X=setTimeout(()=>{Ie||(W(!0),ce=setTimeout(async()=>{Ie||(he(!0),H(!0),be=setTimeout(async()=>{Ie||(H(!1),he(!1),W(!1),ve(rn=>(rn+1)%te.length),Se=setTimeout(()=>{Ln()},en))},Qt))},Rt))},ee.current)};return te.length===0&&e?rt().then(()=>{if(!Ie&&te.length>0){ve(0);const rn=z(Qe);ee.current=rn,Ln()}}):!Ie&&te.length>0&&Ln(),()=>{clearTimeout(X),clearTimeout(ce),clearTimeout(be),clearTimeout(Se)}},[J,Ie,rt,te,P,e]);const[st,yt]=ie.useState(!1);ie.useEffect(()=>{const z=()=>{yt(window.matchMedia("(max-width: 768px)").matches)};return z(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[]);const[_t,kt]=ie.useState(""),[Et,ne]=ie.useState(""),[,ae]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let z=Io();if(!z&&window.Thinkific){const X=window.Thinkific.current_user;X&&(z={name:X.full_name,email:X.email},Fc(z))}Bu.init({projectName:e,debug:!1,testing:jx}),z&&z.email&&(window.DebalesChat.identify(z.email,{name:z.name,phone:z.phone,email:z.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:z.email,first_name:z.name,phone:z.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const ge=tt.useRef(null),Be=jn(_n.CLICKED_QUESTIONS,{botId:e}),[Te,qe]=ie.useState(()=>{try{const z=sessionStorage.getItem(Be);return z?new Set(JSON.parse(z)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(Te)))}catch(z){console.error("Failed to save to sessionStorage:",z)}},[Te]);const at=ie.useCallback((z,X)=>{z?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})),setTimeout(()=>{Ze(!0)},50)):(Ze(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})))},[]),[ht,_e]=fm(_n.SHOW_CART_SUMMARY,!0);ie.useEffect(()=>{const z=X=>{Le(X.detail.isOpen),X.detail.isOpen&&setTimeout(()=>Ze(!0),50),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen,source:X.detail.source})};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[]),ie.useEffect(()=>{const z=X=>{Le(X.detail.isOpen),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen})};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[]);const[we,bt]=tt.useState(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e}),X=sessionStorage.getItem(z);return X?JSON.parse(X):[]});tt.useEffect(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(z,JSON.stringify(we))},[we,e]);const[lt,wt]=ie.useState(!1),[Tt,Kt]=ie.useState({name:"",email:"",message:""}),[Ht,mn]=ie.useState([]),[pt,Vt]=ie.useState({name:"",email:"",message:""}),mt=Fl("exit_model"),[At,Rn]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[pr,Yn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Yn(X=>({...X,leadingQueries:!0}));const z=setTimeout(()=>{Yn(X=>({...X,leadingQueries:!1}))},2e3);return()=>clearTimeout(z)}},[h,T]);const[tr,Ar]=ie.useState(!1),[kr,Zn]=ie.useState(!0),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),[vn,ln]=ie.useState(!1),Zi=500,gr=ie.useCallback(()=>{const z=ge.current;if(!z){on(!1),ln(!1),Zn(!0);return}if(Ee(e)){on(!1);return}const X=z.scrollTop,ce=z.scrollHeight,be=z.clientHeight,Se=ce>be,Qe=1,Rt=X<=Qe,Qt=X+be>=ce-Qe;Se?(on(!Rt),ln(!Qt),Zn(Qt)):(on(!1),ln(!1),Zn(!0))},[ge,on,ln,Zn]);tt.useEffect(()=>{const z=ge.current;if(Ie&&z){gr(),z.addEventListener("scroll",gr);const X=new ResizeObserver(gr);return X.observe(z),()=>{z.removeEventListener("scroll",gr),X.unobserve(z)}}else Ie||(on(!1),ln(!1),Zn(!0))},[Ie,h,tr,gr]),tt.useEffect(()=>{var z,X,ce,be,Se,Qe;if(h.length>0&&!p){const Rt=h[h.length-1],Qt=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),en=Rt.isBot&&Rt.conversationId===l&&Rt.conversationId!==Qt,Ln=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Rt.conversationId===l;if(en){Ar(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Rt.conversationId||""),Rn({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const rn=2e3;let lr=rn;const Hr=[{type:"collections",condition:((z=Rt.collections)==null?void 0:z.length)&&((X=Rt.collections)==null?void 0:X.length)>0},{type:"products",condition:((ce=Rt.products)==null?void 0:ce.length)&&((be=Rt.products)==null?void 0:be.length)>0},{type:"leadingQueries",condition:((Se=Rt.leading_queries)==null?void 0:Se.length)&&((Qe=Rt.leading_queries)==null?void 0:Qe.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(we==null?void 0:we.length)>0}].filter(Ti=>Ti.condition);if(Hr.length===0){Ar(!1);return}Hr.forEach(({type:Ti},Xr)=>{setTimeout(()=>{if(Rn(Qi=>({...Qi,[Ti]:!0})),kr&&ge.current){const Qi=ge.current;Qi.scrollHeight-Qi.scrollTop<=Qi.clientHeight&&_a(ge)}Xr===Hr.length-1&&Ar(!1)},lr),lr+=rn})}else Ln&&Rn(rn=>({...rn,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,we==null?void 0:we.length,kr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const z=ge.current;z&&kr&&z.scrollHeight-z.scrollTop<=z.clientHeight+100&&setTimeout(()=>_a(ge),100)}},[h.length,o,kr]),tt.useEffect(()=>{const z=document.querySelector('meta[name="viewport"]'),X=z==null?void 0:z.content;if(Ie){let ce=z;const be=window.matchMedia("(max-width: 768px)").matches;ce?ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ce=document.createElement("meta"),ce.name="viewport",ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ce)),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Se=ce;return()=>{X&&Se&&(Se.content=X),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(Ie&&h.length>0&&!o){const z=setTimeout(()=>{ge.current&&_a(ge)},150);return()=>clearTimeout(z)}},[Ie,h.length,o]),tt.useEffect(()=>{O!=null&&O.total&&!o&&setTimeout(()=>_a(ge),100)},[O==null?void 0:O.total,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(!1),[Or,li]=ie.useState(null),$o=async z=>{const X=er();if(Ze(!1),z&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:X,userRating:z,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ce){console.error("Error submitting rating:",ce)}setTimeout(()=>{si(!1),at(!1,"close_button_clicked")},1e3)},Ai=z=>{y(!0),we.forEach(ce=>{I(ce.id,ce.quantity)}),_e(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:we,message:z});const X=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:z,isBot:!0}];m(X),x(X),d(z),bt([]),y(!1)},Kn=()=>{var z;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((z=window.shiprocketCheckoutEvents)!=null&&z.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},_o=async z=>{z.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),Kn()&&at(!1,"checkout_clicked")};tt.useEffect(()=>{const z=aC(w);le(X=>[...z.filter(be=>!X.some(Se=>Se.question===be.question))])},[w]),tt.useEffect(()=>{const z=be=>{const Se=be.detail.formId;switch(be.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Rt=X(Se);Rt&&kt(Rt)},800);break;case"close":_t&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),ne(Se),r({message:_t,fromKlaviyo:!0})},1e4);break}},X=be=>{const Se=document.querySelector(`[data-testid="klaviyo-form-${be}"]`);if(console.log(`formElement text ${be} =>`,Se==null?void 0:Se.innerText,Se==null?void 0:Se.textContent),Se instanceof HTMLElement){const Qe=Se.innerText||Se.textContent;if(Qe)return console.log("Found form text:",Qe),`=> Klaviyo form content:
|
|
3380
3380
|
|
|
3381
3381
|
`+Qe+`
|
|
3382
3382
|
|
|
3383
|
-
=> User Action: Klaviyo form closed`}return""},ce=be=>{be instanceof CustomEvent&&z(be)};return window.addEventListener("klaviyoForms",ce),()=>{window.removeEventListener("klaviyoForms",ce)}},[_t,t,r]),tt.useEffect(()=>{const z=ge.current;return Ie&&z?(z.addEventListener("scroll",gr),()=>{z&&z.removeEventListener("scroll",gr)}):()=>{}},[Ie,gr]);const[xr,ki]=ie.useState(!1),Dr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",wa=async()=>{try{const z=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:Tt.name,userEmail:Tt.email,userMessage:Tt.message,tag:"support"})});if(z.ok){const X=`support-confirm-${Date.now()}`;m(ce=>[...ce,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Ht,conversationId:X}]),d(X),Rn(ce=>({...ce,leadingQueries:!0})),mn([]),console.log("Connected to support with existing user info:",Io())}else{const X=await z.json();console.error("Failed to connect to support:",X),m(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(X=>[...X,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},$r=()=>{if(ke(e)){const be=dp("https://test.thecollective.in/content/customersupport");be.isValid&&(t!=null&&t.shopifyShopDomain&&(be.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(be.url.toString()),"_blank"));return}const z=Io();let X=[];const ce=h[h.length-1];ce!=null&&ce.leading_queries&&ce.leading_queries.length>0?X=ce.leading_queries:h.length<=1&&(X=te.flatMap(be=>Array.isArray(be)?be.map(Se=>Se.question):[be.question]).slice(0,4)),mn(X),z&&z.name&&z.email&&Kt({name:z==null?void 0:z.name,email:z==null?void 0:z.email,message:""}),m(be=>[...be,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),wt(!0)},et=async z=>{z.preventDefault();const X={name:"",email:"",message:""};let ce=!0;const be=Tt.name.trim(),Se=Tt.message.trim();be||(X.name="Name cannot be empty or just whitespace.",ce=!1),(!Tt.email||!rm.isEmail(Tt.email))&&(X.email="Please enter a valid email address.",ce=!1),Se||(X.message="Message cannot be empty or just whitespace.",ce=!1),Vt(X),ce&&(Fc({name:be,email:Tt.email}),wt(!1),m(Qe=>Qe.slice(0,-1)),await wa())},[Ce,Je]=tt.useState({});return tt.useEffect(()=>{ai&&(h.forEach((z,X)=>{if(!z.isBot)return;const ce=sp(z.text);if(!(X in Ce)||Ce[X]<ce.length){let be;const Se=Qe=>{Qe<ce.length&&(be=setTimeout(()=>{Je(Rt=>({...Rt,[X]:Qe+1})),Se(Qe+1)},Zi))};return X in Ce?Se(Ce[X]):(Je(Qe=>({...Qe,[X]:1})),Se(1)),()=>clearTimeout(be)}}),Je(z=>{const X={};return h.forEach((ce,be)=>{z[be]!==void 0&&(X[be]=z[be])}),X}))},[h,ai]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(Ffe,{}),R.jsxs(vfe,{$topOffset:Dr,$isLeft:V,children:[!Ie&&te.length>0&&te[P]&&fe&&R.jsx(Nfe,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,style:{display:"flex",flexDirection:V?"row":"row-reverse",alignItems:"center",marginLeft:st?"60px":"85px",marginRight:st?"60px":"85px",left:V?"24px":"auto",right:V?"auto":"24px",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&(()=>{const z=te[P];return R.jsx(zfe,{children:R.jsx(pfe,{messages:[{question:z.question,isHighlighted:z.isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{qe(X=>{const ce=new Set(X);return ce.add(z.question),ce})},onClick:()=>{const X=z;at(!0,"suggested_question_clicked"),qe(ce=>{const be=new Set(ce);return be.add(X.question),be}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:X}),A?(Qn(!1),Tr(!0),k(!0),D(X)):(Qn(!1),Tr(!0),r({message:X.Follow_up_Question??X.question,answer:X.answer,products:X.products,fromKlaviyo:!1,leading_queries:X.leading_queries,followUpQuestion:X.Follow_up_Question,messType:"suggested_question"}))}})},z.question)})()}),R.jsxs(yfe,{$topOffset:Dr,$removeLogoBackground:t.removeLogoBackground,$isLeft:V,style:{display:Ie?"none":"inline-flex"},children:[R.jsx(xfe,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Dr,$iconSize:q}),R.jsxs(bfe,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$isLeft:V,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),at(!Ie,"chat_button_clicked"),!Ie){const z=S();z.length>0?(m(z),Qn(!1),Tr(!0)):(Qn(!0),Tr(!1),setTimeout(()=>{Qn(!1),Tr(!0);const X={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([X])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[R.jsx(_fe,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!Ie&&me&&R.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})]})]}),Ie&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Efe,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:Dr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Mt,"data-testid":"debales-chat-container",children:[R.jsxs(Tfe,{$backgroundColor:ke(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(TU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),ke(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(Sfe,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(Cfe,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(wfe,{})]})]}):R.jsx(Afe,{children:R.jsxs(kfe,{children:[R.jsx(TU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(Ufe,{children:[R.jsx(OU,{$iconBG:t.backgroundColor,onClick:$r,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(BU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(OU,{$iconBG:t.backgroundColor,onClick:()=>{mt?si(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(Yfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs(Mfe,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[xr&&((Ae=(se=t.pluginConfig)==null?void 0:se.collectedUserInfo)==null?void 0:Ae.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ki(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Or,showModel:ea,setShowModel:bo,onVariantSelect:z=>{I(z.id,1),_e(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:z.title,price:Number(z.price),link:`https://${t.shopifyShopDomain}/variants/${z.id}`,message:l,chatId:er()+e})},botId:e}),Ot&&R.jsx(OA,{setShowExitModal:si,handleCloseChatbot:$o,chatId:er()+e}),R.jsxs(Ofe,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:ge,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(Gfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}}),R.jsxs(Dfe,{children:[ai&&h.map((z,X)=>{const ce=z.isBot,be=sp(z.text);return z.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[ce&&R.jsxs(DU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:ce?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(IU,{children:[be.slice(0,Ce[X]||0).map((Se,Qe)=>R.jsx("div",{children:R.jsx(Ei,{isBot:ce,children:R.jsx(od,{remarkPlugins:[VS,lC],children:Se})})},Qe)),z.collections&&l===z.conversationId&&At.collections&&R.jsx(kA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p}),z.products&&l===z.conversationId&&At.products&&R.jsx(MA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:bo,setSelectedProduct:li,setCartVersion:ae}),o&&R.jsx(cD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Et]),at(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===z.conversationId&&At.cartSummary&&ht&&R.jsx(wA,{onCheckout:_o,onKeepShopping:()=>{_e(!1)}}),we&&we.length>0&&l===z.conversationId&&At.bulkItems&&R.jsx(sA,{onClick:()=>Ai(z.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(z)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:Se=>{var Rt,Qt;const Qe=typeof Se=="function"?Se(T):Se;k(Qe),!Qe&&((Qt=(Rt=t.pluginConfig)==null?void 0:Rt.collectedUserInfo)!=null&&Qt.discount)&&ki(!0)},inChat:!0,showFormInstructions:!1})}),lt&&h.indexOf(z)===h.length-1&&R.jsxs(jfe,{onSubmit:et,noValidate:!0,"data-testid":"debales-support-form",children:[ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),required:!0,error:pt.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),required:!0,error:pt.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),required:!0,error:pt.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(fD,{children:[R.jsxs(dD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx($U,{type:"text",required:!0,value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),placeholder:"John"}),pt.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.name})]}),R.jsxs(fD,{children:[R.jsxs(dD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx($U,{type:"email",required:!0,value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),placeholder:"olivia@untitledui.com"}),pt.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.email})]}),R.jsxs(fD,{children:[R.jsxs(dD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(Hfe,{required:!0,value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),placeholder:"I need help with..."}),pt.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.message})]})]}),R.jsx(Pfe,{children:R.jsx(qfe,{type:"submit",children:"Submit"})})]}),tr&&!p&&l===z.conversationId&&R.jsx(Ei,{isBot:ce,children:R.jsx(vs,{loading:tr})})]})]}),!ce&&R.jsx($fe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!ce,children:R.jsx(od,{children:z.text})})}),h.length==1&&X==0&&!T&&R.jsx(cD,{children:pr.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:pr.leadingQueries})}):te.map((Se,Qe)=>R.jsxs(RU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:Te.has(Se.question)?.5:1},onClick:()=>{A?(k(!0),D({question:Se.question,answer:Se.answer,products:Se.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se.question,answer:Se.answer,products:Se.products,leading_queries:Se.leading_queries,followUpQuestion:Se.Follow_up_Question,messType:"leading_query"}),qe(Rt=>{const Qt=new Set(Rt);return Qt.add(Se.question),Qt}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Se.question})},disabled:p,$disabled:p,children:[Se.question,R.jsx(MU,{color:t.callToActionFontColor})]},Qe))}),z.leading_queries&&z.leading_queries.length>0&&l===z.conversationId&&At.leadingQueries&&!o&&!T&&R.jsx(cD,{children:z.leading_queries.map((Se,Qe)=>R.jsxs(RU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:Se,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:Se})},disabled:p,$disabled:p,children:[Se,R.jsx(MU,{color:t.callToActionFontColor})]},Qe))})]},X)}),(p||nr)&&R.jsxs(DU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(IU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||nr})})})})]})]}),R.jsx(Vfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(Bfe,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(Rfe,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Ife,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},Qfe=K.p`
|
|
3383
|
+
=> User Action: Klaviyo form closed`}return""},ce=be=>{be instanceof CustomEvent&&z(be)};return window.addEventListener("klaviyoForms",ce),()=>{window.removeEventListener("klaviyoForms",ce)}},[_t,t,r]),tt.useEffect(()=>{const z=ge.current;return Ie&&z?(z.addEventListener("scroll",gr),()=>{z&&z.removeEventListener("scroll",gr)}):()=>{}},[Ie,gr]);const[xr,ki]=ie.useState(!1),Dr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",wa=async()=>{try{const z=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:Tt.name,userEmail:Tt.email,userMessage:Tt.message,tag:"support"})});if(z.ok){const X=`support-confirm-${Date.now()}`;m(ce=>[...ce,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Ht,conversationId:X}]),d(X),Rn(ce=>({...ce,leadingQueries:!0})),mn([]),console.log("Connected to support with existing user info:",Io())}else{const X=await z.json();console.error("Failed to connect to support:",X),m(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(X=>[...X,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},$r=()=>{if(Ee(e)){const be=dp("https://test.thecollective.in/content/customersupport");be.isValid&&(t!=null&&t.shopifyShopDomain&&(be.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(be.url.toString()),"_blank"));return}const z=Io();let X=[];const ce=h[h.length-1];ce!=null&&ce.leading_queries&&ce.leading_queries.length>0?X=ce.leading_queries:h.length<=1&&(X=te.flatMap(be=>Array.isArray(be)?be.map(Se=>Se.question):[be.question]).slice(0,4)),mn(X),z&&z.name&&z.email&&Kt({name:z==null?void 0:z.name,email:z==null?void 0:z.email,message:""}),m(be=>[...be,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),wt(!0)},et=async z=>{z.preventDefault();const X={name:"",email:"",message:""};let ce=!0;const be=Tt.name.trim(),Se=Tt.message.trim();be||(X.name="Name cannot be empty or just whitespace.",ce=!1),(!Tt.email||!rm.isEmail(Tt.email))&&(X.email="Please enter a valid email address.",ce=!1),Se||(X.message="Message cannot be empty or just whitespace.",ce=!1),Vt(X),ce&&(Fc({name:be,email:Tt.email}),wt(!1),m(Qe=>Qe.slice(0,-1)),await wa())},[Ce,Je]=tt.useState({});return tt.useEffect(()=>{ai&&(h.forEach((z,X)=>{if(!z.isBot)return;const ce=sp(z.text);if(!(X in Ce)||Ce[X]<ce.length){let be;const Se=Qe=>{Qe<ce.length&&(be=setTimeout(()=>{Je(Rt=>({...Rt,[X]:Qe+1})),Se(Qe+1)},Zi))};return X in Ce?Se(Ce[X]):(Je(Qe=>({...Qe,[X]:1})),Se(1)),()=>clearTimeout(be)}}),Je(z=>{const X={};return h.forEach((ce,be)=>{z[be]!==void 0&&(X[be]=z[be])}),X}))},[h,ai]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(Ffe,{}),R.jsxs(vfe,{$topOffset:Dr,$isLeft:V,children:[!Ie&&te.length>0&&te[P]&&fe&&R.jsx(Nfe,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,style:{display:"flex",flexDirection:V?"row":"row-reverse",alignItems:"center",marginLeft:st?"60px":"85px",marginRight:st?"60px":"85px",left:V?"24px":"auto",right:V?"auto":"24px",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&(()=>{const z=te[P];return R.jsx(zfe,{children:R.jsx(pfe,{messages:[{question:z.question,isHighlighted:z.isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{qe(X=>{const ce=new Set(X);return ce.add(z.question),ce})},onClick:()=>{const X=z;at(!0,"suggested_question_clicked"),qe(ce=>{const be=new Set(ce);return be.add(X.question),be}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:X}),A?(Qn(!1),Tr(!0),k(!0),D(X)):(Qn(!1),Tr(!0),r({message:X.Follow_up_Question??X.question,answer:X.answer,products:X.products,fromKlaviyo:!1,leading_queries:X.leading_queries,followUpQuestion:X.Follow_up_Question,messType:"suggested_question"}))}})},z.question)})()}),R.jsxs(yfe,{$topOffset:Dr,$removeLogoBackground:t.removeLogoBackground,$isLeft:V,style:{display:Ie?"none":"inline-flex"},children:[R.jsx(xfe,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Dr,$iconSize:q}),R.jsxs(bfe,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$isLeft:V,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),at(!Ie,"chat_button_clicked"),!Ie){const z=S();z.length>0?(m(z),Qn(!1),Tr(!0)):(Qn(!0),Tr(!1),setTimeout(()=>{Qn(!1),Tr(!0);const X={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([X])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[R.jsx(_fe,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!Ie&&me&&R.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})]})]}),Ie&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Efe,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:Dr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Mt,"data-testid":"debales-chat-container",children:[R.jsxs(Tfe,{$backgroundColor:Ee(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(TU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Ee(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(Sfe,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(Cfe,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(wfe,{})]})]}):R.jsx(Afe,{children:R.jsxs(kfe,{children:[R.jsx(TU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(Ufe,{children:[R.jsx(OU,{$iconBG:t.backgroundColor,onClick:$r,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(BU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(OU,{$iconBG:t.backgroundColor,onClick:()=>{mt?si(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(Yfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs(Mfe,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[xr&&((ke=(se=t.pluginConfig)==null?void 0:se.collectedUserInfo)==null?void 0:ke.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ki(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Or,showModel:ea,setShowModel:bo,onVariantSelect:z=>{I(z.id,1),_e(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:z.title,price:Number(z.price),link:`https://${t.shopifyShopDomain}/variants/${z.id}`,message:l,chatId:er()+e})},botId:e}),Ot&&R.jsx(OA,{setShowExitModal:si,handleCloseChatbot:$o,chatId:er()+e}),R.jsxs(Ofe,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:ge,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(Gfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}}),R.jsxs(Dfe,{children:[ai&&h.map((z,X)=>{const ce=z.isBot,be=sp(z.text);return z.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[ce&&R.jsxs(DU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:ce?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(IU,{children:[be.slice(0,Ce[X]||0).map((Se,Qe)=>R.jsx("div",{children:R.jsx(Ei,{isBot:ce,children:R.jsx(od,{remarkPlugins:[VS,lC],children:Se})})},Qe)),z.collections&&l===z.conversationId&&At.collections&&R.jsx(kA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p}),z.products&&l===z.conversationId&&At.products&&R.jsx(MA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:bo,setSelectedProduct:li,setCartVersion:ae}),o&&R.jsx(cD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Et]),at(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===z.conversationId&&At.cartSummary&&ht&&R.jsx(wA,{onCheckout:_o,onKeepShopping:()=>{_e(!1)}}),we&&we.length>0&&l===z.conversationId&&At.bulkItems&&R.jsx(sA,{onClick:()=>Ai(z.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(z)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:Se=>{var Rt,Qt;const Qe=typeof Se=="function"?Se(T):Se;k(Qe),!Qe&&((Qt=(Rt=t.pluginConfig)==null?void 0:Rt.collectedUserInfo)!=null&&Qt.discount)&&ki(!0)},inChat:!0,showFormInstructions:!1})}),lt&&h.indexOf(z)===h.length-1&&R.jsxs(jfe,{onSubmit:et,noValidate:!0,"data-testid":"debales-support-form",children:[Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),required:!0,error:pt.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),required:!0,error:pt.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),required:!0,error:pt.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(fD,{children:[R.jsxs(dD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx($U,{type:"text",required:!0,value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),placeholder:"John"}),pt.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.name})]}),R.jsxs(fD,{children:[R.jsxs(dD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx($U,{type:"email",required:!0,value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),placeholder:"olivia@untitledui.com"}),pt.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.email})]}),R.jsxs(fD,{children:[R.jsxs(dD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(Hfe,{required:!0,value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),placeholder:"I need help with..."}),pt.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.message})]})]}),R.jsx(Pfe,{children:R.jsx(qfe,{type:"submit",children:"Submit"})})]}),tr&&!p&&l===z.conversationId&&R.jsx(Ei,{isBot:ce,children:R.jsx(vs,{loading:tr})})]})]}),!ce&&R.jsx($fe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!ce,children:R.jsx(od,{children:z.text})})}),h.length==1&&X==0&&!T&&R.jsx(cD,{children:pr.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:pr.leadingQueries})}):te.map((Se,Qe)=>R.jsxs(RU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:Te.has(Se.question)?.5:1},onClick:()=>{A?(k(!0),D({question:Se.question,answer:Se.answer,products:Se.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se.question,answer:Se.answer,products:Se.products,leading_queries:Se.leading_queries,followUpQuestion:Se.Follow_up_Question,messType:"leading_query"}),qe(Rt=>{const Qt=new Set(Rt);return Qt.add(Se.question),Qt}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Se.question})},disabled:p,$disabled:p,children:[Se.question,R.jsx(MU,{color:t.callToActionFontColor})]},Qe))}),z.leading_queries&&z.leading_queries.length>0&&l===z.conversationId&&At.leadingQueries&&!o&&!T&&R.jsx(cD,{children:z.leading_queries.map((Se,Qe)=>R.jsxs(RU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:Se,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:Se})},disabled:p,$disabled:p,children:[Se,R.jsx(MU,{color:t.callToActionFontColor})]},Qe))})]},X)}),(p||nr)&&R.jsxs(DU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(IU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||nr})})})})]})]}),R.jsx(Vfe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(Bfe,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(Rfe,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Ife,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},Qfe=K.p`
|
|
3384
3384
|
margin: 0;
|
|
3385
3385
|
font-size: 16px;
|
|
3386
3386
|
min-height: 24px;
|
|
@@ -3510,7 +3510,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3510
3510
|
-ms-flex-negative: 0;
|
|
3511
3511
|
flex-shrink: 0;
|
|
3512
3512
|
object-fit: contain;
|
|
3513
|
-
border-radius: ${e=>
|
|
3513
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
3514
3514
|
padding: 2px !important;
|
|
3515
3515
|
|
|
3516
3516
|
@media screen and (max-width: 768px) {
|
|
@@ -3564,7 +3564,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3564
3564
|
z-index: 2147483647;
|
|
3565
3565
|
background-color: ${e=>e.$backgroundColor};
|
|
3566
3566
|
color: ${e=>e.$headerFontColor};
|
|
3567
|
-
border-radius: ${e=>
|
|
3567
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"16px"} !important;
|
|
3568
3568
|
padding: 0 !important;
|
|
3569
3569
|
margin: 0 !important;
|
|
3570
3570
|
display: flex;
|
|
@@ -3590,7 +3590,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3590
3590
|
left: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"16px":"auto":e.$fullScreenOnMobile?"0":e.$isLeft?"16px":"auto"};
|
|
3591
3591
|
right: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"auto":"16px":e.$fullScreenOnMobile?"0":e.$isLeft?"auto":"16px"};
|
|
3592
3592
|
bottom: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$topOffset||"16px":e.$fullScreenOnMobile?"0":e.$topOffset||"16px"};
|
|
3593
|
-
border-radius: ${e=>
|
|
3593
|
+
border-radius: ${e=>Ee(e.theme.botId)||e.$mobileDisplayMode==="full-screen"?"0":e.$mobileDisplayMode==="half-screen"?"16px 16px 0 0":"16px"} !important;
|
|
3594
3594
|
overflow: hidden;
|
|
3595
3595
|
touch-action: manipulation;
|
|
3596
3596
|
/* Apply proper touch action for mobile modes to allow content scrolling */
|
|
@@ -3613,14 +3613,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3613
3613
|
display: flex;
|
|
3614
3614
|
align-items: center;
|
|
3615
3615
|
padding: 2px;
|
|
3616
|
-
border-radius: ${e=>
|
|
3616
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
3617
3617
|
background: conic-gradient(#0ead3f, #00b200, #1ca77e, #379bfb, #0ead3f);
|
|
3618
3618
|
`,ude=K.div`
|
|
3619
3619
|
display: flex;
|
|
3620
3620
|
align-items: center;
|
|
3621
3621
|
background: #fff;
|
|
3622
3622
|
padding: 0 16px 0 3px; /* Adjusted padding */
|
|
3623
|
-
border-radius: ${e=>
|
|
3623
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
3624
3624
|
height: 40px; /* Adjusted height */
|
|
3625
3625
|
font-weight: 600;
|
|
3626
3626
|
font-size: 16px; /* Adjusted font-size */
|
|
@@ -3628,9 +3628,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3628
3628
|
`,NU=K.button`
|
|
3629
3629
|
width: 40px;
|
|
3630
3630
|
height: 40px;
|
|
3631
|
-
border-radius: ${e=>
|
|
3631
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
3632
3632
|
border: 1.5px solid rgba(0, 0, 0, 0.3);
|
|
3633
|
-
background: ${e=>
|
|
3633
|
+
background: ${e=>Ee(e.theme.botId)?e.$iconBG:"#fff"};
|
|
3634
3634
|
display: flex;
|
|
3635
3635
|
align-items: center;
|
|
3636
3636
|
justify-content: center;
|
|
@@ -3638,7 +3638,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3638
3638
|
cursor: pointer;
|
|
3639
3639
|
transition: background 0.2s;
|
|
3640
3640
|
&:hover {
|
|
3641
|
-
background: ${e=>!
|
|
3641
|
+
background: ${e=>!Ee(e.theme.botId)&&"#f5f5f5"};
|
|
3642
3642
|
}
|
|
3643
3643
|
`,cde=K.div`
|
|
3644
3644
|
z-index: 2147483647;
|
|
@@ -3672,7 +3672,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3672
3672
|
|
|
3673
3673
|
&::-webkit-scrollbar-thumb {
|
|
3674
3674
|
background: #7a7979;
|
|
3675
|
-
border-radius: ${e=>
|
|
3675
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"5px"} !important;
|
|
3676
3676
|
}
|
|
3677
3677
|
|
|
3678
3678
|
/* Improved scrolling behavior for all mobile modes */
|
|
@@ -3808,12 +3808,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3808
3808
|
justify-content: center;
|
|
3809
3809
|
text-align: left;
|
|
3810
3810
|
align-self: stretch;
|
|
3811
|
-
border-radius: ${e=>
|
|
3811
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
3812
3812
|
color: white;
|
|
3813
3813
|
border: none;
|
|
3814
3814
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
3815
3815
|
font-size: 14px;
|
|
3816
|
-
font-weight: ${e=>
|
|
3816
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
3817
3817
|
line-height: 20px !important;
|
|
3818
3818
|
transition: all 0.05s ease;
|
|
3819
3819
|
height: auto !important;
|
|
@@ -3883,7 +3883,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3883
3883
|
display: flex;
|
|
3884
3884
|
align-items: center;
|
|
3885
3885
|
background: ${e=>e.$removeLogoBackground?"transparent":e.theme.colors.background};
|
|
3886
|
-
border-radius: ${e=>
|
|
3886
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"16px"} !important;
|
|
3887
3887
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
3888
3888
|
gap: 12px;
|
|
3889
3889
|
position: relative;
|
|
@@ -4012,7 +4012,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4012
4012
|
margin: 4px 10px 4px;
|
|
4013
4013
|
padding: 16px 16px;
|
|
4014
4014
|
background-color: ${e=>e.theme.colors.bot.message||"#fff"};
|
|
4015
|
-
border-radius: ${e=>
|
|
4015
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
4016
4016
|
width: 100%;
|
|
4017
4017
|
max-width: 320px;
|
|
4018
4018
|
`,gD=K.div`
|
|
@@ -4026,7 +4026,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4026
4026
|
margin-bottom: 8px;
|
|
4027
4027
|
font-size: 16px;
|
|
4028
4028
|
color: #1c1c1c;
|
|
4029
|
-
font-weight: ${e=>
|
|
4029
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4030
4030
|
|
|
4031
4031
|
span {
|
|
4032
4032
|
color: #ff3b30;
|
|
@@ -4035,30 +4035,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4035
4035
|
width: calc(100% - 26px);
|
|
4036
4036
|
padding: 12px;
|
|
4037
4037
|
border: 1px solid #d0d5dd;
|
|
4038
|
-
border-radius: ${e=>
|
|
4038
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4039
4039
|
font-size: 16px;
|
|
4040
|
-
font-weight: ${e=>
|
|
4041
|
-
background-color: ${e=>
|
|
4040
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4041
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
4042
4042
|
|
|
4043
4043
|
&:focus {
|
|
4044
4044
|
outline: none;
|
|
4045
4045
|
border-color: #f48722;
|
|
4046
|
-
background-color: ${e=>
|
|
4046
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
4047
4047
|
}
|
|
4048
4048
|
`,Ede=K.textarea`
|
|
4049
4049
|
width: calc(100% - 26px);
|
|
4050
4050
|
padding: 12px;
|
|
4051
4051
|
border: 1px solid #d0d5dd;
|
|
4052
|
-
border-radius: ${e=>
|
|
4052
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4053
4053
|
font-size: 16px;
|
|
4054
|
-
font-weight: ${e=>
|
|
4055
|
-
background-color: ${e=>
|
|
4054
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4055
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
4056
4056
|
resize: none;
|
|
4057
4057
|
|
|
4058
4058
|
&:focus {
|
|
4059
4059
|
outline: none;
|
|
4060
4060
|
border-color: #f48722;
|
|
4061
|
-
background-color: ${e=>
|
|
4061
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
4062
4062
|
}
|
|
4063
4063
|
`,Ade=K.button`
|
|
4064
4064
|
height: 40px !important;
|
|
@@ -4067,9 +4067,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4067
4067
|
background-color: ${e=>e.theme.colors.cta.background};
|
|
4068
4068
|
color: ${e=>e.theme.colors.cta.font};
|
|
4069
4069
|
border: none;
|
|
4070
|
-
border-radius: ${e=>
|
|
4070
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4071
4071
|
font-size: 14px;
|
|
4072
|
-
font-weight: ${e=>
|
|
4072
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
4073
4073
|
cursor: pointer;
|
|
4074
4074
|
transition: all 0.3s ease;
|
|
4075
4075
|
justify-content: center;
|
|
@@ -4129,11 +4129,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4129
4129
|
opacity: 0;
|
|
4130
4130
|
z-index: 1;
|
|
4131
4131
|
bottom: 0;
|
|
4132
|
-
`,Mde=({botId:e})=>{var se,Ae;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),[Ie,Le]=tt.useState(!1),[Mt,Ze]=tt.useState(!1),nt=Fl("acquisition_agent"),[Bt,zt]=ie.useState(window.location.pathname),rt=ie.useCallback(async()=>{try{if(!nt||(t==null?void 0:t.show_bot)===!1)return;const z=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(z.ok){const X=await z.json(),ce=window.location.pathname,be=3;le(Se=>{const Qe=[...Se],Rt={question:X.Popup_Message,answer:"",path:ce,nameSpace:e,type:"dynamic",Follow_up_Question:X.Follow_up_Question};return Qe.length>=be&&Qe.shift(),Qe.push(Rt),console.log("updated questions in ChatbotComponent2",Qe),Qe})}else console.error("Failed to fetch new acquisition question")}catch(z){console.error("Error fetching new acquisition question:",z)}},[e,nt,t==null?void 0:t.show_bot]);ie.useEffect(()=>{const z=()=>{const be=window.location.pathname;be!==Bt&&(zt(be),rt())};window.addEventListener("popstate",z);const X=history.pushState,ce=history.replaceState;return history.pushState=function(...be){X.apply(this,be),z()},history.replaceState=function(...be){ce.apply(this,be),z()},()=>{window.removeEventListener("popstate",z),history.pushState=X,history.replaceState=ce}},[Bt,rt]),ie.useEffect(()=>{const z=rn=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const lr=document.documentElement.scrollHeight,Hr=document.documentElement.clientHeight,Ti=window.scrollY,Xr=lr-Hr;return Xr<=0?rn:Ti/Xr*100>50?0:rn}return rn};if(J&&!Ie&&(ee.current=z(J.showing_delay||2e3)),!J||Ie||te.length===0)return;let X,ce,be,Se;const Qe=J.showing_delay||2e3,Rt=J.showing_delay||2e3,Qt=J.show_for||4e3,en=J.hide_timing||4e3,Ln=async()=>{if(te.length===0||!te[P]){Se=setTimeout(()=>{te.length>0&&ve(rn=>rn%te.length)},en+500);return}X=setTimeout(()=>{Ie||(W(!0),ce=setTimeout(async()=>{Ie||(he(!0),H(!0),be=setTimeout(async()=>{Ie||(H(!1),he(!1),W(!1),ve(rn=>(rn+1)%te.length),Se=setTimeout(()=>{Ln()},en))},Qt))},Rt))},ee.current)};return te.length===0&&e?rt().then(()=>{if(!Ie&&te.length>0){ve(0);const rn=z(Qe);ee.current=rn,Ln()}}):!Ie&&te.length>0&&Ln(),()=>{clearTimeout(X),clearTimeout(ce),clearTimeout(be),clearTimeout(Se)}},[J,Ie,rt,te,P,e]);const[st,yt]=fm(_n.SHOW_CART_SUMMARY,!0),[_t,kt]=ie.useState(!1);ie.useEffect(()=>{const z=()=>{kt(window.matchMedia("(max-width: 768px)").matches)};return z(),()=>window.removeEventListener("resize",z)},[]);const[Et,ne]=ie.useState(""),[ae,ge]=ie.useState(""),[,Be]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let z=Io();if(!z&&window.Thinkific){const X=window.Thinkific.current_user;X&&(z={name:X.full_name,email:X.email},Fc(z))}Bu.init({projectName:e,debug:!1,testing:jx}),z&&z.email&&(window.DebalesChat.identify(z.email,{name:z.name,phone:z.phone,email:z.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:z.email,first_name:z.name,phone:z.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const Te=tt.useRef(null),qe=jn(_n.CLICKED_QUESTIONS,{botId:e}),[at,ht]=ie.useState(()=>{try{const z=sessionStorage.getItem(qe);return z?new Set(JSON.parse(z)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(qe,JSON.stringify(Array.from(at)))}catch(z){console.error("Failed to save to sessionStorage:",z)}},[at]);const _e=ie.useCallback((z,X)=>{z?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})),setTimeout(()=>{Ze(!0)},50)):(Ze(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})))},[]);ie.useEffect(()=>{const z=X=>{X.detail.projectId===e&&(Le(X.detail.isOpen),X.detail.isOpen&&setTimeout(()=>Ze(!0),50),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen,source:X.detail.source}))};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[e,Le,Ze]);const[we,bt]=tt.useState(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e}),X=sessionStorage.getItem(z);return X?JSON.parse(X):[]});tt.useEffect(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(z,JSON.stringify(we))},[we,e]);const[lt,wt]=ie.useState(!1),[Tt,Kt]=ie.useState({name:"",email:"",message:""}),[Ht,mn]=ie.useState([]),[pt,Vt]=ie.useState({name:"",email:"",message:""}),mt=Fl("exit_model"),[At,Rn]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[pr,Yn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Yn(X=>({...X,leadingQueries:!0}));const z=setTimeout(()=>{Yn(X=>({...X,leadingQueries:!1}))},2e3);return()=>clearTimeout(z)}},[h,T]);const[tr,Ar]=ie.useState(!1),[kr,Zn]=ie.useState(!0),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),[vn,ln]=ie.useState(!1),Zi=500,gr=ie.useCallback(()=>{const z=Te.current;if(!z){on(!1),ln(!1),Zn(!0);return}if(ke(e)){on(!1);return}const X=z.scrollTop,ce=z.scrollHeight,be=z.clientHeight,Se=ce>be,Qe=1,Rt=X<=Qe,Qt=X+be>=ce-Qe;Se?(on(!Rt),ln(!Qt),Zn(Qt)):(on(!1),ln(!1),Zn(!0))},[Te,on,ln,Zn]);tt.useEffect(()=>{const z=Te.current;if(Ie&&z){gr(),z.addEventListener("scroll",gr);const X=new ResizeObserver(gr);return X.observe(z),()=>{z.removeEventListener("scroll",gr),X.unobserve(z)}}else Ie||(on(!1),ln(!1),Zn(!0))},[Ie,h,tr,gr]),tt.useEffect(()=>{var z,X,ce,be,Se,Qe;if(h.length>0&&!p){const Rt=h[h.length-1],Qt=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),en=Rt.isBot&&Rt.conversationId===l&&Rt.conversationId!==Qt,Ln=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Rt.conversationId===l;if(en){Ar(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Rt.conversationId||""),Rn({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const rn=2e3;let lr=rn;const Hr=[{type:"collections",condition:((z=Rt.collections)==null?void 0:z.length)&&((X=Rt.collections)==null?void 0:X.length)>0},{type:"products",condition:((ce=Rt.products)==null?void 0:ce.length)&&((be=Rt.products)==null?void 0:be.length)>0},{type:"leadingQueries",condition:((Se=Rt.leading_queries)==null?void 0:Se.length)&&((Qe=Rt.leading_queries)==null?void 0:Qe.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(we==null?void 0:we.length)>0}].filter(Ti=>Ti.condition);if(Hr.length===0){Ar(!1);return}Hr.forEach(({type:Ti},Xr)=>{setTimeout(()=>{if(Rn(Qi=>({...Qi,[Ti]:!0})),kr&&Te.current){const Qi=Te.current;Qi.scrollHeight-Qi.scrollTop<=Qi.clientHeight&&_a(Te)}Xr===Hr.length-1&&Ar(!1)},lr),lr+=rn})}else Ln&&Rn(rn=>({...rn,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,we==null?void 0:we.length,kr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const z=Te.current;z&&kr&&z.scrollHeight-z.scrollTop<=z.clientHeight+100&&setTimeout(()=>_a(Te),100)}},[h.length,o,kr]),tt.useEffect(()=>{const z=document.querySelector('meta[name="viewport"]'),X=z==null?void 0:z.content;if(Ie){let ce=z;const be=window.matchMedia("(max-width: 768px)").matches;ce?ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ce=document.createElement("meta"),ce.name="viewport",ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ce)),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Se=ce;return()=>{X&&Se&&(Se.content=X),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(Ie&&h.length>0&&!o){const z=setTimeout(()=>{Te.current&&_a(Te)},150);return()=>clearTimeout(z)}},[Ie,h.length,o]),tt.useEffect(()=>{O!=null&&O.itemCount&&O.itemCount===0&&!o&&setTimeout(()=>_a(Te),100)},[O==null?void 0:O.itemCount,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(!1),[Or,li]=ie.useState(null),$o=async z=>{const X=er();if(Ze(!1),z&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:X,userRating:z,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ce){console.error("Error submitting rating:",ce)}setTimeout(()=>{si(!1),_e(!1,"close_button_clicked")},1e3)},Ai=z=>{y(!0),we.forEach(ce=>{I(ce.id,ce.quantity)}),yt(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:we,message:z});const X=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:z,isBot:!0}];m(X),x(X),d(z),bt([]),y(!1)},Kn=()=>{var z;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((z=window.shiprocketCheckoutEvents)!=null&&z.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},_o=async z=>{z.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),Kn()&&_e(!1,"checkout_clicked")};tt.useEffect(()=>{const z=aC(w);le(X=>[...z.filter(be=>!X.some(Se=>Se.question===be.question))])},[w]),tt.useEffect(()=>{const z=be=>{const Se=be.detail.formId;switch(be.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Rt=X(Se);Rt&&ne(Rt)},800);break;case"close":Et&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{_e(!0,"klaviyo_form_closed"),ge(Se),r({message:Et,fromKlaviyo:!0})},1e4);break}},X=be=>{const Se=document.querySelector(`[data-testid="klaviyo-form-${be}"]`);if(console.log(`formElement text ${be} =>`,Se==null?void 0:Se.innerText,Se==null?void 0:Se.textContent),Se instanceof HTMLElement){const Qe=Se.innerText||Se.textContent;if(Qe)return console.log("Found form text:",Qe),`=> Klaviyo form content:
|
|
4132
|
+
`,Mde=({botId:e})=>{var se,ke;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),[Ie,Le]=tt.useState(!1),[Mt,Ze]=tt.useState(!1),nt=Fl("acquisition_agent"),[Bt,zt]=ie.useState(window.location.pathname),rt=ie.useCallback(async()=>{try{if(!nt||(t==null?void 0:t.show_bot)===!1)return;const z=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(z.ok){const X=await z.json(),ce=window.location.pathname,be=3;le(Se=>{const Qe=[...Se],Rt={question:X.Popup_Message,answer:"",path:ce,nameSpace:e,type:"dynamic",Follow_up_Question:X.Follow_up_Question};return Qe.length>=be&&Qe.shift(),Qe.push(Rt),console.log("updated questions in ChatbotComponent2",Qe),Qe})}else console.error("Failed to fetch new acquisition question")}catch(z){console.error("Error fetching new acquisition question:",z)}},[e,nt,t==null?void 0:t.show_bot]);ie.useEffect(()=>{const z=()=>{const be=window.location.pathname;be!==Bt&&(zt(be),rt())};window.addEventListener("popstate",z);const X=history.pushState,ce=history.replaceState;return history.pushState=function(...be){X.apply(this,be),z()},history.replaceState=function(...be){ce.apply(this,be),z()},()=>{window.removeEventListener("popstate",z),history.pushState=X,history.replaceState=ce}},[Bt,rt]),ie.useEffect(()=>{const z=rn=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const lr=document.documentElement.scrollHeight,Hr=document.documentElement.clientHeight,Ti=window.scrollY,Xr=lr-Hr;return Xr<=0?rn:Ti/Xr*100>50?0:rn}return rn};if(J&&!Ie&&(ee.current=z(J.showing_delay||2e3)),!J||Ie||te.length===0)return;let X,ce,be,Se;const Qe=J.showing_delay||2e3,Rt=J.showing_delay||2e3,Qt=J.show_for||4e3,en=J.hide_timing||4e3,Ln=async()=>{if(te.length===0||!te[P]){Se=setTimeout(()=>{te.length>0&&ve(rn=>rn%te.length)},en+500);return}X=setTimeout(()=>{Ie||(W(!0),ce=setTimeout(async()=>{Ie||(he(!0),H(!0),be=setTimeout(async()=>{Ie||(H(!1),he(!1),W(!1),ve(rn=>(rn+1)%te.length),Se=setTimeout(()=>{Ln()},en))},Qt))},Rt))},ee.current)};return te.length===0&&e?rt().then(()=>{if(!Ie&&te.length>0){ve(0);const rn=z(Qe);ee.current=rn,Ln()}}):!Ie&&te.length>0&&Ln(),()=>{clearTimeout(X),clearTimeout(ce),clearTimeout(be),clearTimeout(Se)}},[J,Ie,rt,te,P,e]);const[st,yt]=fm(_n.SHOW_CART_SUMMARY,!0),[_t,kt]=ie.useState(!1);ie.useEffect(()=>{const z=()=>{kt(window.matchMedia("(max-width: 768px)").matches)};return z(),()=>window.removeEventListener("resize",z)},[]);const[Et,ne]=ie.useState(""),[ae,ge]=ie.useState(""),[,Be]=ie.useState(0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let z=Io();if(!z&&window.Thinkific){const X=window.Thinkific.current_user;X&&(z={name:X.full_name,email:X.email},Fc(z))}Bu.init({projectName:e,debug:!1,testing:jx}),z&&z.email&&(window.DebalesChat.identify(z.email,{name:z.name,phone:z.phone,email:z.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:z.email,first_name:z.name,phone:z.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const Te=tt.useRef(null),qe=jn(_n.CLICKED_QUESTIONS,{botId:e}),[at,ht]=ie.useState(()=>{try{const z=sessionStorage.getItem(qe);return z?new Set(JSON.parse(z)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(qe,JSON.stringify(Array.from(at)))}catch(z){console.error("Failed to save to sessionStorage:",z)}},[at]);const _e=ie.useCallback((z,X)=>{z?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})),setTimeout(()=>{Ze(!0)},50)):(Ze(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:z,source:X,projectId:e}})))},[]);ie.useEffect(()=>{const z=X=>{X.detail.projectId===e&&(Le(X.detail.isOpen),X.detail.isOpen&&setTimeout(()=>Ze(!0),50),window.DebalesChat.isOpen=X.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:X.detail.isOpen,source:X.detail.source}))};return window.addEventListener(jr.OPEN_STATE_CHANGE,z),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,z)}},[e,Le,Ze]);const[we,bt]=tt.useState(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e}),X=sessionStorage.getItem(z);return X?JSON.parse(X):[]});tt.useEffect(()=>{const z=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(z,JSON.stringify(we))},[we,e]);const[lt,wt]=ie.useState(!1),[Tt,Kt]=ie.useState({name:"",email:"",message:""}),[Ht,mn]=ie.useState([]),[pt,Vt]=ie.useState({name:"",email:"",message:""}),mt=Fl("exit_model"),[At,Rn]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[pr,Yn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Yn(X=>({...X,leadingQueries:!0}));const z=setTimeout(()=>{Yn(X=>({...X,leadingQueries:!1}))},2e3);return()=>clearTimeout(z)}},[h,T]);const[tr,Ar]=ie.useState(!1),[kr,Zn]=ie.useState(!0),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),[vn,ln]=ie.useState(!1),Zi=500,gr=ie.useCallback(()=>{const z=Te.current;if(!z){on(!1),ln(!1),Zn(!0);return}if(Ee(e)){on(!1);return}const X=z.scrollTop,ce=z.scrollHeight,be=z.clientHeight,Se=ce>be,Qe=1,Rt=X<=Qe,Qt=X+be>=ce-Qe;Se?(on(!Rt),ln(!Qt),Zn(Qt)):(on(!1),ln(!1),Zn(!0))},[Te,on,ln,Zn]);tt.useEffect(()=>{const z=Te.current;if(Ie&&z){gr(),z.addEventListener("scroll",gr);const X=new ResizeObserver(gr);return X.observe(z),()=>{z.removeEventListener("scroll",gr),X.unobserve(z)}}else Ie||(on(!1),ln(!1),Zn(!0))},[Ie,h,tr,gr]),tt.useEffect(()=>{var z,X,ce,be,Se,Qe;if(h.length>0&&!p){const Rt=h[h.length-1],Qt=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),en=Rt.isBot&&Rt.conversationId===l&&Rt.conversationId!==Qt,Ln=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Rt.conversationId===l;if(en){Ar(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Rt.conversationId||""),Rn({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const rn=2e3;let lr=rn;const Hr=[{type:"collections",condition:((z=Rt.collections)==null?void 0:z.length)&&((X=Rt.collections)==null?void 0:X.length)>0},{type:"products",condition:((ce=Rt.products)==null?void 0:ce.length)&&((be=Rt.products)==null?void 0:be.length)>0},{type:"leadingQueries",condition:((Se=Rt.leading_queries)==null?void 0:Se.length)&&((Qe=Rt.leading_queries)==null?void 0:Qe.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(we==null?void 0:we.length)>0}].filter(Ti=>Ti.condition);if(Hr.length===0){Ar(!1);return}Hr.forEach(({type:Ti},Xr)=>{setTimeout(()=>{if(Rn(Qi=>({...Qi,[Ti]:!0})),kr&&Te.current){const Qi=Te.current;Qi.scrollHeight-Qi.scrollTop<=Qi.clientHeight&&_a(Te)}Xr===Hr.length-1&&Ar(!1)},lr),lr+=rn})}else Ln&&Rn(rn=>({...rn,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,we==null?void 0:we.length,kr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const z=Te.current;z&&kr&&z.scrollHeight-z.scrollTop<=z.clientHeight+100&&setTimeout(()=>_a(Te),100)}},[h.length,o,kr]),tt.useEffect(()=>{const z=document.querySelector('meta[name="viewport"]'),X=z==null?void 0:z.content;if(Ie){let ce=z;const be=window.matchMedia("(max-width: 768px)").matches;ce?ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ce=document.createElement("meta"),ce.name="viewport",ce.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ce)),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Se=ce;return()=>{X&&Se&&(Se.content=X),be&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(Ie&&h.length>0&&!o){const z=setTimeout(()=>{Te.current&&_a(Te)},150);return()=>clearTimeout(z)}},[Ie,h.length,o]),tt.useEffect(()=>{O!=null&&O.total&&!o&&setTimeout(()=>_a(Te),100)},[O==null?void 0:O.total,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(!1),[Or,li]=ie.useState(null),$o=async z=>{const X=er();if(Ze(!1),z&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:X,userRating:z,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ce){console.error("Error submitting rating:",ce)}setTimeout(()=>{si(!1),_e(!1,"close_button_clicked")},1e3)},Ai=z=>{y(!0),we.forEach(ce=>{I(ce.id,ce.quantity)}),yt(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:we,message:z});const X=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:z,isBot:!0}];m(X),x(X),d(z),bt([]),y(!1)},Kn=()=>{var z;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((z=window.shiprocketCheckoutEvents)!=null&&z.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},_o=async z=>{z.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),Kn()&&_e(!1,"checkout_clicked")};tt.useEffect(()=>{const z=aC(w);le(X=>[...z.filter(be=>!X.some(Se=>Se.question===be.question))])},[w]),tt.useEffect(()=>{const z=be=>{const Se=be.detail.formId;switch(be.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Rt=X(Se);Rt&&ne(Rt)},800);break;case"close":Et&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{_e(!0,"klaviyo_form_closed"),ge(Se),r({message:Et,fromKlaviyo:!0})},1e4);break}},X=be=>{const Se=document.querySelector(`[data-testid="klaviyo-form-${be}"]`);if(console.log(`formElement text ${be} =>`,Se==null?void 0:Se.innerText,Se==null?void 0:Se.textContent),Se instanceof HTMLElement){const Qe=Se.innerText||Se.textContent;if(Qe)return console.log("Found form text:",Qe),`=> Klaviyo form content:
|
|
4133
4133
|
|
|
4134
4134
|
`+Qe+`
|
|
4135
4135
|
|
|
4136
|
-
=> User Action: Klaviyo form closed`}return""},ce=be=>{be instanceof CustomEvent&&z(be)};return window.addEventListener("klaviyoForms",ce),()=>{window.removeEventListener("klaviyoForms",ce)}},[Et,t,r]),tt.useEffect(()=>{const z=Te.current;return Ie&&z?(z.addEventListener("scroll",gr),()=>{z&&z.removeEventListener("scroll",gr)}):()=>{}},[Ie,gr]);const[xr,ki]=ie.useState(!1),Dr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",wa=async()=>{try{const z=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:Tt.name,userEmail:Tt.email,userMessage:Tt.message,tag:"support"})});if(z.ok){const X=`support-confirm-${Date.now()}`;m(ce=>[...ce,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Ht,conversationId:X}]),d(X),Rn(ce=>({...ce,leadingQueries:!0})),mn([]),console.log("Connected to support with existing user info:",Io())}else{const X=await z.json();console.error("Failed to connect to support:",X),m(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(X=>[...X,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},$r=()=>{if(ke(e)){const be=dp("https://test.thecollective.in/content/customersupport");be.isValid&&(t!=null&&t.shopifyShopDomain&&(be.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(be.url.toString()),"_blank"));return}const z=Io();let X=[];const ce=h[h.length-1];ce!=null&&ce.leading_queries&&ce.leading_queries.length>0?X=ce.leading_queries:h.length<=1&&(X=te.flatMap(be=>Array.isArray(be)?be.map(Se=>Se.question):[be.question]).slice(0,4)),mn(X),z&&z.name&&z.email&&Kt({name:z==null?void 0:z.name,email:z==null?void 0:z.email,message:""}),m(be=>[...be,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),wt(!0)},et=async z=>{z.preventDefault();const X={name:"",email:"",message:""};let ce=!0;const be=Tt.name.trim(),Se=Tt.message.trim();be||(X.name="Name cannot be empty or just whitespace.",ce=!1),(!Tt.email||!rm.isEmail(Tt.email))&&(X.email="Please enter a valid email address.",ce=!1),Se||(X.message="Message cannot be empty or just whitespace.",ce=!1),Vt(X),ce&&(Fc({name:be,email:Tt.email}),wt(!1),m(Qe=>Qe.slice(0,-1)),await wa())},[Ce,Je]=tt.useState({});return tt.useEffect(()=>{ai&&(h.forEach((z,X)=>{if(!z.isBot)return;const ce=sp(z.text);if(!(X in Ce)||Ce[X]<ce.length){let be;const Se=Qe=>{Qe<ce.length&&(be=setTimeout(()=>{Je(Rt=>({...Rt,[X]:Qe+1})),Se(Qe+1)},Zi))};return X in Ce?Se(Ce[X]):(Je(Qe=>({...Qe,[X]:1})),Se(1)),()=>clearTimeout(be)}}),Je(z=>{const X={};return h.forEach((ce,be)=>{z[be]!==void 0&&(X[be]=z[be])}),X}))},[h,ai]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(Sde,{}),R.jsx(ede,{$topOffset:Dr,$isLeft:V,children:R.jsxs(xde,{$isLeft:V,$removeLogoBackground:t.removeLogoBackground,children:[!Ie&&te.length>0&&te[P]&&fe&&R.jsx(bde,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$isLeft:V,style:{display:"flex",flexDirection:V?"row":"row-reverse",alignItems:"center",marginRight:V?"0px":_t?"10px":"5px",marginTop:_t?"0px":"10px",left:V?"24px":"auto",right:V?"auto":"24px",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&(()=>{const z=te[P];return R.jsx(_de,{children:R.jsx(Wfe,{messages:[{question:z.question,isHighlighted:z.isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,isLeft:V,onClose:()=>{ht(X=>{const ce=new Set(X);return ce.add(z.question),ce})},onClick:()=>{const X=z;_e(!0,"suggested_question_clicked"),ht(ce=>{const be=new Set(ce);return be.add(X.question),be}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:X}),A?(Qn(!1),Tr(!0),k(!0),D(X)):(Qn(!1),Tr(!0),r({message:X.Follow_up_Question??X.question,answer:X.answer,products:X.products,fromKlaviyo:!1,leading_queries:X.leading_queries,messType:"suggested_question"}))}})},z.question)})()}),R.jsx(tde,{$topOffset:Dr,$removeLogoBackground:t.removeLogoBackground,style:{display:Ie?"none":"inline-flex"},children:R.jsxs(nde,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),_e(!Ie,"chat_button_clicked"),!Ie){const z=S();z.length>0?(m(z),Qn(!1),Tr(!0)):(Qn(!0),Tr(!1),setTimeout(()=>{Qn(!1),Tr(!0);const X={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([X])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[R.jsx(rde,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!Ie&&me&&!fe&&R.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})})]})}),Ie&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(sde,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:Dr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Mt,"data-testid":"debales-chat-container",children:[R.jsxs(cde,{$backgroundColor:ke(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(LU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),ke(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(ide,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(ade,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(ode,{})]})]}):R.jsx(lde,{children:R.jsxs(ude,{children:[R.jsx(LU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(wde,{children:[R.jsx(NU,{$iconBG:t.backgroundColor,onClick:$r,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(HU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(NU,{$iconBG:t.backgroundColor,onClick:()=>{mt?si(!0):_e(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(Dde,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs(hde,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[xr&&((Ae=(se=t.pluginConfig)==null?void 0:se.collectedUserInfo)==null?void 0:Ae.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ki(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Or,showModel:ea,setShowModel:bo,onVariantSelect:z=>{I(z.id,1),yt(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:z.title,price:Number(z.price),link:`https://${t.shopifyShopDomain}/variants/${z.id}`,message:l,chatId:er()+e})},botId:e}),Ot&&R.jsx(OA,{setShowExitModal:si,handleCloseChatbot:$o,chatId:er()+e}),R.jsxs(fde,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:Te,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(Tde,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}}),R.jsxs(dde,{children:[ai&&h.map((z,X)=>{const ce=z.isBot,be=sp(z.text);return z.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[ce&&R.jsxs(zU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:ce?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(jU,{children:[be.slice(0,Ce[X]||0).map((Se,Qe)=>R.jsx("div",{children:R.jsx(Ei,{isBot:ce,children:R.jsx(od,{remarkPlugins:[VS,lC],children:Se})})},Qe)),z.collections&&l===z.conversationId&&At.collections&&R.jsx(kA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p}),z.products&&l===z.conversationId&&At.products&&R.jsx(MA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:bo,setSelectedProduct:li,setCartVersion:Be}),o&&R.jsx(pD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",ae]),_e(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===z.conversationId&&At.cartSummary&&st&&R.jsx(wA,{onCheckout:_o,onKeepShopping:()=>{yt(!1)}}),we&&we.length>0&&l===z.conversationId&&At.bulkItems&&R.jsx(sA,{onClick:()=>Ai(z.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(z)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:Se=>{var Rt,Qt;const Qe=typeof Se=="function"?Se(T):Se;k(Qe),!Qe&&((Qt=(Rt=t.pluginConfig)==null?void 0:Rt.collectedUserInfo)!=null&&Qt.discount)&&ki(!0)},inChat:!0,showFormInstructions:!1})}),lt&&h.indexOf(z)===h.length-1&&R.jsxs(Cde,{onSubmit:et,noValidate:!0,"data-testid":"debales-support-form",children:[ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),required:!0,error:pt.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),required:!0,error:pt.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),required:!0,error:pt.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(gD,{children:[R.jsxs(mD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(qU,{type:"text",required:!0,value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),placeholder:"John"}),pt.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.name})]}),R.jsxs(gD,{children:[R.jsxs(mD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(qU,{type:"email",required:!0,value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),placeholder:"olivia@untitledui.com"}),pt.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.email})]}),R.jsxs(gD,{children:[R.jsxs(mD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(Ede,{required:!0,value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),placeholder:"I need help with..."}),pt.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.message})]})]}),R.jsx(kde,{children:R.jsx(Ade,{type:"submit",children:"Submit"})})]}),tr&&!p&&l===z.conversationId&&R.jsx(Ei,{isBot:ce,children:R.jsx(vs,{loading:tr,loadingPhrases:["🎨 Loading","✨ Almost","🚀 Ready"]})})]})]}),!ce&&R.jsx(vde,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!ce,children:R.jsx(od,{children:z.text})})}),h.length==1&&X==0&&!T&&R.jsx(pD,{children:pr.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:pr.leadingQueries})}):te.map((Se,Qe)=>R.jsxs(UU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Se.question)?.5:1},onClick:()=>{A?(k(!0),D({question:Se.question,answer:Se.answer,products:Se.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se.question,answer:Se.answer,products:Se.products,messType:"leading_query"}),ht(Rt=>{const Qt=new Set(Rt);return Qt.add(Se.question),Qt}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Se.question})},disabled:p,$disabled:p,children:[Se.question,R.jsx(FU,{color:t.callToActionFontColor})]},Qe))}),z.leading_queries&&z.leading_queries.length>0&&l===z.conversationId&&At.leadingQueries&&!o&&!T&&R.jsx(pD,{children:z.leading_queries.map((Se,Qe)=>R.jsxs(UU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:Se,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:Se})},disabled:p,$disabled:p,children:[Se,R.jsx(FU,{color:t.callToActionFontColor})]},Qe))})]},X)}),(p||nr)&&R.jsxs(zU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(jU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||nr})})})})]})]}),R.jsx(Ode,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(mde,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(pde,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(gde,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},Rde=K.p`
|
|
4136
|
+
=> User Action: Klaviyo form closed`}return""},ce=be=>{be instanceof CustomEvent&&z(be)};return window.addEventListener("klaviyoForms",ce),()=>{window.removeEventListener("klaviyoForms",ce)}},[Et,t,r]),tt.useEffect(()=>{const z=Te.current;return Ie&&z?(z.addEventListener("scroll",gr),()=>{z&&z.removeEventListener("scroll",gr)}):()=>{}},[Ie,gr]);const[xr,ki]=ie.useState(!1),Dr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",wa=async()=>{try{const z=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:Tt.name,userEmail:Tt.email,userMessage:Tt.message,tag:"support"})});if(z.ok){const X=`support-confirm-${Date.now()}`;m(ce=>[...ce,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Ht,conversationId:X}]),d(X),Rn(ce=>({...ce,leadingQueries:!0})),mn([]),console.log("Connected to support with existing user info:",Io())}else{const X=await z.json();console.error("Failed to connect to support:",X),m(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(X=>[...X,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},$r=()=>{if(Ee(e)){const be=dp("https://test.thecollective.in/content/customersupport");be.isValid&&(t!=null&&t.shopifyShopDomain&&(be.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(be.url.toString()),"_blank"));return}const z=Io();let X=[];const ce=h[h.length-1];ce!=null&&ce.leading_queries&&ce.leading_queries.length>0?X=ce.leading_queries:h.length<=1&&(X=te.flatMap(be=>Array.isArray(be)?be.map(Se=>Se.question):[be.question]).slice(0,4)),mn(X),z&&z.name&&z.email&&Kt({name:z==null?void 0:z.name,email:z==null?void 0:z.email,message:""}),m(be=>[...be,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),wt(!0)},et=async z=>{z.preventDefault();const X={name:"",email:"",message:""};let ce=!0;const be=Tt.name.trim(),Se=Tt.message.trim();be||(X.name="Name cannot be empty or just whitespace.",ce=!1),(!Tt.email||!rm.isEmail(Tt.email))&&(X.email="Please enter a valid email address.",ce=!1),Se||(X.message="Message cannot be empty or just whitespace.",ce=!1),Vt(X),ce&&(Fc({name:be,email:Tt.email}),wt(!1),m(Qe=>Qe.slice(0,-1)),await wa())},[Ce,Je]=tt.useState({});return tt.useEffect(()=>{ai&&(h.forEach((z,X)=>{if(!z.isBot)return;const ce=sp(z.text);if(!(X in Ce)||Ce[X]<ce.length){let be;const Se=Qe=>{Qe<ce.length&&(be=setTimeout(()=>{Je(Rt=>({...Rt,[X]:Qe+1})),Se(Qe+1)},Zi))};return X in Ce?Se(Ce[X]):(Je(Qe=>({...Qe,[X]:1})),Se(1)),()=>clearTimeout(be)}}),Je(z=>{const X={};return h.forEach((ce,be)=>{z[be]!==void 0&&(X[be]=z[be])}),X}))},[h,ai]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(Sde,{}),R.jsx(ede,{$topOffset:Dr,$isLeft:V,children:R.jsxs(xde,{$isLeft:V,$removeLogoBackground:t.removeLogoBackground,children:[!Ie&&te.length>0&&te[P]&&fe&&R.jsx(bde,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$isLeft:V,style:{display:"flex",flexDirection:V?"row":"row-reverse",alignItems:"center",marginRight:V?"0px":_t?"10px":"5px",marginTop:_t?"0px":"10px",left:V?"24px":"auto",right:V?"auto":"24px",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&(()=>{const z=te[P];return R.jsx(_de,{children:R.jsx(Wfe,{messages:[{question:z.question,isHighlighted:z.isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,isLeft:V,onClose:()=>{ht(X=>{const ce=new Set(X);return ce.add(z.question),ce})},onClick:()=>{const X=z;_e(!0,"suggested_question_clicked"),ht(ce=>{const be=new Set(ce);return be.add(X.question),be}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:X}),A?(Qn(!1),Tr(!0),k(!0),D(X)):(Qn(!1),Tr(!0),r({message:X.Follow_up_Question??X.question,answer:X.answer,products:X.products,fromKlaviyo:!1,leading_queries:X.leading_queries,messType:"suggested_question"}))}})},z.question)})()}),R.jsx(tde,{$topOffset:Dr,$removeLogoBackground:t.removeLogoBackground,style:{display:Ie?"none":"inline-flex"},children:R.jsxs(nde,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:Dr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),_e(!Ie,"chat_button_clicked"),!Ie){const z=S();z.length>0?(m(z),Qn(!1),Tr(!0)):(Qn(!0),Tr(!1),setTimeout(()=>{Qn(!1),Tr(!0);const X={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([X])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[R.jsx(rde,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!Ie&&me&&!fe&&R.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})})]})}),Ie&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(sde,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:Dr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Mt,"data-testid":"debales-chat-container",children:[R.jsxs(cde,{$backgroundColor:Ee(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(LU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Ee(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(ide,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(ade,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(ode,{})]})]}):R.jsx(lde,{children:R.jsxs(ude,{children:[R.jsx(LU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(wde,{children:[R.jsx(NU,{$iconBG:t.backgroundColor,onClick:$r,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(HU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(NU,{$iconBG:t.backgroundColor,onClick:()=>{mt?si(!0):_e(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(Dde,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs(hde,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[xr&&((ke=(se=t.pluginConfig)==null?void 0:se.collectedUserInfo)==null?void 0:ke.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ki(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Or,showModel:ea,setShowModel:bo,onVariantSelect:z=>{I(z.id,1),yt(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:z.title,price:Number(z.price),link:`https://${t.shopifyShopDomain}/variants/${z.id}`,message:l,chatId:er()+e})},botId:e}),Ot&&R.jsx(OA,{setShowExitModal:si,handleCloseChatbot:$o,chatId:er()+e}),R.jsxs(fde,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:Te,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(Tde,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}}),R.jsxs(dde,{children:[ai&&h.map((z,X)=>{const ce=z.isBot,be=sp(z.text);return z.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[ce&&R.jsxs(zU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:ce?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(jU,{children:[be.slice(0,Ce[X]||0).map((Se,Qe)=>R.jsx("div",{children:R.jsx(Ei,{isBot:ce,children:R.jsx(od,{remarkPlugins:[VS,lC],children:Se})})},Qe)),z.collections&&l===z.conversationId&&At.collections&&R.jsx(kA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p}),z.products&&l===z.conversationId&&At.products&&R.jsx(MA,{message:z,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:bo,setSelectedProduct:li,setCartVersion:Be}),o&&R.jsx(pD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",ae]),_e(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===z.conversationId&&At.cartSummary&&st&&R.jsx(wA,{onCheckout:_o,onKeepShopping:()=>{yt(!1)}}),we&&we.length>0&&l===z.conversationId&&At.bulkItems&&R.jsx(sA,{onClick:()=>Ai(z.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(z)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:Se=>{var Rt,Qt;const Qe=typeof Se=="function"?Se(T):Se;k(Qe),!Qe&&((Qt=(Rt=t.pluginConfig)==null?void 0:Rt.collectedUserInfo)!=null&&Qt.discount)&&ki(!0)},inChat:!0,showFormInstructions:!1})}),lt&&h.indexOf(z)===h.length-1&&R.jsxs(Cde,{onSubmit:et,noValidate:!0,"data-testid":"debales-support-form",children:[Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),required:!0,error:pt.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),required:!0,error:pt.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),required:!0,error:pt.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(gD,{children:[R.jsxs(mD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(qU,{type:"text",required:!0,value:Tt.name,onChange:Se=>Kt(Qe=>({...Qe,name:Se.target.value})),placeholder:"John"}),pt.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.name})]}),R.jsxs(gD,{children:[R.jsxs(mD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(qU,{type:"email",required:!0,value:Tt.email,onChange:Se=>Kt(Qe=>({...Qe,email:Se.target.value})),placeholder:"olivia@untitledui.com"}),pt.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.email})]}),R.jsxs(gD,{children:[R.jsxs(mD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(Ede,{required:!0,value:Tt.message,onChange:Se=>Kt(Qe=>({...Qe,message:Se.target.value})),placeholder:"I need help with..."}),pt.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:pt.message})]})]}),R.jsx(kde,{children:R.jsx(Ade,{type:"submit",children:"Submit"})})]}),tr&&!p&&l===z.conversationId&&R.jsx(Ei,{isBot:ce,children:R.jsx(vs,{loading:tr,loadingPhrases:["🎨 Loading","✨ Almost","🚀 Ready"]})})]})]}),!ce&&R.jsx(vde,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!ce,children:R.jsx(od,{children:z.text})})}),h.length==1&&X==0&&!T&&R.jsx(pD,{children:pr.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:pr.leadingQueries})}):te.map((Se,Qe)=>R.jsxs(UU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Se.question)?.5:1},onClick:()=>{A?(k(!0),D({question:Se.question,answer:Se.answer,products:Se.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se.question,answer:Se.answer,products:Se.products,messType:"leading_query"}),ht(Rt=>{const Qt=new Set(Rt);return Qt.add(Se.question),Qt}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Se.question})},disabled:p,$disabled:p,children:[Se.question,R.jsx(FU,{color:t.callToActionFontColor})]},Qe))}),z.leading_queries&&z.leading_queries.length>0&&l===z.conversationId&&At.leadingQueries&&!o&&!T&&R.jsx(pD,{children:z.leading_queries.map((Se,Qe)=>R.jsxs(UU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:Se,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Se,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:Se})},disabled:p,$disabled:p,children:[Se,R.jsx(FU,{color:t.callToActionFontColor})]},Qe))})]},X)}),(p||nr)&&R.jsxs(zU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(jU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||nr})})})})]})]}),R.jsx(Ode,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(mde,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(pde,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(gde,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},Rde=K.p`
|
|
4137
4137
|
margin: 0;
|
|
4138
4138
|
font-size: 16px;
|
|
4139
4139
|
text-align: left;
|
|
@@ -4355,7 +4355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4355
4355
|
z-index: 2147483647;
|
|
4356
4356
|
background-color: ${e=>e.$backgroundColor};
|
|
4357
4357
|
color: ${e=>e.$headerFontColor};
|
|
4358
|
-
border-radius: ${e=>
|
|
4358
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"16px"} !important;
|
|
4359
4359
|
padding: 0 !important;
|
|
4360
4360
|
margin: 0 !important;
|
|
4361
4361
|
display: flex;
|
|
@@ -4381,7 +4381,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4381
4381
|
left: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"16px":"auto":e.$fullScreenOnMobile?"0":e.$isLeft?"16px":"auto"};
|
|
4382
4382
|
right: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$isLeft?"auto":"16px":e.$fullScreenOnMobile?"0":e.$isLeft?"auto":"16px"};
|
|
4383
4383
|
bottom: ${e=>e.$mobileDisplayMode==="full-screen"||e.$mobileDisplayMode==="half-screen"?"0":e.$mobileDisplayMode==="normal"?e.$topOffset||"16px":e.$fullScreenOnMobile?"0":e.$topOffset||"16px"};
|
|
4384
|
-
border-radius: ${e=>
|
|
4384
|
+
border-radius: ${e=>Ee(e.theme.botId)||e.$mobileDisplayMode==="full-screen"?"0":e.$mobileDisplayMode==="half-screen"?"16px 16px 0 0":"16px"} !important;
|
|
4385
4385
|
overflow: hidden;
|
|
4386
4386
|
touch-action: manipulation;
|
|
4387
4387
|
/* Apply proper touch action for mobile modes to allow content scrolling */
|
|
@@ -4404,14 +4404,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4404
4404
|
display: flex;
|
|
4405
4405
|
align-items: center;
|
|
4406
4406
|
padding: 2px;
|
|
4407
|
-
border-radius: ${e=>
|
|
4407
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
4408
4408
|
background: conic-gradient(#0ead3f, #00b200, #1ca77e, #379bfb, #0ead3f);
|
|
4409
4409
|
`,Yde=K.div`
|
|
4410
4410
|
display: flex;
|
|
4411
4411
|
align-items: center;
|
|
4412
4412
|
background: #fff;
|
|
4413
4413
|
padding: 0 16px 0 3px; /* Adjusted padding */
|
|
4414
|
-
border-radius: ${e=>
|
|
4414
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"999px"} !important;
|
|
4415
4415
|
height: 40px; /* Adjusted height */
|
|
4416
4416
|
font-weight: 600;
|
|
4417
4417
|
font-size: 16px; /* Adjusted font-size */
|
|
@@ -4419,9 +4419,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4419
4419
|
`,VU=K.button`
|
|
4420
4420
|
width: 40px;
|
|
4421
4421
|
height: 40px;
|
|
4422
|
-
border-radius: ${e=>
|
|
4422
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"50%"} !important;
|
|
4423
4423
|
border: 1.5px solid rgba(0, 0, 0, 0.3);
|
|
4424
|
-
background: ${e=>
|
|
4424
|
+
background: ${e=>Ee(e.theme.botId)?e.$iconBG:"#fff"};
|
|
4425
4425
|
display: flex;
|
|
4426
4426
|
align-items: center;
|
|
4427
4427
|
justify-content: center;
|
|
@@ -4429,7 +4429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4429
4429
|
cursor: pointer;
|
|
4430
4430
|
transition: background 0.2s;
|
|
4431
4431
|
&:hover {
|
|
4432
|
-
background: ${e=>!
|
|
4432
|
+
background: ${e=>!Ee(e.theme.botId)&&"#f5f5f5"};
|
|
4433
4433
|
}
|
|
4434
4434
|
`,Zde=K.div`
|
|
4435
4435
|
z-index: 2147483647;
|
|
@@ -4463,7 +4463,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4463
4463
|
|
|
4464
4464
|
&::-webkit-scrollbar-thumb {
|
|
4465
4465
|
background: #7a7979;
|
|
4466
|
-
border-radius: ${e=>
|
|
4466
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"5px"} !important;
|
|
4467
4467
|
}
|
|
4468
4468
|
|
|
4469
4469
|
/* Improved scrolling behavior for all mobile modes */
|
|
@@ -4599,12 +4599,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4599
4599
|
justify-content: center;
|
|
4600
4600
|
text-align: left;
|
|
4601
4601
|
align-self: stretch;
|
|
4602
|
-
border-radius: ${e=>
|
|
4602
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
4603
4603
|
color: white;
|
|
4604
4604
|
border: none;
|
|
4605
4605
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
4606
4606
|
font-size: 14px;
|
|
4607
|
-
font-weight: ${e=>
|
|
4607
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
4608
4608
|
line-height: 20px !important;
|
|
4609
4609
|
transition: all 0.05s ease;
|
|
4610
4610
|
height: auto !important;
|
|
@@ -4778,7 +4778,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4778
4778
|
margin: 4px 10px 4px;
|
|
4779
4779
|
padding: 16px 16px;
|
|
4780
4780
|
background-color: ${e=>e.theme.colors.bot.message||"#fff"};
|
|
4781
|
-
border-radius: ${e=>
|
|
4781
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"12px"} !important;
|
|
4782
4782
|
width: 100%;
|
|
4783
4783
|
max-width: 320px;
|
|
4784
4784
|
`,xD=K.div`
|
|
@@ -4792,7 +4792,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4792
4792
|
margin-bottom: 8px;
|
|
4793
4793
|
font-size: 16px;
|
|
4794
4794
|
color: #1c1c1c;
|
|
4795
|
-
font-weight: ${e=>
|
|
4795
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4796
4796
|
|
|
4797
4797
|
span {
|
|
4798
4798
|
color: #ff3b30;
|
|
@@ -4801,30 +4801,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4801
4801
|
width: calc(100% - 26px);
|
|
4802
4802
|
padding: 12px;
|
|
4803
4803
|
border: 1px solid #d0d5dd;
|
|
4804
|
-
border-radius: ${e=>
|
|
4804
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4805
4805
|
font-size: 16px;
|
|
4806
|
-
font-weight: ${e=>
|
|
4807
|
-
background-color: ${e=>
|
|
4806
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4807
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
4808
4808
|
|
|
4809
4809
|
&:focus {
|
|
4810
4810
|
outline: none;
|
|
4811
4811
|
border-color: #f48722;
|
|
4812
|
-
background-color: ${e=>
|
|
4812
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
4813
4813
|
}
|
|
4814
4814
|
`,lhe=K.textarea`
|
|
4815
4815
|
width: calc(100% - 26px);
|
|
4816
4816
|
padding: 12px;
|
|
4817
4817
|
border: 1px solid #d0d5dd;
|
|
4818
|
-
border-radius: ${e=>
|
|
4818
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4819
4819
|
font-size: 16px;
|
|
4820
|
-
font-weight: ${e=>
|
|
4821
|
-
background-color: ${e=>
|
|
4820
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"400"};
|
|
4821
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#f1f5f9"};
|
|
4822
4822
|
resize: none;
|
|
4823
4823
|
|
|
4824
4824
|
&:focus {
|
|
4825
4825
|
outline: none;
|
|
4826
4826
|
border-color: #f48722;
|
|
4827
|
-
background-color: ${e=>
|
|
4827
|
+
background-color: ${e=>Ee(e.theme.botId)?e.theme.colors.bot.message:"#fff"};
|
|
4828
4828
|
}
|
|
4829
4829
|
`,uhe=K.button`
|
|
4830
4830
|
height: 40px !important;
|
|
@@ -4833,9 +4833,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4833
4833
|
background-color: ${e=>e.theme.colors.cta.background};
|
|
4834
4834
|
color: ${e=>e.theme.colors.cta.font};
|
|
4835
4835
|
border: none;
|
|
4836
|
-
border-radius: ${e=>
|
|
4836
|
+
border-radius: ${e=>Ee(e.theme.botId)?"0":"8px"} !important;
|
|
4837
4837
|
font-size: 14px;
|
|
4838
|
-
font-weight: ${e=>
|
|
4838
|
+
font-weight: ${e=>Ee(e.theme.botId)?"300":"500"};
|
|
4839
4839
|
cursor: pointer;
|
|
4840
4840
|
transition: all 0.3s ease;
|
|
4841
4841
|
justify-content: center;
|
|
@@ -4895,11 +4895,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4895
4895
|
opacity: 0;
|
|
4896
4896
|
z-index: 1;
|
|
4897
4897
|
bottom: 0;
|
|
4898
|
-
`,phe=({botId:e})=>{var Ce,Je;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),Ie=Fl("acquisition_agent"),[Le,Mt]=ie.useState(window.location.pathname),Ze=ie.useCallback(async()=>{try{if(!Ie||(t==null?void 0:t.show_bot)===!1)return;const se=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(se.ok){const Ae=await se.json(),z=window.location.pathname,X=3;le(ce=>{const be=[...ce],Se={question:Ae.Popup_Message,answer:"",path:z,nameSpace:e,type:"dynamic",Follow_up_Question:Ae.Follow_up_Question};return be.length>=X&&be.shift(),be.push(Se),console.log("updated quesitons",be),be})}else console.error("Failed to fetch new acquisition question")}catch(se){console.error("Error fetching new acquisition question:",se)}},[e,Ie,t==null?void 0:t.show_bot]),[nt,Bt]=tt.useState(!1),[zt,rt]=tt.useState(!1),[st,yt]=ie.useState(""),[_t,kt]=ie.useState(""),[,Et]=ie.useState(0),[ne,ae]=fm(_n.SHOW_CART_SUMMARY,!0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let se=Io();if(!se&&window.Thinkific){const Ae=window.Thinkific.current_user;Ae&&(se={name:Ae.full_name,email:Ae.email},Fc(se))}Bu.init({projectName:e,debug:!1,testing:jx}),se&&se.email&&(window.DebalesChat.identify(se.email,{name:se.name,phone:se.phone,email:se.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:se.email,first_name:se.name,phone:se.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const ge=tt.useRef(null),Be=jn(_n.CLICKED_QUESTIONS,{botId:e}),[Te,qe]=ie.useState(()=>{try{const se=sessionStorage.getItem(Be);return se?new Set(JSON.parse(se)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(Te)))}catch(se){console.error("Failed to save to sessionStorage:",se)}},[Te]);const at=ie.useCallback((se,Ae)=>{se?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:se,source:Ae,projectId:e}})),setTimeout(()=>{rt(!0)},50)):(rt(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:se,source:Ae,projectId:e}})))},[e]);ie.useEffect(()=>{const se=Ae=>{Ae.detail.projectId===e&&(Bt(Ae.detail.isOpen),Ae.detail.isOpen&&setTimeout(()=>rt(!0),50),window.DebalesChat.isOpen=Ae.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:Ae.detail.isOpen,source:Ae.detail.source}))};return window.addEventListener(jr.OPEN_STATE_CHANGE,se),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,se)}},[e]),ie.useEffect(()=>{const se=()=>{const X=window.location.pathname;X!==Le&&(Mt(X),Ze())};window.addEventListener("popstate",se);const Ae=history.pushState,z=history.replaceState;return history.pushState=function(...X){Ae.apply(this,X),se()},history.replaceState=function(...X){z.apply(this,X),se()},()=>{window.removeEventListener("popstate",se),history.pushState=Ae,history.replaceState=z}},[Le,Ze]),ie.useEffect(()=>{const se=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Ln=document.documentElement.scrollHeight,rn=document.documentElement.clientHeight,lr=window.scrollY,Hr=Ln-rn;return Hr<=0?en:lr/Hr*100>50?0:en}return en};if(J&&!nt&&(ee.current=se(J.showing_delay||2e3)),!J||nt||te.length===0)return;let Ae,z,X,ce;const be=J.showing_delay||2e3,Se=J.showing_delay||2e3,Qe=J.show_for||4e3,Rt=J.hide_timing||4e3,Qt=async()=>{if(te.length===0||!te[P]){ce=setTimeout(()=>{te.length>0&&ve(en=>en%te.length)},Rt+500);return}Ae=setTimeout(()=>{nt||(W(!0),z=setTimeout(async()=>{nt||(he(!0),H(!0),X=setTimeout(async()=>{nt||(H(!1),he(!1),W(!1),ve(en=>(en+1)%te.length),ce=setTimeout(()=>{Qt()},Rt))},Qe))},Se))},ee.current)};return te.length===0&&e?Ze().then(()=>{if(!nt&&te.length>0){ve(0);const en=se(be);ee.current=en,Qt()}else!nt&&te.length}):!nt&&te.length>0&&Qt(),()=>{clearTimeout(Ae),clearTimeout(z),clearTimeout(X),clearTimeout(ce)}},[J,nt,Ze,te,P,e]);const[ht,_e]=tt.useState(()=>{const se=jn(_n.PENDING_BULK_ITEMS,{botId:e}),Ae=sessionStorage.getItem(se);return Ae?JSON.parse(Ae):[]});tt.useEffect(()=>{const se=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(se,JSON.stringify(ht))},[ht,e]);const[we,bt]=ie.useState(!1),[lt,wt]=ie.useState({name:"",email:"",message:""}),[Tt,Kt]=ie.useState([]),[Ht,mn]=ie.useState({name:"",email:"",message:""}),pt=Fl("exit_model"),[Vt,mt]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[At,Rn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Rn(Ae=>({...Ae,leadingQueries:!0}));const se=setTimeout(()=>{Rn(Ae=>({...Ae,leadingQueries:!1}))},2e3);return()=>clearTimeout(se)}},[h,T]);const[pr,Yn]=ie.useState(!1),[tr,Ar]=ie.useState(!0),[kr,Zn]=ie.useState(!1),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),vn=500,ln=ie.useCallback(()=>{const se=ge.current;if(!se){Tr(!1),on(!1),Ar(!0);return}if(ke(e)){Tr(!1);return}const Ae=se.scrollTop,z=se.scrollHeight,X=se.clientHeight,ce=z>X,be=1,Se=Ae<=be,Qe=Ae+X>=z-be;ce?(Tr(!Se),on(!Qe),Ar(Qe)):(Tr(!1),on(!1),Ar(!0))},[ge,Tr,on,Ar]);tt.useEffect(()=>{const se=ge.current;if(nt&&se){ln(),se.addEventListener("scroll",ln);const Ae=new ResizeObserver(ln);return Ae.observe(se),()=>{se.removeEventListener("scroll",ln),Ae.unobserve(se)}}else nt||(Tr(!1),on(!1),Ar(!0))},[nt,h,pr,ln]),tt.useEffect(()=>{var se,Ae,z,X,ce,be;if(h.length>0&&!p){const Se=h[h.length-1],Qe=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),Rt=Se.isBot&&Se.conversationId===l&&Se.conversationId!==Qe,Qt=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Se.conversationId===l;if(Rt){Yn(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Se.conversationId||""),mt({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Ln=en;const rn=[{type:"collections",condition:((se=Se.collections)==null?void 0:se.length)&&((Ae=Se.collections)==null?void 0:Ae.length)>0},{type:"products",condition:((z=Se.products)==null?void 0:z.length)&&((X=Se.products)==null?void 0:X.length)>0},{type:"leadingQueries",condition:((ce=Se.leading_queries)==null?void 0:ce.length)&&((be=Se.leading_queries)==null?void 0:be.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(ht==null?void 0:ht.length)>0}].filter(lr=>lr.condition);if(rn.length===0){Yn(!1);return}rn.forEach(({type:lr},Hr)=>{setTimeout(()=>{if(mt(Ti=>({...Ti,[lr]:!0})),tr&&ge.current){const Ti=ge.current;Ti.scrollHeight-Ti.scrollTop<=Ti.clientHeight&&_a(ge)}Hr===rn.length-1&&Yn(!1)},Ln),Ln+=en})}else Qt&&mt(en=>({...en,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,ht==null?void 0:ht.length,tr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const se=ge.current;se&&tr&&se.scrollHeight-se.scrollTop<=se.clientHeight+100&&setTimeout(()=>_a(ge),100)}},[h.length,o,tr]),tt.useEffect(()=>{const se=document.querySelector('meta[name="viewport"]'),Ae=se==null?void 0:se.content;if(nt){let z=se;const X=window.matchMedia("(max-width: 768px)").matches;z?z.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(z=document.createElement("meta"),z.name="viewport",z.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(z)),X&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const ce=z;return()=>{Ae&&ce&&(ce.content=Ae),X&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[nt,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(nt&&h.length>0&&!o){const se=setTimeout(()=>{ge.current&&_a(ge)},150);return()=>clearTimeout(se)}},[nt,h.length,o]),tt.useEffect(()=>{O!=null&&O.itemCount&&O.itemCount===0&&!o&&setTimeout(()=>_a(ge),100)},[O==null?void 0:O.itemCount,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[Zi,gr]=ie.useState(!1),[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(null),Or=async se=>{const Ae=er();if(rt(!1),se&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Ae,userRating:se,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(z){console.error("Error submitting rating:",z)}setTimeout(()=>{bo(!1),at(!1,"close_button_clicked")},1e3)},li=se=>{y(!0),ht.forEach(z=>{I(z.id,z.quantity)}),ae(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:ht,message:se});const Ae=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:se,isBot:!0}];m(Ae),x(Ae),d(se),_e([]),y(!1)},$o=()=>{var se;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((se=window.shiprocketCheckoutEvents)!=null&&se.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},Ai=async se=>{se.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),$o()&&at(!1,"checkout_clicked")};tt.useEffect(()=>{const se=aC(w);le(Ae=>[...se.filter(X=>!Ae.some(ce=>ce.question===X.question))])},[w]),tt.useEffect(()=>{const se=X=>{const ce=X.detail.formId;switch(X.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Se=Ae(ce);Se&&yt(Se)},800);break;case"close":st&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),kt(ce),r({message:st,fromKlaviyo:!0})},1e4);break}},Ae=X=>{const ce=document.querySelector(`[data-testid="klaviyo-form-${X}"]`);if(console.log(`formElement text ${X} =>`,ce==null?void 0:ce.innerText,ce==null?void 0:ce.textContent),ce instanceof HTMLElement){const be=ce.innerText||ce.textContent;if(be)return console.log("Found form text:",be),`=> Klaviyo form content:
|
|
4898
|
+
`,phe=({botId:e})=>{var Ce,Je;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:y,setMessages:m,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:T,setShowUserInfoModel:k,isUserInfoNeeded:A,setPendingQuestion:D}=Ad(),{cart:O,addToCart:I,generateCartUrl:N,addCartAttributes:L}=_d(),q=Dc("use-chatbot-icon-size"),G=Gc.detect(),V=t==null?void 0:t.isLeft,F=cA(),Y=t==null?void 0:t.heightOption,ee=tt.useRef(0),J=Dc("new-suggested-question-design"),[me,W]=ie.useState(!1),[fe,he]=ie.useState(!1),[Me,H]=ie.useState(!1),[te,le]=ie.useState([]),[P,ve]=ie.useState(0),Ie=Fl("acquisition_agent"),[Le,Mt]=ie.useState(window.location.pathname),Ze=ie.useCallback(async()=>{try{if(!Ie||(t==null?void 0:t.show_bot)===!1)return;const se=await fetch(`${Ci}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(se.ok){const ke=await se.json(),z=window.location.pathname,X=3;le(ce=>{const be=[...ce],Se={question:ke.Popup_Message,answer:"",path:z,nameSpace:e,type:"dynamic",Follow_up_Question:ke.Follow_up_Question};return be.length>=X&&be.shift(),be.push(Se),console.log("updated quesitons",be),be})}else console.error("Failed to fetch new acquisition question")}catch(se){console.error("Error fetching new acquisition question:",se)}},[e,Ie,t==null?void 0:t.show_bot]),[nt,Bt]=tt.useState(!1),[zt,rt]=tt.useState(!1),[st,yt]=ie.useState(""),[_t,kt]=ie.useState(""),[,Et]=ie.useState(0),[ne,ae]=fm(_n.SHOW_CART_SUMMARY,!0);tt.useEffect(()=>{e&&aA(e)},[e]),tt.useEffect(()=>{sC(e)},[e]),tt.useEffect(()=>{let se=Io();if(!se&&window.Thinkific){const ke=window.Thinkific.current_user;ke&&(se={name:ke.full_name,email:ke.email},Fc(se))}Bu.init({projectName:e,debug:!1,testing:jx}),se&&se.email&&(window.DebalesChat.identify(se.email,{name:se.name,phone:se.phone,email:se.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:se.email,first_name:se.name,phone:se.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const ge=tt.useRef(null),Be=jn(_n.CLICKED_QUESTIONS,{botId:e}),[Te,qe]=ie.useState(()=>{try{const se=sessionStorage.getItem(Be);return se?new Set(JSON.parse(se)):new Set}catch{return new Set}});tt.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(Te)))}catch(se){console.error("Failed to save to sessionStorage:",se)}},[Te]);const at=ie.useCallback((se,ke)=>{se?(window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:se,source:ke,projectId:e}})),setTimeout(()=>{rt(!0)},50)):(rt(!1),window.dispatchEvent(new CustomEvent(jr.OPEN_STATE_CHANGE,{detail:{isOpen:se,source:ke,projectId:e}})))},[e]);ie.useEffect(()=>{const se=ke=>{ke.detail.projectId===e&&(Bt(ke.detail.isOpen),ke.detail.isOpen&&setTimeout(()=>rt(!0),50),window.DebalesChat.isOpen=ke.detail.isOpen,window.DebalesChat.track(Gt.OPEN_STATE_CHANGE,{isOpen:ke.detail.isOpen,source:ke.detail.source}))};return window.addEventListener(jr.OPEN_STATE_CHANGE,se),()=>{window.removeEventListener(jr.OPEN_STATE_CHANGE,se)}},[e]),ie.useEffect(()=>{const se=()=>{const X=window.location.pathname;X!==Le&&(Mt(X),Ze())};window.addEventListener("popstate",se);const ke=history.pushState,z=history.replaceState;return history.pushState=function(...X){ke.apply(this,X),se()},history.replaceState=function(...X){z.apply(this,X),se()},()=>{window.removeEventListener("popstate",se),history.pushState=ke,history.replaceState=z}},[Le,Ze]),ie.useEffect(()=>{const se=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Ln=document.documentElement.scrollHeight,rn=document.documentElement.clientHeight,lr=window.scrollY,Hr=Ln-rn;return Hr<=0?en:lr/Hr*100>50?0:en}return en};if(J&&!nt&&(ee.current=se(J.showing_delay||2e3)),!J||nt||te.length===0)return;let ke,z,X,ce;const be=J.showing_delay||2e3,Se=J.showing_delay||2e3,Qe=J.show_for||4e3,Rt=J.hide_timing||4e3,Qt=async()=>{if(te.length===0||!te[P]){ce=setTimeout(()=>{te.length>0&&ve(en=>en%te.length)},Rt+500);return}ke=setTimeout(()=>{nt||(W(!0),z=setTimeout(async()=>{nt||(he(!0),H(!0),X=setTimeout(async()=>{nt||(H(!1),he(!1),W(!1),ve(en=>(en+1)%te.length),ce=setTimeout(()=>{Qt()},Rt))},Qe))},Se))},ee.current)};return te.length===0&&e?Ze().then(()=>{if(!nt&&te.length>0){ve(0);const en=se(be);ee.current=en,Qt()}else!nt&&te.length}):!nt&&te.length>0&&Qt(),()=>{clearTimeout(ke),clearTimeout(z),clearTimeout(X),clearTimeout(ce)}},[J,nt,Ze,te,P,e]);const[ht,_e]=tt.useState(()=>{const se=jn(_n.PENDING_BULK_ITEMS,{botId:e}),ke=sessionStorage.getItem(se);return ke?JSON.parse(ke):[]});tt.useEffect(()=>{const se=jn(_n.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(se,JSON.stringify(ht))},[ht,e]);const[we,bt]=ie.useState(!1),[lt,wt]=ie.useState({name:"",email:"",message:""}),[Tt,Kt]=ie.useState([]),[Ht,mn]=ie.useState({name:"",email:"",message:""}),pt=Fl("exit_model"),[Vt,mt]=ie.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[At,Rn]=ie.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});ie.useEffect(()=>{if(h.length===1&&!T){Rn(ke=>({...ke,leadingQueries:!0}));const se=setTimeout(()=>{Rn(ke=>({...ke,leadingQueries:!1}))},2e3);return()=>clearTimeout(se)}},[h,T]);const[pr,Yn]=ie.useState(!1),[tr,Ar]=ie.useState(!0),[kr,Zn]=ie.useState(!1),[nr,Qn]=ie.useState(!1),[ai,Tr]=ie.useState(!1),[Hn,on]=ie.useState(!1),vn=500,ln=ie.useCallback(()=>{const se=ge.current;if(!se){Tr(!1),on(!1),Ar(!0);return}if(Ee(e)){Tr(!1);return}const ke=se.scrollTop,z=se.scrollHeight,X=se.clientHeight,ce=z>X,be=1,Se=ke<=be,Qe=ke+X>=z-be;ce?(Tr(!Se),on(!Qe),Ar(Qe)):(Tr(!1),on(!1),Ar(!0))},[ge,Tr,on,Ar]);tt.useEffect(()=>{const se=ge.current;if(nt&&se){ln(),se.addEventListener("scroll",ln);const ke=new ResizeObserver(ln);return ke.observe(se),()=>{se.removeEventListener("scroll",ln),ke.unobserve(se)}}else nt||(Tr(!1),on(!1),Ar(!0))},[nt,h,pr,ln]),tt.useEffect(()=>{var se,ke,z,X,ce,be;if(h.length>0&&!p){const Se=h[h.length-1],Qe=sessionStorage.getItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e})),Rt=Se.isBot&&Se.conversationId===l&&Se.conversationId!==Qe,Qt=(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0&&Se.conversationId===l;if(Rt){Yn(!0),sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),Se.conversationId||""),mt({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Ln=en;const rn=[{type:"collections",condition:((se=Se.collections)==null?void 0:se.length)&&((ke=Se.collections)==null?void 0:ke.length)>0},{type:"products",condition:((z=Se.products)==null?void 0:z.length)&&((X=Se.products)==null?void 0:X.length)>0},{type:"leadingQueries",condition:((ce=Se.leading_queries)==null?void 0:ce.length)&&((be=Se.leading_queries)==null?void 0:be.length)>0},{type:"cartSummary",condition:(O==null?void 0:O.itemCount)&&(O==null?void 0:O.itemCount)>0},{type:"bulkItems",condition:(ht==null?void 0:ht.length)>0}].filter(lr=>lr.condition);if(rn.length===0){Yn(!1);return}rn.forEach(({type:lr},Hr)=>{setTimeout(()=>{if(mt(Ti=>({...Ti,[lr]:!0})),tr&&ge.current){const Ti=ge.current;Ti.scrollHeight-Ti.scrollTop<=Ti.clientHeight&&_a(ge)}Hr===rn.length-1&&Yn(!1)},Ln),Ln+=en})}else Qt&&mt(en=>({...en,cartSummary:!0}))}},[h,p,l,O==null?void 0:O.itemCount,ht==null?void 0:ht.length,tr,e]),tt.useEffect(()=>{if(!o&&h.length>0){const se=ge.current;se&&tr&&se.scrollHeight-se.scrollTop<=se.clientHeight+100&&setTimeout(()=>_a(ge),100)}},[h.length,o,tr]),tt.useEffect(()=>{const se=document.querySelector('meta[name="viewport"]'),ke=se==null?void 0:se.content;if(nt){let z=se;const X=window.matchMedia("(max-width: 768px)").matches;z?z.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(z=document.createElement("meta"),z.name="viewport",z.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(z)),X&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const ce=z;return()=>{ke&&ce&&(ce.content=ke),X&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[nt,t==null?void 0:t.mobileDisplayMode]),tt.useEffect(()=>{if(nt&&h.length>0&&!o){const se=setTimeout(()=>{ge.current&&_a(ge)},150);return()=>clearTimeout(se)}},[nt,h.length,o]),tt.useEffect(()=>{O!=null&&O.total&&!o&&setTimeout(()=>_a(ge),100)},[O==null?void 0:O.total,o]),tt.useEffect(()=>{l&&sessionStorage.setItem(jn(_n.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[Zi,gr]=ie.useState(!1),[ea,bo]=ie.useState(!1),[Ot,si]=ie.useState(null),Or=async se=>{const ke=er();if(rt(!1),se&&h.length>1)try{(await fetch(`${Ci}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:ke,userRating:se,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(z){console.error("Error submitting rating:",z)}setTimeout(()=>{bo(!1),at(!1,"close_button_clicked")},1e3)},li=se=>{y(!0),ht.forEach(z=>{I(z.id,z.quantity)}),ae(!0),window.DebalesChat.track(Gt.ADD_BULK_ITEM,{products:ht,message:se});const ke=[...h,{text:"🎉 Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:se,isBot:!0}];m(ke),x(ke),d(se),_e([]),y(!1)},$o=()=>{var se;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((se=window.shiprocketCheckoutEvents)!=null&&se.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=N((t==null?void 0:t.shopifyShopDomain)??""),!1},Ai=async se=>{se.preventDefault(),window.DebalesChat.track(Gt.CHECKOUT_CLICKED,{chatId:er()+e,cartValue:Number(O==null?void 0:O.total),cart:O}),L({dbls_method:"checkout_clicked"}),$o()&&at(!1,"checkout_clicked")};tt.useEffect(()=>{const se=aC(w);le(ke=>[...se.filter(X=>!ke.some(ce=>ce.question===X.question))])},[w]),tt.useEffect(()=>{const se=X=>{const ce=X.detail.formId;switch(X.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Se=ke(ce);Se&&yt(Se)},800);break;case"close":st&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),kt(ce),r({message:st,fromKlaviyo:!0})},1e4);break}},ke=X=>{const ce=document.querySelector(`[data-testid="klaviyo-form-${X}"]`);if(console.log(`formElement text ${X} =>`,ce==null?void 0:ce.innerText,ce==null?void 0:ce.textContent),ce instanceof HTMLElement){const be=ce.innerText||ce.textContent;if(be)return console.log("Found form text:",be),`=> Klaviyo form content:
|
|
4899
4899
|
|
|
4900
4900
|
`+be+`
|
|
4901
4901
|
|
|
4902
|
-
=> User Action: Klaviyo form closed`}return""},z=X=>{X instanceof CustomEvent&&se(X)};return window.addEventListener("klaviyoForms",z),()=>{window.removeEventListener("klaviyoForms",z)}},[st,t,r]),tt.useEffect(()=>{const se=ge.current;return nt&&se?(se.addEventListener("scroll",ln),()=>{se&&se.removeEventListener("scroll",ln)}):()=>{}},[nt,ln]);const[Kn,_o]=ie.useState(!1),xr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",ki=async()=>{try{const se=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:lt.name,userEmail:lt.email,userMessage:lt.message,tag:"support"})});if(se.ok){const Ae=`support-confirm-${Date.now()}`;m(z=>[...z,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Tt,conversationId:Ae}]),d(Ae),mt(z=>({...z,leadingQueries:!0})),Kt([]),console.log("Connected to support with existing user info:",Io())}else{const Ae=await se.json();console.error("Failed to connect to support:",Ae),m(z=>[...z,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(Ae=>[...Ae,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Dr=()=>{if(ke(e)){const X=dp("https://test.thecollective.in/content/customersupport");X.isValid&&(t!=null&&t.shopifyShopDomain&&(X.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(X.url.toString()),"_blank"));return}const se=Io();let Ae=[];const z=h[h.length-1];z!=null&&z.leading_queries&&z.leading_queries.length>0?Ae=z.leading_queries:h.length<=1&&(Ae=te.flatMap(X=>Array.isArray(X)?X.map(ce=>ce.question):[X.question]).slice(0,4)),Kt(Ae),se&&se.name&&se.email&&wt({name:se==null?void 0:se.name,email:se==null?void 0:se.email,message:""}),m(X=>[...X,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),bt(!0)},wa=async se=>{se.preventDefault();const Ae={name:"",email:"",message:""};let z=!0;const X=lt.name.trim(),ce=lt.message.trim();X||(Ae.name="Name cannot be empty or just whitespace.",z=!1),(!lt.email||!rm.isEmail(lt.email))&&(Ae.email="Please enter a valid email address.",z=!1),ce||(Ae.message="Message cannot be empty or just whitespace.",z=!1),mn(Ae),z&&(Fc({name:X,email:lt.email}),bt(!1),m(be=>be.slice(0,-1)),await ki())},[$r,et]=tt.useState({});return tt.useEffect(()=>{nr&&(h.forEach((se,Ae)=>{if(!se.isBot)return;const z=sp(se.text);if(!(Ae in $r)||$r[Ae]<z.length){let X;const ce=be=>{be<z.length&&(X=setTimeout(()=>{et(Se=>({...Se,[Ae]:be+1})),ce(be+1)},vn))};return Ae in $r?ce($r[Ae]):(et(be=>({...be,[Ae]:1})),ce(1)),()=>clearTimeout(X)}}),et(se=>{const Ae={};return h.forEach((z,X)=>{se[X]!==void 0&&(Ae[X]=se[X])}),Ae}))},[h,nr]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(ohe,{}),R.jsxs(Nde,{$topOffset:xr,$isLeft:V,children:[!nt&&te.length>0&&te[P]&&fe&&R.jsx(rhe,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:xr,style:{display:"flex",flexDirection:"column",alignItems:"center",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&R.jsx(ihe,{children:R.jsx(Bde,{messages:[{question:te[P].question,isHighlighted:te[P].isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{qe(se=>{const Ae=new Set(se);return Ae.add(te[P].question),Ae})},onClick:()=>{const se=te[P];at(!0,"suggested_question_clicked"),qe(Ae=>{const z=new Set(Ae);return z.add(se.question),z}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:se}),A?(Zn(!1),Qn(!0),k(!0),D(se)):(Zn(!1),Qn(!0),r({message:se.Follow_up_Question??se.question,answer:se.answer,products:se.products,fromKlaviyo:!1,leading_queries:se.leading_queries,followUpQuestion:se.Follow_up_Question,messType:"suggested_question"}))}})},te[P].question)}),R.jsxs(zde,{$topOffset:xr,$removeLogoBackground:t.removeLogoBackground,style:{display:nt||fe?"none":"flex"},children:[R.jsx(Fde,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:xr,$iconSize:q}),R.jsxs(Ude,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:xr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),at(!nt,"chat_button_clicked"),!nt){const se=S();se.length>0?(m(se),Zn(!1),Qn(!0)):(Zn(!0),Qn(!1),setTimeout(()=>{Zn(!1),Qn(!0);const Ae={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([Ae])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:nt||fe?"none":"flex"},children:[R.jsx(jde,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!nt&&me&&R.jsx("div",{style:{position:"absolute",top:"0px",right:"0px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})]})]}),nt&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Gde,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:xr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:zt,"data-testid":"debales-chat-container",children:[R.jsxs(Zde,{$backgroundColor:ke(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(GU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),ke(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(Hde,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(Pde,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(qde,{})]})]}):R.jsx(Vde,{children:R.jsxs(Yde,{children:[R.jsx(GU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(ahe,{children:[R.jsx(VU,{$iconBG:t.backgroundColor,onClick:Dr,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(WU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(VU,{$iconBG:t.backgroundColor,onClick:()=>{pt?bo(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(hhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:ai?1:0}})]}),R.jsxs(Wde,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Kn&&((Je=(Ce=t.pluginConfig)==null?void 0:Ce.collectedUserInfo)==null?void 0:Je.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{_o(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Ot,showModel:Zi,setShowModel:gr,onVariantSelect:se=>{I(se.id,1),ae(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:se.title,price:Number(se.price),link:`https://${t.shopifyShopDomain}/variants/${se.id}`,message:l,chatId:er()+e})},botId:e}),ea&&R.jsx(OA,{setShowExitModal:bo,handleCloseChatbot:Or,chatId:er()+e}),R.jsxs(Qde,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:ge,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(fhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:ai?1:0}}),R.jsxs(Kde,{children:[nr&&h.map((se,Ae)=>{const z=se.isBot,X=sp(se.text);return se.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[z&&R.jsxs(YU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:z?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(KU,{children:[X.slice(0,$r[Ae]||0).map((ce,be)=>R.jsx("div",{children:R.jsx(Ei,{isBot:z,children:R.jsx(od,{remarkPlugins:[VS,lC],children:ce})})},be)),se.collections&&l===se.conversationId&&Vt.collections&&R.jsx(kA,{message:se,botId:e,uidata:t,onSendMessage:r,loading:p}),se.products&&l===se.conversationId&&Vt.products&&R.jsx(MA,{message:se,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:gr,setSelectedProduct:si,setCartVersion:Et}),o&&R.jsx(yD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_t]),at(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===se.conversationId&&Vt.cartSummary&&ne&&R.jsx(wA,{onCheckout:Ai,onKeepShopping:()=>{ae(!1)}}),ht&&ht.length>0&&l===se.conversationId&&Vt.bulkItems&&R.jsx(sA,{onClick:()=>li(se.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(se)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:ce=>{var Se,Qe;const be=typeof ce=="function"?ce(T):ce;k(be),!be&&((Qe=(Se=t.pluginConfig)==null?void 0:Se.collectedUserInfo)!=null&&Qe.discount)&&_o(!0)},inChat:!0,showFormInstructions:!1})}),we&&h.indexOf(se)===h.length-1&&R.jsxs(she,{onSubmit:wa,noValidate:!0,"data-testid":"debales-support-form",children:[ke(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:lt.name,onChange:ce=>wt(be=>({...be,name:ce.target.value})),required:!0,error:Ht.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:lt.email,onChange:ce=>wt(be=>({...be,email:ce.target.value})),required:!0,error:Ht.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:lt.message,onChange:ce=>wt(be=>({...be,message:ce.target.value})),required:!0,error:Ht.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(xD,{children:[R.jsxs(bD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(XU,{type:"text",required:!0,value:lt.name,onChange:ce=>wt(be=>({...be,name:ce.target.value})),placeholder:"John"}),Ht.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.name})]}),R.jsxs(xD,{children:[R.jsxs(bD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(XU,{type:"email",required:!0,value:lt.email,onChange:ce=>wt(be=>({...be,email:ce.target.value})),placeholder:"olivia@untitledui.com"}),Ht.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.email})]}),R.jsxs(xD,{children:[R.jsxs(bD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(lhe,{required:!0,value:lt.message,onChange:ce=>wt(be=>({...be,message:ce.target.value})),placeholder:"I need help with..."}),Ht.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.message})]})]}),R.jsx(che,{children:R.jsx(uhe,{type:"submit",children:"Submit"})})]}),pr&&!p&&l===se.conversationId&&R.jsx(Ei,{isBot:z,children:R.jsx(vs,{loading:pr,loadingPhrases:["🎨 Loading","✨ Almost","🚀 Ready"]})})]})]}),!z&&R.jsx(the,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!z,children:R.jsx(od,{children:se.text})})}),h.length==1&&Ae==0&&!T&&R.jsx(yD,{children:At.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:At.leadingQueries})}):te.map((ce,be)=>R.jsxs(QU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:Te.has(ce.question)?.5:1},onClick:()=>{A?(k(!0),D({question:ce.question,answer:ce.answer,products:ce.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ce.question,answer:ce.answer,products:ce.products,messType:"leading_query"}),qe(Se=>{const Qe=new Set(Se);return Qe.add(ce.question),Qe}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:ce.question})},disabled:p,$disabled:p,children:[ce.question,R.jsx(ZU,{color:t.callToActionFontColor})]},be))}),se.leading_queries&&se.leading_queries.length>0&&l===se.conversationId&&Vt.leadingQueries&&!o&&!T&&R.jsx(yD,{children:se.leading_queries.map((ce,be)=>R.jsxs(QU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:ce,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ce,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:ce})},disabled:p,$disabled:p,children:[ce,R.jsx(ZU,{color:t.callToActionFontColor})]},be))})]},Ae)}),(p||kr)&&R.jsxs(YU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(KU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||kr})})})})]})]}),R.jsx(dhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(ehe,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(Xde,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Jde,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},ghe=({botId:e})=>{const t=nV("new-suggested-question-design");let n;return t==="variant-1"?n=Zfe:t==="variant-2"?n=Mde:t==="variant-3"?n=phe:n=AU,R.jsx(n,{botId:e})};var $A={exports:{}},d1={},LA={exports:{}},SD={};/**
|
|
4902
|
+
=> User Action: Klaviyo form closed`}return""},z=X=>{X instanceof CustomEvent&&se(X)};return window.addEventListener("klaviyoForms",z),()=>{window.removeEventListener("klaviyoForms",z)}},[st,t,r]),tt.useEffect(()=>{const se=ge.current;return nt&&se?(se.addEventListener("scroll",ln),()=>{se&&se.removeEventListener("scroll",ln)}):()=>{}},[nt,ln]);const[Kn,_o]=ie.useState(!1),xr=Y==="Highest"?"120px":Y==="Higher"?"60px":"15px",ki=async()=>{try{const se=await fetch(`${Ci}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:er()+e,nameSpace:e,userName:lt.name,userEmail:lt.email,userMessage:lt.message,tag:"support"})});if(se.ok){const ke=`support-confirm-${Date.now()}`;m(z=>[...z,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Tt,conversationId:ke}]),d(ke),mt(z=>({...z,leadingQueries:!0})),Kt([]),console.log("Connected to support with existing user info:",Io())}else{const ke=await se.json();console.error("Failed to connect to support:",ke),m(z=>[...z,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{m(ke=>[...ke,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Dr=()=>{if(Ee(e)){const X=dp("https://test.thecollective.in/content/customersupport");X.isValid&&(t!=null&&t.shopifyShopDomain&&(X.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(ms(X.url.toString()),"_blank"));return}const se=Io();let ke=[];const z=h[h.length-1];z!=null&&z.leading_queries&&z.leading_queries.length>0?ke=z.leading_queries:h.length<=1&&(ke=te.flatMap(X=>Array.isArray(X)?X.map(ce=>ce.question):[X.question]).slice(0,4)),Kt(ke),se&&se.name&&se.email&&wt({name:se==null?void 0:se.name,email:se==null?void 0:se.email,message:""}),m(X=>[...X,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),bt(!0)},wa=async se=>{se.preventDefault();const ke={name:"",email:"",message:""};let z=!0;const X=lt.name.trim(),ce=lt.message.trim();X||(ke.name="Name cannot be empty or just whitespace.",z=!1),(!lt.email||!rm.isEmail(lt.email))&&(ke.email="Please enter a valid email address.",z=!1),ce||(ke.message="Message cannot be empty or just whitespace.",z=!1),mn(ke),z&&(Fc({name:X,email:lt.email}),bt(!1),m(be=>be.slice(0,-1)),await ki())},[$r,et]=tt.useState({});return tt.useEffect(()=>{nr&&(h.forEach((se,ke)=>{if(!se.isBot)return;const z=sp(se.text);if(!(ke in $r)||$r[ke]<z.length){let X;const ce=be=>{be<z.length&&(X=setTimeout(()=>{et(Se=>({...Se,[ke]:be+1})),ce(be+1)},vn))};return ke in $r?ce($r[ke]):(et(be=>({...be,[ke]:1})),ce(1)),()=>clearTimeout(X)}}),et(se=>{const ke={};return h.forEach((z,X)=>{se[X]!==void 0&&(ke[X]=se[X])}),ke}))},[h,nr]),!t||t.show_bot===!1||a?null:R.jsxs(K.ThemeProvider,{theme:oC(t,e),children:[R.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),R.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),R.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),R.jsx(ohe,{}),R.jsxs(Nde,{$topOffset:xr,$isLeft:V,children:[!nt&&te.length>0&&te[P]&&fe&&R.jsx(rhe,{className:Me?"visible":"",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:xr,style:{display:"flex",flexDirection:"column",alignItems:"center",opacity:Me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length>0&&te[P]&&R.jsx(ihe,{children:R.jsx(Bde,{messages:[{question:te[P].question,isHighlighted:te[P].isHighlighted??!1,show_for:(J==null?void 0:J.show_for)||4e3,hide_timing:(J==null?void 0:J.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{qe(se=>{const ke=new Set(se);return ke.add(te[P].question),ke})},onClick:()=>{const se=te[P];at(!0,"suggested_question_clicked"),qe(ke=>{const z=new Set(ke);return z.add(se.question),z}),window.DebalesChat.track(Gt.SUGGESTED_QUESTION_CLICKED,{suggested_question:se}),A?(Zn(!1),Qn(!0),k(!0),D(se)):(Zn(!1),Qn(!0),r({message:se.Follow_up_Question??se.question,answer:se.answer,products:se.products,fromKlaviyo:!1,leading_queries:se.leading_queries,followUpQuestion:se.Follow_up_Question,messType:"suggested_question"}))}})},te[P].question)}),R.jsxs(zde,{$topOffset:xr,$removeLogoBackground:t.removeLogoBackground,style:{display:nt||fe?"none":"flex"},children:[R.jsx(Fde,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:xr,$iconSize:q}),R.jsxs(Ude,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:q,$removeLogoBackground:t.removeLogoBackground,topOffset:xr,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(Gt.CHAT_BUTTON_CLICKED),at(!nt,"chat_button_clicked"),!nt){const se=S();se.length>0?(m(se),Zn(!1),Qn(!0)):(Zn(!0),Qn(!1),setTimeout(()=>{Zn(!1),Qn(!0);const ke={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};m([ke])},(J==null?void 0:J.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:nt||fe?"none":"flex"},children:[R.jsx(jde,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(te==null?void 0:te.length)>0&&!nt&&me&&R.jsx("div",{style:{position:"absolute",top:"0px",right:"0px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:me?1:0,transition:"opacity 0.3s ease-in-out"},children:te.length})]})]})]}),nt&&vo.createPortal(R.jsx(R.Fragment,{children:R.jsxs(Gde,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:V,$topOffset:xr,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:zt,"data-testid":"debales-chat-container",children:[R.jsxs(Zde,{$backgroundColor:Ee(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[R.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(GU,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Ee(e)?R.jsx("div",{children:R.jsx("img",{src:uA,alt:"Chat Bot Icon",style:{height:"36px"}})}):R.jsxs(Hde,{$botNameColor:t.headerFontColor,children:[R.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&R.jsx(Pde,{$backgroundColor:t.callToActionBackgroundColor,$fontColor:t.callToActionFontColor,children:"Beta"})]}),R.jsx(qde,{})]})]}):R.jsx(Vde,{children:R.jsxs(Yde,{children:[R.jsx(GU,{src:t.bot_logo,alt:"Chat Bot Icon"}),R.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[R.jsxs(ahe,{children:[R.jsx(VU,{$iconBG:t.backgroundColor,onClick:Dr,"aria-label":"Support","data-testid":"debales-support-button",children:R.jsx(xA,{color:t.headerFontColor})}),R.jsx(WU,{children:"Click to chat with a Live Support Agent now."})]}),R.jsx(VU,{$iconBG:t.backgroundColor,onClick:()=>{pt?bo(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:R.jsx(hm,{botNameColor:t.headerFontColor})})]}),R.jsx(hhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:ai?1:0}})]}),R.jsxs(Wde,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Kn&&((Je=(Ce=t.pluginConfig)==null?void 0:Ce.collectedUserInfo)==null?void 0:Je.discount)&&R.jsx(TA,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{_o(!1),window.DebalesChat.track(Gt.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),R.jsx(yA,{}),R.jsx(IA,{uidata:t,product:Ot,showModel:Zi,setShowModel:gr,onVariantSelect:se=>{I(se.id,1),ae(!0),window.DebalesChat.track(Gt.ADD_TO_CART_CLICKED,{product:se.title,price:Number(se.price),link:`https://${t.shopifyShopDomain}/variants/${se.id}`,message:l,chatId:er()+e})},botId:e}),ea&&R.jsx(OA,{setShowExitModal:bo,handleCloseChatbot:Or,chatId:er()+e}),R.jsxs(Qde,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:ge,$mobileDisplayMode:t.mobileDisplayMode,children:[R.jsx(fhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:ai?1:0}}),R.jsxs(Kde,{children:[nr&&h.map((se,ke)=>{const z=se.isBot,X=sp(se.text);return se.hideConfirmation?null:R.jsxs(tt.Fragment,{children:[z&&R.jsxs(YU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[R.jsx("img",{src:z?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),R.jsxs(KU,{children:[X.slice(0,$r[ke]||0).map((ce,be)=>R.jsx("div",{children:R.jsx(Ei,{isBot:z,children:R.jsx(od,{remarkPlugins:[VS,lC],children:ce})})},be)),se.collections&&l===se.conversationId&&Vt.collections&&R.jsx(kA,{message:se,botId:e,uidata:t,onSendMessage:r,loading:p}),se.products&&l===se.conversationId&&Vt.products&&R.jsx(MA,{message:se,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:G,setShowVariantModel:gr,setSelectedProduct:si,setCartVersion:Et}),o&&R.jsx(yD,{children:R.jsx(e1,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_t]),at(!1,"klaviyo_grab_deal_button"))},children:"🚀 Grab Deal Now!"})}),O&&O.itemCount>0&&l===se.conversationId&&Vt.cartSummary&&ne&&R.jsx(wA,{onCheckout:Ai,onKeepShopping:()=>{ae(!1)}}),ht&&ht.length>0&&l===se.conversationId&&Vt.bulkItems&&R.jsx(sA,{onClick:()=>li(se.conversationId),children:"Add Bulk Items to Cart"}),T&&h.indexOf(se)===h.length-1&&R.jsx(R.Fragment,{children:R.jsx(RA,{setShowModel:ce=>{var Se,Qe;const be=typeof ce=="function"?ce(T):ce;k(be),!be&&((Qe=(Se=t.pluginConfig)==null?void 0:Se.collectedUserInfo)!=null&&Qe.discount)&&_o(!0)},inChat:!0,showFormInstructions:!1})}),we&&h.indexOf(se)===h.length-1&&R.jsxs(she,{onSubmit:wa,noValidate:!0,"data-testid":"debales-support-form",children:[Ee(e)?R.jsxs(R.Fragment,{children:[R.jsx(Vl,{label:"Name",name:"name",type:"text",value:lt.name,onChange:ce=>wt(be=>({...be,name:ce.target.value})),required:!0,error:Ht.name,isCollectiveBot:!0}),R.jsx(Vl,{label:"Email",name:"email",type:"email",value:lt.email,onChange:ce=>wt(be=>({...be,email:ce.target.value})),required:!0,error:Ht.email,isCollectiveBot:!0}),R.jsx(DA,{label:"Message",name:"message",value:lt.message,onChange:ce=>wt(be=>({...be,message:ce.target.value})),required:!0,error:Ht.message,rows:4,isCollectiveBot:!0})]}):R.jsxs(R.Fragment,{children:[R.jsxs(xD,{children:[R.jsxs(bD,{children:["Name",R.jsx("span",{children:"*"})]}),R.jsx(XU,{type:"text",required:!0,value:lt.name,onChange:ce=>wt(be=>({...be,name:ce.target.value})),placeholder:"John"}),Ht.name&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.name})]}),R.jsxs(xD,{children:[R.jsxs(bD,{children:["Email",R.jsx("span",{children:"*"})]}),R.jsx(XU,{type:"email",required:!0,value:lt.email,onChange:ce=>wt(be=>({...be,email:ce.target.value})),placeholder:"olivia@untitledui.com"}),Ht.email&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.email})]}),R.jsxs(xD,{children:[R.jsxs(bD,{children:["Message",R.jsx("span",{children:"*"})]}),R.jsx(lhe,{required:!0,value:lt.message,onChange:ce=>wt(be=>({...be,message:ce.target.value})),placeholder:"I need help with..."}),Ht.message&&R.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Ht.message})]})]}),R.jsx(che,{children:R.jsx(uhe,{type:"submit",children:"Submit"})})]}),pr&&!p&&l===se.conversationId&&R.jsx(Ei,{isBot:z,children:R.jsx(vs,{loading:pr,loadingPhrases:["🎨 Loading","✨ Almost","🚀 Ready"]})})]})]}),!z&&R.jsx(the,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:R.jsx(Ei,{isBot:!!z,children:R.jsx(od,{children:se.text})})}),h.length==1&&ke==0&&!T&&R.jsx(yD,{children:At.leadingQueries?R.jsx(Ei,{isBot:!0,children:R.jsx(vs,{loading:At.leadingQueries})}):te.map((ce,be)=>R.jsxs(QU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:Te.has(ce.question)?.5:1},onClick:()=>{A?(k(!0),D({question:ce.question,answer:ce.answer,products:ce.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ce.question,answer:ce.answer,products:ce.products,messType:"leading_query"}),qe(Se=>{const Qe=new Set(Se);return Qe.add(ce.question),Qe}),window.DebalesChat.track(Gt.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:ce.question})},disabled:p,$disabled:p,children:[ce.question,R.jsx(ZU,{color:t.callToActionFontColor})]},be))}),se.leading_queries&&se.leading_queries.length>0&&l===se.conversationId&&Vt.leadingQueries&&!o&&!T&&R.jsx(yD,{children:se.leading_queries.map((ce,be)=>R.jsxs(QU,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{A?(k(!0),D({question:ce,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ce,messType:"leading_query"}),window.DebalesChat.track(Gt.LEADING_QUERY_CLICKED,{query:ce})},disabled:p,$disabled:p,children:[ce,R.jsx(ZU,{color:t.callToActionFontColor})]},be))})]},ke)}),(p||kr)&&R.jsxs(YU,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[R.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),R.jsx(KU,{children:R.jsx(Ei,{isBot:!0,children:R.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:R.jsx(vs,{loading:p||kr})})})})]})]}),R.jsx(dhe,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Hn?1:0}})]}),R.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[(e==="catch-org-ai"||e==="letsgo-catch")&&R.jsx(ehe,{children:R.jsx("span",{children:`"${t.chatbotName}" can make mistakes.`})}),R.jsx("div",{children:R.jsx(BA,{disabled:p,inputState:!1})}),(t.debales_branding??!0)&&R.jsxs(Xde,{href:"https://debales.ai/?open=true",target:"_blank",title:"debales-link",style:{color:t.fontColor?t.fontColor:"fff",marginTop:e==="catch-org-ai"?"0":"9px"},children:[R.jsx("p",{children:"Powered by"}),R.jsxs(Jde,{children:[R.jsx("img",{src:`${Ci}/images/debales_logo_d.png`,alt:"Debales logo"}),R.jsx("p",{children:"DEBALES"})]})]})]})]})]})}),F.shadowRoot)]})},ghe=({botId:e})=>{const t=nV("new-suggested-question-design");let n;return t==="variant-1"?n=Zfe:t==="variant-2"?n=Mde:t==="variant-3"?n=phe:n=AU,R.jsx(n,{botId:e})};var $A={exports:{}},d1={},LA={exports:{}},SD={};/**
|
|
4903
4903
|
* @license React
|
|
4904
4904
|
* scheduler.production.js
|
|
4905
4905
|
*
|
|
@@ -4923,15 +4923,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4923
4923
|
*
|
|
4924
4924
|
* This source code is licensed under the MIT license found in the
|
|
4925
4925
|
* LICENSE file in the root directory of this source tree.
|
|
4926
|
-
*/var rj;function yhe(){if(rj)return d1;rj=1;var e=nj(),t=ie,n=vo;function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var f=u,g=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(g=f.return),u=f.return;while(u)}return f.tag===3?g:null}function l(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function d(u){if(a(u)!==u)throw Error(r(188))}function h(u){var f=u.alternate;if(!f){if(f=a(u),f===null)throw Error(r(188));return f!==u?null:u}for(var g=u,b=f;;){var E=g.return;if(E===null)break;var M=E.alternate;if(M===null){if(b=E.return,b!==null){g=b;continue}break}if(E.child===M.child){for(M=E.child;M;){if(M===g)return d(E),u;if(M===b)return d(E),f;M=M.sibling}throw Error(r(188))}if(g.return!==b.return)g=E,b=M;else{for(var U=!1,Z=E.child;Z;){if(Z===g){U=!0,g=E,b=M;break}if(Z===b){U=!0,b=E,g=M;break}Z=Z.sibling}if(!U){for(Z=M.child;Z;){if(Z===g){U=!0,g=M,b=E;break}if(Z===b){U=!0,b=M,g=E;break}Z=Z.sibling}if(!U)throw Error(r(189))}}if(g.alternate!==b)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?u:f}function p(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=p(u),f!==null)return f;u=u.sibling}return null}var y=Object.assign,m=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function ee(u){return u===null||typeof u!="object"?null:(u=Y&&u[Y]||u["@@iterator"],typeof u=="function"?u:null)}var oe=Symbol.for("react.client.reference");function J(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===oe?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case w:return"Fragment";case k:return"Profiler";case T:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList";case V:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case S:return"Portal";case O:return(u.displayName||"Context")+".Provider";case D:return(u._context.displayName||"Context")+".Consumer";case I:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case q:return f=u.displayName||null,f!==null?f:J(u.type)||"Memo";case G:f=u._payload,u=u._init;try{return J(u(f))}catch{}}return null}var me=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Me=[],H=-1;function te(u){return{current:u}}function le(u){0>H||(u.current=Me[H],Me[H]=null,H--)}function P(u,f){H++,Me[H]=u.current,u.current=f}var ve=te(null),Ie=te(null),Le=te(null),Mt=te(null);function Ze(u,f){switch(P(Le,f),P(Ie,u),P(ve,null),f.nodeType){case 9:case 11:u=(u=f.documentElement)&&(u=u.namespaceURI)?du(u):0;break;default:if(u=f.tagName,f=f.namespaceURI)f=du(f),u=yh(f,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}le(ve),P(ve,u)}function nt(){le(ve),le(Ie),le(Le)}function Bt(u){u.memoizedState!==null&&P(Mt,u);var f=ve.current,g=yh(f,u.type);f!==g&&(P(Ie,u),P(ve,g))}function zt(u){Ie.current===u&&(le(ve),le(Ie)),Mt.current===u&&(le(Mt),pa._currentValue=he)}var rt=Object.prototype.hasOwnProperty,st=e.unstable_scheduleCallback,yt=e.unstable_cancelCallback,_t=e.unstable_shouldYield,kt=e.unstable_requestPaint,Et=e.unstable_now,ne=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,Be=e.unstable_NormalPriority,Te=e.unstable_LowPriority,qe=e.unstable_IdlePriority,at=e.log,ht=e.unstable_setDisableYieldValue,_e=null,we=null;function bt(u){if(typeof at=="function"&&ht(u),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(_e,u)}catch{}}var lt=Math.clz32?Math.clz32:Kt,wt=Math.log,Tt=Math.LN2;function Kt(u){return u>>>=0,u===0?32:31-(wt(u)/Tt|0)|0}var Ht=256,mn=4194304;function pt(u){var f=u&42;if(f!==0)return f;switch(u&-u){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:return 64;case 128:return 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 u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Vt(u,f,g){var b=u.pendingLanes;if(b===0)return 0;var E=0,M=u.suspendedLanes,U=u.pingedLanes;u=u.warmLanes;var Z=b&134217727;return Z!==0?(b=Z&~M,b!==0?E=pt(b):(U&=Z,U!==0?E=pt(U):g||(g=Z&~u,g!==0&&(E=pt(g))))):(Z=b&~M,Z!==0?E=pt(Z):U!==0?E=pt(U):g||(g=b&~u,g!==0&&(E=pt(g)))),E===0?0:f!==0&&f!==E&&(f&M)===0&&(M=E&-E,g=f&-f,M>=g||M===32&&(g&4194048)!==0)?f:E}function mt(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function At(u,f){switch(u){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32: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 f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rn(){var u=Ht;return Ht<<=1,(Ht&4194048)===0&&(Ht=256),u}function pr(){var u=mn;return mn<<=1,(mn&62914560)===0&&(mn=4194304),u}function Yn(u){for(var f=[],g=0;31>g;g++)f.push(u);return f}function tr(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Ar(u,f,g,b,E,M){var U=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var Z=u.entanglements,ue=u.expirationTimes,De=u.hiddenUpdates;for(g=U&~g;0<g;){var Ye=31-lt(g),Xe=1<<Ye;Z[Ye]=0,ue[Ye]=-1;var $e=De[Ye];if($e!==null)for(De[Ye]=null,Ye=0;Ye<$e.length;Ye++){var ze=$e[Ye];ze!==null&&(ze.lane&=-536870913)}g&=~Xe}b!==0&&kr(u,b,0),M!==0&&E===0&&u.tag!==0&&(u.suspendedLanes|=M&~(U&~f))}function kr(u,f,g){u.pendingLanes|=f,u.suspendedLanes&=~f;var b=31-lt(f);u.entangledLanes|=f,u.entanglements[b]=u.entanglements[b]|1073741824|g&4194090}function Zn(u,f){var g=u.entangledLanes|=f;for(u=u.entanglements;g;){var b=31-lt(g),E=1<<b;E&f|u[b]&f&&(u[b]|=f),g&=~E}}function nr(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function Qn(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function ai(){var u=fe.p;return u!==0?u:(u=window.event,u===void 0?32:h_(u.type))}function Tr(u,f){var g=fe.p;try{return fe.p=u,f()}finally{fe.p=g}}var Hn=Math.random().toString(36).slice(2),on="__reactFiber$"+Hn,vn="__reactProps$"+Hn,ln="__reactContainer$"+Hn,Zi="__reactEvents$"+Hn,gr="__reactListeners$"+Hn,ea="__reactHandles$"+Hn,bo="__reactResources$"+Hn,Ot="__reactMarker$"+Hn;function si(u){delete u[on],delete u[vn],delete u[Zi],delete u[gr],delete u[ea]}function Or(u){var f=u[on];if(f)return f;for(var g=u.parentNode;g;){if(f=g[ln]||g[on]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(u=fo(u);u!==null;){if(g=u[on])return g;u=fo(u)}return f}u=g,g=u.parentNode}return null}function li(u){if(u=u[on]||u[ln]){var f=u.tag;if(f===5||f===6||f===13||f===26||f===27||f===3)return u}return null}function $o(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function Ai(u){var f=u[bo];return f||(f=u[bo]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Kn(u){u[Ot]=!0}var _o=new Set,xr={};function ki(u,f){Dr(u,f),Dr(u+"Capture",f)}function Dr(u,f){for(xr[u]=f,u=0;u<f.length;u++)_o.add(f[u])}var wa=RegExp("^[: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]*$"),$r={},et={};function Ce(u){return rt.call(et,u)?!0:rt.call($r,u)?!1:wa.test(u)?et[u]=!0:($r[u]=!0,!1)}function Je(u,f,g){if(Ce(f))if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+g)}}function se(u,f,g){if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+g)}}function Ae(u,f,g,b){if(b===null)u.removeAttribute(g);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(f,g,""+b)}}var z,X;function ce(u){if(z===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);z=f&&f[1]||"",X=-1<g.stack.indexOf(`
|
|
4926
|
+
*/var rj;function yhe(){if(rj)return d1;rj=1;var e=nj(),t=ie,n=vo;function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var f=u,g=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(g=f.return),u=f.return;while(u)}return f.tag===3?g:null}function l(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function d(u){if(a(u)!==u)throw Error(r(188))}function h(u){var f=u.alternate;if(!f){if(f=a(u),f===null)throw Error(r(188));return f!==u?null:u}for(var g=u,b=f;;){var E=g.return;if(E===null)break;var M=E.alternate;if(M===null){if(b=E.return,b!==null){g=b;continue}break}if(E.child===M.child){for(M=E.child;M;){if(M===g)return d(E),u;if(M===b)return d(E),f;M=M.sibling}throw Error(r(188))}if(g.return!==b.return)g=E,b=M;else{for(var U=!1,Z=E.child;Z;){if(Z===g){U=!0,g=E,b=M;break}if(Z===b){U=!0,b=E,g=M;break}Z=Z.sibling}if(!U){for(Z=M.child;Z;){if(Z===g){U=!0,g=M,b=E;break}if(Z===b){U=!0,b=M,g=E;break}Z=Z.sibling}if(!U)throw Error(r(189))}}if(g.alternate!==b)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?u:f}function p(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=p(u),f!==null)return f;u=u.sibling}return null}var y=Object.assign,m=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function ee(u){return u===null||typeof u!="object"?null:(u=Y&&u[Y]||u["@@iterator"],typeof u=="function"?u:null)}var oe=Symbol.for("react.client.reference");function J(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===oe?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case w:return"Fragment";case k:return"Profiler";case T:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList";case V:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case S:return"Portal";case O:return(u.displayName||"Context")+".Provider";case D:return(u._context.displayName||"Context")+".Consumer";case I:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case q:return f=u.displayName||null,f!==null?f:J(u.type)||"Memo";case G:f=u._payload,u=u._init;try{return J(u(f))}catch{}}return null}var me=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Me=[],H=-1;function te(u){return{current:u}}function le(u){0>H||(u.current=Me[H],Me[H]=null,H--)}function P(u,f){H++,Me[H]=u.current,u.current=f}var ve=te(null),Ie=te(null),Le=te(null),Mt=te(null);function Ze(u,f){switch(P(Le,f),P(Ie,u),P(ve,null),f.nodeType){case 9:case 11:u=(u=f.documentElement)&&(u=u.namespaceURI)?du(u):0;break;default:if(u=f.tagName,f=f.namespaceURI)f=du(f),u=yh(f,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}le(ve),P(ve,u)}function nt(){le(ve),le(Ie),le(Le)}function Bt(u){u.memoizedState!==null&&P(Mt,u);var f=ve.current,g=yh(f,u.type);f!==g&&(P(Ie,u),P(ve,g))}function zt(u){Ie.current===u&&(le(ve),le(Ie)),Mt.current===u&&(le(Mt),pa._currentValue=he)}var rt=Object.prototype.hasOwnProperty,st=e.unstable_scheduleCallback,yt=e.unstable_cancelCallback,_t=e.unstable_shouldYield,kt=e.unstable_requestPaint,Et=e.unstable_now,ne=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,Be=e.unstable_NormalPriority,Te=e.unstable_LowPriority,qe=e.unstable_IdlePriority,at=e.log,ht=e.unstable_setDisableYieldValue,_e=null,we=null;function bt(u){if(typeof at=="function"&&ht(u),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(_e,u)}catch{}}var lt=Math.clz32?Math.clz32:Kt,wt=Math.log,Tt=Math.LN2;function Kt(u){return u>>>=0,u===0?32:31-(wt(u)/Tt|0)|0}var Ht=256,mn=4194304;function pt(u){var f=u&42;if(f!==0)return f;switch(u&-u){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:return 64;case 128:return 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 u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Vt(u,f,g){var b=u.pendingLanes;if(b===0)return 0;var E=0,M=u.suspendedLanes,U=u.pingedLanes;u=u.warmLanes;var Z=b&134217727;return Z!==0?(b=Z&~M,b!==0?E=pt(b):(U&=Z,U!==0?E=pt(U):g||(g=Z&~u,g!==0&&(E=pt(g))))):(Z=b&~M,Z!==0?E=pt(Z):U!==0?E=pt(U):g||(g=b&~u,g!==0&&(E=pt(g)))),E===0?0:f!==0&&f!==E&&(f&M)===0&&(M=E&-E,g=f&-f,M>=g||M===32&&(g&4194048)!==0)?f:E}function mt(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function At(u,f){switch(u){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32: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 f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rn(){var u=Ht;return Ht<<=1,(Ht&4194048)===0&&(Ht=256),u}function pr(){var u=mn;return mn<<=1,(mn&62914560)===0&&(mn=4194304),u}function Yn(u){for(var f=[],g=0;31>g;g++)f.push(u);return f}function tr(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Ar(u,f,g,b,E,M){var U=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var Z=u.entanglements,ue=u.expirationTimes,De=u.hiddenUpdates;for(g=U&~g;0<g;){var Ye=31-lt(g),Xe=1<<Ye;Z[Ye]=0,ue[Ye]=-1;var $e=De[Ye];if($e!==null)for(De[Ye]=null,Ye=0;Ye<$e.length;Ye++){var ze=$e[Ye];ze!==null&&(ze.lane&=-536870913)}g&=~Xe}b!==0&&kr(u,b,0),M!==0&&E===0&&u.tag!==0&&(u.suspendedLanes|=M&~(U&~f))}function kr(u,f,g){u.pendingLanes|=f,u.suspendedLanes&=~f;var b=31-lt(f);u.entangledLanes|=f,u.entanglements[b]=u.entanglements[b]|1073741824|g&4194090}function Zn(u,f){var g=u.entangledLanes|=f;for(u=u.entanglements;g;){var b=31-lt(g),E=1<<b;E&f|u[b]&f&&(u[b]|=f),g&=~E}}function nr(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function Qn(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function ai(){var u=fe.p;return u!==0?u:(u=window.event,u===void 0?32:h_(u.type))}function Tr(u,f){var g=fe.p;try{return fe.p=u,f()}finally{fe.p=g}}var Hn=Math.random().toString(36).slice(2),on="__reactFiber$"+Hn,vn="__reactProps$"+Hn,ln="__reactContainer$"+Hn,Zi="__reactEvents$"+Hn,gr="__reactListeners$"+Hn,ea="__reactHandles$"+Hn,bo="__reactResources$"+Hn,Ot="__reactMarker$"+Hn;function si(u){delete u[on],delete u[vn],delete u[Zi],delete u[gr],delete u[ea]}function Or(u){var f=u[on];if(f)return f;for(var g=u.parentNode;g;){if(f=g[ln]||g[on]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(u=fo(u);u!==null;){if(g=u[on])return g;u=fo(u)}return f}u=g,g=u.parentNode}return null}function li(u){if(u=u[on]||u[ln]){var f=u.tag;if(f===5||f===6||f===13||f===26||f===27||f===3)return u}return null}function $o(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function Ai(u){var f=u[bo];return f||(f=u[bo]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Kn(u){u[Ot]=!0}var _o=new Set,xr={};function ki(u,f){Dr(u,f),Dr(u+"Capture",f)}function Dr(u,f){for(xr[u]=f,u=0;u<f.length;u++)_o.add(f[u])}var wa=RegExp("^[: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]*$"),$r={},et={};function Ce(u){return rt.call(et,u)?!0:rt.call($r,u)?!1:wa.test(u)?et[u]=!0:($r[u]=!0,!1)}function Je(u,f,g){if(Ce(f))if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+g)}}function se(u,f,g){if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+g)}}function ke(u,f,g,b){if(b===null)u.removeAttribute(g);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(f,g,""+b)}}var z,X;function ce(u){if(z===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);z=f&&f[1]||"",X=-1<g.stack.indexOf(`
|
|
4927
4927
|
at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4928
4928
|
`+z+u+X}var be=!1;function Se(u,f){if(!u||be)return"";be=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(f){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(ze){var $e=ze}Reflect.construct(u,[],Xe)}else{try{Xe.call()}catch(ze){$e=ze}u.call(Xe.prototype)}}else{try{throw Error()}catch(ze){$e=ze}(Xe=u())&&typeof Xe.catch=="function"&&Xe.catch(function(){})}}catch(ze){if(ze&&$e&&typeof ze.stack=="string")return[ze.stack,$e.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=b.DetermineComponentFrameRoot(),U=M[0],Z=M[1];if(U&&Z){var ue=U.split(`
|
|
4929
4929
|
`),De=Z.split(`
|
|
4930
4930
|
`);for(E=b=0;b<ue.length&&!ue[b].includes("DetermineComponentFrameRoot");)b++;for(;E<De.length&&!De[E].includes("DetermineComponentFrameRoot");)E++;if(b===ue.length||E===De.length)for(b=ue.length-1,E=De.length-1;1<=b&&0<=E&&ue[b]!==De[E];)E--;for(;1<=b&&0<=E;b--,E--)if(ue[b]!==De[E]){if(b!==1||E!==1)do if(b--,E--,0>E||ue[b]!==De[E]){var Ye=`
|
|
4931
4931
|
`+ue[b].replace(" at new "," at ");return u.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",u.displayName)),Ye}while(1<=b&&0<=E);break}}}finally{be=!1,Error.prepareStackTrace=g}return(g=u?u.displayName||u.name:"")?ce(g):""}function Qe(u){switch(u.tag){case 26:case 27:case 5:return ce(u.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return Se(u.type,!1);case 11:return Se(u.type.render,!1);case 1:return Se(u.type,!0);case 31:return ce("Activity");default:return""}}function Rt(u){try{var f="";do f+=Qe(u),u=u.return;while(u);return f}catch(g){return`
|
|
4932
4932
|
Error generating stack: `+g.message+`
|
|
4933
|
-
`+g.stack}}function Qt(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function en(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Ln(u){var f=en(u)?"checked":"value",g=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),b=""+u[f];if(!u.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var E=g.get,M=g.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return E.call(this)},set:function(U){b=""+U,M.call(this,U)}}),Object.defineProperty(u,f,{enumerable:g.enumerable}),{getValue:function(){return b},setValue:function(U){b=""+U},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function rn(u){u._valueTracker||(u._valueTracker=Ln(u))}function lr(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var g=f.getValue(),b="";return u&&(b=en(u)?u.checked?"true":"false":u.value),u=b,u!==g?(f.setValue(u),!0):!1}function Hr(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Ti=/[\n"\\]/g;function Xr(u){return u.replace(Ti,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function Qi(u,f,g,b,E,M,U,Z){u.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?u.type=U:u.removeAttribute("type"),f!=null?U==="number"?(f===0&&u.value===""||u.value!=f)&&(u.value=""+Qt(f)):u.value!==""+Qt(f)&&(u.value=""+Qt(f)):U!=="submit"&&U!=="reset"||u.removeAttribute("value"),f!=null?bp(u,U,Qt(f)):g!=null?bp(u,U,Qt(g)):b!=null&&u.removeAttribute("value"),E==null&&M!=null&&(u.defaultChecked=!!M),E!=null&&(u.checked=E&&typeof E!="function"&&typeof E!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?u.name=""+Qt(Z):u.removeAttribute("name")}function Od(u,f,g,b,E,M,U,Z){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(u.type=M),f!=null||g!=null){if(!(M!=="submit"&&M!=="reset"||f!=null))return;g=g!=null?""+Qt(g):"",f=f!=null?""+Qt(f):g,Z||f===u.value||(u.value=f),u.defaultValue=f}b=b??E,b=typeof b!="function"&&typeof b!="symbol"&&!!b,u.checked=Z?u.checked:!!b,u.defaultChecked=!!b,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(u.name=U)}function bp(u,f,g){f==="number"&&Hr(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function Yc(u,f,g,b){if(u=u.options,f){f={};for(var E=0;E<g.length;E++)f["$"+g[E]]=!0;for(g=0;g<u.length;g++)E=f.hasOwnProperty("$"+u[g].value),u[g].selected!==E&&(u[g].selected=E),E&&b&&(u[g].defaultSelected=!0)}else{for(g=""+Qt(g),f=null,E=0;E<u.length;E++){if(u[E].value===g){u[E].selected=!0,b&&(u[E].defaultSelected=!0);return}f!==null||u[E].disabled||(f=u[E])}f!==null&&(f.selected=!0)}}function p1(u,f,g){if(f!=null&&(f=""+Qt(f),f!==u.value&&(u.value=f),g==null)){u.defaultValue!==f&&(u.defaultValue=f);return}u.defaultValue=g!=null?""+Qt(g):""}function g1(u,f,g,b){if(f==null){if(b!=null){if(g!=null)throw Error(r(92));if(me(b)){if(1<b.length)throw Error(r(93));b=b[0]}g=b}g==null&&(g=""),f=g}g=Qt(f),u.defaultValue=g,b=u.textContent,b===g&&b!==""&&b!==null&&(u.value=b)}function Dd(u,f){if(f){var g=u.firstChild;if(g&&g===u.lastChild&&g.nodeType===3){g.nodeValue=f;return}}u.textContent=f}var _2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pm(u,f,g){var b=f.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?b?u.setProperty(f,""):f==="float"?u.cssFloat="":u[f]="":b?u.setProperty(f,g):typeof g!="number"||g===0||_2.has(f)?f==="float"?u.cssFloat=g:u[f]=(""+g).trim():u[f]=g+"px"}function _p(u,f,g){if(f!=null&&typeof f!="object")throw Error(r(62));if(u=u.style,g!=null){for(var b in g)!g.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?u.setProperty(b,""):b==="float"?u.cssFloat="":u[b]="");for(var E in f)b=f[E],f.hasOwnProperty(E)&&g[E]!==b&&pm(u,E,b)}else for(var M in f)f.hasOwnProperty(M)&&pm(u,M,f[M])}function Zc(u){if(u.indexOf("-")===-1)return!1;switch(u){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 TD=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),S2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sp(u){return S2.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Qc=null;function gm(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Md=null,Rd=null;function w2(u){var f=li(u);if(f&&(u=f.stateNode)){var g=u[vn]||null;e:switch(u=f.stateNode,f.type){case"input":if(Qi(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),f=g.name,g.type==="radio"&&f!=null){for(g=u;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Xr(""+f)+'"][type="radio"]'),f=0;f<g.length;f++){var b=g[f];if(b!==u&&b.form===u.form){var E=b[vn]||null;if(!E)throw Error(r(90));Qi(b,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(f=0;f<g.length;f++)b=g[f],b.form===u.form&&lr(b)}break e;case"textarea":p1(u,g.value,g.defaultValue);break e;case"select":f=g.value,f!=null&&Yc(u,!!g.multiple,f,!1)}}}var m1=!1;function Id(u,f,g){if(m1)return u(f,g);m1=!0;try{var b=u(f);return b}finally{if(m1=!1,(Md!==null||Rd!==null)&&(Tf(),Md&&(f=Md,u=Rd,Rd=Md=null,w2(f),u)))for(f=0;f<u.length;f++)w2(u[f])}}function Kc(u,f){var g=u.stateNode;if(g===null)return null;var b=g[vn]||null;if(b===null)return null;g=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(u=u.type,b=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!b;break e;default:u=!1}if(u)return null;if(g&&typeof g!="function")throw Error(r(231,f,typeof g));return g}var Zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mm=!1;if(Zs)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){mm=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{mm=!1}var Zl=null,Bd=null,Wc=null;function v1(){if(Wc)return Wc;var u,f=Bd,g=f.length,b,E="value"in Zl?Zl.value:Zl.textContent,M=E.length;for(u=0;u<g&&f[u]===E[u];u++);var U=g-u;for(b=1;b<=U&&f[g-b]===E[M-b];b++);return Wc=E.slice(u,1<b?1-b:void 0)}function oo(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function vm(){return!0}function ym(){return!1}function Lo(u){function f(g,b,E,M,U){this._reactName=g,this._targetInst=E,this.type=b,this.nativeEvent=M,this.target=U,this.currentTarget=null;for(var Z in u)u.hasOwnProperty(Z)&&(g=u[Z],this[Z]=g?g(M):M[Z]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?vm:ym,this.isPropagationStopped=ym,this}return y(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=vm)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=vm)},persist:function(){},isPersistent:vm}),f}var Fu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xm=Lo(Fu),wp=y({},Fu,{view:0,detail:0}),C2=Lo(wp),y1,bm,Cp,Xc=y({},wp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ql,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Cp&&(Cp&&u.type==="mousemove"?(y1=u.screenX-Cp.screenX,bm=u.screenY-Cp.screenY):bm=y1=0,Cp=u),y1)},movementY:function(u){return"movementY"in u?u.movementY:bm}}),x1=Lo(Xc),E2=y({},Xc,{dataTransfer:0}),A2=Lo(E2),OD=y({},wp,{relatedTarget:0}),b1=Lo(OD),DD=y({},Fu,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=Lo(DD),RD=y({},Fu,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),Ep=Lo(RD),k2=y({},Fu,{data:0}),_1=Lo(k2),T2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O2={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"},S1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D2(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=S1[u])?!!f[u]:!1}function Ql(){return D2}var Jc=y({},wp,{key:function(u){if(u.key){var f=T2[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=oo(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?O2[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ql,charCode:function(u){return u.type==="keypress"?oo(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?oo(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),ys=Lo(Jc),Ca=y({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ap=Lo(Ca),_m=y({},wp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ql}),w1=Lo(_m),ta=y({},Fu,{propertyName:0,elapsedTime:0,pseudoElement:0}),M2=Lo(ta),Sm=y({},Xc,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),ef=Lo(Sm),C1=y({},Fu,{newState:0,oldState:0}),R2=Lo(C1),I2=[9,13,27,32],kp=Zs&&"CompositionEvent"in window,Tp=null;Zs&&"documentMode"in document&&(Tp=document.documentMode);var E1=Zs&&"TextEvent"in window&&!Tp,Qs=Zs&&(!kp||Tp&&8<Tp&&11>=Tp),A1=" ",wm=!1;function Op(u,f){switch(u){case"keyup":return I2.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uu(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var ju=!1;function k1(u,f){switch(u){case"compositionend":return Uu(f);case"keypress":return f.which!==32?null:(wm=!0,A1);case"textInput":return u=f.data,u===A1&&wm?null:u;default:return null}}function tf(u,f){if(ju)return u==="compositionend"||!kp&&Op(u,f)?(u=v1(),Wc=Bd=Zl=null,ju=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Qs&&f.locale!=="ko"?null:f.data;default:return null}}var B2={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 Cm(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!B2[u.type]:f==="textarea"}function Em(u,f,g,b){Md?Rd?Rd.push(b):Rd=[b]:Md=b,f=vh(f,"onChange"),0<f.length&&(g=new xm("onChange","change",null,g,b),u.push({event:g,listeners:f}))}var xs=null,bs=null;function T1(u){Rf(u,0)}function Ks(u){var f=$o(u);if(lr(f))return u}function O1(u,f){if(u==="change")return f}var D1=!1;if(Zs){var nf;if(Zs){var rf="oninput"in document;if(!rf){var M1=document.createElement("div");M1.setAttribute("oninput","return;"),rf=typeof M1.oninput=="function"}nf=rf}else nf=!1;D1=nf&&(!document.documentMode||9<document.documentMode)}function $d(){xs&&(xs.detachEvent("onpropertychange",R1),bs=xs=null)}function R1(u){if(u.propertyName==="value"&&Ks(bs)){var f=[];Em(f,bs,u,gm(u)),Id(T1,f)}}function Am(u,f,g){u==="focusin"?($d(),xs=f,bs=g,xs.attachEvent("onpropertychange",R1)):u==="focusout"&&$d()}function Hu(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Ks(bs)}function Kl(u,f){if(u==="click")return Ks(f)}function I1(u,f){if(u==="input"||u==="change")return Ks(f)}function B1(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var ao=typeof Object.is=="function"?Object.is:B1;function qu(u,f){if(ao(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var g=Object.keys(u),b=Object.keys(f);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var E=g[b];if(!rt.call(f,E)||!ao(u[E],f[E]))return!1}return!0}function Pu(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function Lr(u,f){var g=Pu(u);u=0;for(var b;g;){if(g.nodeType===3){if(b=u+g.textContent.length,u<=f&&b>=f)return{node:g,offset:f-u};u=b}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Pu(g)}}function Dp(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?Dp(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function $1(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var f=Hr(u.document);f instanceof u.HTMLIFrameElement;){try{var g=typeof f.contentWindow.location.href=="string"}catch{g=!1}if(g)u=f.contentWindow;else break;f=Hr(u.document)}return f}function Mp(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}var of=Zs&&"documentMode"in document&&11>=document.documentMode,Ws=null,_s=null,Gu=null,af=!1;function km(u,f,g){var b=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;af||Ws==null||Ws!==Hr(b)||(b=Ws,"selectionStart"in b&&Mp(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Gu&&qu(Gu,b)||(Gu=b,b=vh(_s,"onSelect"),0<b.length&&(f=new xm("onSelect","select",null,f,g),u.push({event:f,listeners:b}),f.target=Ws)))}function Wl(u,f){var g={};return g[u.toLowerCase()]=f.toLowerCase(),g["Webkit"+u]="webkit"+f,g["Moz"+u]="moz"+f,g}var sf={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionrun:Wl("Transition","TransitionRun"),transitionstart:Wl("Transition","TransitionStart"),transitioncancel:Wl("Transition","TransitionCancel"),transitionend:Wl("Transition","TransitionEnd")},Ya={},Ss={};Zs&&(Ss=document.createElement("div").style,"AnimationEvent"in window||(delete sf.animationend.animation,delete sf.animationiteration.animation,delete sf.animationstart.animation),"TransitionEvent"in window||delete sf.transitionend.transition);function Xs(u){if(Ya[u])return Ya[u];if(!sf[u])return u;var f=sf[u],g;for(g in f)if(f.hasOwnProperty(g)&&g in Ss)return Ya[u]=f[g];return u}var $2=Xs("animationend"),L1=Xs("animationiteration"),L2=Xs("animationstart"),N1=Xs("transitionrun"),Tm=Xs("transitionstart"),N2=Xs("transitioncancel"),z1=Xs("transitionend"),F1=new Map,Ld="abort auxClick beforeToggle 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(" ");Ld.push("scrollEnd");function Za(u,f){F1.set(u,f),ki(f,[u])}var U1=new WeakMap;function Ea(u,f){if(typeof u=="object"&&u!==null){var g=U1.get(u);return g!==void 0?g:(f={value:u,source:f,stack:Rt(f)},U1.set(u,f),f)}return{value:u,source:f,stack:Rt(f)}}var na=[],Vu=0,Js=0;function ws(){for(var u=Vu,f=Js=Vu=0;f<u;){var g=na[f];na[f++]=null;var b=na[f];na[f++]=null;var E=na[f];na[f++]=null;var M=na[f];if(na[f++]=null,b!==null&&E!==null){var U=b.pending;U===null?E.next=E:(E.next=U.next,U.next=E),b.pending=E}M!==0&&zd(g,E,M)}}function Yu(u,f,g,b){na[Vu++]=u,na[Vu++]=f,na[Vu++]=g,na[Vu++]=b,Js|=b,u.lanes|=b,u=u.alternate,u!==null&&(u.lanes|=b)}function Nd(u,f,g,b){return Yu(u,f,g,b),Rp(u)}function el(u,f){return Yu(u,null,null,f),Rp(u)}function zd(u,f,g){u.lanes|=g;var b=u.alternate;b!==null&&(b.lanes|=g);for(var E=!1,M=u.return;M!==null;)M.childLanes|=g,b=M.alternate,b!==null&&(b.childLanes|=g),M.tag===22&&(u=M.stateNode,u===null||u._visibility&1||(E=!0)),u=M,M=M.return;return u.tag===3?(M=u.stateNode,E&&f!==null&&(E=31-lt(g),u=M.hiddenUpdates,b=u[E],b===null?u[E]=[f]:b.push(f),f.lane=g|536870912),M):null}function Rp(u){if(50<fh)throw fh=0,Ub=null,Error(r(185));for(var f=u.return;f!==null;)u=f,f=u.return;return u.tag===3?u.stateNode:null}var Fd={};function z2(u,f,g,b){this.tag=u,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(u,f,g,b){return new z2(u,f,g,b)}function Ip(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Cs(u,f){var g=u.alternate;return g===null?(g=ra(u.tag,f,u.key,u.mode),g.elementType=u.elementType,g.type=u.type,g.stateNode=u.stateNode,g.alternate=u,u.alternate=g):(g.pendingProps=f,g.type=u.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=u.flags&65011712,g.childLanes=u.childLanes,g.lanes=u.lanes,g.child=u.child,g.memoizedProps=u.memoizedProps,g.memoizedState=u.memoizedState,g.updateQueue=u.updateQueue,f=u.dependencies,g.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},g.sibling=u.sibling,g.index=u.index,g.ref=u.ref,g.refCleanup=u.refCleanup,g}function Cn(u,f){u.flags&=65011714;var g=u.alternate;return g===null?(u.childLanes=0,u.lanes=f,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,f=g.dependencies,u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),u}function it(u,f,g,b,E,M){var U=0;if(b=u,typeof u=="function")Ip(u)&&(U=1);else if(typeof u=="string")U=yk(u,g,ve.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case V:return u=ra(31,g,f,E),u.elementType=V,u.lanes=M,u;case w:return Qa(g.children,E,M,f);case T:U=8,E|=24;break;case k:return u=ra(12,g,f,E|2),u.elementType=k,u.lanes=M,u;case N:return u=ra(13,g,f,E),u.elementType=N,u.lanes=M,u;case L:return u=ra(19,g,f,E),u.elementType=L,u.lanes=M,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case A:case O:U=10;break e;case D:U=9;break e;case I:U=11;break e;case q:U=14;break e;case G:U=16,b=null;break e}U=29,g=Error(r(130,u===null?"null":typeof u,"")),b=null}return f=ra(U,g,f,E),f.elementType=u,f.type=b,f.lanes=M,f}function Qa(u,f,g,b){return u=ra(7,u,b,f),u.lanes=g,u}function Ud(u,f,g){return u=ra(6,u,null,f),u.lanes=g,u}function Jr(u,f,g){return f=ra(4,u.children!==null?u.children:[],u.key,f),f.lanes=g,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}var Zu=[],Qu=0,Bp=null,jd=0,Ka=[],ia=0,Xl=null,Es=1,ui="";function Nn(u,f){Zu[Qu++]=jd,Zu[Qu++]=Bp,Bp=u,jd=f}function Om(u,f,g){Ka[ia++]=Es,Ka[ia++]=ui,Ka[ia++]=Xl,Xl=u;var b=Es;u=ui;var E=32-lt(b)-1;b&=~(1<<E),g+=1;var M=32-lt(f)+E;if(30<M){var U=E-E%5;M=(b&(1<<U)-1).toString(32),b>>=U,E-=U,Es=1<<32-lt(f)+E|g<<E|b,ui=M+u}else Es=1<<M|g<<E|b,ui=u}function lf(u){u.return!==null&&(Nn(u,1),Om(u,1,0))}function tl(u){for(;u===Bp;)Bp=Zu[--Qu],Zu[Qu]=null,jd=Zu[--Qu],Zu[Qu]=null;for(;u===Xl;)Xl=Ka[--ia],Ka[ia]=null,ui=Ka[--ia],Ka[ia]=null,Es=Ka[--ia],Ka[ia]=null}var xi=null,rr=null,Wn=!1,Wa=null,Xa=!1,uf=Error(r(519));function Jl(u){var f=Error(r(418,""));throw Pd(Ea(f,u)),uf}function $p(u){var f=u.stateNode,g=u.type,b=u.memoizedProps;switch(f[on]=u,f[vn]=b,g){case"dialog":fn("cancel",f),fn("close",f);break;case"iframe":case"object":case"embed":fn("load",f);break;case"video":case"audio":for(g=0;g<b0.length;g++)fn(b0[g],f);break;case"source":fn("error",f);break;case"img":case"image":case"link":fn("error",f),fn("load",f);break;case"details":fn("toggle",f);break;case"input":fn("invalid",f),Od(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),rn(f);break;case"select":fn("invalid",f);break;case"textarea":fn("invalid",f),g1(f,b.value,b.defaultValue,b.children),rn(f)}g=b.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||f.textContent===""+g||b.suppressHydrationWarning===!0||e_(f.textContent,g)?(b.popover!=null&&(fn("beforetoggle",f),fn("toggle",f)),b.onScroll!=null&&fn("scroll",f),b.onScrollEnd!=null&&fn("scrollend",f),b.onClick!=null&&(f.onclick=Fv),f=!0):f=!1,f||Jl(u)}function j1(u){for(xi=u.return;xi;)switch(xi.tag){case 5:case 13:Xa=!1;return;case 27:case 3:Xa=!0;return;default:xi=xi.return}}function Hd(u){if(u!==xi)return!1;if(!Wn)return j1(u),Wn=!0,!1;var f=u.tag,g;if((g=f!==3&&f!==27)&&((g=f===5)&&(g=u.type,g=!(g!=="form"&&g!=="button")||_l(u.type,u.memoizedProps)),g=!g),g&&rr&&Jl(u),j1(u),f===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8)if(g=u.data,g==="/$"){if(f===0){rr=Ms(u.nextSibling);break e}f--}else g!=="$"&&g!=="$!"&&g!=="$?"||f++;u=u.nextSibling}rr=null}}else f===27?(f=rr,hc(u.type)?(u=pc,pc=null,rr=u):rr=f):rr=xi?Ms(u.stateNode.nextSibling):null;return!0}function qd(){rr=xi=null,Wn=!1}function H1(){var u=Wa;return u!==null&&(ca===null?ca=u:ca.push.apply(ca,u),Wa=null),u}function Pd(u){Wa===null?Wa=[u]:Wa.push(u)}var Lp=te(null),eu=null,As=null;function tu(u,f,g){P(Lp,f._currentValue),f._currentValue=g}function nl(u){u._currentValue=Lp.current,le(Lp)}function Dm(u,f,g){for(;u!==null;){var b=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),u===g)break;u=u.return}}function q1(u,f,g,b){var E=u.child;for(E!==null&&(E.return=u);E!==null;){var M=E.dependencies;if(M!==null){var U=E.child;M=M.firstContext;e:for(;M!==null;){var Z=M;M=E;for(var ue=0;ue<f.length;ue++)if(Z.context===f[ue]){M.lanes|=g,Z=M.alternate,Z!==null&&(Z.lanes|=g),Dm(M.return,g,u),b||(U=null);break e}M=Z.next}}else if(E.tag===18){if(U=E.return,U===null)throw Error(r(341));U.lanes|=g,M=U.alternate,M!==null&&(M.lanes|=g),Dm(U,g,u),U=null}else U=E.child;if(U!==null)U.return=E;else for(U=E;U!==null;){if(U===u){U=null;break}if(E=U.sibling,E!==null){E.return=U.return,U=E;break}U=U.return}E=U}}function Gd(u,f,g,b){u=null;for(var E=f,M=!1;E!==null;){if(!M){if((E.flags&524288)!==0)M=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var U=E.alternate;if(U===null)throw Error(r(387));if(U=U.memoizedProps,U!==null){var Z=E.type;ao(E.pendingProps.value,U.value)||(u!==null?u.push(Z):u=[Z])}}else if(E===Mt.current){if(U=E.alternate,U===null)throw Error(r(387));U.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(u!==null?u.push(pa):u=[pa])}E=E.return}u!==null&&q1(f,u,g,b),f.flags|=262144}function Np(u){for(u=u.firstContext;u!==null;){if(!ao(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Ku(u){eu=u,As=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function Ki(u){return P1(eu,u)}function zp(u,f){return eu===null&&Ku(u),P1(u,f)}function P1(u,f){var g=f._currentValue;if(f={context:f,memoizedValue:g,next:null},As===null){if(u===null)throw Error(r(308));As=f,u.dependencies={lanes:0,firstContext:f},u.flags|=524288}else As=As.next=f;return g}var Vd=typeof AbortController<"u"?AbortController:function(){var u=[],f=this.signal={aborted:!1,addEventListener:function(g,b){u.push(b)}};this.abort=function(){f.aborted=!0,u.forEach(function(g){return g()})}},Mm=e.unstable_scheduleCallback,F2=e.unstable_NormalPriority,Li={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yd(){return{controller:new Vd,data:new Map,refCount:0}}function rl(u){u.refCount--,u.refCount===0&&Mm(F2,function(){u.controller.abort()})}var Wu=null,Fp=0,Ja=0,Ni=null;function Rm(u,f){if(Wu===null){var g=Wu=[];Fp=0,Ja=Mf(),Ni={status:"pending",value:void 0,then:function(b){g.push(b)}}}return Fp++,f.then(Im,Im),f}function Im(){if(--Fp===0&&Wu!==null){Ni!==null&&(Ni.status="fulfilled");var u=Wu;Wu=null,Ja=0,Ni=null;for(var f=0;f<u.length;f++)(0,u[f])()}}function U2(u,f){var g=[],b={status:"pending",value:null,reason:null,then:function(E){g.push(E)}};return u.then(function(){b.status="fulfilled",b.value=f;for(var E=0;E<g.length;E++)(0,g[E])(f)},function(E){for(b.status="rejected",b.reason=E,E=0;E<g.length;E++)(0,g[E])(void 0)}),b}var Bm=W.S;W.S=function(u,f){typeof f=="object"&&f!==null&&typeof f.then=="function"&&Rm(u,f),Bm!==null&&Bm(u,f)};var il=te(null);function Up(){var u=il.current;return u!==null?u:Mr.pooledCache}function cf(u,f){f===null?P(il,il.current):P(il,f.pool)}function $m(){var u=Up();return u===null?null:{parent:Li._currentValue,pool:u}}var Xu=Error(r(460)),Lm=Error(r(474)),jp=Error(r(542)),Nm={then:function(){}};function zm(u){return u=u.status,u==="fulfilled"||u==="rejected"}function Hp(){}function G1(u,f,g){switch(g=u[g],g===void 0?u.push(f):g!==f&&(f.then(Hp,Hp),f=g),f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,Y1(u),u;default:if(typeof f.status=="string")f.then(Hp,Hp);else{if(u=Mr,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=f,u.status="pending",u.then(function(b){if(f.status==="pending"){var E=f;E.status="fulfilled",E.value=b}},function(b){if(f.status==="pending"){var E=f;E.status="rejected",E.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,Y1(u),u}throw ff=f,Xu}}var ff=null;function V1(){if(ff===null)throw Error(r(459));var u=ff;return ff=null,u}function Y1(u){if(u===Xu||u===jp)throw Error(r(483))}var ol=!1;function Fm(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Um(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function oa(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function al(u,f,g){var b=u.updateQueue;if(b===null)return null;if(b=b.shared,(cr&2)!==0){var E=b.pending;return E===null?f.next=f:(f.next=E.next,E.next=f),b.pending=f,f=Rp(u),zd(u,null,g),f}return Yu(u,b,f,g),Rp(u)}function df(u,f,g){if(f=f.updateQueue,f!==null&&(f=f.shared,(g&4194048)!==0)){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Zn(u,g)}}function Z1(u,f){var g=u.updateQueue,b=u.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var E=null,M=null;if(g=g.firstBaseUpdate,g!==null){do{var U={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};M===null?E=M=U:M=M.next=U,g=g.next}while(g!==null);M===null?E=M=f:M=M.next=f}else E=M=f;g={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:M,shared:b.shared,callbacks:b.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=f:u.next=f,g.lastBaseUpdate=f}var Q1=!1;function Zd(){if(Q1){var u=Ni;if(u!==null)throw u}}function nu(u,f,g,b){Q1=!1;var E=u.updateQueue;ol=!1;var M=E.firstBaseUpdate,U=E.lastBaseUpdate,Z=E.shared.pending;if(Z!==null){E.shared.pending=null;var ue=Z,De=ue.next;ue.next=null,U===null?M=De:U.next=De,U=ue;var Ye=u.alternate;Ye!==null&&(Ye=Ye.updateQueue,Z=Ye.lastBaseUpdate,Z!==U&&(Z===null?Ye.firstBaseUpdate=De:Z.next=De,Ye.lastBaseUpdate=ue))}if(M!==null){var Xe=E.baseState;U=0,Ye=De=ue=null,Z=M;do{var $e=Z.lane&-536870913,ze=$e!==Z.lane;if(ze?(On&$e)===$e:(b&$e)===$e){$e!==0&&$e===Ja&&(Q1=!0),Ye!==null&&(Ye=Ye.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var Yt=u,Zt=Z;$e=f;var or=g;switch(Zt.tag){case 1:if(Yt=Zt.payload,typeof Yt=="function"){Xe=Yt.call(or,Xe,$e);break e}Xe=Yt;break e;case 3:Yt.flags=Yt.flags&-65537|128;case 0:if(Yt=Zt.payload,$e=typeof Yt=="function"?Yt.call(or,Xe,$e):Yt,$e==null)break e;Xe=y({},Xe,$e);break e;case 2:ol=!0}}$e=Z.callback,$e!==null&&(u.flags|=64,ze&&(u.flags|=8192),ze=E.callbacks,ze===null?E.callbacks=[$e]:ze.push($e))}else ze={lane:$e,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Ye===null?(De=Ye=ze,ue=Xe):Ye=Ye.next=ze,U|=$e;if(Z=Z.next,Z===null){if(Z=E.shared.pending,Z===null)break;ze=Z,Z=ze.next,ze.next=null,E.lastBaseUpdate=ze,E.shared.pending=null}}while(!0);Ye===null&&(ue=Xe),E.baseState=ue,E.firstBaseUpdate=De,E.lastBaseUpdate=Ye,M===null&&(E.shared.lanes=0),uu|=U,u.lanes=U,u.memoizedState=Xe}}function jm(u,f){if(typeof u!="function")throw Error(r(191,u));u.call(f)}function qp(u,f){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u<g.length;u++)jm(g[u],f)}var hf=te(null),Pp=te(0);function Wi(u,f){u=lu,P(Pp,u),P(hf,f),lu=u|f.baseLanes}function Qd(){P(Pp,lu),P(hf,hf.current)}function Kd(){lu=Pp.current,le(hf),le(Pp)}var es=0,cn=null,ur=null,ei=null,Gp=!1,Aa=!1,Ju=!1,ks=0,ka=0,ru=null,K1=0;function ti(){throw Error(r(321))}function Hm(u,f){if(f===null)return!1;for(var g=0;g<f.length&&g<u.length;g++)if(!ao(u[g],f[g]))return!1;return!0}function qm(u,f,g,b,E,M){return es=M,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,W.H=u===null||u.memoizedState===null?fb:db,Ju=!1,M=g(b,E),Ju=!1,Aa&&(M=W1(f,g,b,E)),ec(u),M}function ec(u){W.H=av;var f=ur!==null&&ur.next!==null;if(es=0,ei=ur=cn=null,Gp=!1,ka=0,ru=null,f)throw Error(r(300));u===null||zi||(u=u.dependencies,u!==null&&Np(u)&&(zi=!0))}function W1(u,f,g,b){cn=u;var E=0;do{if(Aa&&(ru=null),ka=0,Aa=!1,25<=E)throw Error(r(301));if(E+=1,ei=ur=null,u.updateQueue!=null){var M=u.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}W.H=iu,M=f(g,b)}while(Aa);return M}function j2(){var u=W.H,f=u.useState()[0];return f=typeof f.then=="function"?Yp(f):f,u=u.useState()[0],(ur!==null?ur.memoizedState:null)!==u&&(cn.flags|=1024),f}function Pm(){var u=ks!==0;return ks=0,u}function Wd(u,f,g){f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~g}function Gm(u){if(Gp){for(u=u.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Gp=!1}es=0,ei=ur=cn=null,Aa=!1,ka=ks=0,ru=null}function So(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ei===null?cn.memoizedState=ei=u:ei=ei.next=u,ei}function ci(){if(ur===null){var u=cn.alternate;u=u!==null?u.memoizedState:null}else u=ur.next;var f=ei===null?cn.memoizedState:ei.next;if(f!==null)ei=f,ur=u;else{if(u===null)throw cn.alternate===null?Error(r(467)):Error(r(310));ur=u,u={memoizedState:ur.memoizedState,baseState:ur.baseState,baseQueue:ur.baseQueue,queue:ur.queue,next:null},ei===null?cn.memoizedState=ei=u:ei=ei.next=u}return ei}function Vp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yp(u){var f=ka;return ka+=1,ru===null&&(ru=[]),u=G1(ru,u,f),f=cn,(ei===null?f.memoizedState:ei.next)===null&&(f=f.alternate,W.H=f===null||f.memoizedState===null?fb:db),u}function Oi(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Yp(u);if(u.$$typeof===O)return Ki(u)}throw Error(r(438,String(u)))}function Vm(u){var f=null,g=cn.updateQueue;if(g!==null&&(f=g.memoCache),f==null){var b=cn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(E){return E.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),g===null&&(g=Vp(),cn.updateQueue=g),g.memoCache=f,g=f.data[f.index],g===void 0)for(g=f.data[f.index]=Array(u),b=0;b<u;b++)g[b]=F;return f.index++,g}function sl(u,f){return typeof f=="function"?f(u):f}function Zp(u){var f=ci();return Ym(f,ur,u)}function Ym(u,f,g){var b=u.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=g;var E=u.baseQueue,M=b.pending;if(M!==null){if(E!==null){var U=E.next;E.next=M.next,M.next=U}f.baseQueue=E=M,b.pending=null}if(M=u.baseState,E===null)u.memoizedState=M;else{f=E.next;var Z=U=null,ue=null,De=f,Ye=!1;do{var Xe=De.lane&-536870913;if(Xe!==De.lane?(On&Xe)===Xe:(es&Xe)===Xe){var $e=De.revertLane;if($e===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null}),Xe===Ja&&(Ye=!0);else if((es&$e)===$e){De=De.next,$e===Ja&&(Ye=!0);continue}else Xe={lane:0,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ue===null?(Z=ue=Xe,U=M):ue=ue.next=Xe,cn.lanes|=$e,uu|=$e;Xe=De.action,Ju&&g(M,Xe),M=De.hasEagerState?De.eagerState:g(M,Xe)}else $e={lane:Xe,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ue===null?(Z=ue=$e,U=M):ue=ue.next=$e,cn.lanes|=Xe,uu|=Xe;De=De.next}while(De!==null&&De!==f);if(ue===null?U=M:ue.next=Z,!ao(M,u.memoizedState)&&(zi=!0,Ye&&(g=Ni,g!==null)))throw g;u.memoizedState=M,u.baseState=U,u.baseQueue=ue,b.lastRenderedState=M}return E===null&&(b.lanes=0),[u.memoizedState,b.dispatch]}function Zm(u){var f=ci(),g=f.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=u;var b=g.dispatch,E=g.pending,M=f.memoizedState;if(E!==null){g.pending=null;var U=E=E.next;do M=u(M,U.action),U=U.next;while(U!==E);ao(M,f.memoizedState)||(zi=!0),f.memoizedState=M,f.baseQueue===null&&(f.baseState=M),g.lastRenderedState=M}return[M,b]}function Qp(u,f,g){var b=cn,E=ci(),M=Wn;if(M){if(g===void 0)throw Error(r(407));g=g()}else g=f();var U=!ao((ur||E).memoizedState,g);U&&(E.memoizedState=g,zi=!0),E=E.queue;var Z=J1.bind(null,b,E,u);if(br(2048,8,Z,[u]),E.getSnapshot!==f||U||ei!==null&&ei.memoizedState.tag&1){if(b.flags|=2048,aa(9,Xp(),X1.bind(null,b,E,g,f),null),Mr===null)throw Error(r(349));M||(es&124)!==0||Qm(b,f,g)}return g}function Qm(u,f,g){u.flags|=16384,u={getSnapshot:f,value:g},f=cn.updateQueue,f===null?(f=Vp(),cn.updateQueue=f,f.stores=[u]):(g=f.stores,g===null?f.stores=[u]:g.push(u))}function X1(u,f,g,b){f.value=g,f.getSnapshot=b,eb(f)&&Km(u)}function J1(u,f,g){return g(function(){eb(f)&&Km(u)})}function eb(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!ao(u,g)}catch{return!0}}function Km(u){var f=el(u,2);f!==null&&Da(f,u,2)}function Kp(u){var f=So();if(typeof u=="function"){var g=u;if(u=g(),Ju){bt(!0);try{g()}finally{bt(!1)}}}return f.memoizedState=f.baseState=u,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:u},f}function Wm(u,f,g,b){return u.baseState=g,Ym(u,ur,typeof b=="function"?b:sl)}function H2(u,f,g,b,E){if(vf(u))throw Error(r(485));if(u=f.action,u!==null){var M={payload:E,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(U){M.listeners.push(U)}};W.T!==null?g(!0):M.isTransition=!1,b(M),g=f.pending,g===null?(M.next=f.pending=M,Xm(f,M)):(M.next=g.next,f.pending=g.next=M)}}function Xm(u,f){var g=f.action,b=f.payload,E=u.state;if(f.isTransition){var M=W.T,U={};W.T=U;try{var Z=g(E,b),ue=W.S;ue!==null&&ue(U,Z),Wp(u,f,Z)}catch(De){ev(u,f,De)}finally{W.T=M}}else try{M=g(E,b),Wp(u,f,M)}catch(De){ev(u,f,De)}}function Wp(u,f,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(b){Jm(u,f,b)},function(b){return ev(u,f,b)}):Jm(u,f,g)}function Jm(u,f,g){f.status="fulfilled",f.value=g,tb(f),u.state=g,f=u.pending,f!==null&&(g=f.next,g===f?u.pending=null:(g=g.next,f.next=g,Xm(u,g)))}function ev(u,f,g){var b=u.pending;if(u.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=g,tb(f),f=f.next;while(f!==b)}u.action=null}function tb(u){u=u.listeners;for(var f=0;f<u.length;f++)(0,u[f])()}function tv(u,f){return f}function nb(u,f){if(Wn){var g=Mr.formState;if(g!==null){e:{var b=cn;if(Wn){if(rr){t:{for(var E=rr,M=Xa;E.nodeType!==8;){if(!M){E=null;break t}if(E=Ms(E.nextSibling),E===null){E=null;break t}}M=E.data,E=M==="F!"||M==="F"?E:null}if(E){rr=Ms(E.nextSibling),b=E.data==="F!";break e}}Jl(b)}b=!1}b&&(f=g[0])}}return g=So(),g.memoizedState=g.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tv,lastRenderedState:f},g.queue=b,g=ub.bind(null,cn,b),b.dispatch=g,b=Kp(!1),M=t0.bind(null,cn,!1,b.queue),b=So(),E={state:f,dispatch:null,action:u,pending:null},b.queue=E,g=H2.bind(null,cn,E,M,g),E.dispatch=g,b.memoizedState=u,[f,g,!1]}function ll(u){var f=ci();return nv(f,ur,u)}function nv(u,f,g){if(f=Ym(u,f,tv)[0],u=Zp(sl)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=Yp(f)}catch(U){throw U===Xu?jp:U}else b=f;f=ci();var E=f.queue,M=E.dispatch;return g!==f.memoizedState&&(cn.flags|=2048,aa(9,Xp(),ID.bind(null,E,g),null)),[b,M,u]}function ID(u,f){u.action=f}function rv(u){var f=ci(),g=ur;if(g!==null)return nv(f,g,u);ci(),f=f.memoizedState,g=ci();var b=g.queue.dispatch;return g.memoizedState=u,[f,b,!1]}function aa(u,f,g,b){return u={tag:u,create:g,deps:b,inst:f,next:null},f=cn.updateQueue,f===null&&(f=Vp(),cn.updateQueue=f),g=f.lastEffect,g===null?f.lastEffect=u.next=u:(b=g.next,g.next=u,u.next=b,f.lastEffect=u),u}function Xp(){return{destroy:void 0,resource:void 0}}function Jp(){return ci().memoizedState}function tc(u,f,g,b){var E=So();b=b===void 0?null:b,cn.flags|=u,E.memoizedState=aa(1|f,Xp(),g,b)}function br(u,f,g,b){var E=ci();b=b===void 0?null:b;var M=E.memoizedState.inst;ur!==null&&b!==null&&Hm(b,ur.memoizedState.deps)?E.memoizedState=aa(f,M,g,b):(cn.flags|=u,E.memoizedState=aa(1|f,M,g,b))}function q2(u,f){tc(8390656,8,u,f)}function P2(u,f){br(2048,8,u,f)}function rb(u,f){return br(4,2,u,f)}function Ts(u,f){return br(4,4,u,f)}function ib(u,f){if(typeof f=="function"){u=u();var g=f(u);return function(){typeof g=="function"?g():f(null)}}if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function iv(u,f,g){g=g!=null?g.concat([u]):null,br(4,4,ib.bind(null,f,u),g)}function pf(){}function gf(u,f){var g=ci();f=f===void 0?null:f;var b=g.memoizedState;return f!==null&&Hm(f,b[1])?b[0]:(g.memoizedState=[u,f],u)}function ob(u,f){var g=ci();f=f===void 0?null:f;var b=g.memoizedState;if(f!==null&&Hm(f,b[1]))return b[0];if(b=u(),Ju){bt(!0);try{u()}finally{bt(!1)}}return g.memoizedState=[b,f],b}function e0(u,f,g){return g===void 0||(es&1073741824)!==0?u.memoizedState=f:(u.memoizedState=g,u=jb(),cn.lanes|=u,uu|=u,g)}function ab(u,f,g,b){return ao(g,f)?g:hf.current!==null?(u=e0(u,g,b),ao(u,f)||(zi=!0),u):(es&42)===0?(zi=!0,u.memoizedState=g):(u=jb(),cn.lanes|=u,uu|=u,f)}function G2(u,f,g,b,E){var M=fe.p;fe.p=M!==0&&8>M?M:8;var U=W.T,Z={};W.T=Z,t0(u,!1,f,g);try{var ue=E(),De=W.S;if(De!==null&&De(Z,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var Ye=U2(ue,b);mf(u,f,Ye,Oa(u))}else mf(u,f,b,Oa(u))}catch(Xe){mf(u,f,{then:function(){},status:"rejected",reason:Xe},Oa())}finally{fe.p=M,W.T=U}}function BD(){}function ov(u,f,g,b){if(u.tag!==5)throw Error(r(476));var E=V2(u).queue;G2(u,E,f,he,g===null?BD:function(){return Xd(u),g(b)})}function V2(u){var f=u.memoizedState;if(f!==null)return f;f={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:he},next:null};var g={};return f.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:g},next:null},u.memoizedState=f,u=u.alternate,u!==null&&(u.memoizedState=f),f}function Xd(u){var f=V2(u).next.queue;mf(u,f,{},Oa())}function ts(){return Ki(pa)}function sb(){return ci().memoizedState}function Y2(){return ci().memoizedState}function Z2(u){for(var f=u.return;f!==null;){switch(f.tag){case 24:case 3:var g=Oa();u=oa(g);var b=al(f,u,g);b!==null&&(Da(b,f,g),df(b,f,g)),f={cache:Yd()},u.payload=f;return}f=f.return}}function lb(u,f,g){var b=Oa();g={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null},vf(u)?Q2(f,g):(g=Nd(u,f,g,b),g!==null&&(Da(g,u,b),cb(g,f,b)))}function ub(u,f,g){var b=Oa();mf(u,f,g,b)}function mf(u,f,g,b){var E={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null};if(vf(u))Q2(f,E);else{var M=u.alternate;if(u.lanes===0&&(M===null||M.lanes===0)&&(M=f.lastRenderedReducer,M!==null))try{var U=f.lastRenderedState,Z=M(U,g);if(E.hasEagerState=!0,E.eagerState=Z,ao(Z,U))return Yu(u,f,E,0),Mr===null&&ws(),!1}catch{}finally{}if(g=Nd(u,f,E,b),g!==null)return Da(g,u,b),cb(g,f,b),!0}return!1}function t0(u,f,g,b){if(b={lane:2,revertLane:Mf(),action:b,hasEagerState:!1,eagerState:null,next:null},vf(u)){if(f)throw Error(r(479))}else f=Nd(u,g,b,2),f!==null&&Da(f,u,2)}function vf(u){var f=u.alternate;return u===cn||f!==null&&f===cn}function Q2(u,f){Aa=Gp=!0;var g=u.pending;g===null?f.next=f:(f.next=g.next,g.next=f),u.pending=f}function cb(u,f,g){if((g&4194048)!==0){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Zn(u,g)}}var av={readContext:Ki,use:Oi,useCallback:ti,useContext:ti,useEffect:ti,useImperativeHandle:ti,useLayoutEffect:ti,useInsertionEffect:ti,useMemo:ti,useReducer:ti,useRef:ti,useState:ti,useDebugValue:ti,useDeferredValue:ti,useTransition:ti,useSyncExternalStore:ti,useId:ti,useHostTransitionStatus:ti,useFormState:ti,useActionState:ti,useOptimistic:ti,useMemoCache:ti,useCacheRefresh:ti},fb={readContext:Ki,use:Oi,useCallback:function(u,f){return So().memoizedState=[u,f===void 0?null:f],u},useContext:Ki,useEffect:q2,useImperativeHandle:function(u,f,g){g=g!=null?g.concat([u]):null,tc(4194308,4,ib.bind(null,f,u),g)},useLayoutEffect:function(u,f){return tc(4194308,4,u,f)},useInsertionEffect:function(u,f){tc(4,2,u,f)},useMemo:function(u,f){var g=So();f=f===void 0?null:f;var b=u();if(Ju){bt(!0);try{u()}finally{bt(!1)}}return g.memoizedState=[b,f],b},useReducer:function(u,f,g){var b=So();if(g!==void 0){var E=g(f);if(Ju){bt(!0);try{g(f)}finally{bt(!1)}}}else E=f;return b.memoizedState=b.baseState=E,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:E},b.queue=u,u=u.dispatch=lb.bind(null,cn,u),[b.memoizedState,u]},useRef:function(u){var f=So();return u={current:u},f.memoizedState=u},useState:function(u){u=Kp(u);var f=u.queue,g=ub.bind(null,cn,f);return f.dispatch=g,[u.memoizedState,g]},useDebugValue:pf,useDeferredValue:function(u,f){var g=So();return e0(g,u,f)},useTransition:function(){var u=Kp(!1);return u=G2.bind(null,cn,u.queue,!0,!1),So().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,f,g){var b=cn,E=So();if(Wn){if(g===void 0)throw Error(r(407));g=g()}else{if(g=f(),Mr===null)throw Error(r(349));(On&124)!==0||Qm(b,f,g)}E.memoizedState=g;var M={value:g,getSnapshot:f};return E.queue=M,q2(J1.bind(null,b,M,u),[u]),b.flags|=2048,aa(9,Xp(),X1.bind(null,b,M,g,f),null),g},useId:function(){var u=So(),f=Mr.identifierPrefix;if(Wn){var g=ui,b=Es;g=(b&~(1<<32-lt(b)-1)).toString(32)+g,f="«"+f+"R"+g,g=ks++,0<g&&(f+="H"+g.toString(32)),f+="»"}else g=K1++,f="«"+f+"r"+g.toString(32)+"»";return u.memoizedState=f},useHostTransitionStatus:ts,useFormState:nb,useActionState:nb,useOptimistic:function(u){var f=So();f.memoizedState=f.baseState=u;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=g,f=t0.bind(null,cn,!0,g),g.dispatch=f,[u,f]},useMemoCache:Vm,useCacheRefresh:function(){return So().memoizedState=Z2.bind(null,cn)}},db={readContext:Ki,use:Oi,useCallback:gf,useContext:Ki,useEffect:P2,useImperativeHandle:iv,useInsertionEffect:rb,useLayoutEffect:Ts,useMemo:ob,useReducer:Zp,useRef:Jp,useState:function(){return Zp(sl)},useDebugValue:pf,useDeferredValue:function(u,f){var g=ci();return ab(g,ur.memoizedState,u,f)},useTransition:function(){var u=Zp(sl)[0],f=ci().memoizedState;return[typeof u=="boolean"?u:Yp(u),f]},useSyncExternalStore:Qp,useId:sb,useHostTransitionStatus:ts,useFormState:ll,useActionState:ll,useOptimistic:function(u,f){var g=ci();return Wm(g,ur,u,f)},useMemoCache:Vm,useCacheRefresh:Y2},iu={readContext:Ki,use:Oi,useCallback:gf,useContext:Ki,useEffect:P2,useImperativeHandle:iv,useInsertionEffect:rb,useLayoutEffect:Ts,useMemo:ob,useReducer:Zm,useRef:Jp,useState:function(){return Zm(sl)},useDebugValue:pf,useDeferredValue:function(u,f){var g=ci();return ur===null?e0(g,u,f):ab(g,ur.memoizedState,u,f)},useTransition:function(){var u=Zm(sl)[0],f=ci().memoizedState;return[typeof u=="boolean"?u:Yp(u),f]},useSyncExternalStore:Qp,useId:sb,useHostTransitionStatus:ts,useFormState:rv,useActionState:rv,useOptimistic:function(u,f){var g=ci();return ur!==null?Wm(g,ur,u,f):(g.baseState=u,[u,g.queue.dispatch])},useMemoCache:Vm,useCacheRefresh:Y2},yf=null,Jd=0;function sv(u){var f=Jd;return Jd+=1,yf===null&&(yf=[]),G1(yf,u,f)}function xf(u,f){f=f.props.ref,u.ref=f!==void 0?f:null}function wo(u,f){throw f.$$typeof===m?Error(r(525)):(u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u)))}function hb(u){var f=u._init;return f(u._payload)}function sa(u){function f(Ee,xe){if(u){var Oe=Ee.deletions;Oe===null?(Ee.deletions=[xe],Ee.flags|=16):Oe.push(xe)}}function g(Ee,xe){if(!u)return null;for(;xe!==null;)f(Ee,xe),xe=xe.sibling;return null}function b(Ee){for(var xe=new Map;Ee!==null;)Ee.key!==null?xe.set(Ee.key,Ee):xe.set(Ee.index,Ee),Ee=Ee.sibling;return xe}function E(Ee,xe){return Ee=Cs(Ee,xe),Ee.index=0,Ee.sibling=null,Ee}function M(Ee,xe,Oe){return Ee.index=Oe,u?(Oe=Ee.alternate,Oe!==null?(Oe=Oe.index,Oe<xe?(Ee.flags|=67108866,xe):Oe):(Ee.flags|=67108866,xe)):(Ee.flags|=1048576,xe)}function U(Ee){return u&&Ee.alternate===null&&(Ee.flags|=67108866),Ee}function Z(Ee,xe,Oe,Ke){return xe===null||xe.tag!==6?(xe=Ud(Oe,Ee.mode,Ke),xe.return=Ee,xe):(xe=E(xe,Oe),xe.return=Ee,xe)}function ue(Ee,xe,Oe,Ke){var Lt=Oe.type;return Lt===w?Ye(Ee,xe,Oe.props.children,Ke,Oe.key):xe!==null&&(xe.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===G&&hb(Lt)===xe.type)?(xe=E(xe,Oe.props),xf(xe,Oe),xe.return=Ee,xe):(xe=it(Oe.type,Oe.key,Oe.props,null,Ee.mode,Ke),xf(xe,Oe),xe.return=Ee,xe)}function De(Ee,xe,Oe,Ke){return xe===null||xe.tag!==4||xe.stateNode.containerInfo!==Oe.containerInfo||xe.stateNode.implementation!==Oe.implementation?(xe=Jr(Oe,Ee.mode,Ke),xe.return=Ee,xe):(xe=E(xe,Oe.children||[]),xe.return=Ee,xe)}function Ye(Ee,xe,Oe,Ke,Lt){return xe===null||xe.tag!==7?(xe=Qa(Oe,Ee.mode,Ke,Lt),xe.return=Ee,xe):(xe=E(xe,Oe),xe.return=Ee,xe)}function Xe(Ee,xe,Oe){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return xe=Ud(""+xe,Ee.mode,Oe),xe.return=Ee,xe;if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case x:return Oe=it(xe.type,xe.key,xe.props,null,Ee.mode,Oe),xf(Oe,xe),Oe.return=Ee,Oe;case S:return xe=Jr(xe,Ee.mode,Oe),xe.return=Ee,xe;case G:var Ke=xe._init;return xe=Ke(xe._payload),Xe(Ee,xe,Oe)}if(me(xe)||ee(xe))return xe=Qa(xe,Ee.mode,Oe,null),xe.return=Ee,xe;if(typeof xe.then=="function")return Xe(Ee,sv(xe),Oe);if(xe.$$typeof===O)return Xe(Ee,zp(Ee,xe),Oe);wo(Ee,xe)}return null}function $e(Ee,xe,Oe,Ke){var Lt=xe!==null?xe.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Lt!==null?null:Z(Ee,xe,""+Oe,Ke);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case x:return Oe.key===Lt?ue(Ee,xe,Oe,Ke):null;case S:return Oe.key===Lt?De(Ee,xe,Oe,Ke):null;case G:return Lt=Oe._init,Oe=Lt(Oe._payload),$e(Ee,xe,Oe,Ke)}if(me(Oe)||ee(Oe))return Lt!==null?null:Ye(Ee,xe,Oe,Ke,null);if(typeof Oe.then=="function")return $e(Ee,xe,sv(Oe),Ke);if(Oe.$$typeof===O)return $e(Ee,xe,zp(Ee,Oe),Ke);wo(Ee,Oe)}return null}function ze(Ee,xe,Oe,Ke,Lt){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"||typeof Ke=="bigint")return Ee=Ee.get(Oe)||null,Z(xe,Ee,""+Ke,Lt);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case x:return Ee=Ee.get(Ke.key===null?Oe:Ke.key)||null,ue(xe,Ee,Ke,Lt);case S:return Ee=Ee.get(Ke.key===null?Oe:Ke.key)||null,De(xe,Ee,Ke,Lt);case G:var En=Ke._init;return Ke=En(Ke._payload),ze(Ee,xe,Oe,Ke,Lt)}if(me(Ke)||ee(Ke))return Ee=Ee.get(Oe)||null,Ye(xe,Ee,Ke,Lt,null);if(typeof Ke.then=="function")return ze(Ee,xe,Oe,sv(Ke),Lt);if(Ke.$$typeof===O)return ze(Ee,xe,Oe,zp(xe,Ke),Lt);wo(xe,Ke)}return null}function Yt(Ee,xe,Oe,Ke){for(var Lt=null,En=null,Pt=xe,Jt=xe=0,eo=null;Pt!==null&&Jt<Oe.length;Jt++){Pt.index>Jt?(eo=Pt,Pt=null):eo=Pt.sibling;var qn=$e(Ee,Pt,Oe[Jt],Ke);if(qn===null){Pt===null&&(Pt=eo);break}u&&Pt&&qn.alternate===null&&f(Ee,Pt),xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn,Pt=eo}if(Jt===Oe.length)return g(Ee,Pt),Wn&&Nn(Ee,Jt),Lt;if(Pt===null){for(;Jt<Oe.length;Jt++)Pt=Xe(Ee,Oe[Jt],Ke),Pt!==null&&(xe=M(Pt,xe,Jt),En===null?Lt=Pt:En.sibling=Pt,En=Pt);return Wn&&Nn(Ee,Jt),Lt}for(Pt=b(Pt);Jt<Oe.length;Jt++)eo=ze(Pt,Ee,Jt,Oe[Jt],Ke),eo!==null&&(u&&eo.alternate!==null&&Pt.delete(eo.key===null?Jt:eo.key),xe=M(eo,xe,Jt),En===null?Lt=eo:En.sibling=eo,En=eo);return u&&Pt.forEach(function(xc){return f(Ee,xc)}),Wn&&Nn(Ee,Jt),Lt}function Zt(Ee,xe,Oe,Ke){if(Oe==null)throw Error(r(151));for(var Lt=null,En=null,Pt=xe,Jt=xe=0,eo=null,qn=Oe.next();Pt!==null&&!qn.done;Jt++,qn=Oe.next()){Pt.index>Jt?(eo=Pt,Pt=null):eo=Pt.sibling;var xc=$e(Ee,Pt,qn.value,Ke);if(xc===null){Pt===null&&(Pt=eo);break}u&&Pt&&xc.alternate===null&&f(Ee,Pt),xe=M(xc,xe,Jt),En===null?Lt=xc:En.sibling=xc,En=xc,Pt=eo}if(qn.done)return g(Ee,Pt),Wn&&Nn(Ee,Jt),Lt;if(Pt===null){for(;!qn.done;Jt++,qn=Oe.next())qn=Xe(Ee,qn.value,Ke),qn!==null&&(xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn);return Wn&&Nn(Ee,Jt),Lt}for(Pt=b(Pt);!qn.done;Jt++,qn=Oe.next())qn=ze(Pt,Ee,Jt,qn.value,Ke),qn!==null&&(u&&qn.alternate!==null&&Pt.delete(qn.key===null?Jt:qn.key),xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn);return u&&Pt.forEach(function(VD){return f(Ee,VD)}),Wn&&Nn(Ee,Jt),Lt}function or(Ee,xe,Oe,Ke){if(typeof Oe=="object"&&Oe!==null&&Oe.type===w&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case x:e:{for(var Lt=Oe.key;xe!==null;){if(xe.key===Lt){if(Lt=Oe.type,Lt===w){if(xe.tag===7){g(Ee,xe.sibling),Ke=E(xe,Oe.props.children),Ke.return=Ee,Ee=Ke;break e}}else if(xe.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===G&&hb(Lt)===xe.type){g(Ee,xe.sibling),Ke=E(xe,Oe.props),xf(Ke,Oe),Ke.return=Ee,Ee=Ke;break e}g(Ee,xe);break}else f(Ee,xe);xe=xe.sibling}Oe.type===w?(Ke=Qa(Oe.props.children,Ee.mode,Ke,Oe.key),Ke.return=Ee,Ee=Ke):(Ke=it(Oe.type,Oe.key,Oe.props,null,Ee.mode,Ke),xf(Ke,Oe),Ke.return=Ee,Ee=Ke)}return U(Ee);case S:e:{for(Lt=Oe.key;xe!==null;){if(xe.key===Lt)if(xe.tag===4&&xe.stateNode.containerInfo===Oe.containerInfo&&xe.stateNode.implementation===Oe.implementation){g(Ee,xe.sibling),Ke=E(xe,Oe.children||[]),Ke.return=Ee,Ee=Ke;break e}else{g(Ee,xe);break}else f(Ee,xe);xe=xe.sibling}Ke=Jr(Oe,Ee.mode,Ke),Ke.return=Ee,Ee=Ke}return U(Ee);case G:return Lt=Oe._init,Oe=Lt(Oe._payload),or(Ee,xe,Oe,Ke)}if(me(Oe))return Yt(Ee,xe,Oe,Ke);if(ee(Oe)){if(Lt=ee(Oe),typeof Lt!="function")throw Error(r(150));return Oe=Lt.call(Oe),Zt(Ee,xe,Oe,Ke)}if(typeof Oe.then=="function")return or(Ee,xe,sv(Oe),Ke);if(Oe.$$typeof===O)return or(Ee,xe,zp(Ee,Oe),Ke);wo(Ee,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint"?(Oe=""+Oe,xe!==null&&xe.tag===6?(g(Ee,xe.sibling),Ke=E(xe,Oe),Ke.return=Ee,Ee=Ke):(g(Ee,xe),Ke=Ud(Oe,Ee.mode,Ke),Ke.return=Ee,Ee=Ke),U(Ee)):g(Ee,xe)}return function(Ee,xe,Oe,Ke){try{Jd=0;var Lt=or(Ee,xe,Oe,Ke);return yf=null,Lt}catch(Pt){if(Pt===Xu||Pt===jp)throw Pt;var En=ra(29,Pt,null,Ee.mode);return En.lanes=Ke,En.return=Ee,En}finally{}}}var bf=sa(!0),ul=sa(!1),Ta=te(null),Co=null;function ou(u){var f=u.alternate;P(_r,_r.current&1),P(Ta,u),Co===null&&(f===null||hf.current!==null||f.memoizedState!==null)&&(Co=u)}function cl(u){if(u.tag===22){if(P(_r,_r.current),P(Ta,u),Co===null){var f=u.alternate;f!==null&&f.memoizedState!==null&&(Co=u)}}else fl()}function fl(){P(_r,_r.current),P(Ta,Ta.current)}function Os(u){le(Ta),Co===u&&(Co=null),le(_r)}var _r=te(0);function n0(u){for(var f=u;f!==null;){if(f.tag===13){var g=f.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||E0(g)))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}function nc(u,f,g,b){f=u.memoizedState,g=g(b,f),g=g==null?f:y({},f,g),u.memoizedState=g,u.lanes===0&&(u.updateQueue.baseState=g)}var lv={enqueueSetState:function(u,f,g){u=u._reactInternals;var b=Oa(),E=oa(b);E.payload=f,g!=null&&(E.callback=g),f=al(u,E,b),f!==null&&(Da(f,u,b),df(f,u,b))},enqueueReplaceState:function(u,f,g){u=u._reactInternals;var b=Oa(),E=oa(b);E.tag=1,E.payload=f,g!=null&&(E.callback=g),f=al(u,E,b),f!==null&&(Da(f,u,b),df(f,u,b))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var g=Oa(),b=oa(g);b.tag=2,f!=null&&(b.callback=f),f=al(u,b,g),f!==null&&(Da(f,u,g),df(f,u,g))}};function eh(u,f,g,b,E,M,U){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(b,M,U):f.prototype&&f.prototype.isPureReactComponent?!qu(g,b)||!qu(E,M):!0}function _f(u,f,g,b){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(g,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(g,b),f.state!==u&&lv.enqueueReplaceState(f,f.state,null)}function rc(u,f){var g=f;if("ref"in f){g={};for(var b in f)b!=="ref"&&(g[b]=f[b])}if(u=u.defaultProps){g===f&&(g=y({},g));for(var E in u)g[E]===void 0&&(g[E]=u[E])}return g}var r0=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function th(u){r0(u)}function pb(u){console.error(u)}function i0(u){r0(u)}function o0(u,f){try{var g=u.onUncaughtError;g(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function gb(u,f,g){try{var b=u.onCaughtError;b(g.value,{componentStack:g.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function mb(u,f,g){return g=oa(g),g.tag=3,g.payload={element:null},g.callback=function(){o0(u,f)},g}function vb(u){return u=oa(u),u.tag=3,u}function la(u,f,g,b){var E=g.type.getDerivedStateFromError;if(typeof E=="function"){var M=b.value;u.payload=function(){return E(M)},u.callback=function(){gb(f,g,b)}}var U=g.stateNode;U!==null&&typeof U.componentDidCatch=="function"&&(u.callback=function(){gb(f,g,b),typeof E!="function"&&(sc===null?sc=new Set([this]):sc.add(this));var Z=b.stack;this.componentDidCatch(b.value,{componentStack:Z!==null?Z:""})})}function K2(u,f,g,b,E){if(g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=g.alternate,f!==null&&Gd(f,g,E,!0),g=Ta.current,g!==null){switch(g.tag){case 13:return Co===null?Df():g.alternate===null&&pi===0&&(pi=3),g.flags&=-257,g.flags|=65536,g.lanes=E,b===Nm?g.flags|=16384:(f=g.updateQueue,f===null?g.updateQueue=new Set([b]):f.add(b),Bv(u,b,E)),!1;case 22:return g.flags|=65536,b===Nm?g.flags|=16384:(f=g.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},g.updateQueue=f):(g=f.retryQueue,g===null?f.retryQueue=new Set([b]):g.add(b)),Bv(u,b,E)),!1}throw Error(r(435,g.tag))}return Bv(u,b,E),Df(),!1}if(Wn)return f=Ta.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=E,b!==uf&&(u=Error(r(422),{cause:b}),Pd(Ea(u,g)))):(b!==uf&&(f=Error(r(423),{cause:b}),Pd(Ea(f,g))),u=u.current.alternate,u.flags|=65536,E&=-E,u.lanes|=E,b=Ea(b,g),E=mb(u.stateNode,b,E),Z1(u,E),pi!==4&&(pi=2)),!1;var M=Error(r(520),{cause:b});if(M=Ea(M,g),lh===null?lh=[M]:lh.push(M),pi!==4&&(pi=2),f===null)return!0;b=Ea(b,g),g=f;do{switch(g.tag){case 3:return g.flags|=65536,u=E&-E,g.lanes|=u,u=mb(g.stateNode,b,u),Z1(g,u),!1;case 1:if(f=g.type,M=g.stateNode,(g.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(sc===null||!sc.has(M))))return g.flags|=65536,E&=-E,g.lanes|=E,E=vb(E),la(E,u,g,b),Z1(g,E),!1}g=g.return}while(g!==null);return!1}var fi=Error(r(461)),zi=!1;function Xi(u,f,g,b){f.child=u===null?ul(f,null,g,b):bf(f,u.child,g,b)}function W2(u,f,g,b,E){g=g.render;var M=f.ref;if("ref"in b){var U={};for(var Z in b)Z!=="ref"&&(U[Z]=b[Z])}else U=b;return Ku(f),b=qm(u,f,g,U,M,E),Z=Pm(),u!==null&&!zi?(Wd(u,f,E),dl(u,f,E)):(Wn&&Z&&lf(f),f.flags|=1,Xi(u,f,b,E),f.child)}function au(u,f,g,b,E){if(u===null){var M=g.type;return typeof M=="function"&&!Ip(M)&&M.defaultProps===void 0&&g.compare===null?(f.tag=15,f.type=M,Sf(u,f,M,b,E)):(u=it(g.type,null,b,f,f.mode,E),u.ref=f.ref,u.return=f,f.child=u)}if(M=u.child,!yv(u,E)){var U=M.memoizedProps;if(g=g.compare,g=g!==null?g:qu,g(U,b)&&u.ref===f.ref)return dl(u,f,E)}return f.flags|=1,u=Cs(M,b),u.ref=f.ref,u.return=f,f.child=u}function Sf(u,f,g,b,E){if(u!==null){var M=u.memoizedProps;if(qu(M,b)&&u.ref===f.ref)if(zi=!1,f.pendingProps=b=M,yv(u,E))(u.flags&131072)!==0&&(zi=!0);else return f.lanes=u.lanes,dl(u,f,E)}return cv(u,f,g,b,E)}function uv(u,f,g){var b=f.pendingProps,E=b.children,M=u!==null?u.memoizedState:null;if(b.mode==="hidden"){if((f.flags&128)!==0){if(b=M!==null?M.baseLanes|g:g,u!==null){for(E=f.child=u.child,M=0;E!==null;)M=M|E.lanes|E.childLanes,E=E.sibling;f.childLanes=M&~b}else f.childLanes=0,f.child=null;return wf(u,f,b,g)}if((g&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},u!==null&&cf(f,M!==null?M.cachePool:null),M!==null?Wi(f,M):Qd(),cl(f);else return f.lanes=f.childLanes=536870912,wf(u,f,M!==null?M.baseLanes|g:g,g)}else M!==null?(cf(f,M.cachePool),Wi(f,M),fl(),f.memoizedState=null):(u!==null&&cf(f,null),Qd(),fl());return Xi(u,f,E,g),f.child}function wf(u,f,g,b){var E=Up();return E=E===null?null:{parent:Li._currentValue,pool:E},f.memoizedState={baseLanes:g,cachePool:E},u!==null&&cf(f,null),Qd(),cl(f),u!==null&&Gd(u,f,b,!0),null}function a0(u,f){var g=f.ref;if(g===null)u!==null&&u.ref!==null&&(f.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(r(284));(u===null||u.ref!==g)&&(f.flags|=4194816)}}function cv(u,f,g,b,E){return Ku(f),g=qm(u,f,g,b,void 0,E),b=Pm(),u!==null&&!zi?(Wd(u,f,E),dl(u,f,E)):(Wn&&b&&lf(f),f.flags|=1,Xi(u,f,g,E),f.child)}function yb(u,f,g,b,E,M){return Ku(f),f.updateQueue=null,g=W1(f,b,g,E),ec(u),b=Pm(),u!==null&&!zi?(Wd(u,f,M),dl(u,f,M)):(Wn&&b&&lf(f),f.flags|=1,Xi(u,f,g,M),f.child)}function fv(u,f,g,b,E){if(Ku(f),f.stateNode===null){var M=Fd,U=g.contextType;typeof U=="object"&&U!==null&&(M=Ki(U)),M=new g(b,M),f.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=lv,f.stateNode=M,M._reactInternals=f,M=f.stateNode,M.props=b,M.state=f.memoizedState,M.refs={},Fm(f),U=g.contextType,M.context=typeof U=="object"&&U!==null?Ki(U):Fd,M.state=f.memoizedState,U=g.getDerivedStateFromProps,typeof U=="function"&&(nc(f,g,U,b),M.state=f.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(U=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),U!==M.state&&lv.enqueueReplaceState(M,M.state,null),nu(f,b,M,E),Zd(),M.state=f.memoizedState),typeof M.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(u===null){M=f.stateNode;var Z=f.memoizedProps,ue=rc(g,Z);M.props=ue;var De=M.context,Ye=g.contextType;U=Fd,typeof Ye=="object"&&Ye!==null&&(U=Ki(Ye));var Xe=g.getDerivedStateFromProps;Ye=typeof Xe=="function"||typeof M.getSnapshotBeforeUpdate=="function",Z=f.pendingProps!==Z,Ye||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Z||De!==U)&&_f(f,M,b,U),ol=!1;var $e=f.memoizedState;M.state=$e,nu(f,b,M,E),Zd(),De=f.memoizedState,Z||$e!==De||ol?(typeof Xe=="function"&&(nc(f,g,Xe,b),De=f.memoizedState),(ue=ol||eh(f,g,ue,b,$e,De,U))?(Ye||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(f.flags|=4194308)):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=De),M.props=b,M.state=De,M.context=U,b=ue):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{M=f.stateNode,Um(u,f),U=f.memoizedProps,Ye=rc(g,U),M.props=Ye,Xe=f.pendingProps,$e=M.context,De=g.contextType,ue=Fd,typeof De=="object"&&De!==null&&(ue=Ki(De)),Z=g.getDerivedStateFromProps,(De=typeof Z=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(U!==Xe||$e!==ue)&&_f(f,M,b,ue),ol=!1,$e=f.memoizedState,M.state=$e,nu(f,b,M,E),Zd();var ze=f.memoizedState;U!==Xe||$e!==ze||ol||u!==null&&u.dependencies!==null&&Np(u.dependencies)?(typeof Z=="function"&&(nc(f,g,Z,b),ze=f.memoizedState),(Ye=ol||eh(f,g,Ye,b,$e,ze,ue)||u!==null&&u.dependencies!==null&&Np(u.dependencies))?(De||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(b,ze,ue),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(b,ze,ue)),typeof M.componentDidUpdate=="function"&&(f.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof M.componentDidUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=ze),M.props=b,M.state=ze,M.context=ue,b=Ye):(typeof M.componentDidUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=1024),b=!1)}return M=b,a0(u,f),b=(f.flags&128)!==0,M||b?(M=f.stateNode,g=b&&typeof g.getDerivedStateFromError!="function"?null:M.render(),f.flags|=1,u!==null&&b?(f.child=bf(f,u.child,null,E),f.child=bf(f,null,g,E)):Xi(u,f,g,E),f.memoizedState=M.state,u=f.child):u=dl(u,f,E),u}function dv(u,f,g,b){return qd(),f.flags|=256,Xi(u,f,g,b),f.child}var hv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xb(u){return{baseLanes:u,cachePool:$m()}}function bb(u,f,g){return u=u!==null?u.childLanes&~g:0,f&&(u|=is),u}function _b(u,f,g){var b=f.pendingProps,E=!1,M=(f.flags&128)!==0,U;if((U=M)||(U=u!==null&&u.memoizedState===null?!1:(_r.current&2)!==0),U&&(E=!0,f.flags&=-129),U=(f.flags&32)!==0,f.flags&=-33,u===null){if(Wn){if(E?ou(f):fl(),Wn){var Z=rr,ue;if(ue=Z){e:{for(ue=Z,Z=Xa;ue.nodeType!==8;){if(!Z){Z=null;break e}if(ue=Ms(ue.nextSibling),ue===null){Z=null;break e}}Z=ue}Z!==null?(f.memoizedState={dehydrated:Z,treeContext:Xl!==null?{id:Es,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},ue=ra(18,null,null,0),ue.stateNode=Z,ue.return=f,f.child=ue,xi=f,rr=null,ue=!0):ue=!1}ue||Jl(f)}if(Z=f.memoizedState,Z!==null&&(Z=Z.dehydrated,Z!==null))return E0(Z)?f.lanes=32:f.lanes=536870912,null;Os(f)}return Z=b.children,b=b.fallback,E?(fl(),E=f.mode,Z=gv({mode:"hidden",children:Z},E),b=Qa(b,E,g,null),Z.return=f,b.return=f,Z.sibling=b,f.child=Z,E=f.child,E.memoizedState=xb(g),E.childLanes=bb(u,U,g),f.memoizedState=hv,b):(ou(f),pv(f,Z))}if(ue=u.memoizedState,ue!==null&&(Z=ue.dehydrated,Z!==null)){if(M)f.flags&256?(ou(f),f.flags&=-257,f=ic(u,f,g)):f.memoizedState!==null?(fl(),f.child=u.child,f.flags|=128,f=null):(fl(),E=b.fallback,Z=f.mode,b=gv({mode:"visible",children:b.children},Z),E=Qa(E,Z,g,null),E.flags|=2,b.return=f,E.return=f,b.sibling=E,f.child=b,bf(f,u.child,null,g),b=f.child,b.memoizedState=xb(g),b.childLanes=bb(u,U,g),f.memoizedState=hv,f=E);else if(ou(f),E0(Z)){if(U=Z.nextSibling&&Z.nextSibling.dataset,U)var De=U.dgst;U=De,b=Error(r(419)),b.stack="",b.digest=U,Pd({value:b,source:null,stack:null}),f=ic(u,f,g)}else if(zi||Gd(u,f,g,!1),U=(g&u.childLanes)!==0,zi||U){if(U=Mr,U!==null&&(b=g&-g,b=(b&42)!==0?1:nr(b),b=(b&(U.suspendedLanes|g))!==0?0:b,b!==0&&b!==ue.retryLane))throw ue.retryLane=b,el(u,b),Da(U,u,b),fi;Z.data==="$?"||Df(),f=ic(u,f,g)}else Z.data==="$?"?(f.flags|=192,f.child=u.child,f=null):(u=ue.treeContext,rr=Ms(Z.nextSibling),xi=f,Wn=!0,Wa=null,Xa=!1,u!==null&&(Ka[ia++]=Es,Ka[ia++]=ui,Ka[ia++]=Xl,Es=u.id,ui=u.overflow,Xl=f),f=pv(f,b.children),f.flags|=4096);return f}return E?(fl(),E=b.fallback,Z=f.mode,ue=u.child,De=ue.sibling,b=Cs(ue,{mode:"hidden",children:b.children}),b.subtreeFlags=ue.subtreeFlags&65011712,De!==null?E=Cs(De,E):(E=Qa(E,Z,g,null),E.flags|=2),E.return=f,b.return=f,b.sibling=E,f.child=b,b=E,E=f.child,Z=u.child.memoizedState,Z===null?Z=xb(g):(ue=Z.cachePool,ue!==null?(De=Li._currentValue,ue=ue.parent!==De?{parent:De,pool:De}:ue):ue=$m(),Z={baseLanes:Z.baseLanes|g,cachePool:ue}),E.memoizedState=Z,E.childLanes=bb(u,U,g),f.memoizedState=hv,b):(ou(f),g=u.child,u=g.sibling,g=Cs(g,{mode:"visible",children:b.children}),g.return=f,g.sibling=null,u!==null&&(U=f.deletions,U===null?(f.deletions=[u],f.flags|=16):U.push(u)),f.child=g,f.memoizedState=null,g)}function pv(u,f){return f=gv({mode:"visible",children:f},u.mode),f.return=u,u.child=f}function gv(u,f){return u=ra(22,u,null,f),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function ic(u,f,g){return bf(f,u.child,null,g),u=pv(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function s0(u,f,g){u.lanes|=f;var b=u.alternate;b!==null&&(b.lanes|=f),Dm(u.return,f,g)}function mv(u,f,g,b,E){var M=u.memoizedState;M===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:E}:(M.isBackwards=f,M.rendering=null,M.renderingStartTime=0,M.last=b,M.tail=g,M.tailMode=E)}function vv(u,f,g){var b=f.pendingProps,E=b.revealOrder,M=b.tail;if(Xi(u,f,b.children,g),b=_r.current,(b&2)!==0)b=b&1|2,f.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&s0(u,g,f);else if(u.tag===19)s0(u,g,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}b&=1}switch(P(_r,b),E){case"forwards":for(g=f.child,E=null;g!==null;)u=g.alternate,u!==null&&n0(u)===null&&(E=g),g=g.sibling;g=E,g===null?(E=f.child,f.child=null):(E=g.sibling,g.sibling=null),mv(f,!1,E,g,M);break;case"backwards":for(g=null,E=f.child,f.child=null;E!==null;){if(u=E.alternate,u!==null&&n0(u)===null){f.child=E;break}u=E.sibling,E.sibling=g,g=E,E=u}mv(f,!0,g,null,M);break;case"together":mv(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function dl(u,f,g){if(u!==null&&(f.dependencies=u.dependencies),uu|=f.lanes,(g&f.childLanes)===0)if(u!==null){if(Gd(u,f,g,!1),(g&f.childLanes)===0)return null}else return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,g=Cs(u,u.pendingProps),f.child=g,g.return=f;u.sibling!==null;)u=u.sibling,g=g.sibling=Cs(u,u.pendingProps),g.return=f;g.sibling=null}return f.child}function yv(u,f){return(u.lanes&f)!==0?!0:(u=u.dependencies,!!(u!==null&&Np(u)))}function X2(u,f,g){switch(f.tag){case 3:Ze(f,f.stateNode.containerInfo),tu(f,Li,u.memoizedState.cache),qd();break;case 27:case 5:Bt(f);break;case 4:Ze(f,f.stateNode.containerInfo);break;case 10:tu(f,f.type,f.memoizedProps.value);break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(ou(f),f.flags|=128,null):(g&f.child.childLanes)!==0?_b(u,f,g):(ou(f),u=dl(u,f,g),u!==null?u.sibling:null);ou(f);break;case 19:var E=(u.flags&128)!==0;if(b=(g&f.childLanes)!==0,b||(Gd(u,f,g,!1),b=(g&f.childLanes)!==0),E){if(b)return vv(u,f,g);f.flags|=128}if(E=f.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),P(_r,_r.current),b)break;return null;case 22:case 23:return f.lanes=0,uv(u,f,g);case 24:tu(f,Li,u.memoizedState.cache)}return dl(u,f,g)}function J2(u,f,g){if(u!==null)if(u.memoizedProps!==f.pendingProps)zi=!0;else{if(!yv(u,g)&&(f.flags&128)===0)return zi=!1,X2(u,f,g);zi=(u.flags&131072)!==0}else zi=!1,Wn&&(f.flags&1048576)!==0&&Om(f,jd,f.index);switch(f.lanes=0,f.tag){case 16:e:{u=f.pendingProps;var b=f.elementType,E=b._init;if(b=E(b._payload),f.type=b,typeof b=="function")Ip(b)?(u=rc(b,u),f.tag=1,f=fv(null,f,b,u,g)):(f.tag=0,f=cv(null,f,b,u,g));else{if(b!=null){if(E=b.$$typeof,E===I){f.tag=11,f=W2(null,f,b,u,g);break e}else if(E===q){f.tag=14,f=au(null,f,b,u,g);break e}}throw f=J(b)||b,Error(r(306,f,""))}}return f;case 0:return cv(u,f,f.type,f.pendingProps,g);case 1:return b=f.type,E=rc(b,f.pendingProps),fv(u,f,b,E,g);case 3:e:{if(Ze(f,f.stateNode.containerInfo),u===null)throw Error(r(387));b=f.pendingProps;var M=f.memoizedState;E=M.element,Um(u,f),nu(f,b,null,g);var U=f.memoizedState;if(b=U.cache,tu(f,Li,b),b!==M.cache&&q1(f,[Li],g,!0),Zd(),b=U.element,M.isDehydrated)if(M={element:b,isDehydrated:!1,cache:U.cache},f.updateQueue.baseState=M,f.memoizedState=M,f.flags&256){f=dv(u,f,b,g);break e}else if(b!==E){E=Ea(Error(r(424)),f),Pd(E),f=dv(u,f,b,g);break e}else{switch(u=f.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(rr=Ms(u.firstChild),xi=f,Wn=!0,Wa=null,Xa=!0,g=ul(f,null,b,g),f.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(qd(),b===E){f=dl(u,f,g);break e}Xi(u,f,b,g)}f=f.child}return f;case 26:return a0(u,f),u===null?(g=gk(f.type,null,f.pendingProps,null))?f.memoizedState=g:Wn||(g=f.type,u=f.pendingProps,b=as(Le.current).createElement(g),b[on]=f,b[vn]=u,tn(b,g,u),Kn(b),f.stateNode=b):f.memoizedState=gk(f.type,u.memoizedProps,f.pendingProps,u.memoizedState),null;case 27:return Bt(f),u===null&&Wn&&(b=f.stateNode=Dt(f.type,f.pendingProps,Le.current),xi=f,Xa=!0,E=rr,hc(f.type)?(pc=E,rr=Ms(b.firstChild)):rr=E),Xi(u,f,f.pendingProps.children,g),a0(u,f),u===null&&(f.flags|=4194304),f.child;case 5:return u===null&&Wn&&((E=b=rr)&&(b=bh(b,f.type,f.pendingProps,Xa),b!==null?(f.stateNode=b,xi=f,rr=Ms(b.firstChild),Xa=!1,E=!0):E=!1),E||Jl(f)),Bt(f),E=f.type,M=f.pendingProps,U=u!==null?u.memoizedProps:null,b=M.children,_l(E,M)?b=null:U!==null&&_l(E,U)&&(f.flags|=32),f.memoizedState!==null&&(E=qm(u,f,j2,null,null,g),pa._currentValue=E),a0(u,f),Xi(u,f,b,g),f.child;case 6:return u===null&&Wn&&((u=g=rr)&&(g=qD(g,f.pendingProps,Xa),g!==null?(f.stateNode=g,xi=f,rr=null,u=!0):u=!1),u||Jl(f)),null;case 13:return _b(u,f,g);case 4:return Ze(f,f.stateNode.containerInfo),b=f.pendingProps,u===null?f.child=bf(f,null,b,g):Xi(u,f,b,g),f.child;case 11:return W2(u,f,f.type,f.pendingProps,g);case 7:return Xi(u,f,f.pendingProps,g),f.child;case 8:return Xi(u,f,f.pendingProps.children,g),f.child;case 12:return Xi(u,f,f.pendingProps.children,g),f.child;case 10:return b=f.pendingProps,tu(f,f.type,b.value),Xi(u,f,b.children,g),f.child;case 9:return E=f.type._context,b=f.pendingProps.children,Ku(f),E=Ki(E),b=b(E),f.flags|=1,Xi(u,f,b,g),f.child;case 14:return au(u,f,f.type,f.pendingProps,g);case 15:return Sf(u,f,f.type,f.pendingProps,g);case 19:return vv(u,f,g);case 31:return b=f.pendingProps,g=f.mode,b={mode:b.mode,children:b.children},u===null?(g=gv(b,g),g.ref=f.ref,f.child=g,g.return=f,f=g):(g=Cs(u.child,b),g.ref=f.ref,f.child=g,g.return=f,f=g),f;case 22:return uv(u,f,g);case 24:return Ku(f),b=Ki(Li),u===null?(E=Up(),E===null&&(E=Mr,M=Yd(),E.pooledCache=M,M.refCount++,M!==null&&(E.pooledCacheLanes|=g),E=M),f.memoizedState={parent:b,cache:E},Fm(f),tu(f,Li,E)):((u.lanes&g)!==0&&(Um(u,f),nu(f,null,null,g),Zd()),E=u.memoizedState,M=f.memoizedState,E.parent!==b?(E={parent:b,cache:b},f.memoizedState=E,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=E),tu(f,Li,b)):(b=M.cache,tu(f,Li,b),b!==E.cache&&q1(f,[Li],g,!0))),Xi(u,f,f.pendingProps.children,g),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function hl(u){u.flags|=4}function nh(u,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!i_(f)){if(f=Ta.current,f!==null&&((On&4194048)===On?Co!==null:(On&62914560)!==On&&(On&536870912)===0||f!==Co))throw ff=Nm,Lm;u.flags|=8192}}function l0(u,f){f!==null&&(u.flags|=4),u.flags&16384&&(f=u.tag!==22?pr():536870912,u.lanes|=f,sh|=f)}function rh(u,f){if(!Wn)switch(u.tailMode){case"hidden":f=u.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?u.tail=null:g.sibling=null;break;case"collapsed":g=u.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:b.sibling=null}}function Xt(u){var f=u.alternate!==null&&u.alternate.child===u.child,g=0,b=0;if(f)for(var E=u.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags&65011712,b|=E.flags&65011712,E.return=u,E=E.sibling;else for(E=u.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=u,E=E.sibling;return u.subtreeFlags|=b,u.childLanes=g,f}function Sb(u,f,g){var b=f.pendingProps;switch(tl(f),f.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(f),null;case 1:return Xt(f),null;case 3:return g=f.stateNode,b=null,u!==null&&(b=u.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),nl(Li),nt(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(u===null||u.child===null)&&(Hd(f)?hl(f):u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,H1())),Xt(f),null;case 26:return g=f.memoizedState,u===null?(hl(f),g!==null?(Xt(f),nh(f,g)):(Xt(f),f.flags&=-16777217)):g?g!==u.memoizedState?(hl(f),Xt(f),nh(f,g)):(Xt(f),f.flags&=-16777217):(u.memoizedProps!==b&&hl(f),Xt(f),f.flags&=-16777217),null;case 27:zt(f),g=Le.current;var E=f.type;if(u!==null&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xt(f),null}u=ve.current,Hd(f)?$p(f):(u=Dt(E,b,g),f.stateNode=u,hl(f))}return Xt(f),null;case 5:if(zt(f),g=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xt(f),null}if(u=ve.current,Hd(f))$p(f);else{switch(E=as(Le.current),u){case 1:u=E.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:u=E.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":u=E.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":u=E.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":u=E.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof b.is=="string"?E.createElement("select",{is:b.is}):E.createElement("select"),b.multiple?u.multiple=!0:b.size&&(u.size=b.size);break;default:u=typeof b.is=="string"?E.createElement(g,{is:b.is}):E.createElement(g)}}u[on]=f,u[vn]=b;e:for(E=f.child;E!==null;){if(E.tag===5||E.tag===6)u.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===f)break e;for(;E.sibling===null;){if(E.return===null||E.return===f)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}f.stateNode=u;e:switch(tn(u,g,b),g){case"button":case"input":case"select":case"textarea":u=!!b.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&hl(f)}}return Xt(f),f.flags&=-16777217,null;case 6:if(u&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(r(166));if(u=Le.current,Hd(f)){if(u=f.stateNode,g=f.memoizedProps,b=null,E=xi,E!==null)switch(E.tag){case 27:case 5:b=E.memoizedProps}u[on]=f,u=!!(u.nodeValue===g||b!==null&&b.suppressHydrationWarning===!0||e_(u.nodeValue,g)),u||Jl(f)}else u=as(u).createTextNode(b),u[on]=f,f.stateNode=u}return Xt(f),null;case 13:if(b=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(E=Hd(f),b!==null&&b.dehydrated!==null){if(u===null){if(!E)throw Error(r(318));if(E=f.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[on]=f}else qd(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Xt(f),E=!1}else E=H1(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=E),E=!0;if(!E)return f.flags&256?(Os(f),f):(Os(f),null)}if(Os(f),(f.flags&128)!==0)return f.lanes=g,f;if(g=b!==null,u=u!==null&&u.memoizedState!==null,g){b=f.child,E=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(E=b.alternate.memoizedState.cachePool.pool);var M=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(M=b.memoizedState.cachePool.pool),M!==E&&(b.flags|=2048)}return g!==u&&g&&(f.child.flags|=8192),l0(f,f.updateQueue),Xt(f),null;case 4:return nt(),u===null&&Xb(f.stateNode.containerInfo),Xt(f),null;case 10:return nl(f.type),Xt(f),null;case 19:if(le(_r),E=f.memoizedState,E===null)return Xt(f),null;if(b=(f.flags&128)!==0,M=E.rendering,M===null)if(b)rh(E,!1);else{if(pi!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if(M=n0(u),M!==null){for(f.flags|=128,rh(E,!1),u=M.updateQueue,f.updateQueue=u,l0(f,u),f.subtreeFlags=0,u=g,g=f.child;g!==null;)Cn(g,u),g=g.sibling;return P(_r,_r.current&1|2),f.child}u=u.sibling}E.tail!==null&&Et()>kv&&(f.flags|=128,b=!0,rh(E,!1),f.lanes=4194304)}else{if(!b)if(u=n0(M),u!==null){if(f.flags|=128,b=!0,u=u.updateQueue,f.updateQueue=u,l0(f,u),rh(E,!0),E.tail===null&&E.tailMode==="hidden"&&!M.alternate&&!Wn)return Xt(f),null}else 2*Et()-E.renderingStartTime>kv&&g!==536870912&&(f.flags|=128,b=!0,rh(E,!1),f.lanes=4194304);E.isBackwards?(M.sibling=f.child,f.child=M):(u=E.last,u!==null?u.sibling=M:f.child=M,E.last=M)}return E.tail!==null?(f=E.tail,E.rendering=f,E.tail=f.sibling,E.renderingStartTime=Et(),f.sibling=null,u=_r.current,P(_r,b?u&1|2:u&1),f):(Xt(f),null);case 22:case 23:return Os(f),Kd(),b=f.memoizedState!==null,u!==null?u.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(g&536870912)!==0&&(f.flags&128)===0&&(Xt(f),f.subtreeFlags&6&&(f.flags|=8192)):Xt(f),g=f.updateQueue,g!==null&&l0(f,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048),u!==null&&le(il),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),f.memoizedState.cache!==g&&(f.flags|=2048),nl(Li),Xt(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function $D(u,f){switch(tl(f),f.tag){case 1:return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return nl(Li),nt(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 26:case 27:case 5:return zt(f),null;case 13:if(Os(f),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));qd()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return le(_r),null;case 4:return nt(),null;case 10:return nl(f.type),null;case 22:case 23:return Os(f),Kd(),u!==null&&le(il),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 24:return nl(Li),null;case 25:return null;default:return null}}function wb(u,f){switch(tl(f),f.tag){case 3:nl(Li),nt();break;case 26:case 27:case 5:zt(f);break;case 4:nt();break;case 13:Os(f);break;case 19:le(_r);break;case 10:nl(f.type);break;case 22:case 23:Os(f),Kd(),u!==null&&le(il);break;case 24:nl(Li)}}function u0(u,f){try{var g=f.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var E=b.next;g=E;do{if((g.tag&u)===u){b=void 0;var M=g.create,U=g.inst;b=M(),U.destroy=b}g=g.next}while(g!==E)}}catch(Z){mr(f,f.return,Z)}}function oc(u,f,g){try{var b=f.updateQueue,E=b!==null?b.lastEffect:null;if(E!==null){var M=E.next;b=M;do{if((b.tag&u)===u){var U=b.inst,Z=U.destroy;if(Z!==void 0){U.destroy=void 0,E=f;var ue=g,De=Z;try{De()}catch(Ye){mr(E,ue,Ye)}}}b=b.next}while(b!==M)}}catch(Ye){mr(f,f.return,Ye)}}function xv(u){var f=u.updateQueue;if(f!==null){var g=u.stateNode;try{qp(f,g)}catch(b){mr(u,u.return,b)}}}function Cb(u,f,g){g.props=rc(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(b){mr(u,f,b)}}function ih(u,f){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var b=u.stateNode;break;case 30:b=u.stateNode;break;default:b=u.stateNode}typeof g=="function"?u.refCleanup=g(b):g.current=b}}catch(E){mr(u,f,E)}}function Ds(u,f){var g=u.ref,b=u.refCleanup;if(g!==null)if(typeof b=="function")try{b()}catch(E){mr(u,f,E)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(E){mr(u,f,E)}else g.current=null}function oh(u){var f=u.type,g=u.memoizedProps,b=u.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":g.autoFocus&&b.focus();break e;case"img":g.src?b.src=g.src:g.srcSet&&(b.srcset=g.srcSet)}}catch(E){mr(u,u.return,E)}}function Eb(u,f,g){try{var b=u.stateNode;UD(b,u.type,g,f),b[vn]=f}catch(E){mr(u,u.return,E)}}function ek(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&hc(u.type)||u.tag===4}function ns(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||ek(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&hc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Cf(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,f):(f=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,f.appendChild(u),g=g._reactRootContainer,g!=null||f.onclick!==null||(f.onclick=Fv));else if(b!==4&&(b===27&&hc(u.type)&&(g=u.stateNode,f=null),u=u.child,u!==null))for(Cf(u,f,g),u=u.sibling;u!==null;)Cf(u,f,g),u=u.sibling}function bv(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?g.insertBefore(u,f):g.appendChild(u);else if(b!==4&&(b===27&&hc(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(bv(u,f,g),u=u.sibling;u!==null;)bv(u,f,g),u=u.sibling}function _v(u){var f=u.stateNode,g=u.memoizedProps;try{for(var b=u.type,E=f.attributes;E.length;)f.removeAttributeNode(E[0]);tn(f,b,g),f[on]=u,f[vn]=g}catch(M){mr(u,u.return,M)}}var pl=!1,di=!1,Sv=!1,wv=typeof WeakSet=="function"?WeakSet:Set,Fi=null;function Ab(u,f){if(u=u.containerInfo,S0=T0,u=$1(u),Mp(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var b=g.getSelection&&g.getSelection();if(b&&b.rangeCount!==0){g=b.anchorNode;var E=b.anchorOffset,M=b.focusNode;b=b.focusOffset;try{g.nodeType,M.nodeType}catch{g=null;break e}var U=0,Z=-1,ue=-1,De=0,Ye=0,Xe=u,$e=null;t:for(;;){for(var ze;Xe!==g||E!==0&&Xe.nodeType!==3||(Z=U+E),Xe!==M||b!==0&&Xe.nodeType!==3||(ue=U+b),Xe.nodeType===3&&(U+=Xe.nodeValue.length),(ze=Xe.firstChild)!==null;)$e=Xe,Xe=ze;for(;;){if(Xe===u)break t;if($e===g&&++De===E&&(Z=U),$e===M&&++Ye===b&&(ue=U),(ze=Xe.nextSibling)!==null)break;Xe=$e,$e=Xe.parentNode}Xe=ze}g=Z===-1||ue===-1?null:{start:Z,end:ue}}else g=null}g=g||{start:0,end:0}}else g=null;for(w0={focusedElem:u,selectionRange:g},T0=!1,Fi=f;Fi!==null;)if(f=Fi,u=f.child,(f.subtreeFlags&1024)!==0&&u!==null)u.return=f,Fi=u;else for(;Fi!==null;){switch(f=Fi,M=f.alternate,u=f.flags,f.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&M!==null){u=void 0,g=f,E=M.memoizedProps,M=M.memoizedState,b=g.stateNode;try{var Yt=rc(g.type,E,g.elementType===g.type);u=b.getSnapshotBeforeUpdate(Yt,M),b.__reactInternalSnapshotBeforeUpdate=u}catch(Zt){mr(g,g.return,Zt)}}break;case 3:if((u&1024)!==0){if(u=f.stateNode.containerInfo,g=u.nodeType,g===9)C0(u);else if(g===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":C0(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=f.sibling,u!==null){u.return=f.return,Fi=u;break}Fi=f.return}}function kb(u,f,g){var b=g.flags;switch(g.tag){case 0:case 11:case 15:ml(u,g),b&4&&u0(5,g);break;case 1:if(ml(u,g),b&4)if(u=g.stateNode,f===null)try{u.componentDidMount()}catch(U){mr(g,g.return,U)}else{var E=rc(g.type,f.memoizedProps);f=f.memoizedState;try{u.componentDidUpdate(E,f,u.__reactInternalSnapshotBeforeUpdate)}catch(U){mr(g,g.return,U)}}b&64&&xv(g),b&512&&ih(g,g.return);break;case 3:if(ml(u,g),b&64&&(u=g.updateQueue,u!==null)){if(f=null,g.child!==null)switch(g.child.tag){case 27:case 5:f=g.child.stateNode;break;case 1:f=g.child.stateNode}try{qp(u,f)}catch(U){mr(g,g.return,U)}}break;case 27:f===null&&b&4&&_v(g);case 26:case 5:ml(u,g),f===null&&b&4&&oh(g),b&512&&ih(g,g.return);break;case 12:ml(u,g);break;case 13:ml(u,g),b&4&&Cv(u,g),b&64&&(u=g.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(g=LD.bind(null,g),PD(u,g))));break;case 22:if(b=g.memoizedState!==null||pl,!b){f=f!==null&&f.memoizedState!==null||di,E=pl;var M=di;pl=b,(di=f)&&!M?ac(u,g,(g.subtreeFlags&8772)!==0):ml(u,g),pl=E,di=M}break;case 30:break;default:ml(u,g)}}function Tb(u){var f=u.alternate;f!==null&&(u.alternate=null,Tb(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&si(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var qr=null,so=!1;function gl(u,f,g){for(g=g.child;g!==null;)kn(u,f,g),g=g.sibling}function kn(u,f,g){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(_e,g)}catch{}switch(g.tag){case 26:di||Ds(g,f),gl(u,f,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:di||Ds(g,f);var b=qr,E=so;hc(g.type)&&(qr=g.stateNode,so=!1),gl(u,f,g),da(g.stateNode),qr=b,so=E;break;case 5:di||Ds(g,f);case 6:if(b=qr,E=so,qr=null,gl(u,f,g),qr=b,so=E,qr!==null)if(so)try{(qr.nodeType===9?qr.body:qr.nodeName==="HTML"?qr.ownerDocument.body:qr).removeChild(g.stateNode)}catch(M){mr(g,f,M)}else try{qr.removeChild(g.stateNode)}catch(M){mr(g,f,M)}break;case 18:qr!==null&&(so?(u=qr,jv(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,g.stateNode),Cl(u)):jv(qr,g.stateNode));break;case 4:b=qr,E=so,qr=g.stateNode.containerInfo,so=!0,gl(u,f,g),qr=b,so=E;break;case 0:case 11:case 14:case 15:di||oc(2,g,f),di||oc(4,g,f),gl(u,f,g);break;case 1:di||(Ds(g,f),b=g.stateNode,typeof b.componentWillUnmount=="function"&&Cb(g,f,b)),gl(u,f,g);break;case 21:gl(u,f,g);break;case 22:di=(b=di)||g.memoizedState!==null,gl(u,f,g),di=b;break;default:gl(u,f,g)}}function Cv(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Cl(u)}catch(g){mr(f,f.return,g)}}function Ob(u){switch(u.tag){case 13:case 19:var f=u.stateNode;return f===null&&(f=u.stateNode=new wv),f;case 22:return u=u.stateNode,f=u._retryCache,f===null&&(f=u._retryCache=new wv),f;default:throw Error(r(435,u.tag))}}function Ev(u,f){var g=Ob(u);f.forEach(function(b){var E=ND.bind(null,u,b);g.has(b)||(g.add(b),b.then(E,E))})}function No(u,f){var g=f.deletions;if(g!==null)for(var b=0;b<g.length;b++){var E=g[b],M=u,U=f,Z=U;e:for(;Z!==null;){switch(Z.tag){case 27:if(hc(Z.type)){qr=Z.stateNode,so=!1;break e}break;case 5:qr=Z.stateNode,so=!1;break e;case 3:case 4:qr=Z.stateNode.containerInfo,so=!0;break e}Z=Z.return}if(qr===null)throw Error(r(160));kn(M,U,E),qr=null,so=!1,M=E.alternate,M!==null&&(M.return=null),E.return=null}if(f.subtreeFlags&13878)for(f=f.child;f!==null;)c0(f,u),f=f.sibling}var zo=null;function c0(u,f){var g=u.alternate,b=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:No(f,u),Ji(u),b&4&&(oc(3,u,u.return),u0(3,u),oc(5,u,u.return));break;case 1:No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),b&64&&pl&&(u=u.updateQueue,u!==null&&(b=u.callbacks,b!==null&&(g=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=g===null?b:g.concat(b))));break;case 26:var E=zo;if(No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),b&4){var M=g!==null?g.memoizedState:null;if(b=u.memoizedState,g===null)if(b===null)if(u.stateNode===null){e:{b=u.type,g=u.memoizedProps,E=E.ownerDocument||E;t:switch(b){case"title":M=E.getElementsByTagName("title")[0],(!M||M[Ot]||M[on]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=E.createElement(b),E.head.insertBefore(M,E.querySelector("head > title"))),tn(M,b,g),M[on]=u,Kn(M),b=M;break e;case"link":var U=n_("link","href",E).get(b+(g.href||""));if(U){for(var Z=0;Z<U.length;Z++)if(M=U[Z],M.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&M.getAttribute("rel")===(g.rel==null?null:g.rel)&&M.getAttribute("title")===(g.title==null?null:g.title)&&M.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){U.splice(Z,1);break t}}M=E.createElement(b),tn(M,b,g),E.head.appendChild(M);break;case"meta":if(U=n_("meta","content",E).get(b+(g.content||""))){for(Z=0;Z<U.length;Z++)if(M=U[Z],M.getAttribute("content")===(g.content==null?null:""+g.content)&&M.getAttribute("name")===(g.name==null?null:g.name)&&M.getAttribute("property")===(g.property==null?null:g.property)&&M.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&M.getAttribute("charset")===(g.charSet==null?null:g.charSet)){U.splice(Z,1);break t}}M=E.createElement(b),tn(M,b,g),E.head.appendChild(M);break;default:throw Error(r(468,b))}M[on]=u,Kn(M),b=M}u.stateNode=b}else r_(E,u.type,u.stateNode);else u.stateNode=vk(E,b,u.memoizedProps);else M!==b?(M===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):M.count--,b===null?r_(E,u.type,u.stateNode):vk(E,b,u.memoizedProps)):b===null&&u.stateNode!==null&&Eb(u,u.memoizedProps,g.memoizedProps)}break;case 27:No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),g!==null&&b&4&&Eb(u,u.memoizedProps,g.memoizedProps);break;case 5:if(No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),u.flags&32){E=u.stateNode;try{Dd(E,"")}catch(ze){mr(u,u.return,ze)}}b&4&&u.stateNode!=null&&(E=u.memoizedProps,Eb(u,E,g!==null?g.memoizedProps:E)),b&1024&&(Sv=!0);break;case 6:if(No(f,u),Ji(u),b&4){if(u.stateNode===null)throw Error(r(162));b=u.memoizedProps,g=u.stateNode;try{g.nodeValue=b}catch(ze){mr(u,u.return,ze)}}break;case 3:if(vc=null,E=zo,zo=Hv(f.containerInfo),No(f,u),zo=E,Ji(u),b&4&&g!==null&&g.memoizedState.isDehydrated)try{Cl(f.containerInfo)}catch(ze){mr(u,u.return,ze)}Sv&&(Sv=!1,Db(u));break;case 4:b=zo,zo=Hv(u.stateNode.containerInfo),No(f,u),Ji(u),zo=b;break;case 12:No(f,u),Ji(u);break;case 13:No(f,u),Ji(u),u.child.flags&8192&&u.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(zb=Et()),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,Ev(u,b)));break;case 22:E=u.memoizedState!==null;var ue=g!==null&&g.memoizedState!==null,De=pl,Ye=di;if(pl=De||E,di=Ye||ue,No(f,u),di=Ye,pl=De,Ji(u),b&8192)e:for(f=u.stateNode,f._visibility=E?f._visibility&-2:f._visibility|1,E&&(g===null||ue||pl||di||Pr(u)),g=null,f=u;;){if(f.tag===5||f.tag===26){if(g===null){ue=g=f;try{if(M=ue.stateNode,E)U=M.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none";else{Z=ue.stateNode;var Xe=ue.memoizedProps.style,$e=Xe!=null&&Xe.hasOwnProperty("display")?Xe.display:null;Z.style.display=$e==null||typeof $e=="boolean"?"":(""+$e).trim()}}catch(ze){mr(ue,ue.return,ze)}}}else if(f.tag===6){if(g===null){ue=f;try{ue.stateNode.nodeValue=E?"":ue.memoizedProps}catch(ze){mr(ue,ue.return,ze)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===u)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break e;for(;f.sibling===null;){if(f.return===null||f.return===u)break e;g===f&&(g=null),f=f.return}g===f&&(g=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=u.updateQueue,b!==null&&(g=b.retryQueue,g!==null&&(b.retryQueue=null,Ev(u,g))));break;case 19:No(f,u),Ji(u),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,Ev(u,b)));break;case 30:break;case 21:break;default:No(f,u),Ji(u)}}function Ji(u){var f=u.flags;if(f&2){try{for(var g,b=u.return;b!==null;){if(ek(b)){g=b;break}b=b.return}if(g==null)throw Error(r(160));switch(g.tag){case 27:var E=g.stateNode,M=ns(u);bv(u,M,E);break;case 5:var U=g.stateNode;g.flags&32&&(Dd(U,""),g.flags&=-33);var Z=ns(u);bv(u,Z,U);break;case 3:case 4:var ue=g.stateNode.containerInfo,De=ns(u);Cf(u,De,ue);break;default:throw Error(r(161))}}catch(Ye){mr(u,u.return,Ye)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function Db(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var f=u;Db(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),u=u.sibling}}function ml(u,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)kb(u,f.alternate,f),f=f.sibling}function Pr(u){for(u=u.child;u!==null;){var f=u;switch(f.tag){case 0:case 11:case 14:case 15:oc(4,f,f.return),Pr(f);break;case 1:Ds(f,f.return);var g=f.stateNode;typeof g.componentWillUnmount=="function"&&Cb(f,f.return,g),Pr(f);break;case 27:da(f.stateNode);case 26:case 5:Ds(f,f.return),Pr(f);break;case 22:f.memoizedState===null&&Pr(f);break;case 30:Pr(f);break;default:Pr(f)}u=u.sibling}}function ac(u,f,g){for(g=g&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,E=u,M=f,U=M.flags;switch(M.tag){case 0:case 11:case 15:ac(E,M,g),u0(4,M);break;case 1:if(ac(E,M,g),b=M,E=b.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(De){mr(b,b.return,De)}if(b=M,E=b.updateQueue,E!==null){var Z=b.stateNode;try{var ue=E.shared.hiddenCallbacks;if(ue!==null)for(E.shared.hiddenCallbacks=null,E=0;E<ue.length;E++)jm(ue[E],Z)}catch(De){mr(b,b.return,De)}}g&&U&64&&xv(M),ih(M,M.return);break;case 27:_v(M);case 26:case 5:ac(E,M,g),g&&b===null&&U&4&&oh(M),ih(M,M.return);break;case 12:ac(E,M,g);break;case 13:ac(E,M,g),g&&U&4&&Cv(E,M);break;case 22:M.memoizedState===null&&ac(E,M,g),ih(M,M.return);break;case 30:break;default:ac(E,M,g)}f=f.sibling}}function rs(u,f){var g=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),u=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(u=f.memoizedState.cachePool.pool),u!==g&&(u!=null&&u.refCount++,g!=null&&rl(g))}function Av(u,f){u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&rl(u))}function lo(u,f,g,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)Mb(u,f,g,b),f=f.sibling}function Mb(u,f,g,b){var E=f.flags;switch(f.tag){case 0:case 11:case 15:lo(u,f,g,b),E&2048&&u0(9,f);break;case 1:lo(u,f,g,b);break;case 3:lo(u,f,g,b),E&2048&&(u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&rl(u)));break;case 12:if(E&2048){lo(u,f,g,b),u=f.stateNode;try{var M=f.memoizedProps,U=M.id,Z=M.onPostCommit;typeof Z=="function"&&Z(U,f.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(ue){mr(f,f.return,ue)}}else lo(u,f,g,b);break;case 13:lo(u,f,g,b);break;case 23:break;case 22:M=f.stateNode,U=f.alternate,f.memoizedState!==null?M._visibility&2?lo(u,f,g,b):ir(u,f):M._visibility&2?lo(u,f,g,b):(M._visibility|=2,su(u,f,g,b,(f.subtreeFlags&10256)!==0)),E&2048&&rs(U,f);break;case 24:lo(u,f,g,b),E&2048&&Av(f.alternate,f);break;default:lo(u,f,g,b)}}function su(u,f,g,b,E){for(E=E&&(f.subtreeFlags&10256)!==0,f=f.child;f!==null;){var M=u,U=f,Z=g,ue=b,De=U.flags;switch(U.tag){case 0:case 11:case 15:su(M,U,Z,ue,E),u0(8,U);break;case 23:break;case 22:var Ye=U.stateNode;U.memoizedState!==null?Ye._visibility&2?su(M,U,Z,ue,E):ir(M,U):(Ye._visibility|=2,su(M,U,Z,ue,E)),E&&De&2048&&rs(U.alternate,U);break;case 24:su(M,U,Z,ue,E),E&&De&2048&&Av(U.alternate,U);break;default:su(M,U,Z,ue,E)}f=f.sibling}}function ir(u,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var g=u,b=f,E=b.flags;switch(b.tag){case 22:ir(g,b),E&2048&&rs(b.alternate,b);break;case 24:ir(g,b),E&2048&&Av(b.alternate,b);break;default:ir(g,b)}f=f.sibling}}var Ef=8192;function hi(u){if(u.subtreeFlags&Ef)for(u=u.child;u!==null;)tk(u),u=u.sibling}function tk(u){switch(u.tag){case 26:hi(u),u.flags&Ef&&u.memoizedState!==null&&bk(zo,u.memoizedState,u.memoizedProps);break;case 5:hi(u);break;case 3:case 4:var f=zo;zo=Hv(u.stateNode.containerInfo),hi(u),zo=f;break;case 22:u.memoizedState===null&&(f=u.alternate,f!==null&&f.memoizedState!==null?(f=Ef,Ef=16777216,hi(u),Ef=f):hi(u));break;default:hi(u)}}function Rb(u){var f=u.alternate;if(f!==null&&(u=f.child,u!==null)){f.child=null;do f=u.sibling,u.sibling=null,u=f;while(u!==null)}}function Af(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Fi=b,Bb(b,u)}Rb(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Ib(u),u=u.sibling}function Ib(u){switch(u.tag){case 0:case 11:case 15:Af(u),u.flags&2048&&oc(9,u,u.return);break;case 3:Af(u);break;case 12:Af(u);break;case 22:var f=u.stateNode;u.memoizedState!==null&&f._visibility&2&&(u.return===null||u.return.tag!==13)?(f._visibility&=-3,Fo(u)):Af(u);break;default:Af(u)}}function Fo(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Fi=b,Bb(b,u)}Rb(u)}for(u=u.child;u!==null;){switch(f=u,f.tag){case 0:case 11:case 15:oc(8,f,f.return),Fo(f);break;case 22:g=f.stateNode,g._visibility&2&&(g._visibility&=-3,Fo(f));break;default:Fo(f)}u=u.sibling}}function Bb(u,f){for(;Fi!==null;){var g=Fi;switch(g.tag){case 0:case 11:case 15:oc(8,g,f);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var b=g.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:rl(g.memoizedState.cache)}if(b=g.child,b!==null)b.return=g,Fi=b;else e:for(g=u;Fi!==null;){b=Fi;var E=b.sibling,M=b.return;if(Tb(b),b===g){Fi=null;break e}if(E!==null){E.return=M,Fi=E;break e}Fi=M}}}var $b={getCacheForType:function(u){var f=Ki(Li),g=f.data.get(u);return g===void 0&&(g=u(),f.data.set(u,g)),g}},nk=typeof WeakMap=="function"?WeakMap:Map,cr=0,Mr=null,Tn=null,On=0,dr=0,ua=null,vl=!1,ah=!1,Lb=!1,lu=0,pi=0,uu=0,kf=0,yl=0,is=0,sh=0,lh=null,ca=null,Nb=!1,zb=0,kv=1/0,uh=null,sc=null,uo=0,xl=null,ch=null,co=0,Tv=0,Ov=null,Fb=null,fh=0,Ub=null;function Oa(){if((cr&2)!==0&&On!==0)return On&-On;if(W.T!==null){var u=Ja;return u!==0?u:Mf()}return ai()}function jb(){is===0&&(is=(On&536870912)===0||Wn?Rn():536870912);var u=Ta.current;return u!==null&&(u.flags|=32),is}function Da(u,f,g){(u===Mr&&(dr===2||dr===9)||u.cancelPendingCommit!==null)&&(bl(u,0),cu(u,On,is,!1)),tr(u,g),((cr&2)===0||u!==Mr)&&(u===Mr&&((cr&2)===0&&(kf|=g),pi===4&&cu(u,On,is,!1)),fa(u))}function dh(u,f,g){if((cr&6)!==0)throw Error(r(327));var b=!g&&(f&124)===0&&(f&u.expiredLanes)===0||mt(u,f),E=b?qb(u,f):Dv(u,f,!0),M=b;do{if(E===0){ah&&!b&&cu(u,f,0,!1);break}else{if(g=u.current.alternate,M&&!rk(g)){E=Dv(u,f,!1),M=!1;continue}if(E===2){if(M=f,u.errorRecoveryDisabledLanes&M)var U=0;else U=u.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){f=U;e:{var Z=u;E=lh;var ue=Z.current.memoizedState.isDehydrated;if(ue&&(bl(Z,U).flags|=256),U=Dv(Z,U,!1),U!==2){if(Lb&&!ue){Z.errorRecoveryDisabledLanes|=M,kf|=M,E=4;break e}M=ca,ca=E,M!==null&&(ca===null?ca=M:ca.push.apply(ca,M))}E=U}if(M=!1,E!==2)continue}}if(E===1){bl(u,0),cu(u,f,0,!0);break}e:{switch(b=u,M=E,M){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:cu(b,f,is,!vl);break e;case 2:ca=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(E=zb+300-Et(),10<E)){if(cu(b,f,is,!vl),Vt(b,0,!0)!==0)break e;b.timeoutHandle=Uv(f0.bind(null,b,g,ca,uh,Nb,f,is,kf,sh,vl,M,2,-0,0),E);break e}f0(b,g,ca,uh,Nb,f,is,kf,sh,vl,M,0,-0,0)}}break}while(!0);fa(u)}function f0(u,f,g,b,E,M,U,Z,ue,De,Ye,Xe,$e,ze){if(u.timeoutHandle=-1,Xe=f.subtreeFlags,(Xe&8192||(Xe&16785408)===16785408)&&(Ch={stylesheets:null,count:0,unsuspend:xk},tk(f),Xe=o_(),Xe!==null)){u.cancelPendingCommit=Xe(ak.bind(null,u,f,M,g,b,E,U,Z,ue,Ye,1,$e,ze)),cu(u,M,U,!De);return}ak(u,f,M,g,b,E,U,Z,ue)}function rk(u){for(var f=u;;){var g=f.tag;if((g===0||g===11||g===15)&&f.flags&16384&&(g=f.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var b=0;b<g.length;b++){var E=g[b],M=E.getSnapshot;E=E.value;try{if(!ao(M(),E))return!1}catch{return!1}}if(g=f.child,f.subtreeFlags&16384&&g!==null)g.return=f,f=g;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function cu(u,f,g,b){f&=~yl,f&=~kf,u.suspendedLanes|=f,u.pingedLanes&=~f,b&&(u.warmLanes|=f),b=u.expirationTimes;for(var E=f;0<E;){var M=31-lt(E),U=1<<M;b[M]=-1,E&=~U}g!==0&&kr(u,g,f)}function Tf(){return(cr&6)===0?(g0(0),!1):!0}function lc(){if(Tn!==null){if(dr===0)var u=Tn.return;else u=Tn,As=eu=null,Gm(u),yf=null,Jd=0,u=Tn;for(;u!==null;)wb(u.alternate,u),u=u.return;Tn=null}}function bl(u,f){var g=u.timeoutHandle;g!==-1&&(u.timeoutHandle=-1,jD(g)),g=u.cancelPendingCommit,g!==null&&(u.cancelPendingCommit=null,g()),lc(),Mr=u,Tn=g=Cs(u.current,null),On=f,dr=0,ua=null,vl=!1,ah=mt(u,f),Lb=!1,sh=is=yl=kf=uu=pi=0,ca=lh=null,Nb=!1,(f&8)!==0&&(f|=f&32);var b=u.entangledLanes;if(b!==0)for(u=u.entanglements,b&=f;0<b;){var E=31-lt(b),M=1<<E;f|=u[E],b&=~M}return lu=f,ws(),g}function Hb(u,f){cn=null,W.H=av,f===Xu||f===jp?(f=V1(),dr=3):f===Lm?(f=V1(),dr=4):dr=f===fi?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,ua=f,Tn===null&&(pi=1,o0(u,Ea(f,u.current)))}function ik(){var u=W.H;return W.H=av,u===null?av:u}function Of(){var u=W.A;return W.A=$b,u}function Df(){pi=4,vl||(On&4194048)!==On&&Ta.current!==null||(ah=!0),(uu&134217727)===0&&(kf&134217727)===0||Mr===null||cu(Mr,On,is,!1)}function Dv(u,f,g){var b=cr;cr|=2;var E=ik(),M=Of();(Mr!==u||On!==f)&&(uh=null,bl(u,f)),f=!1;var U=pi;e:do try{if(dr!==0&&Tn!==null){var Z=Tn,ue=ua;switch(dr){case 8:lc(),U=6;break e;case 3:case 2:case 9:case 6:Ta.current===null&&(f=!0);var De=dr;if(dr=0,ua=null,hh(u,Z,ue,De),g&&ah){U=0;break e}break;default:De=dr,dr=0,ua=null,hh(u,Z,ue,De)}}Mv(),U=pi;break}catch(Ye){Hb(u,Ye)}while(!0);return f&&u.shellSuspendCounter++,As=eu=null,cr=b,W.H=E,W.A=M,Tn===null&&(Mr=null,On=0,ws()),U}function Mv(){for(;Tn!==null;)Gb(Tn)}function qb(u,f){var g=cr;cr|=2;var b=ik(),E=Of();Mr!==u||On!==f?(uh=null,kv=Et()+500,bl(u,f)):ah=mt(u,f);e:do try{if(dr!==0&&Tn!==null){f=Tn;var M=ua;t:switch(dr){case 1:dr=0,ua=null,hh(u,f,M,1);break;case 2:case 9:if(zm(M)){dr=0,ua=null,Vb(f);break}f=function(){dr!==2&&dr!==9||Mr!==u||(dr=7),fa(u)},M.then(f,f);break e;case 3:dr=7;break e;case 4:dr=5;break e;case 7:zm(M)?(dr=0,ua=null,Vb(f)):(dr=0,ua=null,hh(u,f,M,7));break;case 5:var U=null;switch(Tn.tag){case 26:U=Tn.memoizedState;case 5:case 27:var Z=Tn;if(!U||i_(U)){dr=0,ua=null;var ue=Z.sibling;if(ue!==null)Tn=ue;else{var De=Z.return;De!==null?(Tn=De,d0(De)):Tn=null}break t}}dr=0,ua=null,hh(u,f,M,5);break;case 6:dr=0,ua=null,hh(u,f,M,6);break;case 8:lc(),pi=6;break e;default:throw Error(r(462))}}Pb();break}catch(Ye){Hb(u,Ye)}while(!0);return As=eu=null,W.H=b,W.A=E,cr=g,Tn!==null?0:(Mr=null,On=0,ws(),pi)}function Pb(){for(;Tn!==null&&!_t();)Gb(Tn)}function Gb(u){var f=J2(u.alternate,u,lu);u.memoizedProps=u.pendingProps,f===null?d0(u):Tn=f}function Vb(u){var f=u,g=f.alternate;switch(f.tag){case 15:case 0:f=yb(g,f,f.pendingProps,f.type,void 0,On);break;case 11:f=yb(g,f,f.pendingProps,f.type.render,f.ref,On);break;case 5:Gm(f);default:wb(g,f),f=Tn=Cn(f,lu),f=J2(g,f,lu)}u.memoizedProps=u.pendingProps,f===null?d0(u):Tn=f}function hh(u,f,g,b){As=eu=null,Gm(f),yf=null,Jd=0;var E=f.return;try{if(K2(u,E,f,g,On)){pi=1,o0(u,Ea(g,u.current)),Tn=null;return}}catch(M){if(E!==null)throw Tn=E,M;pi=1,o0(u,Ea(g,u.current)),Tn=null;return}f.flags&32768?(Wn||b===1?u=!0:ah||(On&536870912)!==0?u=!1:(vl=u=!0,(b===2||b===9||b===3||b===6)&&(b=Ta.current,b!==null&&b.tag===13&&(b.flags|=16384))),ok(f,u)):d0(f)}function d0(u){var f=u;do{if((f.flags&32768)!==0){ok(f,vl);return}u=f.return;var g=Sb(f.alternate,f,lu);if(g!==null){Tn=g;return}if(f=f.sibling,f!==null){Tn=f;return}Tn=f=u}while(f!==null);pi===0&&(pi=5)}function ok(u,f){do{var g=$D(u.alternate,u);if(g!==null){g.flags&=32767,Tn=g;return}if(g=u.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!f&&(u=u.sibling,u!==null)){Tn=u;return}Tn=u=g}while(u!==null);pi=6,Tn=null}function ak(u,f,g,b,E,M,U,Z,ue){u.cancelPendingCommit=null;do Iv();while(uo!==0);if((cr&6)!==0)throw Error(r(327));if(f!==null){if(f===u.current)throw Error(r(177));if(M=f.lanes|f.childLanes,M|=Js,Ar(u,g,M,U,Z,ue),u===Mr&&(Tn=Mr=null,On=0),ch=f,xl=u,co=g,Tv=M,Ov=E,Fb=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,zD(Be,function(){return Yb(),null})):(u.callbackNode=null,u.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=W.T,W.T=null,E=fe.p,fe.p=2,U=cr,cr|=4;try{Ab(u,f,g)}finally{cr=U,fe.p=E,W.T=b}}uo=1,sk(),h0(),Rv()}}function sk(){if(uo===1){uo=0;var u=xl,f=ch,g=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||g){g=W.T,W.T=null;var b=fe.p;fe.p=2;var E=cr;cr|=4;try{c0(f,u);var M=w0,U=$1(u.containerInfo),Z=M.focusedElem,ue=M.selectionRange;if(U!==Z&&Z&&Z.ownerDocument&&Dp(Z.ownerDocument.documentElement,Z)){if(ue!==null&&Mp(Z)){var De=ue.start,Ye=ue.end;if(Ye===void 0&&(Ye=De),"selectionStart"in Z)Z.selectionStart=De,Z.selectionEnd=Math.min(Ye,Z.value.length);else{var Xe=Z.ownerDocument||document,$e=Xe&&Xe.defaultView||window;if($e.getSelection){var ze=$e.getSelection(),Yt=Z.textContent.length,Zt=Math.min(ue.start,Yt),or=ue.end===void 0?Zt:Math.min(ue.end,Yt);!ze.extend&&Zt>or&&(U=or,or=Zt,Zt=U);var Ee=Lr(Z,Zt),xe=Lr(Z,or);if(Ee&&xe&&(ze.rangeCount!==1||ze.anchorNode!==Ee.node||ze.anchorOffset!==Ee.offset||ze.focusNode!==xe.node||ze.focusOffset!==xe.offset)){var Oe=Xe.createRange();Oe.setStart(Ee.node,Ee.offset),ze.removeAllRanges(),Zt>or?(ze.addRange(Oe),ze.extend(xe.node,xe.offset)):(Oe.setEnd(xe.node,xe.offset),ze.addRange(Oe))}}}}for(Xe=[],ze=Z;ze=ze.parentNode;)ze.nodeType===1&&Xe.push({element:ze,left:ze.scrollLeft,top:ze.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<Xe.length;Z++){var Ke=Xe[Z];Ke.element.scrollLeft=Ke.left,Ke.element.scrollTop=Ke.top}}T0=!!S0,w0=S0=null}finally{cr=E,fe.p=b,W.T=g}}u.current=f,uo=2}}function h0(){if(uo===2){uo=0;var u=xl,f=ch,g=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||g){g=W.T,W.T=null;var b=fe.p;fe.p=2;var E=cr;cr|=4;try{kb(u,f.alternate,f)}finally{cr=E,fe.p=b,W.T=g}}uo=3}}function Rv(){if(uo===4||uo===3){uo=0,kt();var u=xl,f=ch,g=co,b=Fb;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?uo=5:(uo=0,ch=xl=null,lk(u,u.pendingLanes));var E=u.pendingLanes;if(E===0&&(sc=null),Qn(g),f=f.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(_e,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=W.T,E=fe.p,fe.p=2,W.T=null;try{for(var M=u.onRecoverableError,U=0;U<b.length;U++){var Z=b[U];M(Z.value,{componentStack:Z.stack})}}finally{W.T=f,fe.p=E}}(co&3)!==0&&Iv(),fa(u),E=u.pendingLanes,(g&4194090)!==0&&(E&42)!==0?u===Ub?fh++:(fh=0,Ub=u):fh=0,g0(0)}}function lk(u,f){(u.pooledCacheLanes&=f)===0&&(f=u.pooledCache,f!=null&&(u.pooledCache=null,rl(f)))}function Iv(u){return sk(),h0(),Rv(),Yb()}function Yb(){if(uo!==5)return!1;var u=xl,f=Tv;Tv=0;var g=Qn(co),b=W.T,E=fe.p;try{fe.p=32>g?32:g,W.T=null,g=Ov,Ov=null;var M=xl,U=co;if(uo=0,ch=xl=null,co=0,(cr&6)!==0)throw Error(r(331));var Z=cr;if(cr|=4,Ib(M.current),Mb(M,M.current,U,g),cr=Z,g0(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(_e,M)}catch{}return!0}finally{fe.p=E,W.T=b,lk(u,f)}}function Zb(u,f,g){f=Ea(g,f),f=mb(u.stateNode,f,2),u=al(u,f,2),u!==null&&(tr(u,2),fa(u))}function mr(u,f,g){if(u.tag===3)Zb(u,u,g);else for(;f!==null;){if(f.tag===3){Zb(f,u,g);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(sc===null||!sc.has(b))){u=Ea(g,u),g=vb(2),b=al(f,g,2),b!==null&&(la(g,b,f,u),tr(b,2),fa(b));break}}f=f.return}}function Bv(u,f,g){var b=u.pingCache;if(b===null){b=u.pingCache=new nk;var E=new Set;b.set(f,E)}else E=b.get(f),E===void 0&&(E=new Set,b.set(f,E));E.has(g)||(Lb=!0,E.add(g),u=Qb.bind(null,u,f,g),f.then(u,u))}function Qb(u,f,g){var b=u.pingCache;b!==null&&b.delete(f),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,Mr===u&&(On&g)===g&&(pi===4||pi===3&&(On&62914560)===On&&300>Et()-zb?(cr&2)===0&&bl(u,0):yl|=g,sh===On&&(sh=0)),fa(u)}function Kb(u,f){f===0&&(f=pr()),u=el(u,f),u!==null&&(tr(u,f),fa(u))}function LD(u){var f=u.memoizedState,g=0;f!==null&&(g=f.retryLane),Kb(u,g)}function ND(u,f){var g=0;switch(u.tag){case 13:var b=u.stateNode,E=u.memoizedState;E!==null&&(g=E.retryLane);break;case 19:b=u.stateNode;break;case 22:b=u.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(f),Kb(u,g)}function zD(u,f){return st(u,f)}var $v=null,uc=null,p0=!1,ph=!1,Lv=!1,cc=0;function fa(u){u!==uc&&u.next===null&&(uc===null?$v=uc=u:uc=uc.next=u),ph=!0,p0||(p0=!0,fk())}function g0(u,f){if(!Lv&&ph){Lv=!0;do for(var g=!1,b=$v;b!==null;){if(u!==0){var E=b.pendingLanes;if(E===0)var M=0;else{var U=b.suspendedLanes,Z=b.pingedLanes;M=(1<<31-lt(42|u)+1)-1,M&=E&~(U&~Z),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(g=!0,v0(b,M))}else M=On,M=Vt(b,b===Mr?M:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(M&3)===0||mt(b,M)||(g=!0,v0(b,M));b=b.next}while(g);Lv=!1}}function uk(){m0()}function m0(){ph=p0=!1;var u=0;cc!==0&&(hu()&&(u=cc),cc=0);for(var f=Et(),g=null,b=$v;b!==null;){var E=b.next,M=Wb(b,f);M===0?(b.next=null,g===null?$v=E:g.next=E,E===null&&(uc=g)):(g=b,(u!==0||(M&3)!==0)&&(ph=!0)),b=E}g0(u)}function Wb(u,f){for(var g=u.suspendedLanes,b=u.pingedLanes,E=u.expirationTimes,M=u.pendingLanes&-62914561;0<M;){var U=31-lt(M),Z=1<<U,ue=E[U];ue===-1?((Z&g)===0||(Z&b)!==0)&&(E[U]=At(Z,f)):ue<=f&&(u.expiredLanes|=Z),M&=~Z}if(f=Mr,g=On,g=Vt(u,u===f?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b=u.callbackNode,g===0||u===f&&(dr===2||dr===9)||u.cancelPendingCommit!==null)return b!==null&&b!==null&&yt(b),u.callbackNode=null,u.callbackPriority=0;if((g&3)===0||mt(u,g)){if(f=g&-g,f===u.callbackPriority)return f;switch(b!==null&&yt(b),Qn(g)){case 2:case 8:g=ge;break;case 32:g=Be;break;case 268435456:g=qe;break;default:g=Be}return b=ck.bind(null,u),g=st(g,b),u.callbackPriority=f,u.callbackNode=g,f}return b!==null&&b!==null&&yt(b),u.callbackPriority=2,u.callbackNode=null,2}function ck(u,f){if(uo!==0&&uo!==5)return u.callbackNode=null,u.callbackPriority=0,null;var g=u.callbackNode;if(Iv()&&u.callbackNode!==g)return null;var b=On;return b=Vt(u,u===Mr?b:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b===0?null:(dh(u,b,f),Wb(u,Et()),u.callbackNode!=null&&u.callbackNode===g?ck.bind(null,u):null)}function v0(u,f){if(Iv())return null;dh(u,f,!0)}function fk(){HD(function(){(cr&6)!==0?st(ae,uk):m0()})}function Mf(){return cc===0&&(cc=Rn()),cc}function Nv(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Sp(""+u)}function y0(u,f){var g=f.ownerDocument.createElement("input");return g.name=f.name,g.value=f.value,u.id&&g.setAttribute("form",u.id),f.parentNode.insertBefore(g,f),u=new FormData(u),g.parentNode.removeChild(g),u}function dk(u,f,g,b,E){if(f==="submit"&&g&&g.stateNode===E){var M=Nv((E[vn]||null).action),U=b.submitter;U&&(f=(f=U[vn]||null)?Nv(f.formAction):U.getAttribute("formAction"),f!==null&&(M=f,U=null));var Z=new xm("action","action",null,b,E);u.push({event:Z,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(cc!==0){var ue=U?y0(E,U):new FormData(E);ov(g,{pending:!0,data:ue,method:E.method,action:M},null,ue)}}else typeof M=="function"&&(Z.preventDefault(),ue=U?y0(E,U):new FormData(E),ov(g,{pending:!0,data:ue,method:E.method,action:M},M,ue))},currentTarget:E}]})}}for(var gi=0;gi<Ld.length;gi++){var x0=Ld[gi],FD=x0.toLowerCase(),bn=x0[0].toUpperCase()+x0.slice(1);Za(FD,"on"+bn)}Za($2,"onAnimationEnd"),Za(L1,"onAnimationIteration"),Za(L2,"onAnimationStart"),Za("dblclick","onDoubleClick"),Za("focusin","onFocus"),Za("focusout","onBlur"),Za(N1,"onTransitionRun"),Za(Tm,"onTransitionStart"),Za(N2,"onTransitionCancel"),Za(z1,"onTransitionEnd"),Dr("onMouseEnter",["mouseout","mouseover"]),Dr("onMouseLeave",["mouseout","mouseover"]),Dr("onPointerEnter",["pointerout","pointerover"]),Dr("onPointerLeave",["pointerout","pointerover"]),ki("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ki("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ki("onBeforeInput",["compositionend","keypress","textInput","paste"]),ki("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var b0="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(" "),fc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(b0));function Rf(u,f){f=(f&4)!==0;for(var g=0;g<u.length;g++){var b=u[g],E=b.event;b=b.listeners;e:{var M=void 0;if(f)for(var U=b.length-1;0<=U;U--){var Z=b[U],ue=Z.instance,De=Z.currentTarget;if(Z=Z.listener,ue!==M&&E.isPropagationStopped())break e;M=Z,E.currentTarget=De;try{M(E)}catch(Ye){r0(Ye)}E.currentTarget=null,M=ue}else for(U=0;U<b.length;U++){if(Z=b[U],ue=Z.instance,De=Z.currentTarget,Z=Z.listener,ue!==M&&E.isPropagationStopped())break e;M=Z,E.currentTarget=De;try{M(E)}catch(Ye){r0(Ye)}E.currentTarget=null,M=ue}}}}function fn(u,f){var g=f[Zi];g===void 0&&(g=f[Zi]=new Set);var b=u+"__bubble";g.has(b)||(zv(f,u,2,!1),g.add(b))}function gh(u,f,g){var b=0;f&&(b|=4),zv(g,u,b,f)}var mh="_reactListening"+Math.random().toString(36).slice(2);function Xb(u){if(!u[mh]){u[mh]=!0,_o.forEach(function(g){g!=="selectionchange"&&(fc.has(g)||gh(g,!1,u),gh(g,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[mh]||(f[mh]=!0,gh("selectionchange",!1,f))}}function zv(u,f,g,b){switch(h_(f)){case 2:var E=_k;break;case 8:E=Sk;break;default:E=f_}g=E.bind(null,f,g,u),E=void 0,!mm||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(E=!0),b?E!==void 0?u.addEventListener(f,g,{capture:!0,passive:E}):u.addEventListener(f,g,!0):E!==void 0?u.addEventListener(f,g,{passive:E}):u.addEventListener(f,g,!1)}function os(u,f,g,b,E){var M=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var U=b.tag;if(U===3||U===4){var Z=b.stateNode.containerInfo;if(Z===E)break;if(U===4)for(U=b.return;U!==null;){var ue=U.tag;if((ue===3||ue===4)&&U.stateNode.containerInfo===E)return;U=U.return}for(;Z!==null;){if(U=Or(Z),U===null)return;if(ue=U.tag,ue===5||ue===6||ue===26||ue===27){b=M=U;continue e}Z=Z.parentNode}}b=b.return}Id(function(){var De=M,Ye=gm(g),Xe=[];e:{var $e=F1.get(u);if($e!==void 0){var ze=xm,Yt=u;switch(u){case"keypress":if(oo(g)===0)break e;case"keydown":case"keyup":ze=ys;break;case"focusin":Yt="focus",ze=b1;break;case"focusout":Yt="blur",ze=b1;break;case"beforeblur":case"afterblur":ze=b1;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ze=x1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ze=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ze=w1;break;case $2:case L1:case L2:ze=MD;break;case z1:ze=M2;break;case"scroll":case"scrollend":ze=C2;break;case"wheel":ze=ef;break;case"copy":case"cut":case"paste":ze=Ep;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ze=Ap;break;case"toggle":case"beforetoggle":ze=R2}var Zt=(f&4)!==0,or=!Zt&&(u==="scroll"||u==="scrollend"),Ee=Zt?$e!==null?$e+"Capture":null:$e;Zt=[];for(var xe=De,Oe;xe!==null;){var Ke=xe;if(Oe=Ke.stateNode,Ke=Ke.tag,Ke!==5&&Ke!==26&&Ke!==27||Oe===null||Ee===null||(Ke=Kc(xe,Ee),Ke!=null&&Zt.push(fu(xe,Ke,Oe))),or)break;xe=xe.return}0<Zt.length&&($e=new ze($e,Yt,null,g,Ye),Xe.push({event:$e,listeners:Zt}))}}if((f&7)===0){e:{if($e=u==="mouseover"||u==="pointerover",ze=u==="mouseout"||u==="pointerout",$e&&g!==Qc&&(Yt=g.relatedTarget||g.fromElement)&&(Or(Yt)||Yt[ln]))break e;if((ze||$e)&&($e=Ye.window===Ye?Ye:($e=Ye.ownerDocument)?$e.defaultView||$e.parentWindow:window,ze?(Yt=g.relatedTarget||g.toElement,ze=De,Yt=Yt?Or(Yt):null,Yt!==null&&(or=a(Yt),Zt=Yt.tag,Yt!==or||Zt!==5&&Zt!==27&&Zt!==6)&&(Yt=null)):(ze=null,Yt=De),ze!==Yt)){if(Zt=x1,Ke="onMouseLeave",Ee="onMouseEnter",xe="mouse",(u==="pointerout"||u==="pointerover")&&(Zt=Ap,Ke="onPointerLeave",Ee="onPointerEnter",xe="pointer"),or=ze==null?$e:$o(ze),Oe=Yt==null?$e:$o(Yt),$e=new Zt(Ke,xe+"leave",ze,g,Ye),$e.target=or,$e.relatedTarget=Oe,Ke=null,Or(Ye)===De&&(Zt=new Zt(Ee,xe+"enter",Yt,g,Ye),Zt.target=Oe,Zt.relatedTarget=or,Ke=Zt),or=Ke,ze&&Yt)t:{for(Zt=ze,Ee=Yt,xe=0,Oe=Zt;Oe;Oe=dc(Oe))xe++;for(Oe=0,Ke=Ee;Ke;Ke=dc(Ke))Oe++;for(;0<xe-Oe;)Zt=dc(Zt),xe--;for(;0<Oe-xe;)Ee=dc(Ee),Oe--;for(;xe--;){if(Zt===Ee||Ee!==null&&Zt===Ee.alternate)break t;Zt=dc(Zt),Ee=dc(Ee)}Zt=null}else Zt=null;ze!==null&&_0(Xe,$e,ze,Zt,!1),Yt!==null&&or!==null&&_0(Xe,or,Yt,Zt,!0)}}e:{if($e=De?$o(De):window,ze=$e.nodeName&&$e.nodeName.toLowerCase(),ze==="select"||ze==="input"&&$e.type==="file")var Lt=O1;else if(Cm($e))if(D1)Lt=I1;else{Lt=Hu;var En=Am}else ze=$e.nodeName,!ze||ze.toLowerCase()!=="input"||$e.type!=="checkbox"&&$e.type!=="radio"?De&&Zc(De.elementType)&&(Lt=O1):Lt=Kl;if(Lt&&(Lt=Lt(u,De))){Em(Xe,Lt,g,Ye);break e}En&&En(u,$e,De),u==="focusout"&&De&&$e.type==="number"&&De.memoizedProps.value!=null&&bp($e,"number",$e.value)}switch(En=De?$o(De):window,u){case"focusin":(Cm(En)||En.contentEditable==="true")&&(Ws=En,_s=De,Gu=null);break;case"focusout":Gu=_s=Ws=null;break;case"mousedown":af=!0;break;case"contextmenu":case"mouseup":case"dragend":af=!1,km(Xe,g,Ye);break;case"selectionchange":if(of)break;case"keydown":case"keyup":km(Xe,g,Ye)}var Pt;if(kp)e:{switch(u){case"compositionstart":var Jt="onCompositionStart";break e;case"compositionend":Jt="onCompositionEnd";break e;case"compositionupdate":Jt="onCompositionUpdate";break e}Jt=void 0}else ju?Op(u,g)&&(Jt="onCompositionEnd"):u==="keydown"&&g.keyCode===229&&(Jt="onCompositionStart");Jt&&(Qs&&g.locale!=="ko"&&(ju||Jt!=="onCompositionStart"?Jt==="onCompositionEnd"&&ju&&(Pt=v1()):(Zl=Ye,Bd="value"in Zl?Zl.value:Zl.textContent,ju=!0)),En=vh(De,Jt),0<En.length&&(Jt=new _1(Jt,u,null,g,Ye),Xe.push({event:Jt,listeners:En}),Pt?Jt.data=Pt:(Pt=Uu(g),Pt!==null&&(Jt.data=Pt)))),(Pt=E1?k1(u,g):tf(u,g))&&(Jt=vh(De,"onBeforeInput"),0<Jt.length&&(En=new _1("onBeforeInput","beforeinput",null,g,Ye),Xe.push({event:En,listeners:Jt}),En.data=Pt)),dk(Xe,u,De,g,Ye)}Rf(Xe,f)})}function fu(u,f,g){return{instance:u,listener:f,currentTarget:g}}function vh(u,f){for(var g=f+"Capture",b=[];u!==null;){var E=u,M=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||M===null||(E=Kc(u,g),E!=null&&b.unshift(fu(u,E,M)),E=Kc(u,f),E!=null&&b.push(fu(u,E,M))),u.tag===3)return b;u=u.return}return[]}function dc(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function _0(u,f,g,b,E){for(var M=f._reactName,U=[];g!==null&&g!==b;){var Z=g,ue=Z.alternate,De=Z.stateNode;if(Z=Z.tag,ue!==null&&ue===b)break;Z!==5&&Z!==26&&Z!==27||De===null||(ue=De,E?(De=Kc(g,M),De!=null&&U.unshift(fu(g,De,ue))):E||(De=Kc(g,M),De!=null&&U.push(fu(g,De,ue)))),g=g.return}U.length!==0&&u.push({event:f,listeners:U})}var Ma=/\r\n?/g,Jb=/\u0000|\uFFFD/g;function hk(u){return(typeof u=="string"?u:""+u).replace(Ma,`
|
|
4934
|
-
`).replace(Jb,"")}function e_(u,f){return f=hk(f),hk(u)===f}function Fv(){}function an(u,f,g,b,E,M){switch(g){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||Dd(u,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&Dd(u,""+b);break;case"className":se(u,"class",b);break;case"tabIndex":se(u,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":se(u,g,b);break;case"style":_p(u,b,M);break;case"data":if(f!=="object"){se(u,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||g!=="href")){u.removeAttribute(g);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Sp(""+b),u.setAttribute(g,b);break;case"action":case"formAction":if(typeof b=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(g==="formAction"?(f!=="input"&&an(u,f,"name",E.name,E,null),an(u,f,"formEncType",E.formEncType,E,null),an(u,f,"formMethod",E.formMethod,E,null),an(u,f,"formTarget",E.formTarget,E,null)):(an(u,f,"encType",E.encType,E,null),an(u,f,"method",E.method,E,null),an(u,f,"target",E.target,E,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Sp(""+b),u.setAttribute(g,b);break;case"onClick":b!=null&&(u.onclick=Fv);break;case"onScroll":b!=null&&fn("scroll",u);break;case"onScrollEnd":b!=null&&fn("scrollend",u);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"multiple":u.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":u.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){u.removeAttribute("xlink:href");break}g=Sp(""+b),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""+b):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":b===!0?u.setAttribute(g,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,b):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?u.setAttribute(g,b):u.removeAttribute(g);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?u.removeAttribute(g):u.setAttribute(g,b);break;case"popover":fn("beforetoggle",u),fn("toggle",u),Je(u,"popover",b);break;case"xlinkActuate":Ae(u,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":Ae(u,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":Ae(u,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":Ae(u,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":Ae(u,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":Ae(u,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":Ae(u,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":Ae(u,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":Ae(u,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":Je(u,"is",b);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=TD.get(g)||g,Je(u,g,b))}}function Ue(u,f,g,b,E,M){switch(g){case"style":_p(u,b,M);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"children":typeof b=="string"?Dd(u,b):(typeof b=="number"||typeof b=="bigint")&&Dd(u,""+b);break;case"onScroll":b!=null&&fn("scroll",u);break;case"onScrollEnd":b!=null&&fn("scrollend",u);break;case"onClick":b!=null&&(u.onclick=Fv);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xr.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(E=g.endsWith("Capture"),f=g.slice(2,E?g.length-7:void 0),M=u[vn]||null,M=M!=null?M[g]:null,typeof M=="function"&&u.removeEventListener(f,M,E),typeof b=="function")){typeof M!="function"&&M!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(f,b,E);break e}g in u?u[g]=b:b===!0?u.setAttribute(g,""):Je(u,g,b)}}}function tn(u,f,g){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fn("error",u),fn("load",u);var b=!1,E=!1,M;for(M in g)if(g.hasOwnProperty(M)){var U=g[M];if(U!=null)switch(M){case"src":b=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:an(u,f,M,U,g,null)}}E&&an(u,f,"srcSet",g.srcSet,g,null),b&&an(u,f,"src",g.src,g,null);return;case"input":fn("invalid",u);var Z=M=U=E=null,ue=null,De=null;for(b in g)if(g.hasOwnProperty(b)){var Ye=g[b];if(Ye!=null)switch(b){case"name":E=Ye;break;case"type":U=Ye;break;case"checked":ue=Ye;break;case"defaultChecked":De=Ye;break;case"value":M=Ye;break;case"defaultValue":Z=Ye;break;case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(r(137,f));break;default:an(u,f,b,Ye,g,null)}}Od(u,M,Z,ue,De,U,E,!1),rn(u);return;case"select":fn("invalid",u),b=U=M=null;for(E in g)if(g.hasOwnProperty(E)&&(Z=g[E],Z!=null))switch(E){case"value":M=Z;break;case"defaultValue":U=Z;break;case"multiple":b=Z;default:an(u,f,E,Z,g,null)}f=M,g=U,u.multiple=!!b,f!=null?Yc(u,!!b,f,!1):g!=null&&Yc(u,!!b,g,!0);return;case"textarea":fn("invalid",u),M=E=b=null;for(U in g)if(g.hasOwnProperty(U)&&(Z=g[U],Z!=null))switch(U){case"value":b=Z;break;case"defaultValue":E=Z;break;case"children":M=Z;break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:an(u,f,U,Z,g,null)}g1(u,b,E,M),rn(u);return;case"option":for(ue in g)if(g.hasOwnProperty(ue)&&(b=g[ue],b!=null))switch(ue){case"selected":u.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:an(u,f,ue,b,g,null)}return;case"dialog":fn("beforetoggle",u),fn("toggle",u),fn("cancel",u),fn("close",u);break;case"iframe":case"object":fn("load",u);break;case"video":case"audio":for(b=0;b<b0.length;b++)fn(b0[b],u);break;case"image":fn("error",u),fn("load",u);break;case"details":fn("toggle",u);break;case"embed":case"source":case"link":fn("error",u),fn("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(De in g)if(g.hasOwnProperty(De)&&(b=g[De],b!=null))switch(De){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:an(u,f,De,b,g,null)}return;default:if(Zc(f)){for(Ye in g)g.hasOwnProperty(Ye)&&(b=g[Ye],b!==void 0&&Ue(u,f,Ye,b,g,void 0));return}}for(Z in g)g.hasOwnProperty(Z)&&(b=g[Z],b!=null&&an(u,f,Z,b,g,null))}function UD(u,f,g,b){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,M=null,U=null,Z=null,ue=null,De=null,Ye=null;for(ze in g){var Xe=g[ze];if(g.hasOwnProperty(ze)&&Xe!=null)switch(ze){case"checked":break;case"value":break;case"defaultValue":ue=Xe;default:b.hasOwnProperty(ze)||an(u,f,ze,null,b,Xe)}}for(var $e in b){var ze=b[$e];if(Xe=g[$e],b.hasOwnProperty($e)&&(ze!=null||Xe!=null))switch($e){case"type":M=ze;break;case"name":E=ze;break;case"checked":De=ze;break;case"defaultChecked":Ye=ze;break;case"value":U=ze;break;case"defaultValue":Z=ze;break;case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(r(137,f));break;default:ze!==Xe&&an(u,f,$e,ze,b,Xe)}}Qi(u,U,Z,ue,De,Ye,M,E);return;case"select":ze=U=Z=$e=null;for(M in g)if(ue=g[M],g.hasOwnProperty(M)&&ue!=null)switch(M){case"value":break;case"multiple":ze=ue;default:b.hasOwnProperty(M)||an(u,f,M,null,b,ue)}for(E in b)if(M=b[E],ue=g[E],b.hasOwnProperty(E)&&(M!=null||ue!=null))switch(E){case"value":$e=M;break;case"defaultValue":Z=M;break;case"multiple":U=M;default:M!==ue&&an(u,f,E,M,b,ue)}f=Z,g=U,b=ze,$e!=null?Yc(u,!!g,$e,!1):!!b!=!!g&&(f!=null?Yc(u,!!g,f,!0):Yc(u,!!g,g?[]:"",!1));return;case"textarea":ze=$e=null;for(Z in g)if(E=g[Z],g.hasOwnProperty(Z)&&E!=null&&!b.hasOwnProperty(Z))switch(Z){case"value":break;case"children":break;default:an(u,f,Z,null,b,E)}for(U in b)if(E=b[U],M=g[U],b.hasOwnProperty(U)&&(E!=null||M!=null))switch(U){case"value":$e=E;break;case"defaultValue":ze=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==M&&an(u,f,U,E,b,M)}p1(u,$e,ze);return;case"option":for(var Yt in g)if($e=g[Yt],g.hasOwnProperty(Yt)&&$e!=null&&!b.hasOwnProperty(Yt))switch(Yt){case"selected":u.selected=!1;break;default:an(u,f,Yt,null,b,$e)}for(ue in b)if($e=b[ue],ze=g[ue],b.hasOwnProperty(ue)&&$e!==ze&&($e!=null||ze!=null))switch(ue){case"selected":u.selected=$e&&typeof $e!="function"&&typeof $e!="symbol";break;default:an(u,f,ue,$e,b,ze)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Zt in g)$e=g[Zt],g.hasOwnProperty(Zt)&&$e!=null&&!b.hasOwnProperty(Zt)&&an(u,f,Zt,null,b,$e);for(De in b)if($e=b[De],ze=g[De],b.hasOwnProperty(De)&&$e!==ze&&($e!=null||ze!=null))switch(De){case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,f));break;default:an(u,f,De,$e,b,ze)}return;default:if(Zc(f)){for(var or in g)$e=g[or],g.hasOwnProperty(or)&&$e!==void 0&&!b.hasOwnProperty(or)&&Ue(u,f,or,void 0,b,$e);for(Ye in b)$e=b[Ye],ze=g[Ye],!b.hasOwnProperty(Ye)||$e===ze||$e===void 0&&ze===void 0||Ue(u,f,Ye,$e,b,ze);return}}for(var Ee in g)$e=g[Ee],g.hasOwnProperty(Ee)&&$e!=null&&!b.hasOwnProperty(Ee)&&an(u,f,Ee,null,b,$e);for(Xe in b)$e=b[Xe],ze=g[Xe],!b.hasOwnProperty(Xe)||$e===ze||$e==null&&ze==null||an(u,f,Xe,$e,b,ze)}var S0=null,w0=null;function as(u){return u.nodeType===9?u:u.ownerDocument}function du(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function _l(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var xh=null;function hu(){var u=window.event;return u&&u.type==="popstate"?u===xh?!1:(xh=u,!0):(xh=null,!1)}var Uv=typeof setTimeout=="function"?setTimeout:void 0,jD=typeof clearTimeout=="function"?clearTimeout:void 0,pk=typeof Promise=="function"?Promise:void 0,HD=typeof queueMicrotask=="function"?queueMicrotask:typeof pk<"u"?function(u){return pk.resolve(null).then(u).catch(Sl)}:Uv;function Sl(u){setTimeout(function(){throw u})}function hc(u){return u==="head"}function jv(u,f){var g=f,b=0,E=0;do{var M=g.nextSibling;if(u.removeChild(g),M&&M.nodeType===8)if(g=M.data,g==="/$"){if(0<b&&8>b){g=b;var U=u.ownerDocument;if(g&1&&da(U.documentElement),g&2&&da(U.body),g&4)for(g=U.head,da(g),U=g.firstChild;U;){var Z=U.nextSibling,ue=U.nodeName;U[Ot]||ue==="SCRIPT"||ue==="STYLE"||ue==="LINK"&&U.rel.toLowerCase()==="stylesheet"||g.removeChild(U),U=Z}}if(E===0){u.removeChild(M),Cl(f);return}E--}else g==="$"||g==="$?"||g==="$!"?E++:b=g.charCodeAt(0)-48;else b=0;g=M}while(g);Cl(f)}function C0(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var g=f;switch(f=f.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":C0(g),si(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function bh(u,f,g,b){for(;u.nodeType===1;){var E=g;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(b){if(!u[Ot])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(M=u.getAttribute("rel"),M==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(M!==E.rel||u.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||u.getAttribute("title")!==(E.title==null?null:E.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(M=u.getAttribute("src"),(M!==(E.src==null?null:E.src)||u.getAttribute("type")!==(E.type==null?null:E.type)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&M&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var M=E.name==null?null:""+E.name;if(E.type==="hidden"&&u.getAttribute("name")===M)return u}else return u;if(u=Ms(u.nextSibling),u===null)break}return null}function qD(u,f,g){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=Ms(u.nextSibling),u===null))return null;return u}function E0(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function PD(u,f){var g=u.ownerDocument;if(u.data!=="$?"||g.readyState==="complete")f();else{var b=function(){f(),g.removeEventListener("DOMContentLoaded",b)};g.addEventListener("DOMContentLoaded",b),u._reactRetry=b}}function Ms(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="F!"||f==="F")break;if(f==="/$")return null}}return u}var pc=null;function fo(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return u;f--}else g==="/$"&&f++}u=u.previousSibling}return null}function Dt(u,f,g){switch(f=as(g),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function da(u){for(var f=u.attributes;f.length;)u.removeAttributeNode(f[0]);si(u)}var mi=new Map,Eo=new Set;function Hv(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var pu=fe.d;fe.d={f:qv,r:Pv,D:gu,C:Gv,L:gc,m:Ao,X:mc,S:ha,M:t_};function qv(){var u=pu.f(),f=Tf();return u||f}function Pv(u){var f=li(u);f!==null&&f.tag===5&&f.type==="form"?Xd(f):pu.r(u)}var ho=typeof document>"u"?null:document;function Rs(u,f,g){var b=ho;if(b&&typeof f=="string"&&f){var E=Xr(f);E='link[rel="'+u+'"][href="'+E+'"]',typeof g=="string"&&(E+='[crossorigin="'+g+'"]'),Eo.has(E)||(Eo.add(E),u={rel:u,crossOrigin:g,href:f},b.querySelector(E)===null&&(f=b.createElement("link"),tn(f,"link",u),Kn(f),b.head.appendChild(f)))}}function gu(u){pu.D(u),Rs("dns-prefetch",u,null)}function Gv(u,f){pu.C(u,f),Rs("preconnect",u,f)}function gc(u,f,g){pu.L(u,f,g);var b=ho;if(b&&u&&f){var E='link[rel="preload"][as="'+Xr(f)+'"]';f==="image"&&g&&g.imageSrcSet?(E+='[imagesrcset="'+Xr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(E+='[imagesizes="'+Xr(g.imageSizes)+'"]')):E+='[href="'+Xr(u)+'"]';var M=E;switch(f){case"style":M=_h(u);break;case"script":M=ss(u)}mi.has(M)||(u=y({rel:"preload",href:f==="image"&&g&&g.imageSrcSet?void 0:u,as:f},g),mi.set(M,u),b.querySelector(E)!==null||f==="style"&&b.querySelector(Sh(M))||f==="script"&&b.querySelector(If(M))||(f=b.createElement("link"),tn(f,"link",u),Kn(f),b.head.appendChild(f)))}}function Ao(u,f){pu.m(u,f);var g=ho;if(g&&u){var b=f&&typeof f.as=="string"?f.as:"script",E='link[rel="modulepreload"][as="'+Xr(b)+'"][href="'+Xr(u)+'"]',M=E;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=ss(u)}if(!mi.has(M)&&(u=y({rel:"modulepreload",href:u},f),mi.set(M,u),g.querySelector(E)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(If(M)))return}b=g.createElement("link"),tn(b,"link",u),Kn(b),g.head.appendChild(b)}}}function ha(u,f,g){pu.S(u,f,g);var b=ho;if(b&&u){var E=Ai(b).hoistableStyles,M=_h(u);f=f||"default";var U=E.get(M);if(!U){var Z={loading:0,preload:null};if(U=b.querySelector(Sh(M)))Z.loading=5;else{u=y({rel:"stylesheet",href:u,"data-precedence":f},g),(g=mi.get(M))&&Yv(u,g);var ue=U=b.createElement("link");Kn(ue),tn(ue,"link",u),ue._p=new Promise(function(De,Ye){ue.onload=De,ue.onerror=Ye}),ue.addEventListener("load",function(){Z.loading|=1}),ue.addEventListener("error",function(){Z.loading|=2}),Z.loading|=4,Vv(U,f,b)}U={type:"stylesheet",instance:U,count:1,state:Z},E.set(M,U)}}}function mc(u,f){pu.X(u,f);var g=ho;if(g&&u){var b=Ai(g).hoistableScripts,E=ss(u),M=b.get(E);M||(M=g.querySelector(If(E)),M||(u=y({src:u,async:!0},f),(f=mi.get(E))&&Zv(u,f),M=g.createElement("script"),Kn(M),tn(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(E,M))}}function t_(u,f){pu.M(u,f);var g=ho;if(g&&u){var b=Ai(g).hoistableScripts,E=ss(u),M=b.get(E);M||(M=g.querySelector(If(E)),M||(u=y({src:u,async:!0,type:"module"},f),(f=mi.get(E))&&Zv(u,f),M=g.createElement("script"),Kn(M),tn(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(E,M))}}function gk(u,f,g,b){var E=(E=Le.current)?Hv(E):null;if(!E)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(f=_h(g.href),g=Ai(E).hoistableStyles,b=g.get(f),b||(b={type:"style",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=_h(g.href);var M=Ai(E).hoistableStyles,U=M.get(u);if(U||(E=E.ownerDocument||E,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(u,U),(M=E.querySelector(Sh(u)))&&!M._p&&(U.instance=M,U.state.loading=5),mi.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},mi.set(u,g),M||mk(E,u,g,U.state))),f&&b===null)throw Error(r(528,""));return U}if(f&&b!==null)throw Error(r(529,""));return null;case"script":return f=g.async,g=g.src,typeof g=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ss(g),g=Ai(E).hoistableScripts,b=g.get(f),b||(b={type:"script",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function _h(u){return'href="'+Xr(u)+'"'}function Sh(u){return'link[rel="stylesheet"]['+u+"]"}function wh(u){return y({},u,{"data-precedence":u.precedence,precedence:null})}function mk(u,f,g,b){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=u.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),tn(f,"link",g),Kn(f),u.head.appendChild(f))}function ss(u){return'[src="'+Xr(u)+'"]'}function If(u){return"script[async]"+u}function vk(u,f,g){if(f.count++,f.instance===null)switch(f.type){case"style":var b=u.querySelector('style[data-href~="'+Xr(g.href)+'"]');if(b)return f.instance=b,Kn(b),b;var E=y({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return b=(u.ownerDocument||u).createElement("style"),Kn(b),tn(b,"style",E),Vv(b,g.precedence,u),f.instance=b;case"stylesheet":E=_h(g.href);var M=u.querySelector(Sh(E));if(M)return f.state.loading|=4,f.instance=M,Kn(M),M;b=wh(g),(E=mi.get(E))&&Yv(b,E),M=(u.ownerDocument||u).createElement("link"),Kn(M);var U=M;return U._p=new Promise(function(Z,ue){U.onload=Z,U.onerror=ue}),tn(M,"link",b),f.state.loading|=4,Vv(M,g.precedence,u),f.instance=M;case"script":return M=ss(g.src),(E=u.querySelector(If(M)))?(f.instance=E,Kn(E),E):(b=g,(E=mi.get(M))&&(b=y({},g),Zv(b,E)),u=u.ownerDocument||u,E=u.createElement("script"),Kn(E),tn(E,"link",b),u.head.appendChild(E),f.instance=E);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,Vv(b,g.precedence,u));return f.instance}function Vv(u,f,g){for(var b=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=b.length?b[b.length-1]:null,M=E,U=0;U<b.length;U++){var Z=b[U];if(Z.dataset.precedence===f)M=Z;else if(M!==E)break}M?M.parentNode.insertBefore(u,M.nextSibling):(f=g.nodeType===9?g.head:g,f.insertBefore(u,f.firstChild))}function Yv(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function Zv(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var vc=null;function n_(u,f,g){if(vc===null){var b=new Map,E=vc=new Map;E.set(g,b)}else E=vc,b=E.get(g),b||(b=new Map,E.set(g,b));if(b.has(u))return b;for(b.set(u,null),g=g.getElementsByTagName(u),E=0;E<g.length;E++){var M=g[E];if(!(M[Ot]||M[on]||u==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var U=M.getAttribute(f)||"";U=u+U;var Z=b.get(U);Z?Z.push(M):b.set(U,[M])}}return b}function r_(u,f,g){u=u.ownerDocument||u,u.head.insertBefore(g,f==="title"?u.querySelector("head > title"):null)}function yk(u,f,g){if(g===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function i_(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Ch=null;function xk(){}function bk(u,f,g){if(Ch===null)throw Error(r(475));var b=Ch;if(f.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var E=_h(g.href),M=u.querySelector(Sh(E));if(M){u=M._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(b.count++,b=A0.bind(b),u.then(b,b)),f.state.loading|=4,f.instance=M,Kn(M);return}M=u.ownerDocument||u,g=wh(g),(E=mi.get(E))&&Yv(g,E),M=M.createElement("link"),Kn(M);var U=M;U._p=new Promise(function(Z,ue){U.onload=Z,U.onerror=ue}),tn(M,"link",g),f.instance=M}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(b.count++,f=A0.bind(b),u.addEventListener("load",f),u.addEventListener("error",f))}}function o_(){if(Ch===null)throw Error(r(475));var u=Ch;return u.stylesheets&&u.count===0&&k0(u,u.stylesheets),0<u.count?function(f){var g=setTimeout(function(){if(u.stylesheets&&k0(u,u.stylesheets),u.unsuspend){var b=u.unsuspend;u.unsuspend=null,b()}},6e4);return u.unsuspend=f,function(){u.unsuspend=null,clearTimeout(g)}}:null}function A0(){if(this.count--,this.count===0){if(this.stylesheets)k0(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Eh=null;function k0(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Eh=new Map,f.forEach(Ra,u),Eh=null,A0.call(u))}function Ra(u,f){if(!(f.state.loading&4)){var g=Eh.get(u);if(g)var b=g.get(null);else{g=new Map,Eh.set(u,g);for(var E=u.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<E.length;M++){var U=E[M];(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")&&(g.set(U.dataset.precedence,U),b=U)}b&&g.set(null,b)}E=f.instance,U=E.getAttribute("data-precedence"),M=g.get(U)||b,M===b&&g.set(null,E),g.set(U,E),this.count++,b=A0.bind(this),E.addEventListener("load",b),E.addEventListener("error",b),M?M.parentNode.insertBefore(E,M.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(E,u.firstChild)),f.state.loading|=4}}var pa={$$typeof:O,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function GD(u,f,g,b,E,M,U,Z){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yn(0),this.hiddenUpdates=Yn(null),this.identifierPrefix=b,this.onUncaughtError=E,this.onCaughtError=M,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function a_(u,f,g,b,E,M,U,Z,ue,De,Ye,Xe){return u=new GD(u,f,g,U,Z,ue,De,Xe),f=1,M===!0&&(f|=24),M=ra(3,null,null,f),u.current=M,M.stateNode=u,f=Yd(),f.refCount++,u.pooledCache=f,f.refCount++,M.memoizedState={element:b,isDehydrated:g,cache:f},Fm(M),u}function s_(u){return u?(u=Fd,u):Fd}function l_(u,f,g,b,E,M){E=s_(E),b.context===null?b.context=E:b.pendingContext=E,b=oa(f),b.payload={element:g},M=M===void 0?null:M,M!==null&&(b.callback=M),g=al(u,b,f),g!==null&&(Da(g,u,f),df(g,u,f))}function u_(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<f?g:f}}function Qv(u,f){u_(u,f),(u=u.alternate)&&u_(u,f)}function c_(u){if(u.tag===13){var f=el(u,67108864);f!==null&&Da(f,u,67108864),Qv(u,67108864)}}var T0=!0;function _k(u,f,g,b){var E=W.T;W.T=null;var M=fe.p;try{fe.p=2,f_(u,f,g,b)}finally{fe.p=M,W.T=E}}function Sk(u,f,g,b){var E=W.T;W.T=null;var M=fe.p;try{fe.p=8,f_(u,f,g,b)}finally{fe.p=M,W.T=E}}function f_(u,f,g,b){if(T0){var E=Kv(b);if(E===null)os(u,f,b,Wv,g),Bf(u,b);else if(Ck(E,u,f,g,b))b.stopPropagation();else if(Bf(u,b),f&4&&-1<wk.indexOf(u)){for(;E!==null;){var M=li(E);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var U=pt(M.pendingLanes);if(U!==0){var Z=M;for(Z.pendingLanes|=2,Z.entangledLanes|=2;U;){var ue=1<<31-lt(U);Z.entanglements[1]|=ue,U&=~ue}fa(M),(cr&6)===0&&(kv=Et()+500,g0(0))}}break;case 13:Z=el(M,2),Z!==null&&Da(Z,M,2),Tf(),Qv(M,2)}if(M=Kv(b),M===null&&os(u,f,b,Wv,g),M===E)break;E=M}E!==null&&b.stopPropagation()}else os(u,f,b,null,g)}}function Kv(u){return u=gm(u),d_(u)}var Wv=null;function d_(u){if(Wv=null,u=Or(u),u!==null){var f=a(u);if(f===null)u=null;else{var g=f.tag;if(g===13){if(u=l(f),u!==null)return u;u=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return Wv=u,null}function h_(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case ae:return 2;case ge:return 8;case Be:case Te:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Ah=!1,wl=null,mu=null,vu=null,O0=new Map,D0=new Map,yc=[],wk="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".split(" ");function Bf(u,f){switch(u){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":mu=null;break;case"mouseover":case"mouseout":vu=null;break;case"pointerover":case"pointerout":O0.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":D0.delete(f.pointerId)}}function $f(u,f,g,b,E,M){return u===null||u.nativeEvent!==M?(u={blockedOn:f,domEventName:g,eventSystemFlags:b,nativeEvent:M,targetContainers:[E]},f!==null&&(f=li(f),f!==null&&c_(f)),u):(u.eventSystemFlags|=b,f=u.targetContainers,E!==null&&f.indexOf(E)===-1&&f.push(E),u)}function Ck(u,f,g,b,E){switch(f){case"focusin":return wl=$f(wl,u,f,g,b,E),!0;case"dragenter":return mu=$f(mu,u,f,g,b,E),!0;case"mouseover":return vu=$f(vu,u,f,g,b,E),!0;case"pointerover":var M=E.pointerId;return O0.set(M,$f(O0.get(M)||null,u,f,g,b,E)),!0;case"gotpointercapture":return M=E.pointerId,D0.set(M,$f(D0.get(M)||null,u,f,g,b,E)),!0}return!1}function p_(u){var f=Or(u.target);if(f!==null){var g=a(f);if(g!==null){if(f=g.tag,f===13){if(f=l(g),f!==null){u.blockedOn=f,Tr(u.priority,function(){if(g.tag===13){var b=Oa();b=nr(b);var E=el(g,b);E!==null&&Da(E,g,b),Qv(g,b)}});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function M0(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var g=Kv(u.nativeEvent);if(g===null){g=u.nativeEvent;var b=new g.constructor(g.type,g);Qc=b,g.target.dispatchEvent(b),Qc=null}else return f=li(g),f!==null&&c_(f),u.blockedOn=g,!1;f.shift()}return!0}function R0(u,f,g){M0(u)&&g.delete(f)}function kh(){Ah=!1,wl!==null&&M0(wl)&&(wl=null),mu!==null&&M0(mu)&&(mu=null),vu!==null&&M0(vu)&&(vu=null),O0.forEach(R0),D0.forEach(R0)}function Xv(u,f){u.blockedOn===f&&(u.blockedOn=null,Ah||(Ah=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kh)))}var Lf=null;function g_(u){Lf!==u&&(Lf=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lf===u&&(Lf=null);for(var f=0;f<u.length;f+=3){var g=u[f],b=u[f+1],E=u[f+2];if(typeof b!="function"){if(d_(b||g)===null)continue;break}var M=li(g);M!==null&&(u.splice(f,3),f-=3,ov(M,{pending:!0,data:E,method:g.method,action:b},b,E))}}))}function Cl(u){function f(ue){return Xv(ue,u)}wl!==null&&Xv(wl,u),mu!==null&&Xv(mu,u),vu!==null&&Xv(vu,u),O0.forEach(f),D0.forEach(f);for(var g=0;g<yc.length;g++){var b=yc[g];b.blockedOn===u&&(b.blockedOn=null)}for(;0<yc.length&&(g=yc[0],g.blockedOn===null);)p_(g),g.blockedOn===null&&yc.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(b=0;b<g.length;b+=3){var E=g[b],M=g[b+1],U=E[vn]||null;if(typeof M=="function")U||g_(g);else if(U){var Z=null;if(M&&M.hasAttribute("formAction")){if(E=M,U=M[vn]||null)Z=U.formAction;else if(d_(E)!==null)continue}else Z=U.action;typeof Z=="function"?g[b+1]=Z:(g.splice(b,3),b-=3),g_(g)}}}function m_(u){this._internalRoot=u}Jv.prototype.render=m_.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var g=f.current,b=Oa();l_(g,b,u,f,null,null)},Jv.prototype.unmount=m_.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;l_(u.current,2,null,u,null,null),Tf(),f[ln]=null}};function Jv(u){this._internalRoot=u}Jv.prototype.unstable_scheduleHydration=function(u){if(u){var f=ai();u={blockedOn:null,target:u,priority:f};for(var g=0;g<yc.length&&f!==0&&f<yc[g].priority;g++);yc.splice(g,0,u),g===0&&p_(u)}};var v_=t.version;if(v_!=="19.1.0")throw Error(r(527,v_,"19.1.0"));fe.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=h(f),u=u!==null?p(u):null,u=u===null?null:u.stateNode,u};var Uo={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var I0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!I0.isDisabled&&I0.supportsFiber)try{_e=I0.inject(Uo),we=I0}catch{}}return d1.createRoot=function(u,f){if(!o(u))throw Error(r(299));var g=!1,b="",E=th,M=pb,U=i0,Z=null;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(E=f.onUncaughtError),f.onCaughtError!==void 0&&(M=f.onCaughtError),f.onRecoverableError!==void 0&&(U=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(Z=f.unstable_transitionCallbacks)),f=a_(u,1,!1,null,null,g,b,E,M,U,Z,null),u[ln]=f.current,Xb(u),new m_(f)},d1.hydrateRoot=function(u,f,g){if(!o(u))throw Error(r(299));var b=!1,E="",M=th,U=pb,Z=i0,ue=null,De=null;return g!=null&&(g.unstable_strictMode===!0&&(b=!0),g.identifierPrefix!==void 0&&(E=g.identifierPrefix),g.onUncaughtError!==void 0&&(M=g.onUncaughtError),g.onCaughtError!==void 0&&(U=g.onCaughtError),g.onRecoverableError!==void 0&&(Z=g.onRecoverableError),g.unstable_transitionCallbacks!==void 0&&(ue=g.unstable_transitionCallbacks),g.formState!==void 0&&(De=g.formState)),f=a_(u,1,!0,f,g??null,b,E,M,U,Z,ue,De),f.context=s_(null),g=f.current,b=Oa(),b=nr(b),E=oa(b),E.callback=null,al(g,E,b),g=b,f.current.lanes=g,tr(f,g),fa(f),u[ln]=f.current,Xb(u),new Jv(f)},d1.version="19.1.0",d1}var h1={};/**
|
|
4933
|
+
`+g.stack}}function Qt(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function en(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Ln(u){var f=en(u)?"checked":"value",g=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),b=""+u[f];if(!u.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var E=g.get,M=g.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return E.call(this)},set:function(U){b=""+U,M.call(this,U)}}),Object.defineProperty(u,f,{enumerable:g.enumerable}),{getValue:function(){return b},setValue:function(U){b=""+U},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function rn(u){u._valueTracker||(u._valueTracker=Ln(u))}function lr(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var g=f.getValue(),b="";return u&&(b=en(u)?u.checked?"true":"false":u.value),u=b,u!==g?(f.setValue(u),!0):!1}function Hr(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Ti=/[\n"\\]/g;function Xr(u){return u.replace(Ti,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function Qi(u,f,g,b,E,M,U,Z){u.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?u.type=U:u.removeAttribute("type"),f!=null?U==="number"?(f===0&&u.value===""||u.value!=f)&&(u.value=""+Qt(f)):u.value!==""+Qt(f)&&(u.value=""+Qt(f)):U!=="submit"&&U!=="reset"||u.removeAttribute("value"),f!=null?bp(u,U,Qt(f)):g!=null?bp(u,U,Qt(g)):b!=null&&u.removeAttribute("value"),E==null&&M!=null&&(u.defaultChecked=!!M),E!=null&&(u.checked=E&&typeof E!="function"&&typeof E!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?u.name=""+Qt(Z):u.removeAttribute("name")}function Od(u,f,g,b,E,M,U,Z){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(u.type=M),f!=null||g!=null){if(!(M!=="submit"&&M!=="reset"||f!=null))return;g=g!=null?""+Qt(g):"",f=f!=null?""+Qt(f):g,Z||f===u.value||(u.value=f),u.defaultValue=f}b=b??E,b=typeof b!="function"&&typeof b!="symbol"&&!!b,u.checked=Z?u.checked:!!b,u.defaultChecked=!!b,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(u.name=U)}function bp(u,f,g){f==="number"&&Hr(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function Yc(u,f,g,b){if(u=u.options,f){f={};for(var E=0;E<g.length;E++)f["$"+g[E]]=!0;for(g=0;g<u.length;g++)E=f.hasOwnProperty("$"+u[g].value),u[g].selected!==E&&(u[g].selected=E),E&&b&&(u[g].defaultSelected=!0)}else{for(g=""+Qt(g),f=null,E=0;E<u.length;E++){if(u[E].value===g){u[E].selected=!0,b&&(u[E].defaultSelected=!0);return}f!==null||u[E].disabled||(f=u[E])}f!==null&&(f.selected=!0)}}function p1(u,f,g){if(f!=null&&(f=""+Qt(f),f!==u.value&&(u.value=f),g==null)){u.defaultValue!==f&&(u.defaultValue=f);return}u.defaultValue=g!=null?""+Qt(g):""}function g1(u,f,g,b){if(f==null){if(b!=null){if(g!=null)throw Error(r(92));if(me(b)){if(1<b.length)throw Error(r(93));b=b[0]}g=b}g==null&&(g=""),f=g}g=Qt(f),u.defaultValue=g,b=u.textContent,b===g&&b!==""&&b!==null&&(u.value=b)}function Dd(u,f){if(f){var g=u.firstChild;if(g&&g===u.lastChild&&g.nodeType===3){g.nodeValue=f;return}}u.textContent=f}var _2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pm(u,f,g){var b=f.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?b?u.setProperty(f,""):f==="float"?u.cssFloat="":u[f]="":b?u.setProperty(f,g):typeof g!="number"||g===0||_2.has(f)?f==="float"?u.cssFloat=g:u[f]=(""+g).trim():u[f]=g+"px"}function _p(u,f,g){if(f!=null&&typeof f!="object")throw Error(r(62));if(u=u.style,g!=null){for(var b in g)!g.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?u.setProperty(b,""):b==="float"?u.cssFloat="":u[b]="");for(var E in f)b=f[E],f.hasOwnProperty(E)&&g[E]!==b&&pm(u,E,b)}else for(var M in f)f.hasOwnProperty(M)&&pm(u,M,f[M])}function Zc(u){if(u.indexOf("-")===-1)return!1;switch(u){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 TD=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),S2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sp(u){return S2.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Qc=null;function gm(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Md=null,Rd=null;function w2(u){var f=li(u);if(f&&(u=f.stateNode)){var g=u[vn]||null;e:switch(u=f.stateNode,f.type){case"input":if(Qi(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),f=g.name,g.type==="radio"&&f!=null){for(g=u;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Xr(""+f)+'"][type="radio"]'),f=0;f<g.length;f++){var b=g[f];if(b!==u&&b.form===u.form){var E=b[vn]||null;if(!E)throw Error(r(90));Qi(b,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(f=0;f<g.length;f++)b=g[f],b.form===u.form&&lr(b)}break e;case"textarea":p1(u,g.value,g.defaultValue);break e;case"select":f=g.value,f!=null&&Yc(u,!!g.multiple,f,!1)}}}var m1=!1;function Id(u,f,g){if(m1)return u(f,g);m1=!0;try{var b=u(f);return b}finally{if(m1=!1,(Md!==null||Rd!==null)&&(Tf(),Md&&(f=Md,u=Rd,Rd=Md=null,w2(f),u)))for(f=0;f<u.length;f++)w2(u[f])}}function Kc(u,f){var g=u.stateNode;if(g===null)return null;var b=g[vn]||null;if(b===null)return null;g=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(u=u.type,b=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!b;break e;default:u=!1}if(u)return null;if(g&&typeof g!="function")throw Error(r(231,f,typeof g));return g}var Zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mm=!1;if(Zs)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){mm=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{mm=!1}var Zl=null,Bd=null,Wc=null;function v1(){if(Wc)return Wc;var u,f=Bd,g=f.length,b,E="value"in Zl?Zl.value:Zl.textContent,M=E.length;for(u=0;u<g&&f[u]===E[u];u++);var U=g-u;for(b=1;b<=U&&f[g-b]===E[M-b];b++);return Wc=E.slice(u,1<b?1-b:void 0)}function oo(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function vm(){return!0}function ym(){return!1}function Lo(u){function f(g,b,E,M,U){this._reactName=g,this._targetInst=E,this.type=b,this.nativeEvent=M,this.target=U,this.currentTarget=null;for(var Z in u)u.hasOwnProperty(Z)&&(g=u[Z],this[Z]=g?g(M):M[Z]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?vm:ym,this.isPropagationStopped=ym,this}return y(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=vm)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=vm)},persist:function(){},isPersistent:vm}),f}var Fu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xm=Lo(Fu),wp=y({},Fu,{view:0,detail:0}),C2=Lo(wp),y1,bm,Cp,Xc=y({},wp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ql,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Cp&&(Cp&&u.type==="mousemove"?(y1=u.screenX-Cp.screenX,bm=u.screenY-Cp.screenY):bm=y1=0,Cp=u),y1)},movementY:function(u){return"movementY"in u?u.movementY:bm}}),x1=Lo(Xc),E2=y({},Xc,{dataTransfer:0}),A2=Lo(E2),OD=y({},wp,{relatedTarget:0}),b1=Lo(OD),DD=y({},Fu,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=Lo(DD),RD=y({},Fu,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),Ep=Lo(RD),k2=y({},Fu,{data:0}),_1=Lo(k2),T2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O2={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"},S1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D2(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=S1[u])?!!f[u]:!1}function Ql(){return D2}var Jc=y({},wp,{key:function(u){if(u.key){var f=T2[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=oo(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?O2[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ql,charCode:function(u){return u.type==="keypress"?oo(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?oo(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),ys=Lo(Jc),Ca=y({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ap=Lo(Ca),_m=y({},wp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ql}),w1=Lo(_m),ta=y({},Fu,{propertyName:0,elapsedTime:0,pseudoElement:0}),M2=Lo(ta),Sm=y({},Xc,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),ef=Lo(Sm),C1=y({},Fu,{newState:0,oldState:0}),R2=Lo(C1),I2=[9,13,27,32],kp=Zs&&"CompositionEvent"in window,Tp=null;Zs&&"documentMode"in document&&(Tp=document.documentMode);var E1=Zs&&"TextEvent"in window&&!Tp,Qs=Zs&&(!kp||Tp&&8<Tp&&11>=Tp),A1=" ",wm=!1;function Op(u,f){switch(u){case"keyup":return I2.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uu(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var ju=!1;function k1(u,f){switch(u){case"compositionend":return Uu(f);case"keypress":return f.which!==32?null:(wm=!0,A1);case"textInput":return u=f.data,u===A1&&wm?null:u;default:return null}}function tf(u,f){if(ju)return u==="compositionend"||!kp&&Op(u,f)?(u=v1(),Wc=Bd=Zl=null,ju=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Qs&&f.locale!=="ko"?null:f.data;default:return null}}var B2={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 Cm(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!B2[u.type]:f==="textarea"}function Em(u,f,g,b){Md?Rd?Rd.push(b):Rd=[b]:Md=b,f=vh(f,"onChange"),0<f.length&&(g=new xm("onChange","change",null,g,b),u.push({event:g,listeners:f}))}var xs=null,bs=null;function T1(u){Rf(u,0)}function Ks(u){var f=$o(u);if(lr(f))return u}function O1(u,f){if(u==="change")return f}var D1=!1;if(Zs){var nf;if(Zs){var rf="oninput"in document;if(!rf){var M1=document.createElement("div");M1.setAttribute("oninput","return;"),rf=typeof M1.oninput=="function"}nf=rf}else nf=!1;D1=nf&&(!document.documentMode||9<document.documentMode)}function $d(){xs&&(xs.detachEvent("onpropertychange",R1),bs=xs=null)}function R1(u){if(u.propertyName==="value"&&Ks(bs)){var f=[];Em(f,bs,u,gm(u)),Id(T1,f)}}function Am(u,f,g){u==="focusin"?($d(),xs=f,bs=g,xs.attachEvent("onpropertychange",R1)):u==="focusout"&&$d()}function Hu(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Ks(bs)}function Kl(u,f){if(u==="click")return Ks(f)}function I1(u,f){if(u==="input"||u==="change")return Ks(f)}function B1(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var ao=typeof Object.is=="function"?Object.is:B1;function qu(u,f){if(ao(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var g=Object.keys(u),b=Object.keys(f);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var E=g[b];if(!rt.call(f,E)||!ao(u[E],f[E]))return!1}return!0}function Pu(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function Lr(u,f){var g=Pu(u);u=0;for(var b;g;){if(g.nodeType===3){if(b=u+g.textContent.length,u<=f&&b>=f)return{node:g,offset:f-u};u=b}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Pu(g)}}function Dp(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?Dp(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function $1(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var f=Hr(u.document);f instanceof u.HTMLIFrameElement;){try{var g=typeof f.contentWindow.location.href=="string"}catch{g=!1}if(g)u=f.contentWindow;else break;f=Hr(u.document)}return f}function Mp(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}var of=Zs&&"documentMode"in document&&11>=document.documentMode,Ws=null,_s=null,Gu=null,af=!1;function km(u,f,g){var b=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;af||Ws==null||Ws!==Hr(b)||(b=Ws,"selectionStart"in b&&Mp(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Gu&&qu(Gu,b)||(Gu=b,b=vh(_s,"onSelect"),0<b.length&&(f=new xm("onSelect","select",null,f,g),u.push({event:f,listeners:b}),f.target=Ws)))}function Wl(u,f){var g={};return g[u.toLowerCase()]=f.toLowerCase(),g["Webkit"+u]="webkit"+f,g["Moz"+u]="moz"+f,g}var sf={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionrun:Wl("Transition","TransitionRun"),transitionstart:Wl("Transition","TransitionStart"),transitioncancel:Wl("Transition","TransitionCancel"),transitionend:Wl("Transition","TransitionEnd")},Ya={},Ss={};Zs&&(Ss=document.createElement("div").style,"AnimationEvent"in window||(delete sf.animationend.animation,delete sf.animationiteration.animation,delete sf.animationstart.animation),"TransitionEvent"in window||delete sf.transitionend.transition);function Xs(u){if(Ya[u])return Ya[u];if(!sf[u])return u;var f=sf[u],g;for(g in f)if(f.hasOwnProperty(g)&&g in Ss)return Ya[u]=f[g];return u}var $2=Xs("animationend"),L1=Xs("animationiteration"),L2=Xs("animationstart"),N1=Xs("transitionrun"),Tm=Xs("transitionstart"),N2=Xs("transitioncancel"),z1=Xs("transitionend"),F1=new Map,Ld="abort auxClick beforeToggle 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(" ");Ld.push("scrollEnd");function Za(u,f){F1.set(u,f),ki(f,[u])}var U1=new WeakMap;function Ea(u,f){if(typeof u=="object"&&u!==null){var g=U1.get(u);return g!==void 0?g:(f={value:u,source:f,stack:Rt(f)},U1.set(u,f),f)}return{value:u,source:f,stack:Rt(f)}}var na=[],Vu=0,Js=0;function ws(){for(var u=Vu,f=Js=Vu=0;f<u;){var g=na[f];na[f++]=null;var b=na[f];na[f++]=null;var E=na[f];na[f++]=null;var M=na[f];if(na[f++]=null,b!==null&&E!==null){var U=b.pending;U===null?E.next=E:(E.next=U.next,U.next=E),b.pending=E}M!==0&&zd(g,E,M)}}function Yu(u,f,g,b){na[Vu++]=u,na[Vu++]=f,na[Vu++]=g,na[Vu++]=b,Js|=b,u.lanes|=b,u=u.alternate,u!==null&&(u.lanes|=b)}function Nd(u,f,g,b){return Yu(u,f,g,b),Rp(u)}function el(u,f){return Yu(u,null,null,f),Rp(u)}function zd(u,f,g){u.lanes|=g;var b=u.alternate;b!==null&&(b.lanes|=g);for(var E=!1,M=u.return;M!==null;)M.childLanes|=g,b=M.alternate,b!==null&&(b.childLanes|=g),M.tag===22&&(u=M.stateNode,u===null||u._visibility&1||(E=!0)),u=M,M=M.return;return u.tag===3?(M=u.stateNode,E&&f!==null&&(E=31-lt(g),u=M.hiddenUpdates,b=u[E],b===null?u[E]=[f]:b.push(f),f.lane=g|536870912),M):null}function Rp(u){if(50<fh)throw fh=0,Ub=null,Error(r(185));for(var f=u.return;f!==null;)u=f,f=u.return;return u.tag===3?u.stateNode:null}var Fd={};function z2(u,f,g,b){this.tag=u,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(u,f,g,b){return new z2(u,f,g,b)}function Ip(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Cs(u,f){var g=u.alternate;return g===null?(g=ra(u.tag,f,u.key,u.mode),g.elementType=u.elementType,g.type=u.type,g.stateNode=u.stateNode,g.alternate=u,u.alternate=g):(g.pendingProps=f,g.type=u.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=u.flags&65011712,g.childLanes=u.childLanes,g.lanes=u.lanes,g.child=u.child,g.memoizedProps=u.memoizedProps,g.memoizedState=u.memoizedState,g.updateQueue=u.updateQueue,f=u.dependencies,g.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},g.sibling=u.sibling,g.index=u.index,g.ref=u.ref,g.refCleanup=u.refCleanup,g}function Cn(u,f){u.flags&=65011714;var g=u.alternate;return g===null?(u.childLanes=0,u.lanes=f,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,f=g.dependencies,u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),u}function it(u,f,g,b,E,M){var U=0;if(b=u,typeof u=="function")Ip(u)&&(U=1);else if(typeof u=="string")U=yk(u,g,ve.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case V:return u=ra(31,g,f,E),u.elementType=V,u.lanes=M,u;case w:return Qa(g.children,E,M,f);case T:U=8,E|=24;break;case k:return u=ra(12,g,f,E|2),u.elementType=k,u.lanes=M,u;case N:return u=ra(13,g,f,E),u.elementType=N,u.lanes=M,u;case L:return u=ra(19,g,f,E),u.elementType=L,u.lanes=M,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case A:case O:U=10;break e;case D:U=9;break e;case I:U=11;break e;case q:U=14;break e;case G:U=16,b=null;break e}U=29,g=Error(r(130,u===null?"null":typeof u,"")),b=null}return f=ra(U,g,f,E),f.elementType=u,f.type=b,f.lanes=M,f}function Qa(u,f,g,b){return u=ra(7,u,b,f),u.lanes=g,u}function Ud(u,f,g){return u=ra(6,u,null,f),u.lanes=g,u}function Jr(u,f,g){return f=ra(4,u.children!==null?u.children:[],u.key,f),f.lanes=g,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}var Zu=[],Qu=0,Bp=null,jd=0,Ka=[],ia=0,Xl=null,Es=1,ui="";function Nn(u,f){Zu[Qu++]=jd,Zu[Qu++]=Bp,Bp=u,jd=f}function Om(u,f,g){Ka[ia++]=Es,Ka[ia++]=ui,Ka[ia++]=Xl,Xl=u;var b=Es;u=ui;var E=32-lt(b)-1;b&=~(1<<E),g+=1;var M=32-lt(f)+E;if(30<M){var U=E-E%5;M=(b&(1<<U)-1).toString(32),b>>=U,E-=U,Es=1<<32-lt(f)+E|g<<E|b,ui=M+u}else Es=1<<M|g<<E|b,ui=u}function lf(u){u.return!==null&&(Nn(u,1),Om(u,1,0))}function tl(u){for(;u===Bp;)Bp=Zu[--Qu],Zu[Qu]=null,jd=Zu[--Qu],Zu[Qu]=null;for(;u===Xl;)Xl=Ka[--ia],Ka[ia]=null,ui=Ka[--ia],Ka[ia]=null,Es=Ka[--ia],Ka[ia]=null}var xi=null,rr=null,Wn=!1,Wa=null,Xa=!1,uf=Error(r(519));function Jl(u){var f=Error(r(418,""));throw Pd(Ea(f,u)),uf}function $p(u){var f=u.stateNode,g=u.type,b=u.memoizedProps;switch(f[on]=u,f[vn]=b,g){case"dialog":fn("cancel",f),fn("close",f);break;case"iframe":case"object":case"embed":fn("load",f);break;case"video":case"audio":for(g=0;g<b0.length;g++)fn(b0[g],f);break;case"source":fn("error",f);break;case"img":case"image":case"link":fn("error",f),fn("load",f);break;case"details":fn("toggle",f);break;case"input":fn("invalid",f),Od(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),rn(f);break;case"select":fn("invalid",f);break;case"textarea":fn("invalid",f),g1(f,b.value,b.defaultValue,b.children),rn(f)}g=b.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||f.textContent===""+g||b.suppressHydrationWarning===!0||e_(f.textContent,g)?(b.popover!=null&&(fn("beforetoggle",f),fn("toggle",f)),b.onScroll!=null&&fn("scroll",f),b.onScrollEnd!=null&&fn("scrollend",f),b.onClick!=null&&(f.onclick=Fv),f=!0):f=!1,f||Jl(u)}function j1(u){for(xi=u.return;xi;)switch(xi.tag){case 5:case 13:Xa=!1;return;case 27:case 3:Xa=!0;return;default:xi=xi.return}}function Hd(u){if(u!==xi)return!1;if(!Wn)return j1(u),Wn=!0,!1;var f=u.tag,g;if((g=f!==3&&f!==27)&&((g=f===5)&&(g=u.type,g=!(g!=="form"&&g!=="button")||_l(u.type,u.memoizedProps)),g=!g),g&&rr&&Jl(u),j1(u),f===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8)if(g=u.data,g==="/$"){if(f===0){rr=Ms(u.nextSibling);break e}f--}else g!=="$"&&g!=="$!"&&g!=="$?"||f++;u=u.nextSibling}rr=null}}else f===27?(f=rr,hc(u.type)?(u=pc,pc=null,rr=u):rr=f):rr=xi?Ms(u.stateNode.nextSibling):null;return!0}function qd(){rr=xi=null,Wn=!1}function H1(){var u=Wa;return u!==null&&(ca===null?ca=u:ca.push.apply(ca,u),Wa=null),u}function Pd(u){Wa===null?Wa=[u]:Wa.push(u)}var Lp=te(null),eu=null,As=null;function tu(u,f,g){P(Lp,f._currentValue),f._currentValue=g}function nl(u){u._currentValue=Lp.current,le(Lp)}function Dm(u,f,g){for(;u!==null;){var b=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),u===g)break;u=u.return}}function q1(u,f,g,b){var E=u.child;for(E!==null&&(E.return=u);E!==null;){var M=E.dependencies;if(M!==null){var U=E.child;M=M.firstContext;e:for(;M!==null;){var Z=M;M=E;for(var ue=0;ue<f.length;ue++)if(Z.context===f[ue]){M.lanes|=g,Z=M.alternate,Z!==null&&(Z.lanes|=g),Dm(M.return,g,u),b||(U=null);break e}M=Z.next}}else if(E.tag===18){if(U=E.return,U===null)throw Error(r(341));U.lanes|=g,M=U.alternate,M!==null&&(M.lanes|=g),Dm(U,g,u),U=null}else U=E.child;if(U!==null)U.return=E;else for(U=E;U!==null;){if(U===u){U=null;break}if(E=U.sibling,E!==null){E.return=U.return,U=E;break}U=U.return}E=U}}function Gd(u,f,g,b){u=null;for(var E=f,M=!1;E!==null;){if(!M){if((E.flags&524288)!==0)M=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var U=E.alternate;if(U===null)throw Error(r(387));if(U=U.memoizedProps,U!==null){var Z=E.type;ao(E.pendingProps.value,U.value)||(u!==null?u.push(Z):u=[Z])}}else if(E===Mt.current){if(U=E.alternate,U===null)throw Error(r(387));U.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(u!==null?u.push(pa):u=[pa])}E=E.return}u!==null&&q1(f,u,g,b),f.flags|=262144}function Np(u){for(u=u.firstContext;u!==null;){if(!ao(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Ku(u){eu=u,As=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function Ki(u){return P1(eu,u)}function zp(u,f){return eu===null&&Ku(u),P1(u,f)}function P1(u,f){var g=f._currentValue;if(f={context:f,memoizedValue:g,next:null},As===null){if(u===null)throw Error(r(308));As=f,u.dependencies={lanes:0,firstContext:f},u.flags|=524288}else As=As.next=f;return g}var Vd=typeof AbortController<"u"?AbortController:function(){var u=[],f=this.signal={aborted:!1,addEventListener:function(g,b){u.push(b)}};this.abort=function(){f.aborted=!0,u.forEach(function(g){return g()})}},Mm=e.unstable_scheduleCallback,F2=e.unstable_NormalPriority,Li={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yd(){return{controller:new Vd,data:new Map,refCount:0}}function rl(u){u.refCount--,u.refCount===0&&Mm(F2,function(){u.controller.abort()})}var Wu=null,Fp=0,Ja=0,Ni=null;function Rm(u,f){if(Wu===null){var g=Wu=[];Fp=0,Ja=Mf(),Ni={status:"pending",value:void 0,then:function(b){g.push(b)}}}return Fp++,f.then(Im,Im),f}function Im(){if(--Fp===0&&Wu!==null){Ni!==null&&(Ni.status="fulfilled");var u=Wu;Wu=null,Ja=0,Ni=null;for(var f=0;f<u.length;f++)(0,u[f])()}}function U2(u,f){var g=[],b={status:"pending",value:null,reason:null,then:function(E){g.push(E)}};return u.then(function(){b.status="fulfilled",b.value=f;for(var E=0;E<g.length;E++)(0,g[E])(f)},function(E){for(b.status="rejected",b.reason=E,E=0;E<g.length;E++)(0,g[E])(void 0)}),b}var Bm=W.S;W.S=function(u,f){typeof f=="object"&&f!==null&&typeof f.then=="function"&&Rm(u,f),Bm!==null&&Bm(u,f)};var il=te(null);function Up(){var u=il.current;return u!==null?u:Mr.pooledCache}function cf(u,f){f===null?P(il,il.current):P(il,f.pool)}function $m(){var u=Up();return u===null?null:{parent:Li._currentValue,pool:u}}var Xu=Error(r(460)),Lm=Error(r(474)),jp=Error(r(542)),Nm={then:function(){}};function zm(u){return u=u.status,u==="fulfilled"||u==="rejected"}function Hp(){}function G1(u,f,g){switch(g=u[g],g===void 0?u.push(f):g!==f&&(f.then(Hp,Hp),f=g),f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,Y1(u),u;default:if(typeof f.status=="string")f.then(Hp,Hp);else{if(u=Mr,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=f,u.status="pending",u.then(function(b){if(f.status==="pending"){var E=f;E.status="fulfilled",E.value=b}},function(b){if(f.status==="pending"){var E=f;E.status="rejected",E.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,Y1(u),u}throw ff=f,Xu}}var ff=null;function V1(){if(ff===null)throw Error(r(459));var u=ff;return ff=null,u}function Y1(u){if(u===Xu||u===jp)throw Error(r(483))}var ol=!1;function Fm(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Um(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function oa(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function al(u,f,g){var b=u.updateQueue;if(b===null)return null;if(b=b.shared,(cr&2)!==0){var E=b.pending;return E===null?f.next=f:(f.next=E.next,E.next=f),b.pending=f,f=Rp(u),zd(u,null,g),f}return Yu(u,b,f,g),Rp(u)}function df(u,f,g){if(f=f.updateQueue,f!==null&&(f=f.shared,(g&4194048)!==0)){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Zn(u,g)}}function Z1(u,f){var g=u.updateQueue,b=u.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var E=null,M=null;if(g=g.firstBaseUpdate,g!==null){do{var U={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};M===null?E=M=U:M=M.next=U,g=g.next}while(g!==null);M===null?E=M=f:M=M.next=f}else E=M=f;g={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:M,shared:b.shared,callbacks:b.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=f:u.next=f,g.lastBaseUpdate=f}var Q1=!1;function Zd(){if(Q1){var u=Ni;if(u!==null)throw u}}function nu(u,f,g,b){Q1=!1;var E=u.updateQueue;ol=!1;var M=E.firstBaseUpdate,U=E.lastBaseUpdate,Z=E.shared.pending;if(Z!==null){E.shared.pending=null;var ue=Z,De=ue.next;ue.next=null,U===null?M=De:U.next=De,U=ue;var Ye=u.alternate;Ye!==null&&(Ye=Ye.updateQueue,Z=Ye.lastBaseUpdate,Z!==U&&(Z===null?Ye.firstBaseUpdate=De:Z.next=De,Ye.lastBaseUpdate=ue))}if(M!==null){var Xe=E.baseState;U=0,Ye=De=ue=null,Z=M;do{var $e=Z.lane&-536870913,ze=$e!==Z.lane;if(ze?(On&$e)===$e:(b&$e)===$e){$e!==0&&$e===Ja&&(Q1=!0),Ye!==null&&(Ye=Ye.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var Yt=u,Zt=Z;$e=f;var or=g;switch(Zt.tag){case 1:if(Yt=Zt.payload,typeof Yt=="function"){Xe=Yt.call(or,Xe,$e);break e}Xe=Yt;break e;case 3:Yt.flags=Yt.flags&-65537|128;case 0:if(Yt=Zt.payload,$e=typeof Yt=="function"?Yt.call(or,Xe,$e):Yt,$e==null)break e;Xe=y({},Xe,$e);break e;case 2:ol=!0}}$e=Z.callback,$e!==null&&(u.flags|=64,ze&&(u.flags|=8192),ze=E.callbacks,ze===null?E.callbacks=[$e]:ze.push($e))}else ze={lane:$e,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Ye===null?(De=Ye=ze,ue=Xe):Ye=Ye.next=ze,U|=$e;if(Z=Z.next,Z===null){if(Z=E.shared.pending,Z===null)break;ze=Z,Z=ze.next,ze.next=null,E.lastBaseUpdate=ze,E.shared.pending=null}}while(!0);Ye===null&&(ue=Xe),E.baseState=ue,E.firstBaseUpdate=De,E.lastBaseUpdate=Ye,M===null&&(E.shared.lanes=0),uu|=U,u.lanes=U,u.memoizedState=Xe}}function jm(u,f){if(typeof u!="function")throw Error(r(191,u));u.call(f)}function qp(u,f){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u<g.length;u++)jm(g[u],f)}var hf=te(null),Pp=te(0);function Wi(u,f){u=lu,P(Pp,u),P(hf,f),lu=u|f.baseLanes}function Qd(){P(Pp,lu),P(hf,hf.current)}function Kd(){lu=Pp.current,le(hf),le(Pp)}var es=0,cn=null,ur=null,ei=null,Gp=!1,Aa=!1,Ju=!1,ks=0,ka=0,ru=null,K1=0;function ti(){throw Error(r(321))}function Hm(u,f){if(f===null)return!1;for(var g=0;g<f.length&&g<u.length;g++)if(!ao(u[g],f[g]))return!1;return!0}function qm(u,f,g,b,E,M){return es=M,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,W.H=u===null||u.memoizedState===null?fb:db,Ju=!1,M=g(b,E),Ju=!1,Aa&&(M=W1(f,g,b,E)),ec(u),M}function ec(u){W.H=av;var f=ur!==null&&ur.next!==null;if(es=0,ei=ur=cn=null,Gp=!1,ka=0,ru=null,f)throw Error(r(300));u===null||zi||(u=u.dependencies,u!==null&&Np(u)&&(zi=!0))}function W1(u,f,g,b){cn=u;var E=0;do{if(Aa&&(ru=null),ka=0,Aa=!1,25<=E)throw Error(r(301));if(E+=1,ei=ur=null,u.updateQueue!=null){var M=u.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}W.H=iu,M=f(g,b)}while(Aa);return M}function j2(){var u=W.H,f=u.useState()[0];return f=typeof f.then=="function"?Yp(f):f,u=u.useState()[0],(ur!==null?ur.memoizedState:null)!==u&&(cn.flags|=1024),f}function Pm(){var u=ks!==0;return ks=0,u}function Wd(u,f,g){f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~g}function Gm(u){if(Gp){for(u=u.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Gp=!1}es=0,ei=ur=cn=null,Aa=!1,ka=ks=0,ru=null}function So(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ei===null?cn.memoizedState=ei=u:ei=ei.next=u,ei}function ci(){if(ur===null){var u=cn.alternate;u=u!==null?u.memoizedState:null}else u=ur.next;var f=ei===null?cn.memoizedState:ei.next;if(f!==null)ei=f,ur=u;else{if(u===null)throw cn.alternate===null?Error(r(467)):Error(r(310));ur=u,u={memoizedState:ur.memoizedState,baseState:ur.baseState,baseQueue:ur.baseQueue,queue:ur.queue,next:null},ei===null?cn.memoizedState=ei=u:ei=ei.next=u}return ei}function Vp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yp(u){var f=ka;return ka+=1,ru===null&&(ru=[]),u=G1(ru,u,f),f=cn,(ei===null?f.memoizedState:ei.next)===null&&(f=f.alternate,W.H=f===null||f.memoizedState===null?fb:db),u}function Oi(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Yp(u);if(u.$$typeof===O)return Ki(u)}throw Error(r(438,String(u)))}function Vm(u){var f=null,g=cn.updateQueue;if(g!==null&&(f=g.memoCache),f==null){var b=cn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(E){return E.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),g===null&&(g=Vp(),cn.updateQueue=g),g.memoCache=f,g=f.data[f.index],g===void 0)for(g=f.data[f.index]=Array(u),b=0;b<u;b++)g[b]=F;return f.index++,g}function sl(u,f){return typeof f=="function"?f(u):f}function Zp(u){var f=ci();return Ym(f,ur,u)}function Ym(u,f,g){var b=u.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=g;var E=u.baseQueue,M=b.pending;if(M!==null){if(E!==null){var U=E.next;E.next=M.next,M.next=U}f.baseQueue=E=M,b.pending=null}if(M=u.baseState,E===null)u.memoizedState=M;else{f=E.next;var Z=U=null,ue=null,De=f,Ye=!1;do{var Xe=De.lane&-536870913;if(Xe!==De.lane?(On&Xe)===Xe:(es&Xe)===Xe){var $e=De.revertLane;if($e===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null}),Xe===Ja&&(Ye=!0);else if((es&$e)===$e){De=De.next,$e===Ja&&(Ye=!0);continue}else Xe={lane:0,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ue===null?(Z=ue=Xe,U=M):ue=ue.next=Xe,cn.lanes|=$e,uu|=$e;Xe=De.action,Ju&&g(M,Xe),M=De.hasEagerState?De.eagerState:g(M,Xe)}else $e={lane:Xe,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ue===null?(Z=ue=$e,U=M):ue=ue.next=$e,cn.lanes|=Xe,uu|=Xe;De=De.next}while(De!==null&&De!==f);if(ue===null?U=M:ue.next=Z,!ao(M,u.memoizedState)&&(zi=!0,Ye&&(g=Ni,g!==null)))throw g;u.memoizedState=M,u.baseState=U,u.baseQueue=ue,b.lastRenderedState=M}return E===null&&(b.lanes=0),[u.memoizedState,b.dispatch]}function Zm(u){var f=ci(),g=f.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=u;var b=g.dispatch,E=g.pending,M=f.memoizedState;if(E!==null){g.pending=null;var U=E=E.next;do M=u(M,U.action),U=U.next;while(U!==E);ao(M,f.memoizedState)||(zi=!0),f.memoizedState=M,f.baseQueue===null&&(f.baseState=M),g.lastRenderedState=M}return[M,b]}function Qp(u,f,g){var b=cn,E=ci(),M=Wn;if(M){if(g===void 0)throw Error(r(407));g=g()}else g=f();var U=!ao((ur||E).memoizedState,g);U&&(E.memoizedState=g,zi=!0),E=E.queue;var Z=J1.bind(null,b,E,u);if(br(2048,8,Z,[u]),E.getSnapshot!==f||U||ei!==null&&ei.memoizedState.tag&1){if(b.flags|=2048,aa(9,Xp(),X1.bind(null,b,E,g,f),null),Mr===null)throw Error(r(349));M||(es&124)!==0||Qm(b,f,g)}return g}function Qm(u,f,g){u.flags|=16384,u={getSnapshot:f,value:g},f=cn.updateQueue,f===null?(f=Vp(),cn.updateQueue=f,f.stores=[u]):(g=f.stores,g===null?f.stores=[u]:g.push(u))}function X1(u,f,g,b){f.value=g,f.getSnapshot=b,eb(f)&&Km(u)}function J1(u,f,g){return g(function(){eb(f)&&Km(u)})}function eb(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!ao(u,g)}catch{return!0}}function Km(u){var f=el(u,2);f!==null&&Da(f,u,2)}function Kp(u){var f=So();if(typeof u=="function"){var g=u;if(u=g(),Ju){bt(!0);try{g()}finally{bt(!1)}}}return f.memoizedState=f.baseState=u,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:u},f}function Wm(u,f,g,b){return u.baseState=g,Ym(u,ur,typeof b=="function"?b:sl)}function H2(u,f,g,b,E){if(vf(u))throw Error(r(485));if(u=f.action,u!==null){var M={payload:E,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(U){M.listeners.push(U)}};W.T!==null?g(!0):M.isTransition=!1,b(M),g=f.pending,g===null?(M.next=f.pending=M,Xm(f,M)):(M.next=g.next,f.pending=g.next=M)}}function Xm(u,f){var g=f.action,b=f.payload,E=u.state;if(f.isTransition){var M=W.T,U={};W.T=U;try{var Z=g(E,b),ue=W.S;ue!==null&&ue(U,Z),Wp(u,f,Z)}catch(De){ev(u,f,De)}finally{W.T=M}}else try{M=g(E,b),Wp(u,f,M)}catch(De){ev(u,f,De)}}function Wp(u,f,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(b){Jm(u,f,b)},function(b){return ev(u,f,b)}):Jm(u,f,g)}function Jm(u,f,g){f.status="fulfilled",f.value=g,tb(f),u.state=g,f=u.pending,f!==null&&(g=f.next,g===f?u.pending=null:(g=g.next,f.next=g,Xm(u,g)))}function ev(u,f,g){var b=u.pending;if(u.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=g,tb(f),f=f.next;while(f!==b)}u.action=null}function tb(u){u=u.listeners;for(var f=0;f<u.length;f++)(0,u[f])()}function tv(u,f){return f}function nb(u,f){if(Wn){var g=Mr.formState;if(g!==null){e:{var b=cn;if(Wn){if(rr){t:{for(var E=rr,M=Xa;E.nodeType!==8;){if(!M){E=null;break t}if(E=Ms(E.nextSibling),E===null){E=null;break t}}M=E.data,E=M==="F!"||M==="F"?E:null}if(E){rr=Ms(E.nextSibling),b=E.data==="F!";break e}}Jl(b)}b=!1}b&&(f=g[0])}}return g=So(),g.memoizedState=g.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tv,lastRenderedState:f},g.queue=b,g=ub.bind(null,cn,b),b.dispatch=g,b=Kp(!1),M=t0.bind(null,cn,!1,b.queue),b=So(),E={state:f,dispatch:null,action:u,pending:null},b.queue=E,g=H2.bind(null,cn,E,M,g),E.dispatch=g,b.memoizedState=u,[f,g,!1]}function ll(u){var f=ci();return nv(f,ur,u)}function nv(u,f,g){if(f=Ym(u,f,tv)[0],u=Zp(sl)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=Yp(f)}catch(U){throw U===Xu?jp:U}else b=f;f=ci();var E=f.queue,M=E.dispatch;return g!==f.memoizedState&&(cn.flags|=2048,aa(9,Xp(),ID.bind(null,E,g),null)),[b,M,u]}function ID(u,f){u.action=f}function rv(u){var f=ci(),g=ur;if(g!==null)return nv(f,g,u);ci(),f=f.memoizedState,g=ci();var b=g.queue.dispatch;return g.memoizedState=u,[f,b,!1]}function aa(u,f,g,b){return u={tag:u,create:g,deps:b,inst:f,next:null},f=cn.updateQueue,f===null&&(f=Vp(),cn.updateQueue=f),g=f.lastEffect,g===null?f.lastEffect=u.next=u:(b=g.next,g.next=u,u.next=b,f.lastEffect=u),u}function Xp(){return{destroy:void 0,resource:void 0}}function Jp(){return ci().memoizedState}function tc(u,f,g,b){var E=So();b=b===void 0?null:b,cn.flags|=u,E.memoizedState=aa(1|f,Xp(),g,b)}function br(u,f,g,b){var E=ci();b=b===void 0?null:b;var M=E.memoizedState.inst;ur!==null&&b!==null&&Hm(b,ur.memoizedState.deps)?E.memoizedState=aa(f,M,g,b):(cn.flags|=u,E.memoizedState=aa(1|f,M,g,b))}function q2(u,f){tc(8390656,8,u,f)}function P2(u,f){br(2048,8,u,f)}function rb(u,f){return br(4,2,u,f)}function Ts(u,f){return br(4,4,u,f)}function ib(u,f){if(typeof f=="function"){u=u();var g=f(u);return function(){typeof g=="function"?g():f(null)}}if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function iv(u,f,g){g=g!=null?g.concat([u]):null,br(4,4,ib.bind(null,f,u),g)}function pf(){}function gf(u,f){var g=ci();f=f===void 0?null:f;var b=g.memoizedState;return f!==null&&Hm(f,b[1])?b[0]:(g.memoizedState=[u,f],u)}function ob(u,f){var g=ci();f=f===void 0?null:f;var b=g.memoizedState;if(f!==null&&Hm(f,b[1]))return b[0];if(b=u(),Ju){bt(!0);try{u()}finally{bt(!1)}}return g.memoizedState=[b,f],b}function e0(u,f,g){return g===void 0||(es&1073741824)!==0?u.memoizedState=f:(u.memoizedState=g,u=jb(),cn.lanes|=u,uu|=u,g)}function ab(u,f,g,b){return ao(g,f)?g:hf.current!==null?(u=e0(u,g,b),ao(u,f)||(zi=!0),u):(es&42)===0?(zi=!0,u.memoizedState=g):(u=jb(),cn.lanes|=u,uu|=u,f)}function G2(u,f,g,b,E){var M=fe.p;fe.p=M!==0&&8>M?M:8;var U=W.T,Z={};W.T=Z,t0(u,!1,f,g);try{var ue=E(),De=W.S;if(De!==null&&De(Z,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var Ye=U2(ue,b);mf(u,f,Ye,Oa(u))}else mf(u,f,b,Oa(u))}catch(Xe){mf(u,f,{then:function(){},status:"rejected",reason:Xe},Oa())}finally{fe.p=M,W.T=U}}function BD(){}function ov(u,f,g,b){if(u.tag!==5)throw Error(r(476));var E=V2(u).queue;G2(u,E,f,he,g===null?BD:function(){return Xd(u),g(b)})}function V2(u){var f=u.memoizedState;if(f!==null)return f;f={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:he},next:null};var g={};return f.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:g},next:null},u.memoizedState=f,u=u.alternate,u!==null&&(u.memoizedState=f),f}function Xd(u){var f=V2(u).next.queue;mf(u,f,{},Oa())}function ts(){return Ki(pa)}function sb(){return ci().memoizedState}function Y2(){return ci().memoizedState}function Z2(u){for(var f=u.return;f!==null;){switch(f.tag){case 24:case 3:var g=Oa();u=oa(g);var b=al(f,u,g);b!==null&&(Da(b,f,g),df(b,f,g)),f={cache:Yd()},u.payload=f;return}f=f.return}}function lb(u,f,g){var b=Oa();g={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null},vf(u)?Q2(f,g):(g=Nd(u,f,g,b),g!==null&&(Da(g,u,b),cb(g,f,b)))}function ub(u,f,g){var b=Oa();mf(u,f,g,b)}function mf(u,f,g,b){var E={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null};if(vf(u))Q2(f,E);else{var M=u.alternate;if(u.lanes===0&&(M===null||M.lanes===0)&&(M=f.lastRenderedReducer,M!==null))try{var U=f.lastRenderedState,Z=M(U,g);if(E.hasEagerState=!0,E.eagerState=Z,ao(Z,U))return Yu(u,f,E,0),Mr===null&&ws(),!1}catch{}finally{}if(g=Nd(u,f,E,b),g!==null)return Da(g,u,b),cb(g,f,b),!0}return!1}function t0(u,f,g,b){if(b={lane:2,revertLane:Mf(),action:b,hasEagerState:!1,eagerState:null,next:null},vf(u)){if(f)throw Error(r(479))}else f=Nd(u,g,b,2),f!==null&&Da(f,u,2)}function vf(u){var f=u.alternate;return u===cn||f!==null&&f===cn}function Q2(u,f){Aa=Gp=!0;var g=u.pending;g===null?f.next=f:(f.next=g.next,g.next=f),u.pending=f}function cb(u,f,g){if((g&4194048)!==0){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Zn(u,g)}}var av={readContext:Ki,use:Oi,useCallback:ti,useContext:ti,useEffect:ti,useImperativeHandle:ti,useLayoutEffect:ti,useInsertionEffect:ti,useMemo:ti,useReducer:ti,useRef:ti,useState:ti,useDebugValue:ti,useDeferredValue:ti,useTransition:ti,useSyncExternalStore:ti,useId:ti,useHostTransitionStatus:ti,useFormState:ti,useActionState:ti,useOptimistic:ti,useMemoCache:ti,useCacheRefresh:ti},fb={readContext:Ki,use:Oi,useCallback:function(u,f){return So().memoizedState=[u,f===void 0?null:f],u},useContext:Ki,useEffect:q2,useImperativeHandle:function(u,f,g){g=g!=null?g.concat([u]):null,tc(4194308,4,ib.bind(null,f,u),g)},useLayoutEffect:function(u,f){return tc(4194308,4,u,f)},useInsertionEffect:function(u,f){tc(4,2,u,f)},useMemo:function(u,f){var g=So();f=f===void 0?null:f;var b=u();if(Ju){bt(!0);try{u()}finally{bt(!1)}}return g.memoizedState=[b,f],b},useReducer:function(u,f,g){var b=So();if(g!==void 0){var E=g(f);if(Ju){bt(!0);try{g(f)}finally{bt(!1)}}}else E=f;return b.memoizedState=b.baseState=E,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:E},b.queue=u,u=u.dispatch=lb.bind(null,cn,u),[b.memoizedState,u]},useRef:function(u){var f=So();return u={current:u},f.memoizedState=u},useState:function(u){u=Kp(u);var f=u.queue,g=ub.bind(null,cn,f);return f.dispatch=g,[u.memoizedState,g]},useDebugValue:pf,useDeferredValue:function(u,f){var g=So();return e0(g,u,f)},useTransition:function(){var u=Kp(!1);return u=G2.bind(null,cn,u.queue,!0,!1),So().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,f,g){var b=cn,E=So();if(Wn){if(g===void 0)throw Error(r(407));g=g()}else{if(g=f(),Mr===null)throw Error(r(349));(On&124)!==0||Qm(b,f,g)}E.memoizedState=g;var M={value:g,getSnapshot:f};return E.queue=M,q2(J1.bind(null,b,M,u),[u]),b.flags|=2048,aa(9,Xp(),X1.bind(null,b,M,g,f),null),g},useId:function(){var u=So(),f=Mr.identifierPrefix;if(Wn){var g=ui,b=Es;g=(b&~(1<<32-lt(b)-1)).toString(32)+g,f="«"+f+"R"+g,g=ks++,0<g&&(f+="H"+g.toString(32)),f+="»"}else g=K1++,f="«"+f+"r"+g.toString(32)+"»";return u.memoizedState=f},useHostTransitionStatus:ts,useFormState:nb,useActionState:nb,useOptimistic:function(u){var f=So();f.memoizedState=f.baseState=u;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=g,f=t0.bind(null,cn,!0,g),g.dispatch=f,[u,f]},useMemoCache:Vm,useCacheRefresh:function(){return So().memoizedState=Z2.bind(null,cn)}},db={readContext:Ki,use:Oi,useCallback:gf,useContext:Ki,useEffect:P2,useImperativeHandle:iv,useInsertionEffect:rb,useLayoutEffect:Ts,useMemo:ob,useReducer:Zp,useRef:Jp,useState:function(){return Zp(sl)},useDebugValue:pf,useDeferredValue:function(u,f){var g=ci();return ab(g,ur.memoizedState,u,f)},useTransition:function(){var u=Zp(sl)[0],f=ci().memoizedState;return[typeof u=="boolean"?u:Yp(u),f]},useSyncExternalStore:Qp,useId:sb,useHostTransitionStatus:ts,useFormState:ll,useActionState:ll,useOptimistic:function(u,f){var g=ci();return Wm(g,ur,u,f)},useMemoCache:Vm,useCacheRefresh:Y2},iu={readContext:Ki,use:Oi,useCallback:gf,useContext:Ki,useEffect:P2,useImperativeHandle:iv,useInsertionEffect:rb,useLayoutEffect:Ts,useMemo:ob,useReducer:Zm,useRef:Jp,useState:function(){return Zm(sl)},useDebugValue:pf,useDeferredValue:function(u,f){var g=ci();return ur===null?e0(g,u,f):ab(g,ur.memoizedState,u,f)},useTransition:function(){var u=Zm(sl)[0],f=ci().memoizedState;return[typeof u=="boolean"?u:Yp(u),f]},useSyncExternalStore:Qp,useId:sb,useHostTransitionStatus:ts,useFormState:rv,useActionState:rv,useOptimistic:function(u,f){var g=ci();return ur!==null?Wm(g,ur,u,f):(g.baseState=u,[u,g.queue.dispatch])},useMemoCache:Vm,useCacheRefresh:Y2},yf=null,Jd=0;function sv(u){var f=Jd;return Jd+=1,yf===null&&(yf=[]),G1(yf,u,f)}function xf(u,f){f=f.props.ref,u.ref=f!==void 0?f:null}function wo(u,f){throw f.$$typeof===m?Error(r(525)):(u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u)))}function hb(u){var f=u._init;return f(u._payload)}function sa(u){function f(Ae,xe){if(u){var Oe=Ae.deletions;Oe===null?(Ae.deletions=[xe],Ae.flags|=16):Oe.push(xe)}}function g(Ae,xe){if(!u)return null;for(;xe!==null;)f(Ae,xe),xe=xe.sibling;return null}function b(Ae){for(var xe=new Map;Ae!==null;)Ae.key!==null?xe.set(Ae.key,Ae):xe.set(Ae.index,Ae),Ae=Ae.sibling;return xe}function E(Ae,xe){return Ae=Cs(Ae,xe),Ae.index=0,Ae.sibling=null,Ae}function M(Ae,xe,Oe){return Ae.index=Oe,u?(Oe=Ae.alternate,Oe!==null?(Oe=Oe.index,Oe<xe?(Ae.flags|=67108866,xe):Oe):(Ae.flags|=67108866,xe)):(Ae.flags|=1048576,xe)}function U(Ae){return u&&Ae.alternate===null&&(Ae.flags|=67108866),Ae}function Z(Ae,xe,Oe,Ke){return xe===null||xe.tag!==6?(xe=Ud(Oe,Ae.mode,Ke),xe.return=Ae,xe):(xe=E(xe,Oe),xe.return=Ae,xe)}function ue(Ae,xe,Oe,Ke){var Lt=Oe.type;return Lt===w?Ye(Ae,xe,Oe.props.children,Ke,Oe.key):xe!==null&&(xe.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===G&&hb(Lt)===xe.type)?(xe=E(xe,Oe.props),xf(xe,Oe),xe.return=Ae,xe):(xe=it(Oe.type,Oe.key,Oe.props,null,Ae.mode,Ke),xf(xe,Oe),xe.return=Ae,xe)}function De(Ae,xe,Oe,Ke){return xe===null||xe.tag!==4||xe.stateNode.containerInfo!==Oe.containerInfo||xe.stateNode.implementation!==Oe.implementation?(xe=Jr(Oe,Ae.mode,Ke),xe.return=Ae,xe):(xe=E(xe,Oe.children||[]),xe.return=Ae,xe)}function Ye(Ae,xe,Oe,Ke,Lt){return xe===null||xe.tag!==7?(xe=Qa(Oe,Ae.mode,Ke,Lt),xe.return=Ae,xe):(xe=E(xe,Oe),xe.return=Ae,xe)}function Xe(Ae,xe,Oe){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return xe=Ud(""+xe,Ae.mode,Oe),xe.return=Ae,xe;if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case x:return Oe=it(xe.type,xe.key,xe.props,null,Ae.mode,Oe),xf(Oe,xe),Oe.return=Ae,Oe;case S:return xe=Jr(xe,Ae.mode,Oe),xe.return=Ae,xe;case G:var Ke=xe._init;return xe=Ke(xe._payload),Xe(Ae,xe,Oe)}if(me(xe)||ee(xe))return xe=Qa(xe,Ae.mode,Oe,null),xe.return=Ae,xe;if(typeof xe.then=="function")return Xe(Ae,sv(xe),Oe);if(xe.$$typeof===O)return Xe(Ae,zp(Ae,xe),Oe);wo(Ae,xe)}return null}function $e(Ae,xe,Oe,Ke){var Lt=xe!==null?xe.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Lt!==null?null:Z(Ae,xe,""+Oe,Ke);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case x:return Oe.key===Lt?ue(Ae,xe,Oe,Ke):null;case S:return Oe.key===Lt?De(Ae,xe,Oe,Ke):null;case G:return Lt=Oe._init,Oe=Lt(Oe._payload),$e(Ae,xe,Oe,Ke)}if(me(Oe)||ee(Oe))return Lt!==null?null:Ye(Ae,xe,Oe,Ke,null);if(typeof Oe.then=="function")return $e(Ae,xe,sv(Oe),Ke);if(Oe.$$typeof===O)return $e(Ae,xe,zp(Ae,Oe),Ke);wo(Ae,Oe)}return null}function ze(Ae,xe,Oe,Ke,Lt){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"||typeof Ke=="bigint")return Ae=Ae.get(Oe)||null,Z(xe,Ae,""+Ke,Lt);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case x:return Ae=Ae.get(Ke.key===null?Oe:Ke.key)||null,ue(xe,Ae,Ke,Lt);case S:return Ae=Ae.get(Ke.key===null?Oe:Ke.key)||null,De(xe,Ae,Ke,Lt);case G:var En=Ke._init;return Ke=En(Ke._payload),ze(Ae,xe,Oe,Ke,Lt)}if(me(Ke)||ee(Ke))return Ae=Ae.get(Oe)||null,Ye(xe,Ae,Ke,Lt,null);if(typeof Ke.then=="function")return ze(Ae,xe,Oe,sv(Ke),Lt);if(Ke.$$typeof===O)return ze(Ae,xe,Oe,zp(xe,Ke),Lt);wo(xe,Ke)}return null}function Yt(Ae,xe,Oe,Ke){for(var Lt=null,En=null,Pt=xe,Jt=xe=0,eo=null;Pt!==null&&Jt<Oe.length;Jt++){Pt.index>Jt?(eo=Pt,Pt=null):eo=Pt.sibling;var qn=$e(Ae,Pt,Oe[Jt],Ke);if(qn===null){Pt===null&&(Pt=eo);break}u&&Pt&&qn.alternate===null&&f(Ae,Pt),xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn,Pt=eo}if(Jt===Oe.length)return g(Ae,Pt),Wn&&Nn(Ae,Jt),Lt;if(Pt===null){for(;Jt<Oe.length;Jt++)Pt=Xe(Ae,Oe[Jt],Ke),Pt!==null&&(xe=M(Pt,xe,Jt),En===null?Lt=Pt:En.sibling=Pt,En=Pt);return Wn&&Nn(Ae,Jt),Lt}for(Pt=b(Pt);Jt<Oe.length;Jt++)eo=ze(Pt,Ae,Jt,Oe[Jt],Ke),eo!==null&&(u&&eo.alternate!==null&&Pt.delete(eo.key===null?Jt:eo.key),xe=M(eo,xe,Jt),En===null?Lt=eo:En.sibling=eo,En=eo);return u&&Pt.forEach(function(xc){return f(Ae,xc)}),Wn&&Nn(Ae,Jt),Lt}function Zt(Ae,xe,Oe,Ke){if(Oe==null)throw Error(r(151));for(var Lt=null,En=null,Pt=xe,Jt=xe=0,eo=null,qn=Oe.next();Pt!==null&&!qn.done;Jt++,qn=Oe.next()){Pt.index>Jt?(eo=Pt,Pt=null):eo=Pt.sibling;var xc=$e(Ae,Pt,qn.value,Ke);if(xc===null){Pt===null&&(Pt=eo);break}u&&Pt&&xc.alternate===null&&f(Ae,Pt),xe=M(xc,xe,Jt),En===null?Lt=xc:En.sibling=xc,En=xc,Pt=eo}if(qn.done)return g(Ae,Pt),Wn&&Nn(Ae,Jt),Lt;if(Pt===null){for(;!qn.done;Jt++,qn=Oe.next())qn=Xe(Ae,qn.value,Ke),qn!==null&&(xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn);return Wn&&Nn(Ae,Jt),Lt}for(Pt=b(Pt);!qn.done;Jt++,qn=Oe.next())qn=ze(Pt,Ae,Jt,qn.value,Ke),qn!==null&&(u&&qn.alternate!==null&&Pt.delete(qn.key===null?Jt:qn.key),xe=M(qn,xe,Jt),En===null?Lt=qn:En.sibling=qn,En=qn);return u&&Pt.forEach(function(VD){return f(Ae,VD)}),Wn&&Nn(Ae,Jt),Lt}function or(Ae,xe,Oe,Ke){if(typeof Oe=="object"&&Oe!==null&&Oe.type===w&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case x:e:{for(var Lt=Oe.key;xe!==null;){if(xe.key===Lt){if(Lt=Oe.type,Lt===w){if(xe.tag===7){g(Ae,xe.sibling),Ke=E(xe,Oe.props.children),Ke.return=Ae,Ae=Ke;break e}}else if(xe.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===G&&hb(Lt)===xe.type){g(Ae,xe.sibling),Ke=E(xe,Oe.props),xf(Ke,Oe),Ke.return=Ae,Ae=Ke;break e}g(Ae,xe);break}else f(Ae,xe);xe=xe.sibling}Oe.type===w?(Ke=Qa(Oe.props.children,Ae.mode,Ke,Oe.key),Ke.return=Ae,Ae=Ke):(Ke=it(Oe.type,Oe.key,Oe.props,null,Ae.mode,Ke),xf(Ke,Oe),Ke.return=Ae,Ae=Ke)}return U(Ae);case S:e:{for(Lt=Oe.key;xe!==null;){if(xe.key===Lt)if(xe.tag===4&&xe.stateNode.containerInfo===Oe.containerInfo&&xe.stateNode.implementation===Oe.implementation){g(Ae,xe.sibling),Ke=E(xe,Oe.children||[]),Ke.return=Ae,Ae=Ke;break e}else{g(Ae,xe);break}else f(Ae,xe);xe=xe.sibling}Ke=Jr(Oe,Ae.mode,Ke),Ke.return=Ae,Ae=Ke}return U(Ae);case G:return Lt=Oe._init,Oe=Lt(Oe._payload),or(Ae,xe,Oe,Ke)}if(me(Oe))return Yt(Ae,xe,Oe,Ke);if(ee(Oe)){if(Lt=ee(Oe),typeof Lt!="function")throw Error(r(150));return Oe=Lt.call(Oe),Zt(Ae,xe,Oe,Ke)}if(typeof Oe.then=="function")return or(Ae,xe,sv(Oe),Ke);if(Oe.$$typeof===O)return or(Ae,xe,zp(Ae,Oe),Ke);wo(Ae,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint"?(Oe=""+Oe,xe!==null&&xe.tag===6?(g(Ae,xe.sibling),Ke=E(xe,Oe),Ke.return=Ae,Ae=Ke):(g(Ae,xe),Ke=Ud(Oe,Ae.mode,Ke),Ke.return=Ae,Ae=Ke),U(Ae)):g(Ae,xe)}return function(Ae,xe,Oe,Ke){try{Jd=0;var Lt=or(Ae,xe,Oe,Ke);return yf=null,Lt}catch(Pt){if(Pt===Xu||Pt===jp)throw Pt;var En=ra(29,Pt,null,Ae.mode);return En.lanes=Ke,En.return=Ae,En}finally{}}}var bf=sa(!0),ul=sa(!1),Ta=te(null),Co=null;function ou(u){var f=u.alternate;P(_r,_r.current&1),P(Ta,u),Co===null&&(f===null||hf.current!==null||f.memoizedState!==null)&&(Co=u)}function cl(u){if(u.tag===22){if(P(_r,_r.current),P(Ta,u),Co===null){var f=u.alternate;f!==null&&f.memoizedState!==null&&(Co=u)}}else fl()}function fl(){P(_r,_r.current),P(Ta,Ta.current)}function Os(u){le(Ta),Co===u&&(Co=null),le(_r)}var _r=te(0);function n0(u){for(var f=u;f!==null;){if(f.tag===13){var g=f.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||E0(g)))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}function nc(u,f,g,b){f=u.memoizedState,g=g(b,f),g=g==null?f:y({},f,g),u.memoizedState=g,u.lanes===0&&(u.updateQueue.baseState=g)}var lv={enqueueSetState:function(u,f,g){u=u._reactInternals;var b=Oa(),E=oa(b);E.payload=f,g!=null&&(E.callback=g),f=al(u,E,b),f!==null&&(Da(f,u,b),df(f,u,b))},enqueueReplaceState:function(u,f,g){u=u._reactInternals;var b=Oa(),E=oa(b);E.tag=1,E.payload=f,g!=null&&(E.callback=g),f=al(u,E,b),f!==null&&(Da(f,u,b),df(f,u,b))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var g=Oa(),b=oa(g);b.tag=2,f!=null&&(b.callback=f),f=al(u,b,g),f!==null&&(Da(f,u,g),df(f,u,g))}};function eh(u,f,g,b,E,M,U){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(b,M,U):f.prototype&&f.prototype.isPureReactComponent?!qu(g,b)||!qu(E,M):!0}function _f(u,f,g,b){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(g,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(g,b),f.state!==u&&lv.enqueueReplaceState(f,f.state,null)}function rc(u,f){var g=f;if("ref"in f){g={};for(var b in f)b!=="ref"&&(g[b]=f[b])}if(u=u.defaultProps){g===f&&(g=y({},g));for(var E in u)g[E]===void 0&&(g[E]=u[E])}return g}var r0=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function th(u){r0(u)}function pb(u){console.error(u)}function i0(u){r0(u)}function o0(u,f){try{var g=u.onUncaughtError;g(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function gb(u,f,g){try{var b=u.onCaughtError;b(g.value,{componentStack:g.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function mb(u,f,g){return g=oa(g),g.tag=3,g.payload={element:null},g.callback=function(){o0(u,f)},g}function vb(u){return u=oa(u),u.tag=3,u}function la(u,f,g,b){var E=g.type.getDerivedStateFromError;if(typeof E=="function"){var M=b.value;u.payload=function(){return E(M)},u.callback=function(){gb(f,g,b)}}var U=g.stateNode;U!==null&&typeof U.componentDidCatch=="function"&&(u.callback=function(){gb(f,g,b),typeof E!="function"&&(sc===null?sc=new Set([this]):sc.add(this));var Z=b.stack;this.componentDidCatch(b.value,{componentStack:Z!==null?Z:""})})}function K2(u,f,g,b,E){if(g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=g.alternate,f!==null&&Gd(f,g,E,!0),g=Ta.current,g!==null){switch(g.tag){case 13:return Co===null?Df():g.alternate===null&&pi===0&&(pi=3),g.flags&=-257,g.flags|=65536,g.lanes=E,b===Nm?g.flags|=16384:(f=g.updateQueue,f===null?g.updateQueue=new Set([b]):f.add(b),Bv(u,b,E)),!1;case 22:return g.flags|=65536,b===Nm?g.flags|=16384:(f=g.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},g.updateQueue=f):(g=f.retryQueue,g===null?f.retryQueue=new Set([b]):g.add(b)),Bv(u,b,E)),!1}throw Error(r(435,g.tag))}return Bv(u,b,E),Df(),!1}if(Wn)return f=Ta.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=E,b!==uf&&(u=Error(r(422),{cause:b}),Pd(Ea(u,g)))):(b!==uf&&(f=Error(r(423),{cause:b}),Pd(Ea(f,g))),u=u.current.alternate,u.flags|=65536,E&=-E,u.lanes|=E,b=Ea(b,g),E=mb(u.stateNode,b,E),Z1(u,E),pi!==4&&(pi=2)),!1;var M=Error(r(520),{cause:b});if(M=Ea(M,g),lh===null?lh=[M]:lh.push(M),pi!==4&&(pi=2),f===null)return!0;b=Ea(b,g),g=f;do{switch(g.tag){case 3:return g.flags|=65536,u=E&-E,g.lanes|=u,u=mb(g.stateNode,b,u),Z1(g,u),!1;case 1:if(f=g.type,M=g.stateNode,(g.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(sc===null||!sc.has(M))))return g.flags|=65536,E&=-E,g.lanes|=E,E=vb(E),la(E,u,g,b),Z1(g,E),!1}g=g.return}while(g!==null);return!1}var fi=Error(r(461)),zi=!1;function Xi(u,f,g,b){f.child=u===null?ul(f,null,g,b):bf(f,u.child,g,b)}function W2(u,f,g,b,E){g=g.render;var M=f.ref;if("ref"in b){var U={};for(var Z in b)Z!=="ref"&&(U[Z]=b[Z])}else U=b;return Ku(f),b=qm(u,f,g,U,M,E),Z=Pm(),u!==null&&!zi?(Wd(u,f,E),dl(u,f,E)):(Wn&&Z&&lf(f),f.flags|=1,Xi(u,f,b,E),f.child)}function au(u,f,g,b,E){if(u===null){var M=g.type;return typeof M=="function"&&!Ip(M)&&M.defaultProps===void 0&&g.compare===null?(f.tag=15,f.type=M,Sf(u,f,M,b,E)):(u=it(g.type,null,b,f,f.mode,E),u.ref=f.ref,u.return=f,f.child=u)}if(M=u.child,!yv(u,E)){var U=M.memoizedProps;if(g=g.compare,g=g!==null?g:qu,g(U,b)&&u.ref===f.ref)return dl(u,f,E)}return f.flags|=1,u=Cs(M,b),u.ref=f.ref,u.return=f,f.child=u}function Sf(u,f,g,b,E){if(u!==null){var M=u.memoizedProps;if(qu(M,b)&&u.ref===f.ref)if(zi=!1,f.pendingProps=b=M,yv(u,E))(u.flags&131072)!==0&&(zi=!0);else return f.lanes=u.lanes,dl(u,f,E)}return cv(u,f,g,b,E)}function uv(u,f,g){var b=f.pendingProps,E=b.children,M=u!==null?u.memoizedState:null;if(b.mode==="hidden"){if((f.flags&128)!==0){if(b=M!==null?M.baseLanes|g:g,u!==null){for(E=f.child=u.child,M=0;E!==null;)M=M|E.lanes|E.childLanes,E=E.sibling;f.childLanes=M&~b}else f.childLanes=0,f.child=null;return wf(u,f,b,g)}if((g&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},u!==null&&cf(f,M!==null?M.cachePool:null),M!==null?Wi(f,M):Qd(),cl(f);else return f.lanes=f.childLanes=536870912,wf(u,f,M!==null?M.baseLanes|g:g,g)}else M!==null?(cf(f,M.cachePool),Wi(f,M),fl(),f.memoizedState=null):(u!==null&&cf(f,null),Qd(),fl());return Xi(u,f,E,g),f.child}function wf(u,f,g,b){var E=Up();return E=E===null?null:{parent:Li._currentValue,pool:E},f.memoizedState={baseLanes:g,cachePool:E},u!==null&&cf(f,null),Qd(),cl(f),u!==null&&Gd(u,f,b,!0),null}function a0(u,f){var g=f.ref;if(g===null)u!==null&&u.ref!==null&&(f.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(r(284));(u===null||u.ref!==g)&&(f.flags|=4194816)}}function cv(u,f,g,b,E){return Ku(f),g=qm(u,f,g,b,void 0,E),b=Pm(),u!==null&&!zi?(Wd(u,f,E),dl(u,f,E)):(Wn&&b&&lf(f),f.flags|=1,Xi(u,f,g,E),f.child)}function yb(u,f,g,b,E,M){return Ku(f),f.updateQueue=null,g=W1(f,b,g,E),ec(u),b=Pm(),u!==null&&!zi?(Wd(u,f,M),dl(u,f,M)):(Wn&&b&&lf(f),f.flags|=1,Xi(u,f,g,M),f.child)}function fv(u,f,g,b,E){if(Ku(f),f.stateNode===null){var M=Fd,U=g.contextType;typeof U=="object"&&U!==null&&(M=Ki(U)),M=new g(b,M),f.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=lv,f.stateNode=M,M._reactInternals=f,M=f.stateNode,M.props=b,M.state=f.memoizedState,M.refs={},Fm(f),U=g.contextType,M.context=typeof U=="object"&&U!==null?Ki(U):Fd,M.state=f.memoizedState,U=g.getDerivedStateFromProps,typeof U=="function"&&(nc(f,g,U,b),M.state=f.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(U=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),U!==M.state&&lv.enqueueReplaceState(M,M.state,null),nu(f,b,M,E),Zd(),M.state=f.memoizedState),typeof M.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(u===null){M=f.stateNode;var Z=f.memoizedProps,ue=rc(g,Z);M.props=ue;var De=M.context,Ye=g.contextType;U=Fd,typeof Ye=="object"&&Ye!==null&&(U=Ki(Ye));var Xe=g.getDerivedStateFromProps;Ye=typeof Xe=="function"||typeof M.getSnapshotBeforeUpdate=="function",Z=f.pendingProps!==Z,Ye||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Z||De!==U)&&_f(f,M,b,U),ol=!1;var $e=f.memoizedState;M.state=$e,nu(f,b,M,E),Zd(),De=f.memoizedState,Z||$e!==De||ol?(typeof Xe=="function"&&(nc(f,g,Xe,b),De=f.memoizedState),(ue=ol||eh(f,g,ue,b,$e,De,U))?(Ye||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(f.flags|=4194308)):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=De),M.props=b,M.state=De,M.context=U,b=ue):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{M=f.stateNode,Um(u,f),U=f.memoizedProps,Ye=rc(g,U),M.props=Ye,Xe=f.pendingProps,$e=M.context,De=g.contextType,ue=Fd,typeof De=="object"&&De!==null&&(ue=Ki(De)),Z=g.getDerivedStateFromProps,(De=typeof Z=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(U!==Xe||$e!==ue)&&_f(f,M,b,ue),ol=!1,$e=f.memoizedState,M.state=$e,nu(f,b,M,E),Zd();var ze=f.memoizedState;U!==Xe||$e!==ze||ol||u!==null&&u.dependencies!==null&&Np(u.dependencies)?(typeof Z=="function"&&(nc(f,g,Z,b),ze=f.memoizedState),(Ye=ol||eh(f,g,Ye,b,$e,ze,ue)||u!==null&&u.dependencies!==null&&Np(u.dependencies))?(De||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(b,ze,ue),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(b,ze,ue)),typeof M.componentDidUpdate=="function"&&(f.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof M.componentDidUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=ze),M.props=b,M.state=ze,M.context=ue,b=Ye):(typeof M.componentDidUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||U===u.memoizedProps&&$e===u.memoizedState||(f.flags|=1024),b=!1)}return M=b,a0(u,f),b=(f.flags&128)!==0,M||b?(M=f.stateNode,g=b&&typeof g.getDerivedStateFromError!="function"?null:M.render(),f.flags|=1,u!==null&&b?(f.child=bf(f,u.child,null,E),f.child=bf(f,null,g,E)):Xi(u,f,g,E),f.memoizedState=M.state,u=f.child):u=dl(u,f,E),u}function dv(u,f,g,b){return qd(),f.flags|=256,Xi(u,f,g,b),f.child}var hv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xb(u){return{baseLanes:u,cachePool:$m()}}function bb(u,f,g){return u=u!==null?u.childLanes&~g:0,f&&(u|=is),u}function _b(u,f,g){var b=f.pendingProps,E=!1,M=(f.flags&128)!==0,U;if((U=M)||(U=u!==null&&u.memoizedState===null?!1:(_r.current&2)!==0),U&&(E=!0,f.flags&=-129),U=(f.flags&32)!==0,f.flags&=-33,u===null){if(Wn){if(E?ou(f):fl(),Wn){var Z=rr,ue;if(ue=Z){e:{for(ue=Z,Z=Xa;ue.nodeType!==8;){if(!Z){Z=null;break e}if(ue=Ms(ue.nextSibling),ue===null){Z=null;break e}}Z=ue}Z!==null?(f.memoizedState={dehydrated:Z,treeContext:Xl!==null?{id:Es,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},ue=ra(18,null,null,0),ue.stateNode=Z,ue.return=f,f.child=ue,xi=f,rr=null,ue=!0):ue=!1}ue||Jl(f)}if(Z=f.memoizedState,Z!==null&&(Z=Z.dehydrated,Z!==null))return E0(Z)?f.lanes=32:f.lanes=536870912,null;Os(f)}return Z=b.children,b=b.fallback,E?(fl(),E=f.mode,Z=gv({mode:"hidden",children:Z},E),b=Qa(b,E,g,null),Z.return=f,b.return=f,Z.sibling=b,f.child=Z,E=f.child,E.memoizedState=xb(g),E.childLanes=bb(u,U,g),f.memoizedState=hv,b):(ou(f),pv(f,Z))}if(ue=u.memoizedState,ue!==null&&(Z=ue.dehydrated,Z!==null)){if(M)f.flags&256?(ou(f),f.flags&=-257,f=ic(u,f,g)):f.memoizedState!==null?(fl(),f.child=u.child,f.flags|=128,f=null):(fl(),E=b.fallback,Z=f.mode,b=gv({mode:"visible",children:b.children},Z),E=Qa(E,Z,g,null),E.flags|=2,b.return=f,E.return=f,b.sibling=E,f.child=b,bf(f,u.child,null,g),b=f.child,b.memoizedState=xb(g),b.childLanes=bb(u,U,g),f.memoizedState=hv,f=E);else if(ou(f),E0(Z)){if(U=Z.nextSibling&&Z.nextSibling.dataset,U)var De=U.dgst;U=De,b=Error(r(419)),b.stack="",b.digest=U,Pd({value:b,source:null,stack:null}),f=ic(u,f,g)}else if(zi||Gd(u,f,g,!1),U=(g&u.childLanes)!==0,zi||U){if(U=Mr,U!==null&&(b=g&-g,b=(b&42)!==0?1:nr(b),b=(b&(U.suspendedLanes|g))!==0?0:b,b!==0&&b!==ue.retryLane))throw ue.retryLane=b,el(u,b),Da(U,u,b),fi;Z.data==="$?"||Df(),f=ic(u,f,g)}else Z.data==="$?"?(f.flags|=192,f.child=u.child,f=null):(u=ue.treeContext,rr=Ms(Z.nextSibling),xi=f,Wn=!0,Wa=null,Xa=!1,u!==null&&(Ka[ia++]=Es,Ka[ia++]=ui,Ka[ia++]=Xl,Es=u.id,ui=u.overflow,Xl=f),f=pv(f,b.children),f.flags|=4096);return f}return E?(fl(),E=b.fallback,Z=f.mode,ue=u.child,De=ue.sibling,b=Cs(ue,{mode:"hidden",children:b.children}),b.subtreeFlags=ue.subtreeFlags&65011712,De!==null?E=Cs(De,E):(E=Qa(E,Z,g,null),E.flags|=2),E.return=f,b.return=f,b.sibling=E,f.child=b,b=E,E=f.child,Z=u.child.memoizedState,Z===null?Z=xb(g):(ue=Z.cachePool,ue!==null?(De=Li._currentValue,ue=ue.parent!==De?{parent:De,pool:De}:ue):ue=$m(),Z={baseLanes:Z.baseLanes|g,cachePool:ue}),E.memoizedState=Z,E.childLanes=bb(u,U,g),f.memoizedState=hv,b):(ou(f),g=u.child,u=g.sibling,g=Cs(g,{mode:"visible",children:b.children}),g.return=f,g.sibling=null,u!==null&&(U=f.deletions,U===null?(f.deletions=[u],f.flags|=16):U.push(u)),f.child=g,f.memoizedState=null,g)}function pv(u,f){return f=gv({mode:"visible",children:f},u.mode),f.return=u,u.child=f}function gv(u,f){return u=ra(22,u,null,f),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function ic(u,f,g){return bf(f,u.child,null,g),u=pv(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function s0(u,f,g){u.lanes|=f;var b=u.alternate;b!==null&&(b.lanes|=f),Dm(u.return,f,g)}function mv(u,f,g,b,E){var M=u.memoizedState;M===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:E}:(M.isBackwards=f,M.rendering=null,M.renderingStartTime=0,M.last=b,M.tail=g,M.tailMode=E)}function vv(u,f,g){var b=f.pendingProps,E=b.revealOrder,M=b.tail;if(Xi(u,f,b.children,g),b=_r.current,(b&2)!==0)b=b&1|2,f.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&s0(u,g,f);else if(u.tag===19)s0(u,g,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}b&=1}switch(P(_r,b),E){case"forwards":for(g=f.child,E=null;g!==null;)u=g.alternate,u!==null&&n0(u)===null&&(E=g),g=g.sibling;g=E,g===null?(E=f.child,f.child=null):(E=g.sibling,g.sibling=null),mv(f,!1,E,g,M);break;case"backwards":for(g=null,E=f.child,f.child=null;E!==null;){if(u=E.alternate,u!==null&&n0(u)===null){f.child=E;break}u=E.sibling,E.sibling=g,g=E,E=u}mv(f,!0,g,null,M);break;case"together":mv(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function dl(u,f,g){if(u!==null&&(f.dependencies=u.dependencies),uu|=f.lanes,(g&f.childLanes)===0)if(u!==null){if(Gd(u,f,g,!1),(g&f.childLanes)===0)return null}else return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,g=Cs(u,u.pendingProps),f.child=g,g.return=f;u.sibling!==null;)u=u.sibling,g=g.sibling=Cs(u,u.pendingProps),g.return=f;g.sibling=null}return f.child}function yv(u,f){return(u.lanes&f)!==0?!0:(u=u.dependencies,!!(u!==null&&Np(u)))}function X2(u,f,g){switch(f.tag){case 3:Ze(f,f.stateNode.containerInfo),tu(f,Li,u.memoizedState.cache),qd();break;case 27:case 5:Bt(f);break;case 4:Ze(f,f.stateNode.containerInfo);break;case 10:tu(f,f.type,f.memoizedProps.value);break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(ou(f),f.flags|=128,null):(g&f.child.childLanes)!==0?_b(u,f,g):(ou(f),u=dl(u,f,g),u!==null?u.sibling:null);ou(f);break;case 19:var E=(u.flags&128)!==0;if(b=(g&f.childLanes)!==0,b||(Gd(u,f,g,!1),b=(g&f.childLanes)!==0),E){if(b)return vv(u,f,g);f.flags|=128}if(E=f.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),P(_r,_r.current),b)break;return null;case 22:case 23:return f.lanes=0,uv(u,f,g);case 24:tu(f,Li,u.memoizedState.cache)}return dl(u,f,g)}function J2(u,f,g){if(u!==null)if(u.memoizedProps!==f.pendingProps)zi=!0;else{if(!yv(u,g)&&(f.flags&128)===0)return zi=!1,X2(u,f,g);zi=(u.flags&131072)!==0}else zi=!1,Wn&&(f.flags&1048576)!==0&&Om(f,jd,f.index);switch(f.lanes=0,f.tag){case 16:e:{u=f.pendingProps;var b=f.elementType,E=b._init;if(b=E(b._payload),f.type=b,typeof b=="function")Ip(b)?(u=rc(b,u),f.tag=1,f=fv(null,f,b,u,g)):(f.tag=0,f=cv(null,f,b,u,g));else{if(b!=null){if(E=b.$$typeof,E===I){f.tag=11,f=W2(null,f,b,u,g);break e}else if(E===q){f.tag=14,f=au(null,f,b,u,g);break e}}throw f=J(b)||b,Error(r(306,f,""))}}return f;case 0:return cv(u,f,f.type,f.pendingProps,g);case 1:return b=f.type,E=rc(b,f.pendingProps),fv(u,f,b,E,g);case 3:e:{if(Ze(f,f.stateNode.containerInfo),u===null)throw Error(r(387));b=f.pendingProps;var M=f.memoizedState;E=M.element,Um(u,f),nu(f,b,null,g);var U=f.memoizedState;if(b=U.cache,tu(f,Li,b),b!==M.cache&&q1(f,[Li],g,!0),Zd(),b=U.element,M.isDehydrated)if(M={element:b,isDehydrated:!1,cache:U.cache},f.updateQueue.baseState=M,f.memoizedState=M,f.flags&256){f=dv(u,f,b,g);break e}else if(b!==E){E=Ea(Error(r(424)),f),Pd(E),f=dv(u,f,b,g);break e}else{switch(u=f.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(rr=Ms(u.firstChild),xi=f,Wn=!0,Wa=null,Xa=!0,g=ul(f,null,b,g),f.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(qd(),b===E){f=dl(u,f,g);break e}Xi(u,f,b,g)}f=f.child}return f;case 26:return a0(u,f),u===null?(g=gk(f.type,null,f.pendingProps,null))?f.memoizedState=g:Wn||(g=f.type,u=f.pendingProps,b=as(Le.current).createElement(g),b[on]=f,b[vn]=u,tn(b,g,u),Kn(b),f.stateNode=b):f.memoizedState=gk(f.type,u.memoizedProps,f.pendingProps,u.memoizedState),null;case 27:return Bt(f),u===null&&Wn&&(b=f.stateNode=Dt(f.type,f.pendingProps,Le.current),xi=f,Xa=!0,E=rr,hc(f.type)?(pc=E,rr=Ms(b.firstChild)):rr=E),Xi(u,f,f.pendingProps.children,g),a0(u,f),u===null&&(f.flags|=4194304),f.child;case 5:return u===null&&Wn&&((E=b=rr)&&(b=bh(b,f.type,f.pendingProps,Xa),b!==null?(f.stateNode=b,xi=f,rr=Ms(b.firstChild),Xa=!1,E=!0):E=!1),E||Jl(f)),Bt(f),E=f.type,M=f.pendingProps,U=u!==null?u.memoizedProps:null,b=M.children,_l(E,M)?b=null:U!==null&&_l(E,U)&&(f.flags|=32),f.memoizedState!==null&&(E=qm(u,f,j2,null,null,g),pa._currentValue=E),a0(u,f),Xi(u,f,b,g),f.child;case 6:return u===null&&Wn&&((u=g=rr)&&(g=qD(g,f.pendingProps,Xa),g!==null?(f.stateNode=g,xi=f,rr=null,u=!0):u=!1),u||Jl(f)),null;case 13:return _b(u,f,g);case 4:return Ze(f,f.stateNode.containerInfo),b=f.pendingProps,u===null?f.child=bf(f,null,b,g):Xi(u,f,b,g),f.child;case 11:return W2(u,f,f.type,f.pendingProps,g);case 7:return Xi(u,f,f.pendingProps,g),f.child;case 8:return Xi(u,f,f.pendingProps.children,g),f.child;case 12:return Xi(u,f,f.pendingProps.children,g),f.child;case 10:return b=f.pendingProps,tu(f,f.type,b.value),Xi(u,f,b.children,g),f.child;case 9:return E=f.type._context,b=f.pendingProps.children,Ku(f),E=Ki(E),b=b(E),f.flags|=1,Xi(u,f,b,g),f.child;case 14:return au(u,f,f.type,f.pendingProps,g);case 15:return Sf(u,f,f.type,f.pendingProps,g);case 19:return vv(u,f,g);case 31:return b=f.pendingProps,g=f.mode,b={mode:b.mode,children:b.children},u===null?(g=gv(b,g),g.ref=f.ref,f.child=g,g.return=f,f=g):(g=Cs(u.child,b),g.ref=f.ref,f.child=g,g.return=f,f=g),f;case 22:return uv(u,f,g);case 24:return Ku(f),b=Ki(Li),u===null?(E=Up(),E===null&&(E=Mr,M=Yd(),E.pooledCache=M,M.refCount++,M!==null&&(E.pooledCacheLanes|=g),E=M),f.memoizedState={parent:b,cache:E},Fm(f),tu(f,Li,E)):((u.lanes&g)!==0&&(Um(u,f),nu(f,null,null,g),Zd()),E=u.memoizedState,M=f.memoizedState,E.parent!==b?(E={parent:b,cache:b},f.memoizedState=E,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=E),tu(f,Li,b)):(b=M.cache,tu(f,Li,b),b!==E.cache&&q1(f,[Li],g,!0))),Xi(u,f,f.pendingProps.children,g),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function hl(u){u.flags|=4}function nh(u,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!i_(f)){if(f=Ta.current,f!==null&&((On&4194048)===On?Co!==null:(On&62914560)!==On&&(On&536870912)===0||f!==Co))throw ff=Nm,Lm;u.flags|=8192}}function l0(u,f){f!==null&&(u.flags|=4),u.flags&16384&&(f=u.tag!==22?pr():536870912,u.lanes|=f,sh|=f)}function rh(u,f){if(!Wn)switch(u.tailMode){case"hidden":f=u.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?u.tail=null:g.sibling=null;break;case"collapsed":g=u.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:b.sibling=null}}function Xt(u){var f=u.alternate!==null&&u.alternate.child===u.child,g=0,b=0;if(f)for(var E=u.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags&65011712,b|=E.flags&65011712,E.return=u,E=E.sibling;else for(E=u.child;E!==null;)g|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=u,E=E.sibling;return u.subtreeFlags|=b,u.childLanes=g,f}function Sb(u,f,g){var b=f.pendingProps;switch(tl(f),f.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(f),null;case 1:return Xt(f),null;case 3:return g=f.stateNode,b=null,u!==null&&(b=u.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),nl(Li),nt(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(u===null||u.child===null)&&(Hd(f)?hl(f):u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,H1())),Xt(f),null;case 26:return g=f.memoizedState,u===null?(hl(f),g!==null?(Xt(f),nh(f,g)):(Xt(f),f.flags&=-16777217)):g?g!==u.memoizedState?(hl(f),Xt(f),nh(f,g)):(Xt(f),f.flags&=-16777217):(u.memoizedProps!==b&&hl(f),Xt(f),f.flags&=-16777217),null;case 27:zt(f),g=Le.current;var E=f.type;if(u!==null&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xt(f),null}u=ve.current,Hd(f)?$p(f):(u=Dt(E,b,g),f.stateNode=u,hl(f))}return Xt(f),null;case 5:if(zt(f),g=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xt(f),null}if(u=ve.current,Hd(f))$p(f);else{switch(E=as(Le.current),u){case 1:u=E.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:u=E.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":u=E.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":u=E.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":u=E.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof b.is=="string"?E.createElement("select",{is:b.is}):E.createElement("select"),b.multiple?u.multiple=!0:b.size&&(u.size=b.size);break;default:u=typeof b.is=="string"?E.createElement(g,{is:b.is}):E.createElement(g)}}u[on]=f,u[vn]=b;e:for(E=f.child;E!==null;){if(E.tag===5||E.tag===6)u.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===f)break e;for(;E.sibling===null;){if(E.return===null||E.return===f)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}f.stateNode=u;e:switch(tn(u,g,b),g){case"button":case"input":case"select":case"textarea":u=!!b.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&hl(f)}}return Xt(f),f.flags&=-16777217,null;case 6:if(u&&f.stateNode!=null)u.memoizedProps!==b&&hl(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(r(166));if(u=Le.current,Hd(f)){if(u=f.stateNode,g=f.memoizedProps,b=null,E=xi,E!==null)switch(E.tag){case 27:case 5:b=E.memoizedProps}u[on]=f,u=!!(u.nodeValue===g||b!==null&&b.suppressHydrationWarning===!0||e_(u.nodeValue,g)),u||Jl(f)}else u=as(u).createTextNode(b),u[on]=f,f.stateNode=u}return Xt(f),null;case 13:if(b=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(E=Hd(f),b!==null&&b.dehydrated!==null){if(u===null){if(!E)throw Error(r(318));if(E=f.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[on]=f}else qd(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Xt(f),E=!1}else E=H1(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=E),E=!0;if(!E)return f.flags&256?(Os(f),f):(Os(f),null)}if(Os(f),(f.flags&128)!==0)return f.lanes=g,f;if(g=b!==null,u=u!==null&&u.memoizedState!==null,g){b=f.child,E=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(E=b.alternate.memoizedState.cachePool.pool);var M=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(M=b.memoizedState.cachePool.pool),M!==E&&(b.flags|=2048)}return g!==u&&g&&(f.child.flags|=8192),l0(f,f.updateQueue),Xt(f),null;case 4:return nt(),u===null&&Xb(f.stateNode.containerInfo),Xt(f),null;case 10:return nl(f.type),Xt(f),null;case 19:if(le(_r),E=f.memoizedState,E===null)return Xt(f),null;if(b=(f.flags&128)!==0,M=E.rendering,M===null)if(b)rh(E,!1);else{if(pi!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if(M=n0(u),M!==null){for(f.flags|=128,rh(E,!1),u=M.updateQueue,f.updateQueue=u,l0(f,u),f.subtreeFlags=0,u=g,g=f.child;g!==null;)Cn(g,u),g=g.sibling;return P(_r,_r.current&1|2),f.child}u=u.sibling}E.tail!==null&&Et()>kv&&(f.flags|=128,b=!0,rh(E,!1),f.lanes=4194304)}else{if(!b)if(u=n0(M),u!==null){if(f.flags|=128,b=!0,u=u.updateQueue,f.updateQueue=u,l0(f,u),rh(E,!0),E.tail===null&&E.tailMode==="hidden"&&!M.alternate&&!Wn)return Xt(f),null}else 2*Et()-E.renderingStartTime>kv&&g!==536870912&&(f.flags|=128,b=!0,rh(E,!1),f.lanes=4194304);E.isBackwards?(M.sibling=f.child,f.child=M):(u=E.last,u!==null?u.sibling=M:f.child=M,E.last=M)}return E.tail!==null?(f=E.tail,E.rendering=f,E.tail=f.sibling,E.renderingStartTime=Et(),f.sibling=null,u=_r.current,P(_r,b?u&1|2:u&1),f):(Xt(f),null);case 22:case 23:return Os(f),Kd(),b=f.memoizedState!==null,u!==null?u.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(g&536870912)!==0&&(f.flags&128)===0&&(Xt(f),f.subtreeFlags&6&&(f.flags|=8192)):Xt(f),g=f.updateQueue,g!==null&&l0(f,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048),u!==null&&le(il),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),f.memoizedState.cache!==g&&(f.flags|=2048),nl(Li),Xt(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function $D(u,f){switch(tl(f),f.tag){case 1:return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return nl(Li),nt(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 26:case 27:case 5:return zt(f),null;case 13:if(Os(f),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));qd()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return le(_r),null;case 4:return nt(),null;case 10:return nl(f.type),null;case 22:case 23:return Os(f),Kd(),u!==null&&le(il),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 24:return nl(Li),null;case 25:return null;default:return null}}function wb(u,f){switch(tl(f),f.tag){case 3:nl(Li),nt();break;case 26:case 27:case 5:zt(f);break;case 4:nt();break;case 13:Os(f);break;case 19:le(_r);break;case 10:nl(f.type);break;case 22:case 23:Os(f),Kd(),u!==null&&le(il);break;case 24:nl(Li)}}function u0(u,f){try{var g=f.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var E=b.next;g=E;do{if((g.tag&u)===u){b=void 0;var M=g.create,U=g.inst;b=M(),U.destroy=b}g=g.next}while(g!==E)}}catch(Z){mr(f,f.return,Z)}}function oc(u,f,g){try{var b=f.updateQueue,E=b!==null?b.lastEffect:null;if(E!==null){var M=E.next;b=M;do{if((b.tag&u)===u){var U=b.inst,Z=U.destroy;if(Z!==void 0){U.destroy=void 0,E=f;var ue=g,De=Z;try{De()}catch(Ye){mr(E,ue,Ye)}}}b=b.next}while(b!==M)}}catch(Ye){mr(f,f.return,Ye)}}function xv(u){var f=u.updateQueue;if(f!==null){var g=u.stateNode;try{qp(f,g)}catch(b){mr(u,u.return,b)}}}function Cb(u,f,g){g.props=rc(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(b){mr(u,f,b)}}function ih(u,f){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var b=u.stateNode;break;case 30:b=u.stateNode;break;default:b=u.stateNode}typeof g=="function"?u.refCleanup=g(b):g.current=b}}catch(E){mr(u,f,E)}}function Ds(u,f){var g=u.ref,b=u.refCleanup;if(g!==null)if(typeof b=="function")try{b()}catch(E){mr(u,f,E)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(E){mr(u,f,E)}else g.current=null}function oh(u){var f=u.type,g=u.memoizedProps,b=u.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":g.autoFocus&&b.focus();break e;case"img":g.src?b.src=g.src:g.srcSet&&(b.srcset=g.srcSet)}}catch(E){mr(u,u.return,E)}}function Eb(u,f,g){try{var b=u.stateNode;UD(b,u.type,g,f),b[vn]=f}catch(E){mr(u,u.return,E)}}function ek(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&hc(u.type)||u.tag===4}function ns(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||ek(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&hc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Cf(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,f):(f=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,f.appendChild(u),g=g._reactRootContainer,g!=null||f.onclick!==null||(f.onclick=Fv));else if(b!==4&&(b===27&&hc(u.type)&&(g=u.stateNode,f=null),u=u.child,u!==null))for(Cf(u,f,g),u=u.sibling;u!==null;)Cf(u,f,g),u=u.sibling}function bv(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?g.insertBefore(u,f):g.appendChild(u);else if(b!==4&&(b===27&&hc(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(bv(u,f,g),u=u.sibling;u!==null;)bv(u,f,g),u=u.sibling}function _v(u){var f=u.stateNode,g=u.memoizedProps;try{for(var b=u.type,E=f.attributes;E.length;)f.removeAttributeNode(E[0]);tn(f,b,g),f[on]=u,f[vn]=g}catch(M){mr(u,u.return,M)}}var pl=!1,di=!1,Sv=!1,wv=typeof WeakSet=="function"?WeakSet:Set,Fi=null;function Ab(u,f){if(u=u.containerInfo,S0=T0,u=$1(u),Mp(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var b=g.getSelection&&g.getSelection();if(b&&b.rangeCount!==0){g=b.anchorNode;var E=b.anchorOffset,M=b.focusNode;b=b.focusOffset;try{g.nodeType,M.nodeType}catch{g=null;break e}var U=0,Z=-1,ue=-1,De=0,Ye=0,Xe=u,$e=null;t:for(;;){for(var ze;Xe!==g||E!==0&&Xe.nodeType!==3||(Z=U+E),Xe!==M||b!==0&&Xe.nodeType!==3||(ue=U+b),Xe.nodeType===3&&(U+=Xe.nodeValue.length),(ze=Xe.firstChild)!==null;)$e=Xe,Xe=ze;for(;;){if(Xe===u)break t;if($e===g&&++De===E&&(Z=U),$e===M&&++Ye===b&&(ue=U),(ze=Xe.nextSibling)!==null)break;Xe=$e,$e=Xe.parentNode}Xe=ze}g=Z===-1||ue===-1?null:{start:Z,end:ue}}else g=null}g=g||{start:0,end:0}}else g=null;for(w0={focusedElem:u,selectionRange:g},T0=!1,Fi=f;Fi!==null;)if(f=Fi,u=f.child,(f.subtreeFlags&1024)!==0&&u!==null)u.return=f,Fi=u;else for(;Fi!==null;){switch(f=Fi,M=f.alternate,u=f.flags,f.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&M!==null){u=void 0,g=f,E=M.memoizedProps,M=M.memoizedState,b=g.stateNode;try{var Yt=rc(g.type,E,g.elementType===g.type);u=b.getSnapshotBeforeUpdate(Yt,M),b.__reactInternalSnapshotBeforeUpdate=u}catch(Zt){mr(g,g.return,Zt)}}break;case 3:if((u&1024)!==0){if(u=f.stateNode.containerInfo,g=u.nodeType,g===9)C0(u);else if(g===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":C0(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=f.sibling,u!==null){u.return=f.return,Fi=u;break}Fi=f.return}}function kb(u,f,g){var b=g.flags;switch(g.tag){case 0:case 11:case 15:ml(u,g),b&4&&u0(5,g);break;case 1:if(ml(u,g),b&4)if(u=g.stateNode,f===null)try{u.componentDidMount()}catch(U){mr(g,g.return,U)}else{var E=rc(g.type,f.memoizedProps);f=f.memoizedState;try{u.componentDidUpdate(E,f,u.__reactInternalSnapshotBeforeUpdate)}catch(U){mr(g,g.return,U)}}b&64&&xv(g),b&512&&ih(g,g.return);break;case 3:if(ml(u,g),b&64&&(u=g.updateQueue,u!==null)){if(f=null,g.child!==null)switch(g.child.tag){case 27:case 5:f=g.child.stateNode;break;case 1:f=g.child.stateNode}try{qp(u,f)}catch(U){mr(g,g.return,U)}}break;case 27:f===null&&b&4&&_v(g);case 26:case 5:ml(u,g),f===null&&b&4&&oh(g),b&512&&ih(g,g.return);break;case 12:ml(u,g);break;case 13:ml(u,g),b&4&&Cv(u,g),b&64&&(u=g.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(g=LD.bind(null,g),PD(u,g))));break;case 22:if(b=g.memoizedState!==null||pl,!b){f=f!==null&&f.memoizedState!==null||di,E=pl;var M=di;pl=b,(di=f)&&!M?ac(u,g,(g.subtreeFlags&8772)!==0):ml(u,g),pl=E,di=M}break;case 30:break;default:ml(u,g)}}function Tb(u){var f=u.alternate;f!==null&&(u.alternate=null,Tb(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&si(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var qr=null,so=!1;function gl(u,f,g){for(g=g.child;g!==null;)kn(u,f,g),g=g.sibling}function kn(u,f,g){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(_e,g)}catch{}switch(g.tag){case 26:di||Ds(g,f),gl(u,f,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:di||Ds(g,f);var b=qr,E=so;hc(g.type)&&(qr=g.stateNode,so=!1),gl(u,f,g),da(g.stateNode),qr=b,so=E;break;case 5:di||Ds(g,f);case 6:if(b=qr,E=so,qr=null,gl(u,f,g),qr=b,so=E,qr!==null)if(so)try{(qr.nodeType===9?qr.body:qr.nodeName==="HTML"?qr.ownerDocument.body:qr).removeChild(g.stateNode)}catch(M){mr(g,f,M)}else try{qr.removeChild(g.stateNode)}catch(M){mr(g,f,M)}break;case 18:qr!==null&&(so?(u=qr,jv(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,g.stateNode),Cl(u)):jv(qr,g.stateNode));break;case 4:b=qr,E=so,qr=g.stateNode.containerInfo,so=!0,gl(u,f,g),qr=b,so=E;break;case 0:case 11:case 14:case 15:di||oc(2,g,f),di||oc(4,g,f),gl(u,f,g);break;case 1:di||(Ds(g,f),b=g.stateNode,typeof b.componentWillUnmount=="function"&&Cb(g,f,b)),gl(u,f,g);break;case 21:gl(u,f,g);break;case 22:di=(b=di)||g.memoizedState!==null,gl(u,f,g),di=b;break;default:gl(u,f,g)}}function Cv(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Cl(u)}catch(g){mr(f,f.return,g)}}function Ob(u){switch(u.tag){case 13:case 19:var f=u.stateNode;return f===null&&(f=u.stateNode=new wv),f;case 22:return u=u.stateNode,f=u._retryCache,f===null&&(f=u._retryCache=new wv),f;default:throw Error(r(435,u.tag))}}function Ev(u,f){var g=Ob(u);f.forEach(function(b){var E=ND.bind(null,u,b);g.has(b)||(g.add(b),b.then(E,E))})}function No(u,f){var g=f.deletions;if(g!==null)for(var b=0;b<g.length;b++){var E=g[b],M=u,U=f,Z=U;e:for(;Z!==null;){switch(Z.tag){case 27:if(hc(Z.type)){qr=Z.stateNode,so=!1;break e}break;case 5:qr=Z.stateNode,so=!1;break e;case 3:case 4:qr=Z.stateNode.containerInfo,so=!0;break e}Z=Z.return}if(qr===null)throw Error(r(160));kn(M,U,E),qr=null,so=!1,M=E.alternate,M!==null&&(M.return=null),E.return=null}if(f.subtreeFlags&13878)for(f=f.child;f!==null;)c0(f,u),f=f.sibling}var zo=null;function c0(u,f){var g=u.alternate,b=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:No(f,u),Ji(u),b&4&&(oc(3,u,u.return),u0(3,u),oc(5,u,u.return));break;case 1:No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),b&64&&pl&&(u=u.updateQueue,u!==null&&(b=u.callbacks,b!==null&&(g=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=g===null?b:g.concat(b))));break;case 26:var E=zo;if(No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),b&4){var M=g!==null?g.memoizedState:null;if(b=u.memoizedState,g===null)if(b===null)if(u.stateNode===null){e:{b=u.type,g=u.memoizedProps,E=E.ownerDocument||E;t:switch(b){case"title":M=E.getElementsByTagName("title")[0],(!M||M[Ot]||M[on]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=E.createElement(b),E.head.insertBefore(M,E.querySelector("head > title"))),tn(M,b,g),M[on]=u,Kn(M),b=M;break e;case"link":var U=n_("link","href",E).get(b+(g.href||""));if(U){for(var Z=0;Z<U.length;Z++)if(M=U[Z],M.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&M.getAttribute("rel")===(g.rel==null?null:g.rel)&&M.getAttribute("title")===(g.title==null?null:g.title)&&M.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){U.splice(Z,1);break t}}M=E.createElement(b),tn(M,b,g),E.head.appendChild(M);break;case"meta":if(U=n_("meta","content",E).get(b+(g.content||""))){for(Z=0;Z<U.length;Z++)if(M=U[Z],M.getAttribute("content")===(g.content==null?null:""+g.content)&&M.getAttribute("name")===(g.name==null?null:g.name)&&M.getAttribute("property")===(g.property==null?null:g.property)&&M.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&M.getAttribute("charset")===(g.charSet==null?null:g.charSet)){U.splice(Z,1);break t}}M=E.createElement(b),tn(M,b,g),E.head.appendChild(M);break;default:throw Error(r(468,b))}M[on]=u,Kn(M),b=M}u.stateNode=b}else r_(E,u.type,u.stateNode);else u.stateNode=vk(E,b,u.memoizedProps);else M!==b?(M===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):M.count--,b===null?r_(E,u.type,u.stateNode):vk(E,b,u.memoizedProps)):b===null&&u.stateNode!==null&&Eb(u,u.memoizedProps,g.memoizedProps)}break;case 27:No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),g!==null&&b&4&&Eb(u,u.memoizedProps,g.memoizedProps);break;case 5:if(No(f,u),Ji(u),b&512&&(di||g===null||Ds(g,g.return)),u.flags&32){E=u.stateNode;try{Dd(E,"")}catch(ze){mr(u,u.return,ze)}}b&4&&u.stateNode!=null&&(E=u.memoizedProps,Eb(u,E,g!==null?g.memoizedProps:E)),b&1024&&(Sv=!0);break;case 6:if(No(f,u),Ji(u),b&4){if(u.stateNode===null)throw Error(r(162));b=u.memoizedProps,g=u.stateNode;try{g.nodeValue=b}catch(ze){mr(u,u.return,ze)}}break;case 3:if(vc=null,E=zo,zo=Hv(f.containerInfo),No(f,u),zo=E,Ji(u),b&4&&g!==null&&g.memoizedState.isDehydrated)try{Cl(f.containerInfo)}catch(ze){mr(u,u.return,ze)}Sv&&(Sv=!1,Db(u));break;case 4:b=zo,zo=Hv(u.stateNode.containerInfo),No(f,u),Ji(u),zo=b;break;case 12:No(f,u),Ji(u);break;case 13:No(f,u),Ji(u),u.child.flags&8192&&u.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(zb=Et()),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,Ev(u,b)));break;case 22:E=u.memoizedState!==null;var ue=g!==null&&g.memoizedState!==null,De=pl,Ye=di;if(pl=De||E,di=Ye||ue,No(f,u),di=Ye,pl=De,Ji(u),b&8192)e:for(f=u.stateNode,f._visibility=E?f._visibility&-2:f._visibility|1,E&&(g===null||ue||pl||di||Pr(u)),g=null,f=u;;){if(f.tag===5||f.tag===26){if(g===null){ue=g=f;try{if(M=ue.stateNode,E)U=M.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none";else{Z=ue.stateNode;var Xe=ue.memoizedProps.style,$e=Xe!=null&&Xe.hasOwnProperty("display")?Xe.display:null;Z.style.display=$e==null||typeof $e=="boolean"?"":(""+$e).trim()}}catch(ze){mr(ue,ue.return,ze)}}}else if(f.tag===6){if(g===null){ue=f;try{ue.stateNode.nodeValue=E?"":ue.memoizedProps}catch(ze){mr(ue,ue.return,ze)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===u)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break e;for(;f.sibling===null;){if(f.return===null||f.return===u)break e;g===f&&(g=null),f=f.return}g===f&&(g=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=u.updateQueue,b!==null&&(g=b.retryQueue,g!==null&&(b.retryQueue=null,Ev(u,g))));break;case 19:No(f,u),Ji(u),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,Ev(u,b)));break;case 30:break;case 21:break;default:No(f,u),Ji(u)}}function Ji(u){var f=u.flags;if(f&2){try{for(var g,b=u.return;b!==null;){if(ek(b)){g=b;break}b=b.return}if(g==null)throw Error(r(160));switch(g.tag){case 27:var E=g.stateNode,M=ns(u);bv(u,M,E);break;case 5:var U=g.stateNode;g.flags&32&&(Dd(U,""),g.flags&=-33);var Z=ns(u);bv(u,Z,U);break;case 3:case 4:var ue=g.stateNode.containerInfo,De=ns(u);Cf(u,De,ue);break;default:throw Error(r(161))}}catch(Ye){mr(u,u.return,Ye)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function Db(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var f=u;Db(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),u=u.sibling}}function ml(u,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)kb(u,f.alternate,f),f=f.sibling}function Pr(u){for(u=u.child;u!==null;){var f=u;switch(f.tag){case 0:case 11:case 14:case 15:oc(4,f,f.return),Pr(f);break;case 1:Ds(f,f.return);var g=f.stateNode;typeof g.componentWillUnmount=="function"&&Cb(f,f.return,g),Pr(f);break;case 27:da(f.stateNode);case 26:case 5:Ds(f,f.return),Pr(f);break;case 22:f.memoizedState===null&&Pr(f);break;case 30:Pr(f);break;default:Pr(f)}u=u.sibling}}function ac(u,f,g){for(g=g&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,E=u,M=f,U=M.flags;switch(M.tag){case 0:case 11:case 15:ac(E,M,g),u0(4,M);break;case 1:if(ac(E,M,g),b=M,E=b.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(De){mr(b,b.return,De)}if(b=M,E=b.updateQueue,E!==null){var Z=b.stateNode;try{var ue=E.shared.hiddenCallbacks;if(ue!==null)for(E.shared.hiddenCallbacks=null,E=0;E<ue.length;E++)jm(ue[E],Z)}catch(De){mr(b,b.return,De)}}g&&U&64&&xv(M),ih(M,M.return);break;case 27:_v(M);case 26:case 5:ac(E,M,g),g&&b===null&&U&4&&oh(M),ih(M,M.return);break;case 12:ac(E,M,g);break;case 13:ac(E,M,g),g&&U&4&&Cv(E,M);break;case 22:M.memoizedState===null&&ac(E,M,g),ih(M,M.return);break;case 30:break;default:ac(E,M,g)}f=f.sibling}}function rs(u,f){var g=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),u=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(u=f.memoizedState.cachePool.pool),u!==g&&(u!=null&&u.refCount++,g!=null&&rl(g))}function Av(u,f){u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&rl(u))}function lo(u,f,g,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)Mb(u,f,g,b),f=f.sibling}function Mb(u,f,g,b){var E=f.flags;switch(f.tag){case 0:case 11:case 15:lo(u,f,g,b),E&2048&&u0(9,f);break;case 1:lo(u,f,g,b);break;case 3:lo(u,f,g,b),E&2048&&(u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&rl(u)));break;case 12:if(E&2048){lo(u,f,g,b),u=f.stateNode;try{var M=f.memoizedProps,U=M.id,Z=M.onPostCommit;typeof Z=="function"&&Z(U,f.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(ue){mr(f,f.return,ue)}}else lo(u,f,g,b);break;case 13:lo(u,f,g,b);break;case 23:break;case 22:M=f.stateNode,U=f.alternate,f.memoizedState!==null?M._visibility&2?lo(u,f,g,b):ir(u,f):M._visibility&2?lo(u,f,g,b):(M._visibility|=2,su(u,f,g,b,(f.subtreeFlags&10256)!==0)),E&2048&&rs(U,f);break;case 24:lo(u,f,g,b),E&2048&&Av(f.alternate,f);break;default:lo(u,f,g,b)}}function su(u,f,g,b,E){for(E=E&&(f.subtreeFlags&10256)!==0,f=f.child;f!==null;){var M=u,U=f,Z=g,ue=b,De=U.flags;switch(U.tag){case 0:case 11:case 15:su(M,U,Z,ue,E),u0(8,U);break;case 23:break;case 22:var Ye=U.stateNode;U.memoizedState!==null?Ye._visibility&2?su(M,U,Z,ue,E):ir(M,U):(Ye._visibility|=2,su(M,U,Z,ue,E)),E&&De&2048&&rs(U.alternate,U);break;case 24:su(M,U,Z,ue,E),E&&De&2048&&Av(U.alternate,U);break;default:su(M,U,Z,ue,E)}f=f.sibling}}function ir(u,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var g=u,b=f,E=b.flags;switch(b.tag){case 22:ir(g,b),E&2048&&rs(b.alternate,b);break;case 24:ir(g,b),E&2048&&Av(b.alternate,b);break;default:ir(g,b)}f=f.sibling}}var Ef=8192;function hi(u){if(u.subtreeFlags&Ef)for(u=u.child;u!==null;)tk(u),u=u.sibling}function tk(u){switch(u.tag){case 26:hi(u),u.flags&Ef&&u.memoizedState!==null&&bk(zo,u.memoizedState,u.memoizedProps);break;case 5:hi(u);break;case 3:case 4:var f=zo;zo=Hv(u.stateNode.containerInfo),hi(u),zo=f;break;case 22:u.memoizedState===null&&(f=u.alternate,f!==null&&f.memoizedState!==null?(f=Ef,Ef=16777216,hi(u),Ef=f):hi(u));break;default:hi(u)}}function Rb(u){var f=u.alternate;if(f!==null&&(u=f.child,u!==null)){f.child=null;do f=u.sibling,u.sibling=null,u=f;while(u!==null)}}function Af(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Fi=b,Bb(b,u)}Rb(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Ib(u),u=u.sibling}function Ib(u){switch(u.tag){case 0:case 11:case 15:Af(u),u.flags&2048&&oc(9,u,u.return);break;case 3:Af(u);break;case 12:Af(u);break;case 22:var f=u.stateNode;u.memoizedState!==null&&f._visibility&2&&(u.return===null||u.return.tag!==13)?(f._visibility&=-3,Fo(u)):Af(u);break;default:Af(u)}}function Fo(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Fi=b,Bb(b,u)}Rb(u)}for(u=u.child;u!==null;){switch(f=u,f.tag){case 0:case 11:case 15:oc(8,f,f.return),Fo(f);break;case 22:g=f.stateNode,g._visibility&2&&(g._visibility&=-3,Fo(f));break;default:Fo(f)}u=u.sibling}}function Bb(u,f){for(;Fi!==null;){var g=Fi;switch(g.tag){case 0:case 11:case 15:oc(8,g,f);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var b=g.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:rl(g.memoizedState.cache)}if(b=g.child,b!==null)b.return=g,Fi=b;else e:for(g=u;Fi!==null;){b=Fi;var E=b.sibling,M=b.return;if(Tb(b),b===g){Fi=null;break e}if(E!==null){E.return=M,Fi=E;break e}Fi=M}}}var $b={getCacheForType:function(u){var f=Ki(Li),g=f.data.get(u);return g===void 0&&(g=u(),f.data.set(u,g)),g}},nk=typeof WeakMap=="function"?WeakMap:Map,cr=0,Mr=null,Tn=null,On=0,dr=0,ua=null,vl=!1,ah=!1,Lb=!1,lu=0,pi=0,uu=0,kf=0,yl=0,is=0,sh=0,lh=null,ca=null,Nb=!1,zb=0,kv=1/0,uh=null,sc=null,uo=0,xl=null,ch=null,co=0,Tv=0,Ov=null,Fb=null,fh=0,Ub=null;function Oa(){if((cr&2)!==0&&On!==0)return On&-On;if(W.T!==null){var u=Ja;return u!==0?u:Mf()}return ai()}function jb(){is===0&&(is=(On&536870912)===0||Wn?Rn():536870912);var u=Ta.current;return u!==null&&(u.flags|=32),is}function Da(u,f,g){(u===Mr&&(dr===2||dr===9)||u.cancelPendingCommit!==null)&&(bl(u,0),cu(u,On,is,!1)),tr(u,g),((cr&2)===0||u!==Mr)&&(u===Mr&&((cr&2)===0&&(kf|=g),pi===4&&cu(u,On,is,!1)),fa(u))}function dh(u,f,g){if((cr&6)!==0)throw Error(r(327));var b=!g&&(f&124)===0&&(f&u.expiredLanes)===0||mt(u,f),E=b?qb(u,f):Dv(u,f,!0),M=b;do{if(E===0){ah&&!b&&cu(u,f,0,!1);break}else{if(g=u.current.alternate,M&&!rk(g)){E=Dv(u,f,!1),M=!1;continue}if(E===2){if(M=f,u.errorRecoveryDisabledLanes&M)var U=0;else U=u.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){f=U;e:{var Z=u;E=lh;var ue=Z.current.memoizedState.isDehydrated;if(ue&&(bl(Z,U).flags|=256),U=Dv(Z,U,!1),U!==2){if(Lb&&!ue){Z.errorRecoveryDisabledLanes|=M,kf|=M,E=4;break e}M=ca,ca=E,M!==null&&(ca===null?ca=M:ca.push.apply(ca,M))}E=U}if(M=!1,E!==2)continue}}if(E===1){bl(u,0),cu(u,f,0,!0);break}e:{switch(b=u,M=E,M){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:cu(b,f,is,!vl);break e;case 2:ca=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(E=zb+300-Et(),10<E)){if(cu(b,f,is,!vl),Vt(b,0,!0)!==0)break e;b.timeoutHandle=Uv(f0.bind(null,b,g,ca,uh,Nb,f,is,kf,sh,vl,M,2,-0,0),E);break e}f0(b,g,ca,uh,Nb,f,is,kf,sh,vl,M,0,-0,0)}}break}while(!0);fa(u)}function f0(u,f,g,b,E,M,U,Z,ue,De,Ye,Xe,$e,ze){if(u.timeoutHandle=-1,Xe=f.subtreeFlags,(Xe&8192||(Xe&16785408)===16785408)&&(Ch={stylesheets:null,count:0,unsuspend:xk},tk(f),Xe=o_(),Xe!==null)){u.cancelPendingCommit=Xe(ak.bind(null,u,f,M,g,b,E,U,Z,ue,Ye,1,$e,ze)),cu(u,M,U,!De);return}ak(u,f,M,g,b,E,U,Z,ue)}function rk(u){for(var f=u;;){var g=f.tag;if((g===0||g===11||g===15)&&f.flags&16384&&(g=f.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var b=0;b<g.length;b++){var E=g[b],M=E.getSnapshot;E=E.value;try{if(!ao(M(),E))return!1}catch{return!1}}if(g=f.child,f.subtreeFlags&16384&&g!==null)g.return=f,f=g;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function cu(u,f,g,b){f&=~yl,f&=~kf,u.suspendedLanes|=f,u.pingedLanes&=~f,b&&(u.warmLanes|=f),b=u.expirationTimes;for(var E=f;0<E;){var M=31-lt(E),U=1<<M;b[M]=-1,E&=~U}g!==0&&kr(u,g,f)}function Tf(){return(cr&6)===0?(g0(0),!1):!0}function lc(){if(Tn!==null){if(dr===0)var u=Tn.return;else u=Tn,As=eu=null,Gm(u),yf=null,Jd=0,u=Tn;for(;u!==null;)wb(u.alternate,u),u=u.return;Tn=null}}function bl(u,f){var g=u.timeoutHandle;g!==-1&&(u.timeoutHandle=-1,jD(g)),g=u.cancelPendingCommit,g!==null&&(u.cancelPendingCommit=null,g()),lc(),Mr=u,Tn=g=Cs(u.current,null),On=f,dr=0,ua=null,vl=!1,ah=mt(u,f),Lb=!1,sh=is=yl=kf=uu=pi=0,ca=lh=null,Nb=!1,(f&8)!==0&&(f|=f&32);var b=u.entangledLanes;if(b!==0)for(u=u.entanglements,b&=f;0<b;){var E=31-lt(b),M=1<<E;f|=u[E],b&=~M}return lu=f,ws(),g}function Hb(u,f){cn=null,W.H=av,f===Xu||f===jp?(f=V1(),dr=3):f===Lm?(f=V1(),dr=4):dr=f===fi?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,ua=f,Tn===null&&(pi=1,o0(u,Ea(f,u.current)))}function ik(){var u=W.H;return W.H=av,u===null?av:u}function Of(){var u=W.A;return W.A=$b,u}function Df(){pi=4,vl||(On&4194048)!==On&&Ta.current!==null||(ah=!0),(uu&134217727)===0&&(kf&134217727)===0||Mr===null||cu(Mr,On,is,!1)}function Dv(u,f,g){var b=cr;cr|=2;var E=ik(),M=Of();(Mr!==u||On!==f)&&(uh=null,bl(u,f)),f=!1;var U=pi;e:do try{if(dr!==0&&Tn!==null){var Z=Tn,ue=ua;switch(dr){case 8:lc(),U=6;break e;case 3:case 2:case 9:case 6:Ta.current===null&&(f=!0);var De=dr;if(dr=0,ua=null,hh(u,Z,ue,De),g&&ah){U=0;break e}break;default:De=dr,dr=0,ua=null,hh(u,Z,ue,De)}}Mv(),U=pi;break}catch(Ye){Hb(u,Ye)}while(!0);return f&&u.shellSuspendCounter++,As=eu=null,cr=b,W.H=E,W.A=M,Tn===null&&(Mr=null,On=0,ws()),U}function Mv(){for(;Tn!==null;)Gb(Tn)}function qb(u,f){var g=cr;cr|=2;var b=ik(),E=Of();Mr!==u||On!==f?(uh=null,kv=Et()+500,bl(u,f)):ah=mt(u,f);e:do try{if(dr!==0&&Tn!==null){f=Tn;var M=ua;t:switch(dr){case 1:dr=0,ua=null,hh(u,f,M,1);break;case 2:case 9:if(zm(M)){dr=0,ua=null,Vb(f);break}f=function(){dr!==2&&dr!==9||Mr!==u||(dr=7),fa(u)},M.then(f,f);break e;case 3:dr=7;break e;case 4:dr=5;break e;case 7:zm(M)?(dr=0,ua=null,Vb(f)):(dr=0,ua=null,hh(u,f,M,7));break;case 5:var U=null;switch(Tn.tag){case 26:U=Tn.memoizedState;case 5:case 27:var Z=Tn;if(!U||i_(U)){dr=0,ua=null;var ue=Z.sibling;if(ue!==null)Tn=ue;else{var De=Z.return;De!==null?(Tn=De,d0(De)):Tn=null}break t}}dr=0,ua=null,hh(u,f,M,5);break;case 6:dr=0,ua=null,hh(u,f,M,6);break;case 8:lc(),pi=6;break e;default:throw Error(r(462))}}Pb();break}catch(Ye){Hb(u,Ye)}while(!0);return As=eu=null,W.H=b,W.A=E,cr=g,Tn!==null?0:(Mr=null,On=0,ws(),pi)}function Pb(){for(;Tn!==null&&!_t();)Gb(Tn)}function Gb(u){var f=J2(u.alternate,u,lu);u.memoizedProps=u.pendingProps,f===null?d0(u):Tn=f}function Vb(u){var f=u,g=f.alternate;switch(f.tag){case 15:case 0:f=yb(g,f,f.pendingProps,f.type,void 0,On);break;case 11:f=yb(g,f,f.pendingProps,f.type.render,f.ref,On);break;case 5:Gm(f);default:wb(g,f),f=Tn=Cn(f,lu),f=J2(g,f,lu)}u.memoizedProps=u.pendingProps,f===null?d0(u):Tn=f}function hh(u,f,g,b){As=eu=null,Gm(f),yf=null,Jd=0;var E=f.return;try{if(K2(u,E,f,g,On)){pi=1,o0(u,Ea(g,u.current)),Tn=null;return}}catch(M){if(E!==null)throw Tn=E,M;pi=1,o0(u,Ea(g,u.current)),Tn=null;return}f.flags&32768?(Wn||b===1?u=!0:ah||(On&536870912)!==0?u=!1:(vl=u=!0,(b===2||b===9||b===3||b===6)&&(b=Ta.current,b!==null&&b.tag===13&&(b.flags|=16384))),ok(f,u)):d0(f)}function d0(u){var f=u;do{if((f.flags&32768)!==0){ok(f,vl);return}u=f.return;var g=Sb(f.alternate,f,lu);if(g!==null){Tn=g;return}if(f=f.sibling,f!==null){Tn=f;return}Tn=f=u}while(f!==null);pi===0&&(pi=5)}function ok(u,f){do{var g=$D(u.alternate,u);if(g!==null){g.flags&=32767,Tn=g;return}if(g=u.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!f&&(u=u.sibling,u!==null)){Tn=u;return}Tn=u=g}while(u!==null);pi=6,Tn=null}function ak(u,f,g,b,E,M,U,Z,ue){u.cancelPendingCommit=null;do Iv();while(uo!==0);if((cr&6)!==0)throw Error(r(327));if(f!==null){if(f===u.current)throw Error(r(177));if(M=f.lanes|f.childLanes,M|=Js,Ar(u,g,M,U,Z,ue),u===Mr&&(Tn=Mr=null,On=0),ch=f,xl=u,co=g,Tv=M,Ov=E,Fb=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,zD(Be,function(){return Yb(),null})):(u.callbackNode=null,u.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=W.T,W.T=null,E=fe.p,fe.p=2,U=cr,cr|=4;try{Ab(u,f,g)}finally{cr=U,fe.p=E,W.T=b}}uo=1,sk(),h0(),Rv()}}function sk(){if(uo===1){uo=0;var u=xl,f=ch,g=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||g){g=W.T,W.T=null;var b=fe.p;fe.p=2;var E=cr;cr|=4;try{c0(f,u);var M=w0,U=$1(u.containerInfo),Z=M.focusedElem,ue=M.selectionRange;if(U!==Z&&Z&&Z.ownerDocument&&Dp(Z.ownerDocument.documentElement,Z)){if(ue!==null&&Mp(Z)){var De=ue.start,Ye=ue.end;if(Ye===void 0&&(Ye=De),"selectionStart"in Z)Z.selectionStart=De,Z.selectionEnd=Math.min(Ye,Z.value.length);else{var Xe=Z.ownerDocument||document,$e=Xe&&Xe.defaultView||window;if($e.getSelection){var ze=$e.getSelection(),Yt=Z.textContent.length,Zt=Math.min(ue.start,Yt),or=ue.end===void 0?Zt:Math.min(ue.end,Yt);!ze.extend&&Zt>or&&(U=or,or=Zt,Zt=U);var Ae=Lr(Z,Zt),xe=Lr(Z,or);if(Ae&&xe&&(ze.rangeCount!==1||ze.anchorNode!==Ae.node||ze.anchorOffset!==Ae.offset||ze.focusNode!==xe.node||ze.focusOffset!==xe.offset)){var Oe=Xe.createRange();Oe.setStart(Ae.node,Ae.offset),ze.removeAllRanges(),Zt>or?(ze.addRange(Oe),ze.extend(xe.node,xe.offset)):(Oe.setEnd(xe.node,xe.offset),ze.addRange(Oe))}}}}for(Xe=[],ze=Z;ze=ze.parentNode;)ze.nodeType===1&&Xe.push({element:ze,left:ze.scrollLeft,top:ze.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<Xe.length;Z++){var Ke=Xe[Z];Ke.element.scrollLeft=Ke.left,Ke.element.scrollTop=Ke.top}}T0=!!S0,w0=S0=null}finally{cr=E,fe.p=b,W.T=g}}u.current=f,uo=2}}function h0(){if(uo===2){uo=0;var u=xl,f=ch,g=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||g){g=W.T,W.T=null;var b=fe.p;fe.p=2;var E=cr;cr|=4;try{kb(u,f.alternate,f)}finally{cr=E,fe.p=b,W.T=g}}uo=3}}function Rv(){if(uo===4||uo===3){uo=0,kt();var u=xl,f=ch,g=co,b=Fb;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?uo=5:(uo=0,ch=xl=null,lk(u,u.pendingLanes));var E=u.pendingLanes;if(E===0&&(sc=null),Qn(g),f=f.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(_e,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=W.T,E=fe.p,fe.p=2,W.T=null;try{for(var M=u.onRecoverableError,U=0;U<b.length;U++){var Z=b[U];M(Z.value,{componentStack:Z.stack})}}finally{W.T=f,fe.p=E}}(co&3)!==0&&Iv(),fa(u),E=u.pendingLanes,(g&4194090)!==0&&(E&42)!==0?u===Ub?fh++:(fh=0,Ub=u):fh=0,g0(0)}}function lk(u,f){(u.pooledCacheLanes&=f)===0&&(f=u.pooledCache,f!=null&&(u.pooledCache=null,rl(f)))}function Iv(u){return sk(),h0(),Rv(),Yb()}function Yb(){if(uo!==5)return!1;var u=xl,f=Tv;Tv=0;var g=Qn(co),b=W.T,E=fe.p;try{fe.p=32>g?32:g,W.T=null,g=Ov,Ov=null;var M=xl,U=co;if(uo=0,ch=xl=null,co=0,(cr&6)!==0)throw Error(r(331));var Z=cr;if(cr|=4,Ib(M.current),Mb(M,M.current,U,g),cr=Z,g0(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(_e,M)}catch{}return!0}finally{fe.p=E,W.T=b,lk(u,f)}}function Zb(u,f,g){f=Ea(g,f),f=mb(u.stateNode,f,2),u=al(u,f,2),u!==null&&(tr(u,2),fa(u))}function mr(u,f,g){if(u.tag===3)Zb(u,u,g);else for(;f!==null;){if(f.tag===3){Zb(f,u,g);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(sc===null||!sc.has(b))){u=Ea(g,u),g=vb(2),b=al(f,g,2),b!==null&&(la(g,b,f,u),tr(b,2),fa(b));break}}f=f.return}}function Bv(u,f,g){var b=u.pingCache;if(b===null){b=u.pingCache=new nk;var E=new Set;b.set(f,E)}else E=b.get(f),E===void 0&&(E=new Set,b.set(f,E));E.has(g)||(Lb=!0,E.add(g),u=Qb.bind(null,u,f,g),f.then(u,u))}function Qb(u,f,g){var b=u.pingCache;b!==null&&b.delete(f),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,Mr===u&&(On&g)===g&&(pi===4||pi===3&&(On&62914560)===On&&300>Et()-zb?(cr&2)===0&&bl(u,0):yl|=g,sh===On&&(sh=0)),fa(u)}function Kb(u,f){f===0&&(f=pr()),u=el(u,f),u!==null&&(tr(u,f),fa(u))}function LD(u){var f=u.memoizedState,g=0;f!==null&&(g=f.retryLane),Kb(u,g)}function ND(u,f){var g=0;switch(u.tag){case 13:var b=u.stateNode,E=u.memoizedState;E!==null&&(g=E.retryLane);break;case 19:b=u.stateNode;break;case 22:b=u.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(f),Kb(u,g)}function zD(u,f){return st(u,f)}var $v=null,uc=null,p0=!1,ph=!1,Lv=!1,cc=0;function fa(u){u!==uc&&u.next===null&&(uc===null?$v=uc=u:uc=uc.next=u),ph=!0,p0||(p0=!0,fk())}function g0(u,f){if(!Lv&&ph){Lv=!0;do for(var g=!1,b=$v;b!==null;){if(u!==0){var E=b.pendingLanes;if(E===0)var M=0;else{var U=b.suspendedLanes,Z=b.pingedLanes;M=(1<<31-lt(42|u)+1)-1,M&=E&~(U&~Z),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(g=!0,v0(b,M))}else M=On,M=Vt(b,b===Mr?M:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(M&3)===0||mt(b,M)||(g=!0,v0(b,M));b=b.next}while(g);Lv=!1}}function uk(){m0()}function m0(){ph=p0=!1;var u=0;cc!==0&&(hu()&&(u=cc),cc=0);for(var f=Et(),g=null,b=$v;b!==null;){var E=b.next,M=Wb(b,f);M===0?(b.next=null,g===null?$v=E:g.next=E,E===null&&(uc=g)):(g=b,(u!==0||(M&3)!==0)&&(ph=!0)),b=E}g0(u)}function Wb(u,f){for(var g=u.suspendedLanes,b=u.pingedLanes,E=u.expirationTimes,M=u.pendingLanes&-62914561;0<M;){var U=31-lt(M),Z=1<<U,ue=E[U];ue===-1?((Z&g)===0||(Z&b)!==0)&&(E[U]=At(Z,f)):ue<=f&&(u.expiredLanes|=Z),M&=~Z}if(f=Mr,g=On,g=Vt(u,u===f?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b=u.callbackNode,g===0||u===f&&(dr===2||dr===9)||u.cancelPendingCommit!==null)return b!==null&&b!==null&&yt(b),u.callbackNode=null,u.callbackPriority=0;if((g&3)===0||mt(u,g)){if(f=g&-g,f===u.callbackPriority)return f;switch(b!==null&&yt(b),Qn(g)){case 2:case 8:g=ge;break;case 32:g=Be;break;case 268435456:g=qe;break;default:g=Be}return b=ck.bind(null,u),g=st(g,b),u.callbackPriority=f,u.callbackNode=g,f}return b!==null&&b!==null&&yt(b),u.callbackPriority=2,u.callbackNode=null,2}function ck(u,f){if(uo!==0&&uo!==5)return u.callbackNode=null,u.callbackPriority=0,null;var g=u.callbackNode;if(Iv()&&u.callbackNode!==g)return null;var b=On;return b=Vt(u,u===Mr?b:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b===0?null:(dh(u,b,f),Wb(u,Et()),u.callbackNode!=null&&u.callbackNode===g?ck.bind(null,u):null)}function v0(u,f){if(Iv())return null;dh(u,f,!0)}function fk(){HD(function(){(cr&6)!==0?st(ae,uk):m0()})}function Mf(){return cc===0&&(cc=Rn()),cc}function Nv(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Sp(""+u)}function y0(u,f){var g=f.ownerDocument.createElement("input");return g.name=f.name,g.value=f.value,u.id&&g.setAttribute("form",u.id),f.parentNode.insertBefore(g,f),u=new FormData(u),g.parentNode.removeChild(g),u}function dk(u,f,g,b,E){if(f==="submit"&&g&&g.stateNode===E){var M=Nv((E[vn]||null).action),U=b.submitter;U&&(f=(f=U[vn]||null)?Nv(f.formAction):U.getAttribute("formAction"),f!==null&&(M=f,U=null));var Z=new xm("action","action",null,b,E);u.push({event:Z,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(cc!==0){var ue=U?y0(E,U):new FormData(E);ov(g,{pending:!0,data:ue,method:E.method,action:M},null,ue)}}else typeof M=="function"&&(Z.preventDefault(),ue=U?y0(E,U):new FormData(E),ov(g,{pending:!0,data:ue,method:E.method,action:M},M,ue))},currentTarget:E}]})}}for(var gi=0;gi<Ld.length;gi++){var x0=Ld[gi],FD=x0.toLowerCase(),bn=x0[0].toUpperCase()+x0.slice(1);Za(FD,"on"+bn)}Za($2,"onAnimationEnd"),Za(L1,"onAnimationIteration"),Za(L2,"onAnimationStart"),Za("dblclick","onDoubleClick"),Za("focusin","onFocus"),Za("focusout","onBlur"),Za(N1,"onTransitionRun"),Za(Tm,"onTransitionStart"),Za(N2,"onTransitionCancel"),Za(z1,"onTransitionEnd"),Dr("onMouseEnter",["mouseout","mouseover"]),Dr("onMouseLeave",["mouseout","mouseover"]),Dr("onPointerEnter",["pointerout","pointerover"]),Dr("onPointerLeave",["pointerout","pointerover"]),ki("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ki("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ki("onBeforeInput",["compositionend","keypress","textInput","paste"]),ki("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var b0="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(" "),fc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(b0));function Rf(u,f){f=(f&4)!==0;for(var g=0;g<u.length;g++){var b=u[g],E=b.event;b=b.listeners;e:{var M=void 0;if(f)for(var U=b.length-1;0<=U;U--){var Z=b[U],ue=Z.instance,De=Z.currentTarget;if(Z=Z.listener,ue!==M&&E.isPropagationStopped())break e;M=Z,E.currentTarget=De;try{M(E)}catch(Ye){r0(Ye)}E.currentTarget=null,M=ue}else for(U=0;U<b.length;U++){if(Z=b[U],ue=Z.instance,De=Z.currentTarget,Z=Z.listener,ue!==M&&E.isPropagationStopped())break e;M=Z,E.currentTarget=De;try{M(E)}catch(Ye){r0(Ye)}E.currentTarget=null,M=ue}}}}function fn(u,f){var g=f[Zi];g===void 0&&(g=f[Zi]=new Set);var b=u+"__bubble";g.has(b)||(zv(f,u,2,!1),g.add(b))}function gh(u,f,g){var b=0;f&&(b|=4),zv(g,u,b,f)}var mh="_reactListening"+Math.random().toString(36).slice(2);function Xb(u){if(!u[mh]){u[mh]=!0,_o.forEach(function(g){g!=="selectionchange"&&(fc.has(g)||gh(g,!1,u),gh(g,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[mh]||(f[mh]=!0,gh("selectionchange",!1,f))}}function zv(u,f,g,b){switch(h_(f)){case 2:var E=_k;break;case 8:E=Sk;break;default:E=f_}g=E.bind(null,f,g,u),E=void 0,!mm||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(E=!0),b?E!==void 0?u.addEventListener(f,g,{capture:!0,passive:E}):u.addEventListener(f,g,!0):E!==void 0?u.addEventListener(f,g,{passive:E}):u.addEventListener(f,g,!1)}function os(u,f,g,b,E){var M=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var U=b.tag;if(U===3||U===4){var Z=b.stateNode.containerInfo;if(Z===E)break;if(U===4)for(U=b.return;U!==null;){var ue=U.tag;if((ue===3||ue===4)&&U.stateNode.containerInfo===E)return;U=U.return}for(;Z!==null;){if(U=Or(Z),U===null)return;if(ue=U.tag,ue===5||ue===6||ue===26||ue===27){b=M=U;continue e}Z=Z.parentNode}}b=b.return}Id(function(){var De=M,Ye=gm(g),Xe=[];e:{var $e=F1.get(u);if($e!==void 0){var ze=xm,Yt=u;switch(u){case"keypress":if(oo(g)===0)break e;case"keydown":case"keyup":ze=ys;break;case"focusin":Yt="focus",ze=b1;break;case"focusout":Yt="blur",ze=b1;break;case"beforeblur":case"afterblur":ze=b1;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ze=x1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ze=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ze=w1;break;case $2:case L1:case L2:ze=MD;break;case z1:ze=M2;break;case"scroll":case"scrollend":ze=C2;break;case"wheel":ze=ef;break;case"copy":case"cut":case"paste":ze=Ep;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ze=Ap;break;case"toggle":case"beforetoggle":ze=R2}var Zt=(f&4)!==0,or=!Zt&&(u==="scroll"||u==="scrollend"),Ae=Zt?$e!==null?$e+"Capture":null:$e;Zt=[];for(var xe=De,Oe;xe!==null;){var Ke=xe;if(Oe=Ke.stateNode,Ke=Ke.tag,Ke!==5&&Ke!==26&&Ke!==27||Oe===null||Ae===null||(Ke=Kc(xe,Ae),Ke!=null&&Zt.push(fu(xe,Ke,Oe))),or)break;xe=xe.return}0<Zt.length&&($e=new ze($e,Yt,null,g,Ye),Xe.push({event:$e,listeners:Zt}))}}if((f&7)===0){e:{if($e=u==="mouseover"||u==="pointerover",ze=u==="mouseout"||u==="pointerout",$e&&g!==Qc&&(Yt=g.relatedTarget||g.fromElement)&&(Or(Yt)||Yt[ln]))break e;if((ze||$e)&&($e=Ye.window===Ye?Ye:($e=Ye.ownerDocument)?$e.defaultView||$e.parentWindow:window,ze?(Yt=g.relatedTarget||g.toElement,ze=De,Yt=Yt?Or(Yt):null,Yt!==null&&(or=a(Yt),Zt=Yt.tag,Yt!==or||Zt!==5&&Zt!==27&&Zt!==6)&&(Yt=null)):(ze=null,Yt=De),ze!==Yt)){if(Zt=x1,Ke="onMouseLeave",Ae="onMouseEnter",xe="mouse",(u==="pointerout"||u==="pointerover")&&(Zt=Ap,Ke="onPointerLeave",Ae="onPointerEnter",xe="pointer"),or=ze==null?$e:$o(ze),Oe=Yt==null?$e:$o(Yt),$e=new Zt(Ke,xe+"leave",ze,g,Ye),$e.target=or,$e.relatedTarget=Oe,Ke=null,Or(Ye)===De&&(Zt=new Zt(Ae,xe+"enter",Yt,g,Ye),Zt.target=Oe,Zt.relatedTarget=or,Ke=Zt),or=Ke,ze&&Yt)t:{for(Zt=ze,Ae=Yt,xe=0,Oe=Zt;Oe;Oe=dc(Oe))xe++;for(Oe=0,Ke=Ae;Ke;Ke=dc(Ke))Oe++;for(;0<xe-Oe;)Zt=dc(Zt),xe--;for(;0<Oe-xe;)Ae=dc(Ae),Oe--;for(;xe--;){if(Zt===Ae||Ae!==null&&Zt===Ae.alternate)break t;Zt=dc(Zt),Ae=dc(Ae)}Zt=null}else Zt=null;ze!==null&&_0(Xe,$e,ze,Zt,!1),Yt!==null&&or!==null&&_0(Xe,or,Yt,Zt,!0)}}e:{if($e=De?$o(De):window,ze=$e.nodeName&&$e.nodeName.toLowerCase(),ze==="select"||ze==="input"&&$e.type==="file")var Lt=O1;else if(Cm($e))if(D1)Lt=I1;else{Lt=Hu;var En=Am}else ze=$e.nodeName,!ze||ze.toLowerCase()!=="input"||$e.type!=="checkbox"&&$e.type!=="radio"?De&&Zc(De.elementType)&&(Lt=O1):Lt=Kl;if(Lt&&(Lt=Lt(u,De))){Em(Xe,Lt,g,Ye);break e}En&&En(u,$e,De),u==="focusout"&&De&&$e.type==="number"&&De.memoizedProps.value!=null&&bp($e,"number",$e.value)}switch(En=De?$o(De):window,u){case"focusin":(Cm(En)||En.contentEditable==="true")&&(Ws=En,_s=De,Gu=null);break;case"focusout":Gu=_s=Ws=null;break;case"mousedown":af=!0;break;case"contextmenu":case"mouseup":case"dragend":af=!1,km(Xe,g,Ye);break;case"selectionchange":if(of)break;case"keydown":case"keyup":km(Xe,g,Ye)}var Pt;if(kp)e:{switch(u){case"compositionstart":var Jt="onCompositionStart";break e;case"compositionend":Jt="onCompositionEnd";break e;case"compositionupdate":Jt="onCompositionUpdate";break e}Jt=void 0}else ju?Op(u,g)&&(Jt="onCompositionEnd"):u==="keydown"&&g.keyCode===229&&(Jt="onCompositionStart");Jt&&(Qs&&g.locale!=="ko"&&(ju||Jt!=="onCompositionStart"?Jt==="onCompositionEnd"&&ju&&(Pt=v1()):(Zl=Ye,Bd="value"in Zl?Zl.value:Zl.textContent,ju=!0)),En=vh(De,Jt),0<En.length&&(Jt=new _1(Jt,u,null,g,Ye),Xe.push({event:Jt,listeners:En}),Pt?Jt.data=Pt:(Pt=Uu(g),Pt!==null&&(Jt.data=Pt)))),(Pt=E1?k1(u,g):tf(u,g))&&(Jt=vh(De,"onBeforeInput"),0<Jt.length&&(En=new _1("onBeforeInput","beforeinput",null,g,Ye),Xe.push({event:En,listeners:Jt}),En.data=Pt)),dk(Xe,u,De,g,Ye)}Rf(Xe,f)})}function fu(u,f,g){return{instance:u,listener:f,currentTarget:g}}function vh(u,f){for(var g=f+"Capture",b=[];u!==null;){var E=u,M=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||M===null||(E=Kc(u,g),E!=null&&b.unshift(fu(u,E,M)),E=Kc(u,f),E!=null&&b.push(fu(u,E,M))),u.tag===3)return b;u=u.return}return[]}function dc(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function _0(u,f,g,b,E){for(var M=f._reactName,U=[];g!==null&&g!==b;){var Z=g,ue=Z.alternate,De=Z.stateNode;if(Z=Z.tag,ue!==null&&ue===b)break;Z!==5&&Z!==26&&Z!==27||De===null||(ue=De,E?(De=Kc(g,M),De!=null&&U.unshift(fu(g,De,ue))):E||(De=Kc(g,M),De!=null&&U.push(fu(g,De,ue)))),g=g.return}U.length!==0&&u.push({event:f,listeners:U})}var Ma=/\r\n?/g,Jb=/\u0000|\uFFFD/g;function hk(u){return(typeof u=="string"?u:""+u).replace(Ma,`
|
|
4934
|
+
`).replace(Jb,"")}function e_(u,f){return f=hk(f),hk(u)===f}function Fv(){}function an(u,f,g,b,E,M){switch(g){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||Dd(u,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&Dd(u,""+b);break;case"className":se(u,"class",b);break;case"tabIndex":se(u,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":se(u,g,b);break;case"style":_p(u,b,M);break;case"data":if(f!=="object"){se(u,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||g!=="href")){u.removeAttribute(g);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Sp(""+b),u.setAttribute(g,b);break;case"action":case"formAction":if(typeof b=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(g==="formAction"?(f!=="input"&&an(u,f,"name",E.name,E,null),an(u,f,"formEncType",E.formEncType,E,null),an(u,f,"formMethod",E.formMethod,E,null),an(u,f,"formTarget",E.formTarget,E,null)):(an(u,f,"encType",E.encType,E,null),an(u,f,"method",E.method,E,null),an(u,f,"target",E.target,E,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Sp(""+b),u.setAttribute(g,b);break;case"onClick":b!=null&&(u.onclick=Fv);break;case"onScroll":b!=null&&fn("scroll",u);break;case"onScrollEnd":b!=null&&fn("scrollend",u);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"multiple":u.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":u.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){u.removeAttribute("xlink:href");break}g=Sp(""+b),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""+b):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":b===!0?u.setAttribute(g,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,b):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?u.setAttribute(g,b):u.removeAttribute(g);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?u.removeAttribute(g):u.setAttribute(g,b);break;case"popover":fn("beforetoggle",u),fn("toggle",u),Je(u,"popover",b);break;case"xlinkActuate":ke(u,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":ke(u,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":ke(u,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":ke(u,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":ke(u,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":ke(u,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":ke(u,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":ke(u,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":ke(u,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":Je(u,"is",b);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=TD.get(g)||g,Je(u,g,b))}}function Ue(u,f,g,b,E,M){switch(g){case"style":_p(u,b,M);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(E.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"children":typeof b=="string"?Dd(u,b):(typeof b=="number"||typeof b=="bigint")&&Dd(u,""+b);break;case"onScroll":b!=null&&fn("scroll",u);break;case"onScrollEnd":b!=null&&fn("scrollend",u);break;case"onClick":b!=null&&(u.onclick=Fv);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xr.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(E=g.endsWith("Capture"),f=g.slice(2,E?g.length-7:void 0),M=u[vn]||null,M=M!=null?M[g]:null,typeof M=="function"&&u.removeEventListener(f,M,E),typeof b=="function")){typeof M!="function"&&M!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(f,b,E);break e}g in u?u[g]=b:b===!0?u.setAttribute(g,""):Je(u,g,b)}}}function tn(u,f,g){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fn("error",u),fn("load",u);var b=!1,E=!1,M;for(M in g)if(g.hasOwnProperty(M)){var U=g[M];if(U!=null)switch(M){case"src":b=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:an(u,f,M,U,g,null)}}E&&an(u,f,"srcSet",g.srcSet,g,null),b&&an(u,f,"src",g.src,g,null);return;case"input":fn("invalid",u);var Z=M=U=E=null,ue=null,De=null;for(b in g)if(g.hasOwnProperty(b)){var Ye=g[b];if(Ye!=null)switch(b){case"name":E=Ye;break;case"type":U=Ye;break;case"checked":ue=Ye;break;case"defaultChecked":De=Ye;break;case"value":M=Ye;break;case"defaultValue":Z=Ye;break;case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(r(137,f));break;default:an(u,f,b,Ye,g,null)}}Od(u,M,Z,ue,De,U,E,!1),rn(u);return;case"select":fn("invalid",u),b=U=M=null;for(E in g)if(g.hasOwnProperty(E)&&(Z=g[E],Z!=null))switch(E){case"value":M=Z;break;case"defaultValue":U=Z;break;case"multiple":b=Z;default:an(u,f,E,Z,g,null)}f=M,g=U,u.multiple=!!b,f!=null?Yc(u,!!b,f,!1):g!=null&&Yc(u,!!b,g,!0);return;case"textarea":fn("invalid",u),M=E=b=null;for(U in g)if(g.hasOwnProperty(U)&&(Z=g[U],Z!=null))switch(U){case"value":b=Z;break;case"defaultValue":E=Z;break;case"children":M=Z;break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:an(u,f,U,Z,g,null)}g1(u,b,E,M),rn(u);return;case"option":for(ue in g)if(g.hasOwnProperty(ue)&&(b=g[ue],b!=null))switch(ue){case"selected":u.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:an(u,f,ue,b,g,null)}return;case"dialog":fn("beforetoggle",u),fn("toggle",u),fn("cancel",u),fn("close",u);break;case"iframe":case"object":fn("load",u);break;case"video":case"audio":for(b=0;b<b0.length;b++)fn(b0[b],u);break;case"image":fn("error",u),fn("load",u);break;case"details":fn("toggle",u);break;case"embed":case"source":case"link":fn("error",u),fn("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(De in g)if(g.hasOwnProperty(De)&&(b=g[De],b!=null))switch(De){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:an(u,f,De,b,g,null)}return;default:if(Zc(f)){for(Ye in g)g.hasOwnProperty(Ye)&&(b=g[Ye],b!==void 0&&Ue(u,f,Ye,b,g,void 0));return}}for(Z in g)g.hasOwnProperty(Z)&&(b=g[Z],b!=null&&an(u,f,Z,b,g,null))}function UD(u,f,g,b){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,M=null,U=null,Z=null,ue=null,De=null,Ye=null;for(ze in g){var Xe=g[ze];if(g.hasOwnProperty(ze)&&Xe!=null)switch(ze){case"checked":break;case"value":break;case"defaultValue":ue=Xe;default:b.hasOwnProperty(ze)||an(u,f,ze,null,b,Xe)}}for(var $e in b){var ze=b[$e];if(Xe=g[$e],b.hasOwnProperty($e)&&(ze!=null||Xe!=null))switch($e){case"type":M=ze;break;case"name":E=ze;break;case"checked":De=ze;break;case"defaultChecked":Ye=ze;break;case"value":U=ze;break;case"defaultValue":Z=ze;break;case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(r(137,f));break;default:ze!==Xe&&an(u,f,$e,ze,b,Xe)}}Qi(u,U,Z,ue,De,Ye,M,E);return;case"select":ze=U=Z=$e=null;for(M in g)if(ue=g[M],g.hasOwnProperty(M)&&ue!=null)switch(M){case"value":break;case"multiple":ze=ue;default:b.hasOwnProperty(M)||an(u,f,M,null,b,ue)}for(E in b)if(M=b[E],ue=g[E],b.hasOwnProperty(E)&&(M!=null||ue!=null))switch(E){case"value":$e=M;break;case"defaultValue":Z=M;break;case"multiple":U=M;default:M!==ue&&an(u,f,E,M,b,ue)}f=Z,g=U,b=ze,$e!=null?Yc(u,!!g,$e,!1):!!b!=!!g&&(f!=null?Yc(u,!!g,f,!0):Yc(u,!!g,g?[]:"",!1));return;case"textarea":ze=$e=null;for(Z in g)if(E=g[Z],g.hasOwnProperty(Z)&&E!=null&&!b.hasOwnProperty(Z))switch(Z){case"value":break;case"children":break;default:an(u,f,Z,null,b,E)}for(U in b)if(E=b[U],M=g[U],b.hasOwnProperty(U)&&(E!=null||M!=null))switch(U){case"value":$e=E;break;case"defaultValue":ze=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==M&&an(u,f,U,E,b,M)}p1(u,$e,ze);return;case"option":for(var Yt in g)if($e=g[Yt],g.hasOwnProperty(Yt)&&$e!=null&&!b.hasOwnProperty(Yt))switch(Yt){case"selected":u.selected=!1;break;default:an(u,f,Yt,null,b,$e)}for(ue in b)if($e=b[ue],ze=g[ue],b.hasOwnProperty(ue)&&$e!==ze&&($e!=null||ze!=null))switch(ue){case"selected":u.selected=$e&&typeof $e!="function"&&typeof $e!="symbol";break;default:an(u,f,ue,$e,b,ze)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Zt in g)$e=g[Zt],g.hasOwnProperty(Zt)&&$e!=null&&!b.hasOwnProperty(Zt)&&an(u,f,Zt,null,b,$e);for(De in b)if($e=b[De],ze=g[De],b.hasOwnProperty(De)&&$e!==ze&&($e!=null||ze!=null))switch(De){case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,f));break;default:an(u,f,De,$e,b,ze)}return;default:if(Zc(f)){for(var or in g)$e=g[or],g.hasOwnProperty(or)&&$e!==void 0&&!b.hasOwnProperty(or)&&Ue(u,f,or,void 0,b,$e);for(Ye in b)$e=b[Ye],ze=g[Ye],!b.hasOwnProperty(Ye)||$e===ze||$e===void 0&&ze===void 0||Ue(u,f,Ye,$e,b,ze);return}}for(var Ae in g)$e=g[Ae],g.hasOwnProperty(Ae)&&$e!=null&&!b.hasOwnProperty(Ae)&&an(u,f,Ae,null,b,$e);for(Xe in b)$e=b[Xe],ze=g[Xe],!b.hasOwnProperty(Xe)||$e===ze||$e==null&&ze==null||an(u,f,Xe,$e,b,ze)}var S0=null,w0=null;function as(u){return u.nodeType===9?u:u.ownerDocument}function du(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function _l(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var xh=null;function hu(){var u=window.event;return u&&u.type==="popstate"?u===xh?!1:(xh=u,!0):(xh=null,!1)}var Uv=typeof setTimeout=="function"?setTimeout:void 0,jD=typeof clearTimeout=="function"?clearTimeout:void 0,pk=typeof Promise=="function"?Promise:void 0,HD=typeof queueMicrotask=="function"?queueMicrotask:typeof pk<"u"?function(u){return pk.resolve(null).then(u).catch(Sl)}:Uv;function Sl(u){setTimeout(function(){throw u})}function hc(u){return u==="head"}function jv(u,f){var g=f,b=0,E=0;do{var M=g.nextSibling;if(u.removeChild(g),M&&M.nodeType===8)if(g=M.data,g==="/$"){if(0<b&&8>b){g=b;var U=u.ownerDocument;if(g&1&&da(U.documentElement),g&2&&da(U.body),g&4)for(g=U.head,da(g),U=g.firstChild;U;){var Z=U.nextSibling,ue=U.nodeName;U[Ot]||ue==="SCRIPT"||ue==="STYLE"||ue==="LINK"&&U.rel.toLowerCase()==="stylesheet"||g.removeChild(U),U=Z}}if(E===0){u.removeChild(M),Cl(f);return}E--}else g==="$"||g==="$?"||g==="$!"?E++:b=g.charCodeAt(0)-48;else b=0;g=M}while(g);Cl(f)}function C0(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var g=f;switch(f=f.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":C0(g),si(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function bh(u,f,g,b){for(;u.nodeType===1;){var E=g;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(b){if(!u[Ot])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(M=u.getAttribute("rel"),M==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(M!==E.rel||u.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||u.getAttribute("title")!==(E.title==null?null:E.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(M=u.getAttribute("src"),(M!==(E.src==null?null:E.src)||u.getAttribute("type")!==(E.type==null?null:E.type)||u.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&M&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var M=E.name==null?null:""+E.name;if(E.type==="hidden"&&u.getAttribute("name")===M)return u}else return u;if(u=Ms(u.nextSibling),u===null)break}return null}function qD(u,f,g){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=Ms(u.nextSibling),u===null))return null;return u}function E0(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function PD(u,f){var g=u.ownerDocument;if(u.data!=="$?"||g.readyState==="complete")f();else{var b=function(){f(),g.removeEventListener("DOMContentLoaded",b)};g.addEventListener("DOMContentLoaded",b),u._reactRetry=b}}function Ms(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="F!"||f==="F")break;if(f==="/$")return null}}return u}var pc=null;function fo(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return u;f--}else g==="/$"&&f++}u=u.previousSibling}return null}function Dt(u,f,g){switch(f=as(g),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function da(u){for(var f=u.attributes;f.length;)u.removeAttributeNode(f[0]);si(u)}var mi=new Map,Eo=new Set;function Hv(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var pu=fe.d;fe.d={f:qv,r:Pv,D:gu,C:Gv,L:gc,m:Ao,X:mc,S:ha,M:t_};function qv(){var u=pu.f(),f=Tf();return u||f}function Pv(u){var f=li(u);f!==null&&f.tag===5&&f.type==="form"?Xd(f):pu.r(u)}var ho=typeof document>"u"?null:document;function Rs(u,f,g){var b=ho;if(b&&typeof f=="string"&&f){var E=Xr(f);E='link[rel="'+u+'"][href="'+E+'"]',typeof g=="string"&&(E+='[crossorigin="'+g+'"]'),Eo.has(E)||(Eo.add(E),u={rel:u,crossOrigin:g,href:f},b.querySelector(E)===null&&(f=b.createElement("link"),tn(f,"link",u),Kn(f),b.head.appendChild(f)))}}function gu(u){pu.D(u),Rs("dns-prefetch",u,null)}function Gv(u,f){pu.C(u,f),Rs("preconnect",u,f)}function gc(u,f,g){pu.L(u,f,g);var b=ho;if(b&&u&&f){var E='link[rel="preload"][as="'+Xr(f)+'"]';f==="image"&&g&&g.imageSrcSet?(E+='[imagesrcset="'+Xr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(E+='[imagesizes="'+Xr(g.imageSizes)+'"]')):E+='[href="'+Xr(u)+'"]';var M=E;switch(f){case"style":M=_h(u);break;case"script":M=ss(u)}mi.has(M)||(u=y({rel:"preload",href:f==="image"&&g&&g.imageSrcSet?void 0:u,as:f},g),mi.set(M,u),b.querySelector(E)!==null||f==="style"&&b.querySelector(Sh(M))||f==="script"&&b.querySelector(If(M))||(f=b.createElement("link"),tn(f,"link",u),Kn(f),b.head.appendChild(f)))}}function Ao(u,f){pu.m(u,f);var g=ho;if(g&&u){var b=f&&typeof f.as=="string"?f.as:"script",E='link[rel="modulepreload"][as="'+Xr(b)+'"][href="'+Xr(u)+'"]',M=E;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=ss(u)}if(!mi.has(M)&&(u=y({rel:"modulepreload",href:u},f),mi.set(M,u),g.querySelector(E)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(If(M)))return}b=g.createElement("link"),tn(b,"link",u),Kn(b),g.head.appendChild(b)}}}function ha(u,f,g){pu.S(u,f,g);var b=ho;if(b&&u){var E=Ai(b).hoistableStyles,M=_h(u);f=f||"default";var U=E.get(M);if(!U){var Z={loading:0,preload:null};if(U=b.querySelector(Sh(M)))Z.loading=5;else{u=y({rel:"stylesheet",href:u,"data-precedence":f},g),(g=mi.get(M))&&Yv(u,g);var ue=U=b.createElement("link");Kn(ue),tn(ue,"link",u),ue._p=new Promise(function(De,Ye){ue.onload=De,ue.onerror=Ye}),ue.addEventListener("load",function(){Z.loading|=1}),ue.addEventListener("error",function(){Z.loading|=2}),Z.loading|=4,Vv(U,f,b)}U={type:"stylesheet",instance:U,count:1,state:Z},E.set(M,U)}}}function mc(u,f){pu.X(u,f);var g=ho;if(g&&u){var b=Ai(g).hoistableScripts,E=ss(u),M=b.get(E);M||(M=g.querySelector(If(E)),M||(u=y({src:u,async:!0},f),(f=mi.get(E))&&Zv(u,f),M=g.createElement("script"),Kn(M),tn(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(E,M))}}function t_(u,f){pu.M(u,f);var g=ho;if(g&&u){var b=Ai(g).hoistableScripts,E=ss(u),M=b.get(E);M||(M=g.querySelector(If(E)),M||(u=y({src:u,async:!0,type:"module"},f),(f=mi.get(E))&&Zv(u,f),M=g.createElement("script"),Kn(M),tn(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(E,M))}}function gk(u,f,g,b){var E=(E=Le.current)?Hv(E):null;if(!E)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(f=_h(g.href),g=Ai(E).hoistableStyles,b=g.get(f),b||(b={type:"style",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=_h(g.href);var M=Ai(E).hoistableStyles,U=M.get(u);if(U||(E=E.ownerDocument||E,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(u,U),(M=E.querySelector(Sh(u)))&&!M._p&&(U.instance=M,U.state.loading=5),mi.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},mi.set(u,g),M||mk(E,u,g,U.state))),f&&b===null)throw Error(r(528,""));return U}if(f&&b!==null)throw Error(r(529,""));return null;case"script":return f=g.async,g=g.src,typeof g=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ss(g),g=Ai(E).hoistableScripts,b=g.get(f),b||(b={type:"script",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function _h(u){return'href="'+Xr(u)+'"'}function Sh(u){return'link[rel="stylesheet"]['+u+"]"}function wh(u){return y({},u,{"data-precedence":u.precedence,precedence:null})}function mk(u,f,g,b){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=u.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),tn(f,"link",g),Kn(f),u.head.appendChild(f))}function ss(u){return'[src="'+Xr(u)+'"]'}function If(u){return"script[async]"+u}function vk(u,f,g){if(f.count++,f.instance===null)switch(f.type){case"style":var b=u.querySelector('style[data-href~="'+Xr(g.href)+'"]');if(b)return f.instance=b,Kn(b),b;var E=y({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return b=(u.ownerDocument||u).createElement("style"),Kn(b),tn(b,"style",E),Vv(b,g.precedence,u),f.instance=b;case"stylesheet":E=_h(g.href);var M=u.querySelector(Sh(E));if(M)return f.state.loading|=4,f.instance=M,Kn(M),M;b=wh(g),(E=mi.get(E))&&Yv(b,E),M=(u.ownerDocument||u).createElement("link"),Kn(M);var U=M;return U._p=new Promise(function(Z,ue){U.onload=Z,U.onerror=ue}),tn(M,"link",b),f.state.loading|=4,Vv(M,g.precedence,u),f.instance=M;case"script":return M=ss(g.src),(E=u.querySelector(If(M)))?(f.instance=E,Kn(E),E):(b=g,(E=mi.get(M))&&(b=y({},g),Zv(b,E)),u=u.ownerDocument||u,E=u.createElement("script"),Kn(E),tn(E,"link",b),u.head.appendChild(E),f.instance=E);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,Vv(b,g.precedence,u));return f.instance}function Vv(u,f,g){for(var b=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=b.length?b[b.length-1]:null,M=E,U=0;U<b.length;U++){var Z=b[U];if(Z.dataset.precedence===f)M=Z;else if(M!==E)break}M?M.parentNode.insertBefore(u,M.nextSibling):(f=g.nodeType===9?g.head:g,f.insertBefore(u,f.firstChild))}function Yv(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function Zv(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var vc=null;function n_(u,f,g){if(vc===null){var b=new Map,E=vc=new Map;E.set(g,b)}else E=vc,b=E.get(g),b||(b=new Map,E.set(g,b));if(b.has(u))return b;for(b.set(u,null),g=g.getElementsByTagName(u),E=0;E<g.length;E++){var M=g[E];if(!(M[Ot]||M[on]||u==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var U=M.getAttribute(f)||"";U=u+U;var Z=b.get(U);Z?Z.push(M):b.set(U,[M])}}return b}function r_(u,f,g){u=u.ownerDocument||u,u.head.insertBefore(g,f==="title"?u.querySelector("head > title"):null)}function yk(u,f,g){if(g===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function i_(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Ch=null;function xk(){}function bk(u,f,g){if(Ch===null)throw Error(r(475));var b=Ch;if(f.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var E=_h(g.href),M=u.querySelector(Sh(E));if(M){u=M._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(b.count++,b=A0.bind(b),u.then(b,b)),f.state.loading|=4,f.instance=M,Kn(M);return}M=u.ownerDocument||u,g=wh(g),(E=mi.get(E))&&Yv(g,E),M=M.createElement("link"),Kn(M);var U=M;U._p=new Promise(function(Z,ue){U.onload=Z,U.onerror=ue}),tn(M,"link",g),f.instance=M}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(b.count++,f=A0.bind(b),u.addEventListener("load",f),u.addEventListener("error",f))}}function o_(){if(Ch===null)throw Error(r(475));var u=Ch;return u.stylesheets&&u.count===0&&k0(u,u.stylesheets),0<u.count?function(f){var g=setTimeout(function(){if(u.stylesheets&&k0(u,u.stylesheets),u.unsuspend){var b=u.unsuspend;u.unsuspend=null,b()}},6e4);return u.unsuspend=f,function(){u.unsuspend=null,clearTimeout(g)}}:null}function A0(){if(this.count--,this.count===0){if(this.stylesheets)k0(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Eh=null;function k0(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Eh=new Map,f.forEach(Ra,u),Eh=null,A0.call(u))}function Ra(u,f){if(!(f.state.loading&4)){var g=Eh.get(u);if(g)var b=g.get(null);else{g=new Map,Eh.set(u,g);for(var E=u.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<E.length;M++){var U=E[M];(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")&&(g.set(U.dataset.precedence,U),b=U)}b&&g.set(null,b)}E=f.instance,U=E.getAttribute("data-precedence"),M=g.get(U)||b,M===b&&g.set(null,E),g.set(U,E),this.count++,b=A0.bind(this),E.addEventListener("load",b),E.addEventListener("error",b),M?M.parentNode.insertBefore(E,M.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(E,u.firstChild)),f.state.loading|=4}}var pa={$$typeof:O,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function GD(u,f,g,b,E,M,U,Z){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yn(0),this.hiddenUpdates=Yn(null),this.identifierPrefix=b,this.onUncaughtError=E,this.onCaughtError=M,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function a_(u,f,g,b,E,M,U,Z,ue,De,Ye,Xe){return u=new GD(u,f,g,U,Z,ue,De,Xe),f=1,M===!0&&(f|=24),M=ra(3,null,null,f),u.current=M,M.stateNode=u,f=Yd(),f.refCount++,u.pooledCache=f,f.refCount++,M.memoizedState={element:b,isDehydrated:g,cache:f},Fm(M),u}function s_(u){return u?(u=Fd,u):Fd}function l_(u,f,g,b,E,M){E=s_(E),b.context===null?b.context=E:b.pendingContext=E,b=oa(f),b.payload={element:g},M=M===void 0?null:M,M!==null&&(b.callback=M),g=al(u,b,f),g!==null&&(Da(g,u,f),df(g,u,f))}function u_(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<f?g:f}}function Qv(u,f){u_(u,f),(u=u.alternate)&&u_(u,f)}function c_(u){if(u.tag===13){var f=el(u,67108864);f!==null&&Da(f,u,67108864),Qv(u,67108864)}}var T0=!0;function _k(u,f,g,b){var E=W.T;W.T=null;var M=fe.p;try{fe.p=2,f_(u,f,g,b)}finally{fe.p=M,W.T=E}}function Sk(u,f,g,b){var E=W.T;W.T=null;var M=fe.p;try{fe.p=8,f_(u,f,g,b)}finally{fe.p=M,W.T=E}}function f_(u,f,g,b){if(T0){var E=Kv(b);if(E===null)os(u,f,b,Wv,g),Bf(u,b);else if(Ck(E,u,f,g,b))b.stopPropagation();else if(Bf(u,b),f&4&&-1<wk.indexOf(u)){for(;E!==null;){var M=li(E);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var U=pt(M.pendingLanes);if(U!==0){var Z=M;for(Z.pendingLanes|=2,Z.entangledLanes|=2;U;){var ue=1<<31-lt(U);Z.entanglements[1]|=ue,U&=~ue}fa(M),(cr&6)===0&&(kv=Et()+500,g0(0))}}break;case 13:Z=el(M,2),Z!==null&&Da(Z,M,2),Tf(),Qv(M,2)}if(M=Kv(b),M===null&&os(u,f,b,Wv,g),M===E)break;E=M}E!==null&&b.stopPropagation()}else os(u,f,b,null,g)}}function Kv(u){return u=gm(u),d_(u)}var Wv=null;function d_(u){if(Wv=null,u=Or(u),u!==null){var f=a(u);if(f===null)u=null;else{var g=f.tag;if(g===13){if(u=l(f),u!==null)return u;u=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return Wv=u,null}function h_(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case ae:return 2;case ge:return 8;case Be:case Te:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Ah=!1,wl=null,mu=null,vu=null,O0=new Map,D0=new Map,yc=[],wk="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".split(" ");function Bf(u,f){switch(u){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":mu=null;break;case"mouseover":case"mouseout":vu=null;break;case"pointerover":case"pointerout":O0.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":D0.delete(f.pointerId)}}function $f(u,f,g,b,E,M){return u===null||u.nativeEvent!==M?(u={blockedOn:f,domEventName:g,eventSystemFlags:b,nativeEvent:M,targetContainers:[E]},f!==null&&(f=li(f),f!==null&&c_(f)),u):(u.eventSystemFlags|=b,f=u.targetContainers,E!==null&&f.indexOf(E)===-1&&f.push(E),u)}function Ck(u,f,g,b,E){switch(f){case"focusin":return wl=$f(wl,u,f,g,b,E),!0;case"dragenter":return mu=$f(mu,u,f,g,b,E),!0;case"mouseover":return vu=$f(vu,u,f,g,b,E),!0;case"pointerover":var M=E.pointerId;return O0.set(M,$f(O0.get(M)||null,u,f,g,b,E)),!0;case"gotpointercapture":return M=E.pointerId,D0.set(M,$f(D0.get(M)||null,u,f,g,b,E)),!0}return!1}function p_(u){var f=Or(u.target);if(f!==null){var g=a(f);if(g!==null){if(f=g.tag,f===13){if(f=l(g),f!==null){u.blockedOn=f,Tr(u.priority,function(){if(g.tag===13){var b=Oa();b=nr(b);var E=el(g,b);E!==null&&Da(E,g,b),Qv(g,b)}});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function M0(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var g=Kv(u.nativeEvent);if(g===null){g=u.nativeEvent;var b=new g.constructor(g.type,g);Qc=b,g.target.dispatchEvent(b),Qc=null}else return f=li(g),f!==null&&c_(f),u.blockedOn=g,!1;f.shift()}return!0}function R0(u,f,g){M0(u)&&g.delete(f)}function kh(){Ah=!1,wl!==null&&M0(wl)&&(wl=null),mu!==null&&M0(mu)&&(mu=null),vu!==null&&M0(vu)&&(vu=null),O0.forEach(R0),D0.forEach(R0)}function Xv(u,f){u.blockedOn===f&&(u.blockedOn=null,Ah||(Ah=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kh)))}var Lf=null;function g_(u){Lf!==u&&(Lf=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lf===u&&(Lf=null);for(var f=0;f<u.length;f+=3){var g=u[f],b=u[f+1],E=u[f+2];if(typeof b!="function"){if(d_(b||g)===null)continue;break}var M=li(g);M!==null&&(u.splice(f,3),f-=3,ov(M,{pending:!0,data:E,method:g.method,action:b},b,E))}}))}function Cl(u){function f(ue){return Xv(ue,u)}wl!==null&&Xv(wl,u),mu!==null&&Xv(mu,u),vu!==null&&Xv(vu,u),O0.forEach(f),D0.forEach(f);for(var g=0;g<yc.length;g++){var b=yc[g];b.blockedOn===u&&(b.blockedOn=null)}for(;0<yc.length&&(g=yc[0],g.blockedOn===null);)p_(g),g.blockedOn===null&&yc.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(b=0;b<g.length;b+=3){var E=g[b],M=g[b+1],U=E[vn]||null;if(typeof M=="function")U||g_(g);else if(U){var Z=null;if(M&&M.hasAttribute("formAction")){if(E=M,U=M[vn]||null)Z=U.formAction;else if(d_(E)!==null)continue}else Z=U.action;typeof Z=="function"?g[b+1]=Z:(g.splice(b,3),b-=3),g_(g)}}}function m_(u){this._internalRoot=u}Jv.prototype.render=m_.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var g=f.current,b=Oa();l_(g,b,u,f,null,null)},Jv.prototype.unmount=m_.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;l_(u.current,2,null,u,null,null),Tf(),f[ln]=null}};function Jv(u){this._internalRoot=u}Jv.prototype.unstable_scheduleHydration=function(u){if(u){var f=ai();u={blockedOn:null,target:u,priority:f};for(var g=0;g<yc.length&&f!==0&&f<yc[g].priority;g++);yc.splice(g,0,u),g===0&&p_(u)}};var v_=t.version;if(v_!=="19.1.0")throw Error(r(527,v_,"19.1.0"));fe.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=h(f),u=u!==null?p(u):null,u=u===null?null:u.stateNode,u};var Uo={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var I0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!I0.isDisabled&&I0.supportsFiber)try{_e=I0.inject(Uo),we=I0}catch{}}return d1.createRoot=function(u,f){if(!o(u))throw Error(r(299));var g=!1,b="",E=th,M=pb,U=i0,Z=null;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(E=f.onUncaughtError),f.onCaughtError!==void 0&&(M=f.onCaughtError),f.onRecoverableError!==void 0&&(U=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(Z=f.unstable_transitionCallbacks)),f=a_(u,1,!1,null,null,g,b,E,M,U,Z,null),u[ln]=f.current,Xb(u),new m_(f)},d1.hydrateRoot=function(u,f,g){if(!o(u))throw Error(r(299));var b=!1,E="",M=th,U=pb,Z=i0,ue=null,De=null;return g!=null&&(g.unstable_strictMode===!0&&(b=!0),g.identifierPrefix!==void 0&&(E=g.identifierPrefix),g.onUncaughtError!==void 0&&(M=g.onUncaughtError),g.onCaughtError!==void 0&&(U=g.onCaughtError),g.onRecoverableError!==void 0&&(Z=g.onRecoverableError),g.unstable_transitionCallbacks!==void 0&&(ue=g.unstable_transitionCallbacks),g.formState!==void 0&&(De=g.formState)),f=a_(u,1,!0,f,g??null,b,E,M,U,Z,ue,De),f.context=s_(null),g=f.current,b=Oa(),b=nr(b),E=oa(b),E.callback=null,al(g,E,b),g=b,f.current.lanes=g,tr(f,g),fa(f),u[ln]=f.current,Xb(u),new Jv(f)},d1.version="19.1.0",d1}var h1={};/**
|
|
4935
4935
|
* @license React
|
|
4936
4936
|
* react-dom-client.development.js
|
|
4937
4937
|
*
|
|
@@ -4955,7 +4955,7 @@ Error generating stack: `+Q.message+`
|
|
|
4955
4955
|
Error generating stack: `+B.message+`
|
|
4956
4956
|
`+B.stack}return C}function Ot(i,s,c,v,_,C,B){var $=Ra;si(i);try{return i!==null&&i._debugTask?i._debugTask.run(s.bind(null,c,v,_,C,B)):s(c,v,_,C,B)}finally{si($)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function si(i){Ue.getCurrentStack=i===null?null:bo,pa=!1,Ra=i}function Or(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return ve(i),i;default:return""}}function li(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function $o(i){var s=li(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);ve(i[s]);var v=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var _=c.get,C=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return _.call(this)},set:function(B){ve(B),v=""+B,C.call(this,B)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return v},setValue:function(B){ve(B),v=""+B},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Ai(i){i._valueTracker||(i._valueTracker=$o(i))}function Kn(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),v="";return i&&(v=li(i)?i.checked?"true":"false":i.value),i=v,i!==c?(s.setValue(i),!0):!1}function _o(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function xr(i){return i.replace(GD,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function ki(i,s){s.checked===void 0||s.defaultChecked===void 0||s_||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",s.type),s_=!0),s.value===void 0||s.defaultValue===void 0||a_||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",s.type),a_=!0)}function Dr(i,s,c,v,_,C,B,$){i.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?(le(B,"type"),i.type=B):i.removeAttribute("type"),s!=null?B==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Or(s)):i.value!==""+Or(s)&&(i.value=""+Or(s)):B!=="submit"&&B!=="reset"||i.removeAttribute("value"),s!=null?$r(i,B,Or(s)):c!=null?$r(i,B,Or(c)):v!=null&&i.removeAttribute("value"),_==null&&C!=null&&(i.defaultChecked=!!C),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?(le($,"name"),i.name=""+Or($)):i.removeAttribute("name")}function wa(i,s,c,v,_,C,B,$){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(le(C,"type"),i.type=C),s!=null||c!=null){if(!(C!=="submit"&&C!=="reset"||s!=null))return;c=c!=null?""+Or(c):"",s=s!=null?""+Or(s):c,$||s===i.value||(i.value=s),i.defaultValue=s}v=v??_,v=typeof v!="function"&&typeof v!="symbol"&&!!v,i.checked=$?i.checked:!!v,i.defaultChecked=!!v,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(le(B,"name"),i.name=B)}function $r(i,s,c){s==="number"&&_o(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function et(i,s){s.value==null&&(typeof s.children=="object"&&s.children!==null?x0.Children.forEach(s.children,function(c){c==null||typeof c=="string"||typeof c=="number"||typeof c=="bigint"||u_||(u_=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):s.dangerouslySetInnerHTML==null||Qv||(Qv=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),s.selected==null||l_||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l_=!0)}function Ce(){var i=ea();return i?`
|
|
4957
4957
|
|
|
4958
|
-
Check the render method of \``+i+"`.":""}function Je(i,s,c,v){if(i=i.options,s){s={};for(var _=0;_<c.length;_++)s["$"+c[_]]=!0;for(c=0;c<i.length;c++)_=s.hasOwnProperty("$"+i[c].value),i[c].selected!==_&&(i[c].selected=_),_&&v&&(i[c].defaultSelected=!0)}else{for(c=""+Or(c),s=null,_=0;_<i.length;_++){if(i[_].value===c){i[_].selected=!0,v&&(i[_].defaultSelected=!0);return}s!==null||i[_].disabled||(s=i[_])}s!==null&&(s.selected=!0)}}function se(i,s){for(i=0;i<T0.length;i++){var c=T0[i];if(s[c]!=null){var v=an(s[c]);s.multiple&&!v?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",c,Ce()):!s.multiple&&v&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",c,Ce())}}s.value===void 0||s.defaultValue===void 0||c_||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),c_=!0)}function
|
|
4958
|
+
Check the render method of \``+i+"`.":""}function Je(i,s,c,v){if(i=i.options,s){s={};for(var _=0;_<c.length;_++)s["$"+c[_]]=!0;for(c=0;c<i.length;c++)_=s.hasOwnProperty("$"+i[c].value),i[c].selected!==_&&(i[c].selected=_),_&&v&&(i[c].defaultSelected=!0)}else{for(c=""+Or(c),s=null,_=0;_<i.length;_++){if(i[_].value===c){i[_].selected=!0,v&&(i[_].defaultSelected=!0);return}s!==null||i[_].disabled||(s=i[_])}s!==null&&(s.selected=!0)}}function se(i,s){for(i=0;i<T0.length;i++){var c=T0[i];if(s[c]!=null){var v=an(s[c]);s.multiple&&!v?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",c,Ce()):!s.multiple&&v&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",c,Ce())}}s.value===void 0||s.defaultValue===void 0||c_||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),c_=!0)}function ke(i,s){s.value===void 0||s.defaultValue===void 0||_k||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component"),_k=!0),s.children!=null&&s.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function z(i,s,c){if(s!=null&&(s=""+Or(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Or(c):""}function X(i,s,c,v){if(s==null){if(v!=null){if(c!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(an(v)){if(1<v.length)throw Error("<textarea> can only have at most one child.");v=v[0]}c=v}c==null&&(c=""),s=c}c=Or(s),i.defaultValue=c,v=i.textContent,v===c&&v!==""&&v!==null&&(i.value=v)}function ce(i,s){return i.serverProps===void 0&&i.serverTail.length===0&&i.children.length===1&&3<i.distanceFromLeaf&&i.distanceFromLeaf>15-s?ce(i.children[0],s):i}function be(i){return" "+" ".repeat(i)}function Se(i){return"+ "+" ".repeat(i)}function Qe(i){return"- "+" ".repeat(i)}function Rt(i){switch(i.tag){case 26:case 27:case 5:return i.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return i=i.type,i.displayName||i.name||null;case 11:return i=i.type.render,i.displayName||i.name||null;case 1:return i=i.type,i.displayName||i.name||null;default:return null}}function Qt(i,s){return Sk.test(i)?(i=JSON.stringify(i),i.length>s-2?8>s?'{"..."}':"{"+i.slice(0,s-7)+'..."}':"{"+i+"}"):i.length>s?5>s?'{"..."}':i.slice(0,s-3)+"...":i}function en(i,s,c){var v=120-2*c;if(s===null)return Se(c)+Qt(i,v)+`
|
|
4959
4959
|
`;if(typeof s=="string"){for(var _=0;_<s.length&&_<i.length&&s.charCodeAt(_)===i.charCodeAt(_);_++);return _>v-8&&10<_&&(i="..."+i.slice(_-8),s="..."+s.slice(_-8)),Se(c)+Qt(i,v)+`
|
|
4960
4960
|
`+Qe(c)+Qt(s,v)+`
|
|
4961
4961
|
`}return be(c)+Qt(i,v)+`
|
|
@@ -5003,7 +5003,7 @@ Check the render method of \``+B+"`."),B=29,c=Error("Element type is invalid: ex
|
|
|
5003
5003
|
|
|
5004
5004
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
5005
5005
|
|
|
5006
|
-
https://react.dev/link/hydration-mismatch`+s),i)),t8}function O1(i){var s=i.stateNode,c=i.type,v=i.memoizedProps;switch(s[Ao]=i,s[ha]=v,ml(c,v),c){case"dialog":kn("cancel",s),kn("close",s);break;case"iframe":case"object":case"embed":kn("load",s);break;case"video":case"audio":for(c=0;c<G_.length;c++)kn(G_[c],s);break;case"source":kn("error",s);break;case"img":case"image":case"link":kn("error",s),kn("load",s);break;case"details":kn("toggle",s);break;case"input":Yn("input",v),kn("invalid",s),ki(s,v),wa(s,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Ai(s);break;case"option":et(s,v);break;case"select":Yn("select",v),kn("invalid",s),se(s,v);break;case"textarea":Yn("textarea",v),kn("invalid",s),
|
|
5006
|
+
https://react.dev/link/hydration-mismatch`+s),i)),t8}function O1(i){var s=i.stateNode,c=i.type,v=i.memoizedProps;switch(s[Ao]=i,s[ha]=v,ml(c,v),c){case"dialog":kn("cancel",s),kn("close",s);break;case"iframe":case"object":case"embed":kn("load",s);break;case"video":case"audio":for(c=0;c<G_.length;c++)kn(G_[c],s);break;case"source":kn("error",s);break;case"img":case"image":case"link":kn("error",s),kn("load",s);break;case"details":kn("toggle",s);break;case"input":Yn("input",v),kn("invalid",s),ki(s,v),wa(s,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Ai(s);break;case"option":et(s,v);break;case"select":Yn("select",v),kn("invalid",s),se(s,v);break;case"textarea":Yn("textarea",v),kn("invalid",s),ke(s,v),X(s,v.value,v.defaultValue,v.children),Ai(s)}c=v.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||v.suppressHydrationWarning===!0||Mb(s.textContent,c)?(v.popover!=null&&(kn("beforetoggle",s),kn("toggle",s)),v.onScroll!=null&&kn("scroll",s),v.onScrollEnd!=null&&kn("scrollend",s),v.onClick!=null&&(s.onclick=su),s=!0):s=!1,s||Ks(i)}function D1(i){for(Ba=i.return;Ba;)switch(Ba.tag){case 5:case 13:bc=!1;return;case 27:case 3:bc=!0;return;default:Ba=Ba.return}}function nf(i){if(i!==Ba)return!1;if(!ar)return D1(i),ar=!0,!1;var s=i.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||vl(i.type,i.memoizedProps)),c=!c),c&&Di){for(c=Di;c;){var v=bs(i,0),_=Tv(c);v.serverTail.push(_),c=_.type==="Suspense"?Fb(c):co(c.nextSibling)}Ks(i)}if(D1(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Di=Fb(i)}else s===27?(s=Di,yl(i.type)?(i=H8,H8=null,Di=i):Di=s):Di=Ba?co(i.stateNode.nextSibling):null;return!0}function rf(){Di=Ba=null,Ff=ar=!1}function M1(){var i=L0;return i!==null&&(Na===null?Na=i:Na.push.apply(Na,i),L0=null),i}function $d(i){L0===null?L0=[i]:L0.push(i)}function R1(){var i=Ol;if(i!==null){Ol=null;for(var s=bp(i);0<i.children.length;)i=i.children[0];Ot(i.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
5007
5007
|
|
|
5008
5008
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
5009
5009
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -5093,8 +5093,8 @@ act(() => {
|
|
|
5093
5093
|
});
|
|
5094
5094
|
/* assert on the output */
|
|
5095
5095
|
|
|
5096
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(i))})}function ns(i){i!==Ay&&i.next===null&&(Ay===null?Pk=Ay=i:Ay=Ay.next=i),Gk=!0,Ue.actQueue!==null?I8||(I8=!0,Fi()):R8||(R8=!0,Fi())}function Cf(i,s){if(!B8&&Gk){B8=!0;do for(var c=!1,v=Pk;v!==null;){if(i!==0){var _=v.pendingLanes;if(_===0)var C=0;else{var B=v.suspendedLanes,$=v.pingedLanes;C=(1<<31-Eo(42|i)+1)-1,C&=_&~(B&~$),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(c=!0,Sv(v,C))}else C=In,C=Et(v,v===Nr?C:0,v.cancelPendingCommit!==null||v.timeoutHandle!==K0),(C&3)===0||ne(v,C)||(c=!0,Sv(v,C));v=v.next}while(c);B8=!1}}function bv(){_v()}function _v(){Gk=I8=R8=!1;var i=0;Z0!==0&&(ah()&&(i=Z0),Z0=0);for(var s=Sl(),c=null,v=Pk;v!==null;){var _=v.next,C=pl(v,s);C===0?(v.next=null,c===null?Pk=_:c.next=_,_===null&&(Ay=c)):(c=v,(i!==0||(C&3)!==0)&&(Gk=!0)),v=_}Cf(i)}function pl(i,s){for(var c=i.suspendedLanes,v=i.pingedLanes,_=i.expirationTimes,C=i.pendingLanes&-62914561;0<C;){var B=31-Eo(C),$=1<<B,Q=_[B];Q===-1?(($&c)===0||($&v)!==0)&&(_[B]=ae($,s)):Q<=s&&(i.expiredLanes|=$),C&=~$}if(s=Nr,c=In,c=Et(i,i===s?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==K0),v=i.callbackNode,c===0||i===s&&(Sr===q0||Sr===P0)||i.cancelPendingCommit!==null)return v!==null&&wv(v),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||ne(i,c)){if(s=c&-c,s!==i.callbackPriority||Ue.actQueue!==null&&v!==$8)wv(v);else return s;switch(wt(c)){case ho:case Rs:c=C0;break;case gu:c=bh;break;case Gv:c=E0;break;default:c=bh}return v=di.bind(null,i),Ue.actQueue!==null?(Ue.actQueue.push(v),c=$8):c=Uv(c,v),i.callbackPriority=s,i.callbackNode=c,s}return v!==null&&wv(v),i.callbackPriority=2,i.callbackNode=null,2}function di(i,s){if(Dk=Ok=!1,qo!==V0&&qo!==k8)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(nh()&&i.callbackNode!==c)return null;var v=In;return v=Et(i,i===Nr?v:0,i.cancelPendingCommit!==null||i.timeoutHandle!==K0),v===0?null:(zi(i,v,s),pl(i,Sl()),i.callbackNode!=null&&i.callbackNode===c?di.bind(null,i):null)}function Sv(i,s){if(nh())return null;Ok=Dk,Dk=!1,zi(i,s,!0)}function wv(i){i!==$8&&i!==null&&jD(i)}function Fi(){Ue.actQueue!==null&&Ue.actQueue.push(function(){return _v(),null}),P0e(function(){(vr&(La|Su))!==Is?Uv(jv,bv):_v()})}function Ab(){return Z0===0&&(Z0=ge()),Z0}function kb(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:(le(i,"action"),Id(""+i))}function Tb(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function qr(i,s,c,v,_){if(s==="submit"&&c&&c.stateNode===_){var C=kb((_[ha]||null).action),B=v.submitter;B&&(s=(s=B[ha]||null)?kb(s.formAction):B.getAttribute("formAction"),s!==null&&(C=s,B=null));var $=new Zt("action","action",null,v,_);i.push({event:$,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Z0!==0){var Q=B?Tb(_,B):new FormData(_),re={pending:!0,data:Q,method:_.method,action:C};Object.freeze(re),ff(c,re,null,Q)}}else typeof C=="function"&&($.preventDefault(),Q=B?Tb(_,B):new FormData(_),re={pending:!0,data:Q,method:_.method,action:C},Object.freeze(re),ff(c,re,C,Q))},currentTarget:_}]})}}function so(i,s,c){i.currentTarget=c;try{s(i)}catch(v){m8(v)}i.currentTarget=null}function gl(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var v=i[c];e:{var _=void 0,C=v.event;if(v=v.listeners,s)for(var B=v.length-1;0<=B;B--){var $=v[B],Q=$.instance,re=$.currentTarget;if($=$.listener,Q!==_&&C.isPropagationStopped())break e;Q!==null?Ot(Q,so,C,$,re):so(C,$,re),_=Q}else for(B=0;B<v.length;B++){if($=v[B],Q=$.instance,re=$.currentTarget,$=$.listener,Q!==_&&C.isPropagationStopped())break e;Q!==null?Ot(Q,so,C,$,re):so(C,$,re),_=Q}}}}function kn(i,s){L8.has(i)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var c=s[t_];c===void 0&&(c=s[t_]=new Set);var v=i+"__bubble";c.has(v)||(Ev(s,i,2,!1),c.add(v))}function Cv(i,s,c){L8.has(i)&&!s&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var v=0;s&&(v|=4),Ev(c,i,v,s)}function Ob(i){if(!i[Vk]){i[Vk]=!0,mk.forEach(function(c){c!=="selectionchange"&&(L8.has(c)||Cv(c,!1,i),Cv(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Vk]||(s[Vk]=!0,Cv("selectionchange",!1,s))}}function Ev(i,s,c,v){switch(Lv(s)){case ho:var _=zD;break;case Rs:_=$v;break;default:_=uc}c=_.bind(null,s,c,i),_=void 0,!De||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(_=!0),v?_!==void 0?i.addEventListener(s,c,{capture:!0,passive:_}):i.addEventListener(s,c,!0):_!==void 0?i.addEventListener(s,c,{passive:_}):i.addEventListener(s,c,!1)}function No(i,s,c,v,_){var C=v;if((s&1)===0&&(s&2)===0&&v!==null)e:for(;;){if(v===null)return;var B=v.tag;if(B===3||B===4){var $=v.stateNode.containerInfo;if($===_)break;if(B===4)for(B=v.return;B!==null;){var Q=B.tag;if((Q===3||Q===4)&&B.stateNode.containerInfo===_)return;B=B.return}for(;$!==null;){if(B=mn($),B===null)return;if(Q=B.tag,Q===5||Q===6||Q===26||Q===27){v=C=B;continue e}$=$.parentNode}}v=v.return}mm(function(){var re=C,Ne=Kc(c),He=[];e:{var Re=oH.get(i);if(Re!==void 0){var Ge=Zt,Ft=i;switch(i){case"keypress":if(Bd(c)===0)break e;case"keydown":case"keyup":Ge=Wpe;break;case"focusin":Ft="focus",Ge=qn;break;case"focusout":Ft="blur",Ge=qn;break;case"beforeblur":case"afterblur":Ge=qn;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ge=En;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ge=Jt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ge=e0e;break;case tH:case nH:case rH:Ge=VD;break;case iH:Ge=n0e;break;case"scroll":case"scrollend":Ge=Ee;break;case"wheel":Ge=i0e;break;case"copy":case"cut":case"paste":Ge=Ppe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ge=Yj;break;case"toggle":case"beforetoggle":Ge=a0e}var nn=(s&4)!==0,zr=!nn&&(i==="scroll"||i==="scrollend"),zn=nn?Re!==null?Re+"Capture":null:Re;nn=[];for(var de=re,pe;de!==null;){var ye=de;if(pe=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||pe===null||zn===null||(ye=Yl(de,zn),ye!=null&&nn.push(zo(de,ye,pe))),zr)break;de=de.return}0<nn.length&&(Re=new Ge(Re,Ft,null,c,Ne),He.push({event:Re,listeners:nn}))}}if((s&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",Ge=i==="mouseout"||i==="pointerout",Re&&c!==E&&(Ft=c.relatedTarget||c.fromElement)&&(mn(Ft)||Ft[mc]))break e;if((Ge||Re)&&(Re=Ne.window===Ne?Ne:(Re=Ne.ownerDocument)?Re.defaultView||Re.parentWindow:window,Ge?(Ft=c.relatedTarget||c.toElement,Ge=re,Ft=Ft?mn(Ft):null,Ft!==null&&(zr=A(Ft),nn=Ft.tag,Ft!==zr||nn!==5&&nn!==27&&nn!==6)&&(Ft=null)):(Ge=null,Ft=re),Ge!==Ft)){if(nn=En,ye="onMouseLeave",zn="onMouseEnter",de="mouse",(i==="pointerout"||i==="pointerover")&&(nn=Yj,ye="onPointerLeave",zn="onPointerEnter",de="pointer"),zr=Ge==null?Re:Vt(Ge),pe=Ft==null?Re:Vt(Ft),Re=new nn(ye,de+"leave",Ge,c,Ne),Re.target=zr,Re.relatedTarget=pe,ye=null,mn(Ne)===re&&(nn=new nn(zn,de+"enter",Ft,c,Ne),nn.target=pe,nn.relatedTarget=zr,ye=nn),zr=ye,Ge&&Ft)t:{for(nn=Ge,zn=Ft,de=0,pe=nn;pe;pe=Ji(pe))de++;for(pe=0,ye=zn;ye;ye=Ji(ye))pe++;for(;0<de-pe;)nn=Ji(nn),de--;for(;0<pe-de;)zn=Ji(zn),pe--;for(;de--;){if(nn===zn||zn!==null&&nn===zn.alternate)break t;nn=Ji(nn),zn=Ji(zn)}nn=null}else nn=null;Ge!==null&&Db(He,Re,Ge,nn,!1),Ft!==null&&zr!==null&&Db(He,zr,Ft,nn,!0)}}e:{if(Re=re?Vt(re):window,Ge=Re.nodeName&&Re.nodeName.toLowerCase(),Ge==="select"||Ge==="input"&&Re.type==="file")var Ve=x1;else if(C2(Re))if(Jj)Ve=MD;else{Ve=b1;var St=OD}else Ge=Re.nodeName,!Ge||Ge.toLowerCase()!=="input"||Re.type!=="checkbox"&&Re.type!=="radio"?re&&Qc(re.elementType)&&(Ve=x1):Ve=DD;if(Ve&&(Ve=Ve(i,re))){bm(He,Ve,c,Ne);break e}St&&St(i,Re,re),i==="focusout"&&re&&Re.type==="number"&&re.memoizedProps.value!=null&&$r(Re,"number",Re.value)}switch(St=re?Vt(re):window,i){case"focusin":(C2(St)||St.contentEditable==="true")&&(ty=St,ZD=re,__=null);break;case"focusout":__=ZD=ty=null;break;case"mousedown":QD=!0;break;case"contextmenu":case"mouseup":case"dragend":QD=!1,D2(He,c,Ne);break;case"selectionchange":if(c0e)break;case"keydown":case"keyup":D2(He,c,Ne)}var dn;if(YD)e:{switch(i){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else ey?Lo(i,c)&&(Ut="onCompositionEnd"):i==="keydown"&&c.keyCode===Zj&&(Ut="onCompositionStart");Ut&&(Qj&&c.locale!=="ko"&&(ey||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&ey&&(dn=Zl()):(Xe=Ne,$e="value"in Xe?Xe.value:Xe.textContent,ey=!0)),St=c0(re,Ut),0<St.length&&(Ut=new Vj(Ut,i,null,c,Ne),He.push({event:Ut,listeners:St}),dn?Ut.data=dn:(dn=Fu(c),dn!==null&&(Ut.data=dn)))),(dn=l0e?xm(i,c):wp(i,c))&&(Ut=c0(re,"onBeforeInput"),0<Ut.length&&(St=new Vpe("onBeforeInput","beforeinput",null,c,Ne),He.push({event:St,listeners:Ut}),St.data=dn)),qr(He,i,re,c,Ne)}gl(He,s)})}function zo(i,s,c){return{instance:i,listener:s,currentTarget:c}}function c0(i,s){for(var c=s+"Capture",v=[];i!==null;){var _=i,C=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||C===null||(_=Yl(i,c),_!=null&&v.unshift(zo(i,_,C)),_=Yl(i,s),_!=null&&v.push(zo(i,_,C))),i.tag===3)return v;i=i.return}return[]}function Ji(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Db(i,s,c,v,_){for(var C=s._reactName,B=[];c!==null&&c!==v;){var $=c,Q=$.alternate,re=$.stateNode;if($=$.tag,Q!==null&&Q===v)break;$!==5&&$!==26&&$!==27||re===null||(Q=re,_?(re=Yl(c,C),re!=null&&B.unshift(zo(c,re,Q))):_||(re=Yl(c,C),re!=null&&B.push(zo(c,re,Q)))),c=c.return}B.length!==0&&i.push({event:s,listeners:B})}function ml(i,s){Rd(i,s),i!=="input"&&i!=="textarea"&&i!=="select"||s==null||s.value!==null||v_||(v_=!0,i==="select"&&s.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i));var c={registrationNameDependencies:ss,possibleRegistrationNames:If};Qc(i)||typeof s.is=="string"||m1(i,s,c),s.contentEditable&&!s.suppressContentEditableWarning&&s.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Pr(i,s,c,v){s!==c&&(c=lo(c),lo(s)!==c&&(v[i]=s))}function ac(i,s,c){s.forEach(function(v){c[Rb(v)]=v==="style"?Af(i):i.getAttribute(v)})}function rs(i,s){s===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof s)}function Av(i,s){return i=i.namespaceURI===R0||i.namespaceURI===kh?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=s,i.innerHTML}function lo(i){return H(i)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Me(i)),te(i)),(typeof i=="string"?i:""+i).replace($0e,`
|
|
5097
|
-
`).replace(L0e,"")}function Mb(i,s){return s=lo(s),lo(i)===s}function su(){}function ir(i,s,c,v,_,C){switch(c){case"children":typeof v=="string"?(_p(v,s,!1),s==="body"||s==="textarea"&&v===""||Zc(i,v)):(typeof v=="number"||typeof v=="bigint")&&(_p(""+v,s,!1),s!=="body"&&Zc(i,""+v));break;case"className":Zn(i,"class",v);break;case"tabIndex":Zn(i,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Zn(i,c,v);break;case"style":Sp(i,v,C);break;case"data":if(s!=="object"){Zn(i,"data",v);break}case"src":case"href":if(v===""&&(s!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}le(v,c),v=Id(""+v),i.setAttribute(c,v);break;case"action":case"formAction":if(v!=null&&(s==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof v=="function"&&(_.encType==null&&_.method==null||Qk||(Qk=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),_.target==null||Zk||(Zk=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):s==="input"||s==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):s!=="input"||_.type==="submit"||_.type==="image"||Yk?s!=="button"||_.type==null||_.type==="submit"||Yk?typeof v=="function"&&(_.name==null||bq||(bq=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),_.formEncType==null&&_.formMethod==null||Qk||(Qk=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),_.formTarget==null||Zk||(Zk=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Yk=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Yk=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof v=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(s!=="input"&&ir(i,s,"name",_.name,_,null),ir(i,s,"formEncType",_.formEncType,_,null),ir(i,s,"formMethod",_.formMethod,_,null),ir(i,s,"formTarget",_.formTarget,_,null)):(ir(i,s,"encType",_.encType,_,null),ir(i,s,"method",_.method,_,null),ir(i,s,"target",_.target,_,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}le(v,c),v=Id(""+v),i.setAttribute(c,v);break;case"onClick":v!=null&&(typeof v!="function"&&rs(c,v),i.onclick=su);break;case"onScroll":v!=null&&(typeof v!="function"&&rs(c,v),kn("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&rs(c,v),kn("scrollend",i));break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":i.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){i.removeAttribute("xlink:href");break}le(v,c),c=Id(""+v),i.setAttributeNS(Q0,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?(le(v,c),i.setAttribute(c,""+v)):i.removeAttribute(c);break;case"inert":v!==""||Kk[c]||(Kk[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":v===!0?i.setAttribute(c,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?(le(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?(le(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?i.removeAttribute(c):(le(v,c),i.setAttribute(c,v));break;case"popover":kn("beforetoggle",i),kn("toggle",i),kr(i,"popover",v);break;case"xlinkActuate":nr(i,Q0,"xlink:actuate",v);break;case"xlinkArcrole":nr(i,Q0,"xlink:arcrole",v);break;case"xlinkRole":nr(i,Q0,"xlink:role",v);break;case"xlinkShow":nr(i,Q0,"xlink:show",v);break;case"xlinkTitle":nr(i,Q0,"xlink:title",v);break;case"xlinkType":nr(i,Q0,"xlink:type",v);break;case"xmlBase":nr(i,N8,"xml:base",v);break;case"xmlLang":nr(i,N8,"xml:lang",v);break;case"xmlSpace":nr(i,N8,"xml:space",v);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),kr(i,"is",v);break;case"innerText":case"textContent":break;case"popoverTarget":_q||v==null||typeof v!="object"||(_q=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",v));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=gm(c),kr(i,c,v)):ss.hasOwnProperty(c)&&v!=null&&typeof v!="function"&&rs(c,v)}}function Ef(i,s,c,v,_,C){switch(c){case"style":Sp(i,v,C);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof v=="string"?Zc(i,v):(typeof v=="number"||typeof v=="bigint")&&Zc(i,""+v);break;case"onScroll":v!=null&&(typeof v!="function"&&rs(c,v),kn("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&rs(c,v),kn("scrollend",i));break;case"onClick":v!=null&&(typeof v!="function"&&rs(c,v),i.onclick=su);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ss.hasOwnProperty(c))v!=null&&typeof v!="function"&&rs(c,v);else e:{if(c[0]==="o"&&c[1]==="n"&&(_=c.endsWith("Capture"),s=c.slice(2,_?c.length-7:void 0),C=i[ha]||null,C=C!=null?C[c]:null,typeof C=="function"&&i.removeEventListener(s,C,_),typeof v=="function")){typeof C!="function"&&C!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,v,_);break e}c in i?i[c]=v:v===!0?i.setAttribute(c,""):kr(i,c,v)}}}function hi(i,s,c){switch(ml(s,c),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kn("error",i),kn("load",i);var v=!1,_=!1,C;for(C in c)if(c.hasOwnProperty(C)){var B=c[C];if(B!=null)switch(C){case"src":v=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,C,B,c,null)}}_&&ir(i,s,"srcSet",c.srcSet,c,null),v&&ir(i,s,"src",c.src,c,null);return;case"input":Yn("input",c),kn("invalid",i);var $=C=B=_=null,Q=null,re=null;for(v in c)if(c.hasOwnProperty(v)){var Ne=c[v];if(Ne!=null)switch(v){case"name":_=Ne;break;case"type":B=Ne;break;case"checked":Q=Ne;break;case"defaultChecked":re=Ne;break;case"value":C=Ne;break;case"defaultValue":$=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,v,Ne,c,null)}}ki(i,c),wa(i,C,$,Q,re,B,_,!1),Ai(i);return;case"select":Yn("select",c),kn("invalid",i),v=B=C=null;for(_ in c)if(c.hasOwnProperty(_)&&($=c[_],$!=null))switch(_){case"value":C=$;break;case"defaultValue":B=$;break;case"multiple":v=$;default:ir(i,s,_,$,c,null)}se(i,c),s=C,c=B,i.multiple=!!v,s!=null?Je(i,!!v,s,!1):c!=null&&Je(i,!!v,c,!0);return;case"textarea":Yn("textarea",c),kn("invalid",i),C=_=v=null;for(B in c)if(c.hasOwnProperty(B)&&($=c[B],$!=null))switch(B){case"value":v=$;break;case"defaultValue":_=$;break;case"children":C=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ir(i,s,B,$,c,null)}Ae(i,c),X(i,v,_,C),Ai(i);return;case"option":et(i,c);for(Q in c)if(c.hasOwnProperty(Q)&&(v=c[Q],v!=null))switch(Q){case"selected":i.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ir(i,s,Q,v,c,null)}return;case"dialog":kn("beforetoggle",i),kn("toggle",i),kn("cancel",i),kn("close",i);break;case"iframe":case"object":kn("load",i);break;case"video":case"audio":for(v=0;v<G_.length;v++)kn(G_[v],i);break;case"image":kn("error",i),kn("load",i);break;case"details":kn("toggle",i);break;case"embed":case"source":case"link":kn("error",i),kn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in c)if(c.hasOwnProperty(re)&&(v=c[re],v!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,re,v,c,null)}return;default:if(Qc(s)){for(Ne in c)c.hasOwnProperty(Ne)&&(v=c[Ne],v!==void 0&&Ef(i,s,Ne,v,c,void 0));return}}for($ in c)c.hasOwnProperty($)&&(v=c[$],v!=null&&ir(i,s,$,v,c,null))}function tk(i,s,c,v){switch(ml(s,v),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,C=null,B=null,$=null,Q=null,re=null,Ne=null;for(Ge in c){var He=c[Ge];if(c.hasOwnProperty(Ge)&&He!=null)switch(Ge){case"checked":break;case"value":break;case"defaultValue":Q=He;default:v.hasOwnProperty(Ge)||ir(i,s,Ge,null,v,He)}}for(var Re in v){var Ge=v[Re];if(He=c[Re],v.hasOwnProperty(Re)&&(Ge!=null||He!=null))switch(Re){case"type":C=Ge;break;case"name":_=Ge;break;case"checked":re=Ge;break;case"defaultChecked":Ne=Ge;break;case"value":B=Ge;break;case"defaultValue":$=Ge;break;case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ge!==He&&ir(i,s,Re,Ge,v,He)}}s=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,v=v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null,s||!v||xq||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xq=!0),!s||v||yq||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),yq=!0),Dr(i,B,$,Q,re,Ne,C,_);return;case"select":Ge=B=$=Re=null;for(C in c)if(Q=c[C],c.hasOwnProperty(C)&&Q!=null)switch(C){case"value":break;case"multiple":Ge=Q;default:v.hasOwnProperty(C)||ir(i,s,C,null,v,Q)}for(_ in v)if(C=v[_],Q=c[_],v.hasOwnProperty(_)&&(C!=null||Q!=null))switch(_){case"value":Re=C;break;case"defaultValue":$=C;break;case"multiple":B=C;default:C!==Q&&ir(i,s,_,C,v,Q)}v=$,s=B,c=Ge,Re!=null?Je(i,!!s,Re,!1):!!c!=!!s&&(v!=null?Je(i,!!s,v,!0):Je(i,!!s,s?[]:"",!1));return;case"textarea":Ge=Re=null;for($ in c)if(_=c[$],c.hasOwnProperty($)&&_!=null&&!v.hasOwnProperty($))switch($){case"value":break;case"children":break;default:ir(i,s,$,null,v,_)}for(B in v)if(_=v[B],C=c[B],v.hasOwnProperty(B)&&(_!=null||C!=null))switch(B){case"value":Re=_;break;case"defaultValue":Ge=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_!==C&&ir(i,s,B,_,v,C)}z(i,Re,Ge);return;case"option":for(var Ft in c)if(Re=c[Ft],c.hasOwnProperty(Ft)&&Re!=null&&!v.hasOwnProperty(Ft))switch(Ft){case"selected":i.selected=!1;break;default:ir(i,s,Ft,null,v,Re)}for(Q in v)if(Re=v[Q],Ge=c[Q],v.hasOwnProperty(Q)&&Re!==Ge&&(Re!=null||Ge!=null))switch(Q){case"selected":i.selected=Re&&typeof Re!="function"&&typeof Re!="symbol";break;default:ir(i,s,Q,Re,v,Ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nn in c)Re=c[nn],c.hasOwnProperty(nn)&&Re!=null&&!v.hasOwnProperty(nn)&&ir(i,s,nn,null,v,Re);for(re in v)if(Re=v[re],Ge=c[re],v.hasOwnProperty(re)&&Re!==Ge&&(Re!=null||Ge!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,re,Re,v,Ge)}return;default:if(Qc(s)){for(var zr in c)Re=c[zr],c.hasOwnProperty(zr)&&Re!==void 0&&!v.hasOwnProperty(zr)&&Ef(i,s,zr,void 0,v,Re);for(Ne in v)Re=v[Ne],Ge=c[Ne],!v.hasOwnProperty(Ne)||Re===Ge||Re===void 0&&Ge===void 0||Ef(i,s,Ne,Re,v,Ge);return}}for(var zn in c)Re=c[zn],c.hasOwnProperty(zn)&&Re!=null&&!v.hasOwnProperty(zn)&&ir(i,s,zn,null,v,Re);for(He in v)Re=v[He],Ge=c[He],!v.hasOwnProperty(He)||Re===Ge||Re==null&&Ge==null||ir(i,s,He,Re,v,Ge)}function Rb(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function Af(i){var s={};i=i.style;for(var c=0;c<i.length;c++){var v=i[c];s[v]=i.getPropertyValue(v)}return s}function Ib(i,s,c){if(s!=null&&typeof s!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var v,_=v="",C;for(C in s)if(s.hasOwnProperty(C)){var B=s[C];B!=null&&typeof B!="boolean"&&B!==""&&(C.indexOf("--")===0?(P(B,C),v+=_+C+":"+(""+B).trim()):typeof B!="number"||B===0||M0.has(C)?(P(B,C),v+=_+C.replace(mu,"-$1").toLowerCase().replace(vu,"-ms-")+":"+(""+B).trim()):v+=_+C.replace(mu,"-$1").toLowerCase().replace(vu,"-ms-")+":"+B+"px",_=";")}v=v||null,s=i.getAttribute("style"),s!==v&&(v=lo(v),lo(s)!==v&&(c.style=Af(i)))}}function Fo(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(le(v,s),i===""+v)return}Pr(s,i,v,C)}function Bb(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null){switch(typeof v){case"function":case"symbol":return}if(!v)return}else switch(typeof v){case"function":case"symbol":break;default:if(v)return}Pr(s,i,v,C)}function $b(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":return}else if(v!=null)switch(typeof v){case"function":case"symbol":break;default:if(le(v,c),i===""+v)return}Pr(s,i,v,C)}function nk(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(v))return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!isNaN(v)&&(le(v,s),i===""+v))return}Pr(s,i,v,C)}function cr(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(le(v,s),c=Id(""+v),i===c)return}Pr(s,i,v,C)}function Mr(i,s,c,v){for(var _={},C=new Set,B=i.attributes,$=0;$<B.length;$++)switch(B[$].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add(B[$].name)}if(Qc(s)){for(var Q in c)if(c.hasOwnProperty(Q)){var re=c[Q];if(re!=null){if(ss.hasOwnProperty(Q))typeof re!="function"&&rs(Q,re);else if(c.suppressHydrationWarning!==!0)switch(Q){case"children":typeof re!="string"&&typeof re!="number"||Pr("children",i.textContent,re,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=i.innerHTML,re=re?re.__html:void 0,re!=null&&(re=Av(i,re),Pr(Q,B,re,_));continue;case"style":C.delete(Q),Ib(i,re,_);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(Q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Q);continue;case"className":C.delete("class"),B=Ar(i,"class",re),Pr("className",B,re,_);continue;default:v.context===Gf&&s!=="svg"&&s!=="math"?C.delete(Q.toLowerCase()):C.delete(Q),B=Ar(i,Q,re),Pr(Q,B,re,_)}}}}else for(re in c)if(c.hasOwnProperty(re)&&(Q=c[re],Q!=null)){if(ss.hasOwnProperty(re))typeof Q!="function"&&rs(re,Q);else if(c.suppressHydrationWarning!==!0)switch(re){case"children":typeof Q!="string"&&typeof Q!="number"||Pr("children",i.textContent,Q,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=i.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Av(i,Q),B!==Q&&(_[re]={__html:B}));continue;case"className":Fo(i,re,"class",Q,C,_);continue;case"tabIndex":Fo(i,re,"tabindex",Q,C,_);continue;case"style":C.delete(re),Ib(i,Q,_);continue;case"multiple":C.delete(re),Pr(re,i.multiple,Q,_);continue;case"muted":C.delete(re),Pr(re,i.muted,Q,_);continue;case"autoFocus":C.delete("autofocus"),Pr(re,i.autofocus,Q,_);continue;case"data":if(s!=="object"){C.delete(re),B=i.getAttribute("data"),Pr(re,B,Q,_);continue}case"src":case"href":if(!(Q!==""||s==="a"&&re==="href"||s==="object"&&re==="data")){console.error(re==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',re,re);continue}cr(i,re,re,Q,C,_);continue;case"action":case"formAction":if(B=i.getAttribute(re),typeof Q=="function"){C.delete(re.toLowerCase()),re==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if(B===N0e){C.delete(re.toLowerCase()),Pr(re,"function",Q,_);continue}cr(i,re,re.toLowerCase(),Q,C,_);continue;case"xlinkHref":cr(i,re,"xlink:href",Q,C,_);continue;case"contentEditable":$b(i,re,"contenteditable",Q,C,_);continue;case"spellCheck":$b(i,re,"spellcheck",Q,C,_);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":$b(i,re,re,Q,C,_);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Bb(i,re,re.toLowerCase(),Q,C,_);continue;case"capture":case"download":e:{$=i;var Ne=B=re,He=_;if(C.delete(Ne),$=$.getAttribute(Ne),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":break e;default:if(Q===!1)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":break;case"boolean":if(Q===!0&&$==="")break e;break;default:if(le(Q,B),$===""+Q)break e}Pr(B,$,Q,He)}continue;case"cols":case"rows":case"size":case"span":e:{if($=i,Ne=B=re,He=_,C.delete(Ne),$=$.getAttribute(Ne),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Q)||1>Q)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Q)||1>Q)&&(le(Q,B),$===""+Q))break e}Pr(B,$,Q,He)}continue;case"rowSpan":nk(i,re,"rowspan",Q,C,_);continue;case"start":nk(i,re,re,Q,C,_);continue;case"xHeight":Fo(i,re,"x-height",Q,C,_);continue;case"xlinkActuate":Fo(i,re,"xlink:actuate",Q,C,_);continue;case"xlinkArcrole":Fo(i,re,"xlink:arcrole",Q,C,_);continue;case"xlinkRole":Fo(i,re,"xlink:role",Q,C,_);continue;case"xlinkShow":Fo(i,re,"xlink:show",Q,C,_);continue;case"xlinkTitle":Fo(i,re,"xlink:title",Q,C,_);continue;case"xlinkType":Fo(i,re,"xlink:type",Q,C,_);continue;case"xmlBase":Fo(i,re,"xml:base",Q,C,_);continue;case"xmlLang":Fo(i,re,"xml:lang",Q,C,_);continue;case"xmlSpace":Fo(i,re,"xml:space",Q,C,_);continue;case"inert":Q!==""||Kk[re]||(Kk[re]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",re)),Bb(i,re,re,Q,C,_);continue;default:if(!(2<re.length)||re[0]!=="o"&&re[0]!=="O"||re[1]!=="n"&&re[1]!=="N"){$=gm(re),B=!1,v.context===Gf&&s!=="svg"&&s!=="math"?C.delete($.toLowerCase()):(Ne=re.toLowerCase(),Ne=Lf.hasOwnProperty(Ne)&&Lf[Ne]||null,Ne!==null&&Ne!==re&&(B=!0,C.delete(Ne)),C.delete($));e:if(Ne=i,He=$,$=Q,tr(He))if(Ne.hasAttribute(He))Ne=Ne.getAttribute(He),le($,He),$=Ne===""+$?$:Ne;else{switch(typeof $){case"function":case"symbol":break e;case"boolean":if(Ne=He.toLowerCase().slice(0,5),Ne!=="data-"&&Ne!=="aria-")break e}$=$===void 0?void 0:null}else $=void 0;B||Pr(re,$,Q,_)}}}return 0<C.size&&c.suppressHydrationWarning!==!0&&ac(i,C,_),Object.keys(_).length===0?null:_}function Tn(i,s){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+s+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+s+" "+i[i.length-1]}}function On(i){return i.nodeType===9?i:i.ownerDocument}function dr(i){switch(i){case kh:return ky;case R0:return Jk;default:return Gf}}function ua(i,s){if(i===Gf)switch(s){case"svg":return ky;case"math":return Jk;default:return Gf}return i===ky&&s==="foreignObject"?Gf:i}function vl(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function ah(){var i=window.event;return i&&i.type==="popstate"?i===j8?!1:(j8=i,!0):(j8=null,!1)}function Lb(i){setTimeout(function(){throw i})}function lu(i,s,c){switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function pi(i,s,c,v){tk(i,s,c,v),i[ha]=v}function uu(i){Zc(i,"")}function kf(i,s,c){i.nodeValue=c}function yl(i){return i==="head"}function is(i,s){i.removeChild(s)}function sh(i,s){(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).removeChild(s)}function lh(i,s){var c=s,v=0,_=0;do{var C=c.nextSibling;if(i.removeChild(c),C&&C.nodeType===8)if(c=C.data,c===Xk){if(0<v&&8>v){c=v;var B=i.ownerDocument;if(c&F0e&&dh(B.documentElement),c&U0e&&dh(B.body),c&j0e)for(c=B.head,dh(c),B=c.firstChild;B;){var $=B.nextSibling,Q=B.nodeName;B[wh]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&B.rel.toLowerCase()==="stylesheet"||c.removeChild(B),B=$}}if(_===0){i.removeChild(C),Mf(s);return}_--}else c===Wk||c===Pf||c===V_?_++:v=c.charCodeAt(0)-48;else v=0;c=C}while(c);Mf(s)}function ca(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function Nb(i){i.nodeValue=""}function zb(i,s){s=s[H0e],s=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}function kv(i,s){i.nodeValue=s}function uh(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":uh(c),Ht(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function sc(i,s,c,v){for(;i.nodeType===1;){var _=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!v&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(v){if(!i[wh])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(C=i.getAttribute("rel"),C==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(C!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(C=i.getAttribute("src"),(C!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&C&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){le(_.name,"name");var C=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===C)return i}else return i;if(i=co(i.nextSibling),i===null)break}return null}function uo(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=co(i.nextSibling),i===null))return null;return i}function xl(i){return i.data===V_||i.data===Pf&&i.ownerDocument.readyState===wq}function ch(i,s){var c=i.ownerDocument;if(i.data!==Pf||c.readyState===wq)s();else{var v=function(){s(),c.removeEventListener("DOMContentLoaded",v)};c.addEventListener("DOMContentLoaded",v),i._reactRetry=v}}function co(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s===Wk||s===V_||s===Pf||s===z8||s===Sq)break;if(s===Xk)return null}}return i}function Tv(i){if(i.nodeType===1){for(var s=i.nodeName.toLowerCase(),c={},v=i.attributes,_=0;_<v.length;_++){var C=v[_];c[Rb(C.name)]=C.name.toLowerCase()==="style"?Af(i):C.value}return{type:s,props:c}}return i.nodeType===8?{type:"Suspense",props:{}}:i.nodeValue}function Ov(i,s,c){return c===null||c[z0e]!==!0?(i.nodeValue===s?i=null:(s=lo(s),i=lo(i.nodeValue)===s?null:i.nodeValue),i):null}function Fb(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===Xk){if(s===0)return co(i.nextSibling);s--}else c!==Wk&&c!==V_&&c!==Pf||s++}i=i.nextSibling}return null}function fh(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===Wk||c===V_||c===Pf){if(s===0)return i;s--}else c===Xk&&s++}i=i.previousSibling}return null}function Ub(i){Mf(i)}function Oa(i){Mf(i)}function jb(i,s,c,v,_){switch(_&&pm(i,v.ancestorInfo),s=On(c),i){case"html":if(i=s.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=s.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=s.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Da(i,s,c,v){if(!c[mc]&&pt(c)){var _=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",_,_,_)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(_=c.attributes;_.length;)c.removeAttributeNode(_[0]);hi(c,i,s),c[Ao]=v,c[ha]=s}function dh(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Ht(i)}function f0(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function rk(i,s,c){var v=Ty;if(v&&typeof s=="string"&&s){var _=xr(s);_='link[rel="'+i+'"][href="'+_+'"]',typeof c=="string"&&(_+='[crossorigin="'+c+'"]'),Oq.has(_)||(Oq.add(_),i={rel:i,crossOrigin:c,href:s},v.querySelector(_)===null&&(s=v.createElement("link"),hi(s,"link",i),At(s),v.head.appendChild(s)))}}function cu(i,s,c,v){var _=(_=_l.current)?f0(_):null;if(!_)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=lc(c.href),s=mt(_).hoistableStyles,v=s.get(c),v||(v={type:"style",instance:null,count:0,state:null},s.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=lc(c.href);var C=mt(_).hoistableStyles,B=C.get(i);if(!B&&(_=_.ownerDocument||_,B={type:"stylesheet",instance:null,count:0,state:{loading:W0,preload:null}},C.set(i,B),(C=_.querySelector(bl(i)))&&!C._p&&(B.instance=C,B.state.loading=Y_|Bl),!$l.has(i))){var $={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};$l.set(i,$),C||ik(_,i,$,B.state)}if(s&&v===null)throw c=`
|
|
5096
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(i))})}function ns(i){i!==Ay&&i.next===null&&(Ay===null?Pk=Ay=i:Ay=Ay.next=i),Gk=!0,Ue.actQueue!==null?I8||(I8=!0,Fi()):R8||(R8=!0,Fi())}function Cf(i,s){if(!B8&&Gk){B8=!0;do for(var c=!1,v=Pk;v!==null;){if(i!==0){var _=v.pendingLanes;if(_===0)var C=0;else{var B=v.suspendedLanes,$=v.pingedLanes;C=(1<<31-Eo(42|i)+1)-1,C&=_&~(B&~$),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(c=!0,Sv(v,C))}else C=In,C=Et(v,v===Nr?C:0,v.cancelPendingCommit!==null||v.timeoutHandle!==K0),(C&3)===0||ne(v,C)||(c=!0,Sv(v,C));v=v.next}while(c);B8=!1}}function bv(){_v()}function _v(){Gk=I8=R8=!1;var i=0;Z0!==0&&(ah()&&(i=Z0),Z0=0);for(var s=Sl(),c=null,v=Pk;v!==null;){var _=v.next,C=pl(v,s);C===0?(v.next=null,c===null?Pk=_:c.next=_,_===null&&(Ay=c)):(c=v,(i!==0||(C&3)!==0)&&(Gk=!0)),v=_}Cf(i)}function pl(i,s){for(var c=i.suspendedLanes,v=i.pingedLanes,_=i.expirationTimes,C=i.pendingLanes&-62914561;0<C;){var B=31-Eo(C),$=1<<B,Q=_[B];Q===-1?(($&c)===0||($&v)!==0)&&(_[B]=ae($,s)):Q<=s&&(i.expiredLanes|=$),C&=~$}if(s=Nr,c=In,c=Et(i,i===s?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==K0),v=i.callbackNode,c===0||i===s&&(Sr===q0||Sr===P0)||i.cancelPendingCommit!==null)return v!==null&&wv(v),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||ne(i,c)){if(s=c&-c,s!==i.callbackPriority||Ue.actQueue!==null&&v!==$8)wv(v);else return s;switch(wt(c)){case ho:case Rs:c=C0;break;case gu:c=bh;break;case Gv:c=E0;break;default:c=bh}return v=di.bind(null,i),Ue.actQueue!==null?(Ue.actQueue.push(v),c=$8):c=Uv(c,v),i.callbackPriority=s,i.callbackNode=c,s}return v!==null&&wv(v),i.callbackPriority=2,i.callbackNode=null,2}function di(i,s){if(Dk=Ok=!1,qo!==V0&&qo!==k8)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(nh()&&i.callbackNode!==c)return null;var v=In;return v=Et(i,i===Nr?v:0,i.cancelPendingCommit!==null||i.timeoutHandle!==K0),v===0?null:(zi(i,v,s),pl(i,Sl()),i.callbackNode!=null&&i.callbackNode===c?di.bind(null,i):null)}function Sv(i,s){if(nh())return null;Ok=Dk,Dk=!1,zi(i,s,!0)}function wv(i){i!==$8&&i!==null&&jD(i)}function Fi(){Ue.actQueue!==null&&Ue.actQueue.push(function(){return _v(),null}),P0e(function(){(vr&(La|Su))!==Is?Uv(jv,bv):_v()})}function Ab(){return Z0===0&&(Z0=ge()),Z0}function kb(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:(le(i,"action"),Id(""+i))}function Tb(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function qr(i,s,c,v,_){if(s==="submit"&&c&&c.stateNode===_){var C=kb((_[ha]||null).action),B=v.submitter;B&&(s=(s=B[ha]||null)?kb(s.formAction):B.getAttribute("formAction"),s!==null&&(C=s,B=null));var $=new Zt("action","action",null,v,_);i.push({event:$,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Z0!==0){var Q=B?Tb(_,B):new FormData(_),re={pending:!0,data:Q,method:_.method,action:C};Object.freeze(re),ff(c,re,null,Q)}}else typeof C=="function"&&($.preventDefault(),Q=B?Tb(_,B):new FormData(_),re={pending:!0,data:Q,method:_.method,action:C},Object.freeze(re),ff(c,re,C,Q))},currentTarget:_}]})}}function so(i,s,c){i.currentTarget=c;try{s(i)}catch(v){m8(v)}i.currentTarget=null}function gl(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var v=i[c];e:{var _=void 0,C=v.event;if(v=v.listeners,s)for(var B=v.length-1;0<=B;B--){var $=v[B],Q=$.instance,re=$.currentTarget;if($=$.listener,Q!==_&&C.isPropagationStopped())break e;Q!==null?Ot(Q,so,C,$,re):so(C,$,re),_=Q}else for(B=0;B<v.length;B++){if($=v[B],Q=$.instance,re=$.currentTarget,$=$.listener,Q!==_&&C.isPropagationStopped())break e;Q!==null?Ot(Q,so,C,$,re):so(C,$,re),_=Q}}}}function kn(i,s){L8.has(i)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var c=s[t_];c===void 0&&(c=s[t_]=new Set);var v=i+"__bubble";c.has(v)||(Ev(s,i,2,!1),c.add(v))}function Cv(i,s,c){L8.has(i)&&!s&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var v=0;s&&(v|=4),Ev(c,i,v,s)}function Ob(i){if(!i[Vk]){i[Vk]=!0,mk.forEach(function(c){c!=="selectionchange"&&(L8.has(c)||Cv(c,!1,i),Cv(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Vk]||(s[Vk]=!0,Cv("selectionchange",!1,s))}}function Ev(i,s,c,v){switch(Lv(s)){case ho:var _=zD;break;case Rs:_=$v;break;default:_=uc}c=_.bind(null,s,c,i),_=void 0,!De||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(_=!0),v?_!==void 0?i.addEventListener(s,c,{capture:!0,passive:_}):i.addEventListener(s,c,!0):_!==void 0?i.addEventListener(s,c,{passive:_}):i.addEventListener(s,c,!1)}function No(i,s,c,v,_){var C=v;if((s&1)===0&&(s&2)===0&&v!==null)e:for(;;){if(v===null)return;var B=v.tag;if(B===3||B===4){var $=v.stateNode.containerInfo;if($===_)break;if(B===4)for(B=v.return;B!==null;){var Q=B.tag;if((Q===3||Q===4)&&B.stateNode.containerInfo===_)return;B=B.return}for(;$!==null;){if(B=mn($),B===null)return;if(Q=B.tag,Q===5||Q===6||Q===26||Q===27){v=C=B;continue e}$=$.parentNode}}v=v.return}mm(function(){var re=C,Ne=Kc(c),He=[];e:{var Re=oH.get(i);if(Re!==void 0){var Ge=Zt,Ft=i;switch(i){case"keypress":if(Bd(c)===0)break e;case"keydown":case"keyup":Ge=Wpe;break;case"focusin":Ft="focus",Ge=qn;break;case"focusout":Ft="blur",Ge=qn;break;case"beforeblur":case"afterblur":Ge=qn;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ge=En;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ge=Jt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ge=e0e;break;case tH:case nH:case rH:Ge=VD;break;case iH:Ge=n0e;break;case"scroll":case"scrollend":Ge=Ae;break;case"wheel":Ge=i0e;break;case"copy":case"cut":case"paste":Ge=Ppe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ge=Yj;break;case"toggle":case"beforetoggle":Ge=a0e}var nn=(s&4)!==0,zr=!nn&&(i==="scroll"||i==="scrollend"),zn=nn?Re!==null?Re+"Capture":null:Re;nn=[];for(var de=re,pe;de!==null;){var ye=de;if(pe=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||pe===null||zn===null||(ye=Yl(de,zn),ye!=null&&nn.push(zo(de,ye,pe))),zr)break;de=de.return}0<nn.length&&(Re=new Ge(Re,Ft,null,c,Ne),He.push({event:Re,listeners:nn}))}}if((s&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",Ge=i==="mouseout"||i==="pointerout",Re&&c!==E&&(Ft=c.relatedTarget||c.fromElement)&&(mn(Ft)||Ft[mc]))break e;if((Ge||Re)&&(Re=Ne.window===Ne?Ne:(Re=Ne.ownerDocument)?Re.defaultView||Re.parentWindow:window,Ge?(Ft=c.relatedTarget||c.toElement,Ge=re,Ft=Ft?mn(Ft):null,Ft!==null&&(zr=A(Ft),nn=Ft.tag,Ft!==zr||nn!==5&&nn!==27&&nn!==6)&&(Ft=null)):(Ge=null,Ft=re),Ge!==Ft)){if(nn=En,ye="onMouseLeave",zn="onMouseEnter",de="mouse",(i==="pointerout"||i==="pointerover")&&(nn=Yj,ye="onPointerLeave",zn="onPointerEnter",de="pointer"),zr=Ge==null?Re:Vt(Ge),pe=Ft==null?Re:Vt(Ft),Re=new nn(ye,de+"leave",Ge,c,Ne),Re.target=zr,Re.relatedTarget=pe,ye=null,mn(Ne)===re&&(nn=new nn(zn,de+"enter",Ft,c,Ne),nn.target=pe,nn.relatedTarget=zr,ye=nn),zr=ye,Ge&&Ft)t:{for(nn=Ge,zn=Ft,de=0,pe=nn;pe;pe=Ji(pe))de++;for(pe=0,ye=zn;ye;ye=Ji(ye))pe++;for(;0<de-pe;)nn=Ji(nn),de--;for(;0<pe-de;)zn=Ji(zn),pe--;for(;de--;){if(nn===zn||zn!==null&&nn===zn.alternate)break t;nn=Ji(nn),zn=Ji(zn)}nn=null}else nn=null;Ge!==null&&Db(He,Re,Ge,nn,!1),Ft!==null&&zr!==null&&Db(He,zr,Ft,nn,!0)}}e:{if(Re=re?Vt(re):window,Ge=Re.nodeName&&Re.nodeName.toLowerCase(),Ge==="select"||Ge==="input"&&Re.type==="file")var Ve=x1;else if(C2(Re))if(Jj)Ve=MD;else{Ve=b1;var St=OD}else Ge=Re.nodeName,!Ge||Ge.toLowerCase()!=="input"||Re.type!=="checkbox"&&Re.type!=="radio"?re&&Qc(re.elementType)&&(Ve=x1):Ve=DD;if(Ve&&(Ve=Ve(i,re))){bm(He,Ve,c,Ne);break e}St&&St(i,Re,re),i==="focusout"&&re&&Re.type==="number"&&re.memoizedProps.value!=null&&$r(Re,"number",Re.value)}switch(St=re?Vt(re):window,i){case"focusin":(C2(St)||St.contentEditable==="true")&&(ty=St,ZD=re,__=null);break;case"focusout":__=ZD=ty=null;break;case"mousedown":QD=!0;break;case"contextmenu":case"mouseup":case"dragend":QD=!1,D2(He,c,Ne);break;case"selectionchange":if(c0e)break;case"keydown":case"keyup":D2(He,c,Ne)}var dn;if(YD)e:{switch(i){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else ey?Lo(i,c)&&(Ut="onCompositionEnd"):i==="keydown"&&c.keyCode===Zj&&(Ut="onCompositionStart");Ut&&(Qj&&c.locale!=="ko"&&(ey||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&ey&&(dn=Zl()):(Xe=Ne,$e="value"in Xe?Xe.value:Xe.textContent,ey=!0)),St=c0(re,Ut),0<St.length&&(Ut=new Vj(Ut,i,null,c,Ne),He.push({event:Ut,listeners:St}),dn?Ut.data=dn:(dn=Fu(c),dn!==null&&(Ut.data=dn)))),(dn=l0e?xm(i,c):wp(i,c))&&(Ut=c0(re,"onBeforeInput"),0<Ut.length&&(St=new Vpe("onBeforeInput","beforeinput",null,c,Ne),He.push({event:St,listeners:Ut}),St.data=dn)),qr(He,i,re,c,Ne)}gl(He,s)})}function zo(i,s,c){return{instance:i,listener:s,currentTarget:c}}function c0(i,s){for(var c=s+"Capture",v=[];i!==null;){var _=i,C=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||C===null||(_=Yl(i,c),_!=null&&v.unshift(zo(i,_,C)),_=Yl(i,s),_!=null&&v.push(zo(i,_,C))),i.tag===3)return v;i=i.return}return[]}function Ji(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Db(i,s,c,v,_){for(var C=s._reactName,B=[];c!==null&&c!==v;){var $=c,Q=$.alternate,re=$.stateNode;if($=$.tag,Q!==null&&Q===v)break;$!==5&&$!==26&&$!==27||re===null||(Q=re,_?(re=Yl(c,C),re!=null&&B.unshift(zo(c,re,Q))):_||(re=Yl(c,C),re!=null&&B.push(zo(c,re,Q)))),c=c.return}B.length!==0&&i.push({event:s,listeners:B})}function ml(i,s){Rd(i,s),i!=="input"&&i!=="textarea"&&i!=="select"||s==null||s.value!==null||v_||(v_=!0,i==="select"&&s.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i));var c={registrationNameDependencies:ss,possibleRegistrationNames:If};Qc(i)||typeof s.is=="string"||m1(i,s,c),s.contentEditable&&!s.suppressContentEditableWarning&&s.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Pr(i,s,c,v){s!==c&&(c=lo(c),lo(s)!==c&&(v[i]=s))}function ac(i,s,c){s.forEach(function(v){c[Rb(v)]=v==="style"?Af(i):i.getAttribute(v)})}function rs(i,s){s===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof s)}function Av(i,s){return i=i.namespaceURI===R0||i.namespaceURI===kh?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=s,i.innerHTML}function lo(i){return H(i)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Me(i)),te(i)),(typeof i=="string"?i:""+i).replace($0e,`
|
|
5097
|
+
`).replace(L0e,"")}function Mb(i,s){return s=lo(s),lo(i)===s}function su(){}function ir(i,s,c,v,_,C){switch(c){case"children":typeof v=="string"?(_p(v,s,!1),s==="body"||s==="textarea"&&v===""||Zc(i,v)):(typeof v=="number"||typeof v=="bigint")&&(_p(""+v,s,!1),s!=="body"&&Zc(i,""+v));break;case"className":Zn(i,"class",v);break;case"tabIndex":Zn(i,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Zn(i,c,v);break;case"style":Sp(i,v,C);break;case"data":if(s!=="object"){Zn(i,"data",v);break}case"src":case"href":if(v===""&&(s!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}le(v,c),v=Id(""+v),i.setAttribute(c,v);break;case"action":case"formAction":if(v!=null&&(s==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof v=="function"&&(_.encType==null&&_.method==null||Qk||(Qk=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),_.target==null||Zk||(Zk=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):s==="input"||s==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):s!=="input"||_.type==="submit"||_.type==="image"||Yk?s!=="button"||_.type==null||_.type==="submit"||Yk?typeof v=="function"&&(_.name==null||bq||(bq=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),_.formEncType==null&&_.formMethod==null||Qk||(Qk=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),_.formTarget==null||Zk||(Zk=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Yk=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Yk=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof v=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(s!=="input"&&ir(i,s,"name",_.name,_,null),ir(i,s,"formEncType",_.formEncType,_,null),ir(i,s,"formMethod",_.formMethod,_,null),ir(i,s,"formTarget",_.formTarget,_,null)):(ir(i,s,"encType",_.encType,_,null),ir(i,s,"method",_.method,_,null),ir(i,s,"target",_.target,_,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}le(v,c),v=Id(""+v),i.setAttribute(c,v);break;case"onClick":v!=null&&(typeof v!="function"&&rs(c,v),i.onclick=su);break;case"onScroll":v!=null&&(typeof v!="function"&&rs(c,v),kn("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&rs(c,v),kn("scrollend",i));break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":i.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){i.removeAttribute("xlink:href");break}le(v,c),c=Id(""+v),i.setAttributeNS(Q0,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?(le(v,c),i.setAttribute(c,""+v)):i.removeAttribute(c);break;case"inert":v!==""||Kk[c]||(Kk[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":v===!0?i.setAttribute(c,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?(le(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?(le(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?i.removeAttribute(c):(le(v,c),i.setAttribute(c,v));break;case"popover":kn("beforetoggle",i),kn("toggle",i),kr(i,"popover",v);break;case"xlinkActuate":nr(i,Q0,"xlink:actuate",v);break;case"xlinkArcrole":nr(i,Q0,"xlink:arcrole",v);break;case"xlinkRole":nr(i,Q0,"xlink:role",v);break;case"xlinkShow":nr(i,Q0,"xlink:show",v);break;case"xlinkTitle":nr(i,Q0,"xlink:title",v);break;case"xlinkType":nr(i,Q0,"xlink:type",v);break;case"xmlBase":nr(i,N8,"xml:base",v);break;case"xmlLang":nr(i,N8,"xml:lang",v);break;case"xmlSpace":nr(i,N8,"xml:space",v);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),kr(i,"is",v);break;case"innerText":case"textContent":break;case"popoverTarget":_q||v==null||typeof v!="object"||(_q=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",v));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=gm(c),kr(i,c,v)):ss.hasOwnProperty(c)&&v!=null&&typeof v!="function"&&rs(c,v)}}function Ef(i,s,c,v,_,C){switch(c){case"style":Sp(i,v,C);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof v=="string"?Zc(i,v):(typeof v=="number"||typeof v=="bigint")&&Zc(i,""+v);break;case"onScroll":v!=null&&(typeof v!="function"&&rs(c,v),kn("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&rs(c,v),kn("scrollend",i));break;case"onClick":v!=null&&(typeof v!="function"&&rs(c,v),i.onclick=su);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ss.hasOwnProperty(c))v!=null&&typeof v!="function"&&rs(c,v);else e:{if(c[0]==="o"&&c[1]==="n"&&(_=c.endsWith("Capture"),s=c.slice(2,_?c.length-7:void 0),C=i[ha]||null,C=C!=null?C[c]:null,typeof C=="function"&&i.removeEventListener(s,C,_),typeof v=="function")){typeof C!="function"&&C!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,v,_);break e}c in i?i[c]=v:v===!0?i.setAttribute(c,""):kr(i,c,v)}}}function hi(i,s,c){switch(ml(s,c),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kn("error",i),kn("load",i);var v=!1,_=!1,C;for(C in c)if(c.hasOwnProperty(C)){var B=c[C];if(B!=null)switch(C){case"src":v=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,C,B,c,null)}}_&&ir(i,s,"srcSet",c.srcSet,c,null),v&&ir(i,s,"src",c.src,c,null);return;case"input":Yn("input",c),kn("invalid",i);var $=C=B=_=null,Q=null,re=null;for(v in c)if(c.hasOwnProperty(v)){var Ne=c[v];if(Ne!=null)switch(v){case"name":_=Ne;break;case"type":B=Ne;break;case"checked":Q=Ne;break;case"defaultChecked":re=Ne;break;case"value":C=Ne;break;case"defaultValue":$=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,v,Ne,c,null)}}ki(i,c),wa(i,C,$,Q,re,B,_,!1),Ai(i);return;case"select":Yn("select",c),kn("invalid",i),v=B=C=null;for(_ in c)if(c.hasOwnProperty(_)&&($=c[_],$!=null))switch(_){case"value":C=$;break;case"defaultValue":B=$;break;case"multiple":v=$;default:ir(i,s,_,$,c,null)}se(i,c),s=C,c=B,i.multiple=!!v,s!=null?Je(i,!!v,s,!1):c!=null&&Je(i,!!v,c,!0);return;case"textarea":Yn("textarea",c),kn("invalid",i),C=_=v=null;for(B in c)if(c.hasOwnProperty(B)&&($=c[B],$!=null))switch(B){case"value":v=$;break;case"defaultValue":_=$;break;case"children":C=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ir(i,s,B,$,c,null)}ke(i,c),X(i,v,_,C),Ai(i);return;case"option":et(i,c);for(Q in c)if(c.hasOwnProperty(Q)&&(v=c[Q],v!=null))switch(Q){case"selected":i.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ir(i,s,Q,v,c,null)}return;case"dialog":kn("beforetoggle",i),kn("toggle",i),kn("cancel",i),kn("close",i);break;case"iframe":case"object":kn("load",i);break;case"video":case"audio":for(v=0;v<G_.length;v++)kn(G_[v],i);break;case"image":kn("error",i),kn("load",i);break;case"details":kn("toggle",i);break;case"embed":case"source":case"link":kn("error",i),kn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in c)if(c.hasOwnProperty(re)&&(v=c[re],v!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,re,v,c,null)}return;default:if(Qc(s)){for(Ne in c)c.hasOwnProperty(Ne)&&(v=c[Ne],v!==void 0&&Ef(i,s,Ne,v,c,void 0));return}}for($ in c)c.hasOwnProperty($)&&(v=c[$],v!=null&&ir(i,s,$,v,c,null))}function tk(i,s,c,v){switch(ml(s,v),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,C=null,B=null,$=null,Q=null,re=null,Ne=null;for(Ge in c){var He=c[Ge];if(c.hasOwnProperty(Ge)&&He!=null)switch(Ge){case"checked":break;case"value":break;case"defaultValue":Q=He;default:v.hasOwnProperty(Ge)||ir(i,s,Ge,null,v,He)}}for(var Re in v){var Ge=v[Re];if(He=c[Re],v.hasOwnProperty(Re)&&(Ge!=null||He!=null))switch(Re){case"type":C=Ge;break;case"name":_=Ge;break;case"checked":re=Ge;break;case"defaultChecked":Ne=Ge;break;case"value":B=Ge;break;case"defaultValue":$=Ge;break;case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ge!==He&&ir(i,s,Re,Ge,v,He)}}s=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,v=v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null,s||!v||xq||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xq=!0),!s||v||yq||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),yq=!0),Dr(i,B,$,Q,re,Ne,C,_);return;case"select":Ge=B=$=Re=null;for(C in c)if(Q=c[C],c.hasOwnProperty(C)&&Q!=null)switch(C){case"value":break;case"multiple":Ge=Q;default:v.hasOwnProperty(C)||ir(i,s,C,null,v,Q)}for(_ in v)if(C=v[_],Q=c[_],v.hasOwnProperty(_)&&(C!=null||Q!=null))switch(_){case"value":Re=C;break;case"defaultValue":$=C;break;case"multiple":B=C;default:C!==Q&&ir(i,s,_,C,v,Q)}v=$,s=B,c=Ge,Re!=null?Je(i,!!s,Re,!1):!!c!=!!s&&(v!=null?Je(i,!!s,v,!0):Je(i,!!s,s?[]:"",!1));return;case"textarea":Ge=Re=null;for($ in c)if(_=c[$],c.hasOwnProperty($)&&_!=null&&!v.hasOwnProperty($))switch($){case"value":break;case"children":break;default:ir(i,s,$,null,v,_)}for(B in v)if(_=v[B],C=c[B],v.hasOwnProperty(B)&&(_!=null||C!=null))switch(B){case"value":Re=_;break;case"defaultValue":Ge=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_!==C&&ir(i,s,B,_,v,C)}z(i,Re,Ge);return;case"option":for(var Ft in c)if(Re=c[Ft],c.hasOwnProperty(Ft)&&Re!=null&&!v.hasOwnProperty(Ft))switch(Ft){case"selected":i.selected=!1;break;default:ir(i,s,Ft,null,v,Re)}for(Q in v)if(Re=v[Q],Ge=c[Q],v.hasOwnProperty(Q)&&Re!==Ge&&(Re!=null||Ge!=null))switch(Q){case"selected":i.selected=Re&&typeof Re!="function"&&typeof Re!="symbol";break;default:ir(i,s,Q,Re,v,Ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nn in c)Re=c[nn],c.hasOwnProperty(nn)&&Re!=null&&!v.hasOwnProperty(nn)&&ir(i,s,nn,null,v,Re);for(re in v)if(Re=v[re],Ge=c[re],v.hasOwnProperty(re)&&Re!==Ge&&(Re!=null||Ge!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,re,Re,v,Ge)}return;default:if(Qc(s)){for(var zr in c)Re=c[zr],c.hasOwnProperty(zr)&&Re!==void 0&&!v.hasOwnProperty(zr)&&Ef(i,s,zr,void 0,v,Re);for(Ne in v)Re=v[Ne],Ge=c[Ne],!v.hasOwnProperty(Ne)||Re===Ge||Re===void 0&&Ge===void 0||Ef(i,s,Ne,Re,v,Ge);return}}for(var zn in c)Re=c[zn],c.hasOwnProperty(zn)&&Re!=null&&!v.hasOwnProperty(zn)&&ir(i,s,zn,null,v,Re);for(He in v)Re=v[He],Ge=c[He],!v.hasOwnProperty(He)||Re===Ge||Re==null&&Ge==null||ir(i,s,He,Re,v,Ge)}function Rb(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function Af(i){var s={};i=i.style;for(var c=0;c<i.length;c++){var v=i[c];s[v]=i.getPropertyValue(v)}return s}function Ib(i,s,c){if(s!=null&&typeof s!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var v,_=v="",C;for(C in s)if(s.hasOwnProperty(C)){var B=s[C];B!=null&&typeof B!="boolean"&&B!==""&&(C.indexOf("--")===0?(P(B,C),v+=_+C+":"+(""+B).trim()):typeof B!="number"||B===0||M0.has(C)?(P(B,C),v+=_+C.replace(mu,"-$1").toLowerCase().replace(vu,"-ms-")+":"+(""+B).trim()):v+=_+C.replace(mu,"-$1").toLowerCase().replace(vu,"-ms-")+":"+B+"px",_=";")}v=v||null,s=i.getAttribute("style"),s!==v&&(v=lo(v),lo(s)!==v&&(c.style=Af(i)))}}function Fo(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(le(v,s),i===""+v)return}Pr(s,i,v,C)}function Bb(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null){switch(typeof v){case"function":case"symbol":return}if(!v)return}else switch(typeof v){case"function":case"symbol":break;default:if(v)return}Pr(s,i,v,C)}function $b(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":return}else if(v!=null)switch(typeof v){case"function":case"symbol":break;default:if(le(v,c),i===""+v)return}Pr(s,i,v,C)}function nk(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(v))return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!isNaN(v)&&(le(v,s),i===""+v))return}Pr(s,i,v,C)}function cr(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(le(v,s),c=Id(""+v),i===c)return}Pr(s,i,v,C)}function Mr(i,s,c,v){for(var _={},C=new Set,B=i.attributes,$=0;$<B.length;$++)switch(B[$].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add(B[$].name)}if(Qc(s)){for(var Q in c)if(c.hasOwnProperty(Q)){var re=c[Q];if(re!=null){if(ss.hasOwnProperty(Q))typeof re!="function"&&rs(Q,re);else if(c.suppressHydrationWarning!==!0)switch(Q){case"children":typeof re!="string"&&typeof re!="number"||Pr("children",i.textContent,re,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=i.innerHTML,re=re?re.__html:void 0,re!=null&&(re=Av(i,re),Pr(Q,B,re,_));continue;case"style":C.delete(Q),Ib(i,re,_);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(Q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Q);continue;case"className":C.delete("class"),B=Ar(i,"class",re),Pr("className",B,re,_);continue;default:v.context===Gf&&s!=="svg"&&s!=="math"?C.delete(Q.toLowerCase()):C.delete(Q),B=Ar(i,Q,re),Pr(Q,B,re,_)}}}}else for(re in c)if(c.hasOwnProperty(re)&&(Q=c[re],Q!=null)){if(ss.hasOwnProperty(re))typeof Q!="function"&&rs(re,Q);else if(c.suppressHydrationWarning!==!0)switch(re){case"children":typeof Q!="string"&&typeof Q!="number"||Pr("children",i.textContent,Q,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=i.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Av(i,Q),B!==Q&&(_[re]={__html:B}));continue;case"className":Fo(i,re,"class",Q,C,_);continue;case"tabIndex":Fo(i,re,"tabindex",Q,C,_);continue;case"style":C.delete(re),Ib(i,Q,_);continue;case"multiple":C.delete(re),Pr(re,i.multiple,Q,_);continue;case"muted":C.delete(re),Pr(re,i.muted,Q,_);continue;case"autoFocus":C.delete("autofocus"),Pr(re,i.autofocus,Q,_);continue;case"data":if(s!=="object"){C.delete(re),B=i.getAttribute("data"),Pr(re,B,Q,_);continue}case"src":case"href":if(!(Q!==""||s==="a"&&re==="href"||s==="object"&&re==="data")){console.error(re==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',re,re);continue}cr(i,re,re,Q,C,_);continue;case"action":case"formAction":if(B=i.getAttribute(re),typeof Q=="function"){C.delete(re.toLowerCase()),re==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if(B===N0e){C.delete(re.toLowerCase()),Pr(re,"function",Q,_);continue}cr(i,re,re.toLowerCase(),Q,C,_);continue;case"xlinkHref":cr(i,re,"xlink:href",Q,C,_);continue;case"contentEditable":$b(i,re,"contenteditable",Q,C,_);continue;case"spellCheck":$b(i,re,"spellcheck",Q,C,_);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":$b(i,re,re,Q,C,_);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Bb(i,re,re.toLowerCase(),Q,C,_);continue;case"capture":case"download":e:{$=i;var Ne=B=re,He=_;if(C.delete(Ne),$=$.getAttribute(Ne),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":break e;default:if(Q===!1)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":break;case"boolean":if(Q===!0&&$==="")break e;break;default:if(le(Q,B),$===""+Q)break e}Pr(B,$,Q,He)}continue;case"cols":case"rows":case"size":case"span":e:{if($=i,Ne=B=re,He=_,C.delete(Ne),$=$.getAttribute(Ne),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Q)||1>Q)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Q)||1>Q)&&(le(Q,B),$===""+Q))break e}Pr(B,$,Q,He)}continue;case"rowSpan":nk(i,re,"rowspan",Q,C,_);continue;case"start":nk(i,re,re,Q,C,_);continue;case"xHeight":Fo(i,re,"x-height",Q,C,_);continue;case"xlinkActuate":Fo(i,re,"xlink:actuate",Q,C,_);continue;case"xlinkArcrole":Fo(i,re,"xlink:arcrole",Q,C,_);continue;case"xlinkRole":Fo(i,re,"xlink:role",Q,C,_);continue;case"xlinkShow":Fo(i,re,"xlink:show",Q,C,_);continue;case"xlinkTitle":Fo(i,re,"xlink:title",Q,C,_);continue;case"xlinkType":Fo(i,re,"xlink:type",Q,C,_);continue;case"xmlBase":Fo(i,re,"xml:base",Q,C,_);continue;case"xmlLang":Fo(i,re,"xml:lang",Q,C,_);continue;case"xmlSpace":Fo(i,re,"xml:space",Q,C,_);continue;case"inert":Q!==""||Kk[re]||(Kk[re]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",re)),Bb(i,re,re,Q,C,_);continue;default:if(!(2<re.length)||re[0]!=="o"&&re[0]!=="O"||re[1]!=="n"&&re[1]!=="N"){$=gm(re),B=!1,v.context===Gf&&s!=="svg"&&s!=="math"?C.delete($.toLowerCase()):(Ne=re.toLowerCase(),Ne=Lf.hasOwnProperty(Ne)&&Lf[Ne]||null,Ne!==null&&Ne!==re&&(B=!0,C.delete(Ne)),C.delete($));e:if(Ne=i,He=$,$=Q,tr(He))if(Ne.hasAttribute(He))Ne=Ne.getAttribute(He),le($,He),$=Ne===""+$?$:Ne;else{switch(typeof $){case"function":case"symbol":break e;case"boolean":if(Ne=He.toLowerCase().slice(0,5),Ne!=="data-"&&Ne!=="aria-")break e}$=$===void 0?void 0:null}else $=void 0;B||Pr(re,$,Q,_)}}}return 0<C.size&&c.suppressHydrationWarning!==!0&&ac(i,C,_),Object.keys(_).length===0?null:_}function Tn(i,s){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+s+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+s+" "+i[i.length-1]}}function On(i){return i.nodeType===9?i:i.ownerDocument}function dr(i){switch(i){case kh:return ky;case R0:return Jk;default:return Gf}}function ua(i,s){if(i===Gf)switch(s){case"svg":return ky;case"math":return Jk;default:return Gf}return i===ky&&s==="foreignObject"?Gf:i}function vl(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function ah(){var i=window.event;return i&&i.type==="popstate"?i===j8?!1:(j8=i,!0):(j8=null,!1)}function Lb(i){setTimeout(function(){throw i})}function lu(i,s,c){switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function pi(i,s,c,v){tk(i,s,c,v),i[ha]=v}function uu(i){Zc(i,"")}function kf(i,s,c){i.nodeValue=c}function yl(i){return i==="head"}function is(i,s){i.removeChild(s)}function sh(i,s){(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).removeChild(s)}function lh(i,s){var c=s,v=0,_=0;do{var C=c.nextSibling;if(i.removeChild(c),C&&C.nodeType===8)if(c=C.data,c===Xk){if(0<v&&8>v){c=v;var B=i.ownerDocument;if(c&F0e&&dh(B.documentElement),c&U0e&&dh(B.body),c&j0e)for(c=B.head,dh(c),B=c.firstChild;B;){var $=B.nextSibling,Q=B.nodeName;B[wh]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&B.rel.toLowerCase()==="stylesheet"||c.removeChild(B),B=$}}if(_===0){i.removeChild(C),Mf(s);return}_--}else c===Wk||c===Pf||c===V_?_++:v=c.charCodeAt(0)-48;else v=0;c=C}while(c);Mf(s)}function ca(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function Nb(i){i.nodeValue=""}function zb(i,s){s=s[H0e],s=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}function kv(i,s){i.nodeValue=s}function uh(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":uh(c),Ht(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function sc(i,s,c,v){for(;i.nodeType===1;){var _=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!v&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(v){if(!i[wh])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(C=i.getAttribute("rel"),C==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(C!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(C=i.getAttribute("src"),(C!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&C&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){le(_.name,"name");var C=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===C)return i}else return i;if(i=co(i.nextSibling),i===null)break}return null}function uo(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=co(i.nextSibling),i===null))return null;return i}function xl(i){return i.data===V_||i.data===Pf&&i.ownerDocument.readyState===wq}function ch(i,s){var c=i.ownerDocument;if(i.data!==Pf||c.readyState===wq)s();else{var v=function(){s(),c.removeEventListener("DOMContentLoaded",v)};c.addEventListener("DOMContentLoaded",v),i._reactRetry=v}}function co(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s===Wk||s===V_||s===Pf||s===z8||s===Sq)break;if(s===Xk)return null}}return i}function Tv(i){if(i.nodeType===1){for(var s=i.nodeName.toLowerCase(),c={},v=i.attributes,_=0;_<v.length;_++){var C=v[_];c[Rb(C.name)]=C.name.toLowerCase()==="style"?Af(i):C.value}return{type:s,props:c}}return i.nodeType===8?{type:"Suspense",props:{}}:i.nodeValue}function Ov(i,s,c){return c===null||c[z0e]!==!0?(i.nodeValue===s?i=null:(s=lo(s),i=lo(i.nodeValue)===s?null:i.nodeValue),i):null}function Fb(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===Xk){if(s===0)return co(i.nextSibling);s--}else c!==Wk&&c!==V_&&c!==Pf||s++}i=i.nextSibling}return null}function fh(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===Wk||c===V_||c===Pf){if(s===0)return i;s--}else c===Xk&&s++}i=i.previousSibling}return null}function Ub(i){Mf(i)}function Oa(i){Mf(i)}function jb(i,s,c,v,_){switch(_&&pm(i,v.ancestorInfo),s=On(c),i){case"html":if(i=s.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=s.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=s.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Da(i,s,c,v){if(!c[mc]&&pt(c)){var _=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",_,_,_)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(_=c.attributes;_.length;)c.removeAttributeNode(_[0]);hi(c,i,s),c[Ao]=v,c[ha]=s}function dh(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Ht(i)}function f0(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function rk(i,s,c){var v=Ty;if(v&&typeof s=="string"&&s){var _=xr(s);_='link[rel="'+i+'"][href="'+_+'"]',typeof c=="string"&&(_+='[crossorigin="'+c+'"]'),Oq.has(_)||(Oq.add(_),i={rel:i,crossOrigin:c,href:s},v.querySelector(_)===null&&(s=v.createElement("link"),hi(s,"link",i),At(s),v.head.appendChild(s)))}}function cu(i,s,c,v){var _=(_=_l.current)?f0(_):null;if(!_)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=lc(c.href),s=mt(_).hoistableStyles,v=s.get(c),v||(v={type:"style",instance:null,count:0,state:null},s.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=lc(c.href);var C=mt(_).hoistableStyles,B=C.get(i);if(!B&&(_=_.ownerDocument||_,B={type:"stylesheet",instance:null,count:0,state:{loading:W0,preload:null}},C.set(i,B),(C=_.querySelector(bl(i)))&&!C._p&&(B.instance=C,B.state.loading=Y_|Bl),!$l.has(i))){var $={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};$l.set(i,$),C||ik(_,i,$,B.state)}if(s&&v===null)throw c=`
|
|
5098
5098
|
|
|
5099
5099
|
- `+Tf(s)+`
|
|
5100
5100
|
+ `+Tf(c),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return B}if(s&&v!==null)throw c=`
|
|
@@ -5102,7 +5102,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
5102
5102
|
- `+Tf(s)+`
|
|
5103
5103
|
+ `+Tf(c),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(c=Of(c),s=mt(_).hoistableScripts,v=s.get(c),v||(v={type:"script",instance:null,count:0,state:null},s.set(c,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+i+'". this is a bug in React.')}}function Tf(i){var s=0,c="<link";return typeof i.rel=="string"?(s++,c+=' rel="'+i.rel+'"'):hu.call(i,"rel")&&(s++,c+=' rel="'+(i.rel===null?"null":"invalid type "+typeof i.rel)+'"'),typeof i.href=="string"?(s++,c+=' href="'+i.href+'"'):hu.call(i,"href")&&(s++,c+=' href="'+(i.href===null?"null":"invalid type "+typeof i.href)+'"'),typeof i.precedence=="string"?(s++,c+=' precedence="'+i.precedence+'"'):hu.call(i,"precedence")&&(s++,c+=" precedence={"+(i.precedence===null?"null":"invalid type "+typeof i.precedence)+"}"),Object.getOwnPropertyNames(i).length>s&&(c+=" ..."),c+" />"}function lc(i){return'href="'+xr(i)+'"'}function bl(i){return'link[rel="stylesheet"]['+i+"]"}function Hb(i){return bn({},i,{"data-precedence":i.precedence,precedence:null})}function ik(i,s,c,v){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?v.loading=Y_:(s=i.createElement("link"),v.preload=s,s.addEventListener("load",function(){return v.loading|=Y_}),s.addEventListener("error",function(){return v.loading|=kq}),hi(s,"link",c),At(s),i.head.appendChild(s))}function Of(i){return'[src="'+xr(i)+'"]'}function Df(i){return"script[async]"+i}function Dv(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var v=i.querySelector('style[data-href~="'+xr(c.href)+'"]');if(v)return s.instance=v,At(v),v;var _=bn({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return v=(i.ownerDocument||i).createElement("style"),At(v),hi(v,"style",_),Mv(v,c.precedence,i),s.instance=v;case"stylesheet":_=lc(c.href);var C=i.querySelector(bl(_));if(C)return s.state.loading|=Bl,s.instance=C,At(C),C;v=Hb(c),(_=$l.get(_))&&qb(v,_),C=(i.ownerDocument||i).createElement("link"),At(C);var B=C;return B._p=new Promise(function($,Q){B.onload=$,B.onerror=Q}),hi(C,"link",v),s.state.loading|=Bl,Mv(C,c.precedence,i),s.instance=C;case"script":return C=Of(c.src),(_=i.querySelector(Df(C)))?(s.instance=_,At(_),_):(v=c,(_=$l.get(C))&&(v=bn({},c),Pb(v,_)),i=i.ownerDocument||i,_=i.createElement("script"),At(_),hi(_,"link",v),i.head.appendChild(_),s.instance=_);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+s.type+'". this is a bug in React.')}else s.type==="stylesheet"&&(s.state.loading&Bl)===W0&&(v=s.instance,s.state.loading|=Bl,Mv(v,c.precedence,i));return s.instance}function Mv(i,s,c){for(var v=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=v.length?v[v.length-1]:null,C=_,B=0;B<v.length;B++){var $=v[B];if($.dataset.precedence===s)C=$;else if(C!==_)break}C?C.parentNode.insertBefore(i,C.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function qb(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Pb(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}function Gb(i,s,c){if(e4===null){var v=new Map,_=e4=new Map;_.set(c,v)}else _=e4,v=_.get(c),v||(v=new Map,_.set(c,v));if(v.has(i))return v;for(v.set(i,null),c=c.getElementsByTagName(i),_=0;_<c.length;_++){var C=c[_];if(!(C[wh]||C[Ao]||i==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!==kh){var B=C.getAttribute(s)||"";B=i+B;var $=v.get(B);$?$.push(C):v.set(B,[C])}}return v}function Vb(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function hh(i,s,c){var v=!c.ancestorInfo.containerTagInScope;if(c.context===ky||s.itemProp!=null)return!v||s.itemProp==null||i!=="meta"&&i!=="title"&&i!=="style"&&i!=="link"&&i!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",i,i),!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href===""){v&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError){if(s.rel==="stylesheet"&&typeof s.precedence=="string"){i=s.href;var _=s.onError,C=s.disabled;c=[],s.onLoad&&c.push("`onLoad`"),_&&c.push("`onError`"),C!=null&&c.push("`disabled`"),_=Tn(c,"and"),_+=c.length===1?" prop":" props",C=c.length===1?"an "+_:"the "+_,c.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',i,C,_)}v&&(typeof s.rel!="string"||typeof s.href!="string"||s.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(s.onError||s.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(s.rel){case"stylesheet":return i=s.precedence,s=s.disabled,typeof i!="string"&&v&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof i=="string"&&s==null;default:return!0}case"script":if(i=s.async&&typeof s.async!="function"&&typeof s.async!="symbol",!i||s.onLoad||s.onError||!s.src||typeof s.src!="string"){v&&(i?s.onLoad||s.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":v&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",i)}return!1}function d0(i){return!(i.type==="stylesheet"&&(i.state.loading&Tq)===W0)}function ok(){}function ak(i,s,c){if(Z_===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var v=Z_;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&Bl)===W0){if(s.instance===null){var _=lc(c.href),C=i.querySelector(bl(_));if(C){i=C._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(v.count++,v=h0.bind(v),i.then(v,v)),s.state.loading|=Bl,s.instance=C,At(C);return}C=i.ownerDocument||i,c=Hb(c),(_=$l.get(_))&&qb(c,_),C=C.createElement("link"),At(C);var B=C;B._p=new Promise(function($,Q){B.onload=$,B.onerror=Q}),hi(C,"link",c),s.instance=C}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&Tq)===W0&&(v.count++,s=h0.bind(v),i.addEventListener("load",s),i.addEventListener("error",s))}}function sk(){if(Z_===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var i=Z_;return i.stylesheets&&i.count===0&&Rv(i,i.stylesheets),0<i.count?function(s){var c=setTimeout(function(){if(i.stylesheets&&Rv(i,i.stylesheets),i.unsuspend){var v=i.unsuspend;i.unsuspend=null,v()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function h0(){if(this.count--,this.count===0){if(this.stylesheets)Rv(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}function Rv(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,t4=new Map,s.forEach(lk,i),t4=null,h0.call(i))}function lk(i,s){if(!(s.state.loading&Bl)){var c=t4.get(i);if(c)var v=c.get(q8);else{c=new Map,t4.set(i,c);for(var _=i.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<_.length;C++){var B=_[C];(B.nodeName==="LINK"||B.getAttribute("media")!=="not all")&&(c.set(B.dataset.precedence,B),v=B)}v&&c.set(q8,v)}_=s.instance,B=_.getAttribute("data-precedence"),C=c.get(B)||v,C===v&&c.set(q8,_),c.set(B,_),this.count++,v=h0.bind(this),_.addEventListener("load",v),_.addEventListener("error",v),C?C.parentNode.insertBefore(_,C.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(_,i.firstChild)),s.state.loading|=Bl}}function Iv(i,s,c,v,_,C,B,$){for(this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=K0,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Te(0),this.hiddenUpdates=Te(null),this.identifierPrefix=v,this.onUncaughtError=_,this.onCaughtError=C,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,i=this.pendingUpdatersLaneMap=[],s=0;31>s;s++)i.push(new Set);this._debugRootType=c?"hydrateRoot()":"createRoot()"}function Yb(i,s,c,v,_,C,B,$,Q,re,Ne,He){return i=new Iv(i,s,c,B,$,Q,re,He),s=p0e,C===!0&&(s|=ga|yu),mi&&(s|=jo),C=x(3,null,null,s),i.current=C,C.stateNode=i,s=Mp(),of(s),i.pooledCache=s,of(s),C.memoizedState={element:v,isDehydrated:c,cache:s},na(C),i}function Zb(i){return i?(i=Th,i):Th}function mr(i,s,c,v,_,C){if(fo&&typeof fo.onScheduleFiberRoot=="function")try{fo.onScheduleFiberRoot(pc,v,c)}catch(B){da||(da=!0,console.error("React instrumentation encountered an error: %s",B))}Dt!==null&&typeof Dt.markRenderScheduled=="function"&&Dt.markRenderScheduled(s),_=Zb(_),v.context===null?v.context=_:v.pendingContext=_,pa&&Ra!==null&&!Iq&&(Iq=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
5104
5104
|
|
|
5105
|
-
Check the render method of %s.`,V(Ra)||"Unknown")),v=Js(s),v.payload={element:c},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",C),v.callback=C),c=ws(i,v,s),c!==null&&(fi(c,i,s),Yu(c,i,s))}function Bv(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function Qb(i,s){Bv(i,s),(i=i.alternate)&&Bv(i,s)}function Kb(i){if(i.tag===13){var s=ta(i,67108864);s!==null&&fi(s,i,67108864),Qb(i,67108864)}}function LD(){return Ra}function ND(){for(var i=new Map,s=1,c=0;31>c;c++){var v=_t(s);i.set(s,v),s*=2}return i}function zD(i,s,c,v){var _=Ue.T;Ue.T=null;var C=tn.p;try{tn.p=ho,uc(i,s,c,v)}finally{tn.p=C,Ue.T=_}}function $v(i,s,c,v){var _=Ue.T;Ue.T=null;var C=tn.p;try{tn.p=Rs,uc(i,s,c,v)}finally{tn.p=C,Ue.T=_}}function uc(i,s,c,v){if(r4){var _=p0(v);if(_===null)No(i,s,v,i4,c),cc(i,v);else if(g0(_,i,s,c,v))v.stopPropagation();else if(cc(i,v),s&4&&-1<V0e.indexOf(i)){for(;_!==null;){var C=pt(_);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var B=kt(C.pendingLanes);if(B!==0){var $=C;for($.pendingLanes|=2,$.entangledLanes|=2;B;){var Q=1<<31-Eo(B);$.entanglements[1]|=Q,B&=~Q}ns(C),(vr&(La|Su))===Is&&(jk=Sl()+fq,Cf(0))}}break;case 13:$=ta(C,2),$!==null&&fi($,C,2),Sf(),Qb(C,2)}if(C=p0(v),C===null&&No(i,s,v,i4,c),C===_)break;_=C}_!==null&&v.stopPropagation()}else No(i,s,v,null,c)}}function p0(i){return i=Kc(i),ph(i)}function ph(i){if(i4=null,i=mn(i),i!==null){var s=A(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=D(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return i4=i,null}function Lv(i){switch(i){case"beforetoggle":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"toggle":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 ho;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Rs;case"message":switch(hc()){case jv:return ho;case C0:return Rs;case bh:case qD:return gu;case E0:return Gv;default:return gu}default:return gu}}function cc(i,s){switch(i){case"focusin":case"focusout":zh=null;break;case"dragenter":case"dragleave":Fh=null;break;case"mouseover":case"mouseout":Uh=null;break;case"pointerover":case"pointerout":K_.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":W_.delete(s.pointerId)}}function fa(i,s,c,v,_,C){return i===null||i.nativeEvent!==C?(i={blockedOn:s,domEventName:c,eventSystemFlags:v,nativeEvent:C,targetContainers:[_]},s!==null&&(s=pt(s),s!==null&&Kb(s)),i):(i.eventSystemFlags|=v,s=i.targetContainers,_!==null&&s.indexOf(_)===-1&&s.push(_),i)}function g0(i,s,c,v,_){switch(s){case"focusin":return zh=fa(zh,i,s,c,v,_),!0;case"dragenter":return Fh=fa(Fh,i,s,c,v,_),!0;case"mouseover":return Uh=fa(Uh,i,s,c,v,_),!0;case"pointerover":var C=_.pointerId;return K_.set(C,fa(K_.get(C)||null,i,s,c,v,_)),!0;case"gotpointercapture":return C=_.pointerId,W_.set(C,fa(W_.get(C)||null,i,s,c,v,_)),!0}return!1}function uk(i){var s=mn(i.target);if(s!==null){var c=A(s);if(c!==null){if(s=c.tag,s===13){if(s=D(c),s!==null){i.blockedOn=s,Kt(i.priority,function(){if(c.tag===13){var v=la(c);v=we(v);var _=ta(c,v);_!==null&&fi(_,c,v),Qb(c,v)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function m0(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=p0(i.nativeEvent);if(c===null){c=i.nativeEvent;var v=new c.constructor(c.type,c),_=v;E!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),E=_,c.target.dispatchEvent(v),E===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),E=null}else return s=pt(c),s!==null&&Kb(s),i.blockedOn=c,!1;s.shift()}return!0}function Wb(i,s,c){m0(i)&&c.delete(s)}function ck(){P8=!1,zh!==null&&m0(zh)&&(zh=null),Fh!==null&&m0(Fh)&&(Fh=null),Uh!==null&&m0(Uh)&&(Uh=null),K_.forEach(Wb),W_.forEach(Wb)}function v0(i,s){i.blockedOn===s&&(i.blockedOn=null,P8||(P8=!0,gi.unstable_scheduleCallback(gi.unstable_NormalPriority,ck)))}function fk(i){o4!==i&&(o4=i,gi.unstable_scheduleCallback(gi.unstable_NormalPriority,function(){o4===i&&(o4=null);for(var s=0;s<i.length;s+=3){var c=i[s],v=i[s+1],_=i[s+2];if(typeof v!="function"){if(ph(v||c)===null)continue;break}var C=pt(c);C!==null&&(i.splice(s,3),s-=3,c={pending:!0,data:_,method:c.method,action:v},Object.freeze(c),ff(C,c,v,_))}}))}function Mf(i){function s(Q){return v0(Q,i)}zh!==null&&v0(zh,i),Fh!==null&&v0(Fh,i),Uh!==null&&v0(Uh,i),K_.forEach(s),W_.forEach(s);for(var c=0;c<jh.length;c++){var v=jh[c];v.blockedOn===i&&(v.blockedOn=null)}for(;0<jh.length&&(c=jh[0],c.blockedOn===null);)uk(c),c.blockedOn===null&&jh.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(v=0;v<c.length;v+=3){var _=c[v],C=c[v+1],B=_[ha]||null;if(typeof C=="function")B||fk(c);else if(B){var $=null;if(C&&C.hasAttribute("formAction")){if(_=C,B=C[ha]||null)$=B.formAction;else if(ph(_)!==null)continue}else $=B.action;typeof $=="function"?c[v+1]=$:(c.splice(v,3),v-=3),fk(c)}}}function Nv(i){this._internalRoot=i}function y0(i){this._internalRoot=i}function dk(i){i[mc]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var gi=nj(),x0=ie,FD=vo,bn=Object.assign,b0=Symbol.for("react.element"),fc=Symbol.for("react.transitional.element"),Rf=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),Xb=Symbol.for("react.provider"),zv=Symbol.for("react.consumer"),os=Symbol.for("react.context"),fu=Symbol.for("react.forward_ref"),vh=Symbol.for("react.suspense"),dc=Symbol.for("react.suspense_list"),_0=Symbol.for("react.memo"),Ma=Symbol.for("react.lazy"),Jb=Symbol.for("react.activity"),hk=Symbol.for("react.memo_cache_sentinel"),e_=Symbol.iterator,Fv=Symbol.for("react.client.reference"),an=Array.isArray,Ue=x0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tn=FD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UD=Object.freeze({pending:!1,data:null,method:null,action:null}),S0=[],w0=[],as=-1,du=F(null),yh=F(null),_l=F(null),xh=F(null),hu=Object.prototype.hasOwnProperty,Uv=gi.unstable_scheduleCallback,jD=gi.unstable_cancelCallback,pk=gi.unstable_shouldYield,HD=gi.unstable_requestPaint,Sl=gi.unstable_now,hc=gi.unstable_getCurrentPriorityLevel,jv=gi.unstable_ImmediatePriority,C0=gi.unstable_UserBlockingPriority,bh=gi.unstable_NormalPriority,qD=gi.unstable_LowPriority,E0=gi.unstable_IdlePriority,PD=gi.log,Ms=gi.unstable_setDisableYieldValue,pc=null,fo=null,Dt=null,da=!1,mi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Eo=Math.clz32?Math.clz32:yt,Hv=Math.log,pu=Math.LN2,qv=256,Pv=4194304,ho=2,Rs=8,gu=32,Gv=268435456,gc=Math.random().toString(36).slice(2),Ao="__reactFiber$"+gc,ha="__reactProps$"+gc,mc="__reactContainer$"+gc,t_="__reactEvents$"+gc,gk="__reactListeners$"+gc,_h="__reactHandles$"+gc,Sh="__reactResources$"+gc,wh="__reactMarker$"+gc,mk=new Set,ss={},If={},vk={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vv=RegExp("^[: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]*$"),Yv={},Zv={},vc=0,n_,r_,yk,i_,Ch,xk,bk;Qn.__reactDisabledLog=!0;var o_,A0,Eh=!1,k0=new(typeof WeakMap=="function"?WeakMap:Map),Ra=null,pa=!1,GD=/[\n"\\]/g,a_=!1,s_=!1,l_=!1,u_=!1,Qv=!1,c_=!1,T0=["value","defaultValue"],_k=!1,Sk=/["'&<>\n\t]|^\s|\s$/,f_="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Kv="applet caption html table td th marquee object template foreignObject desc title".split(" "),Wv=Kv.concat(["button"]),d_="dd dt li option optgroup p rp rt".split(" "),h_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ah={},wl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},mu=/([A-Z])/g,vu=/^ms-/,O0=/^(?:webkit|moz|o)[A-Z]/,D0=/^-ms-/,yc=/-(.)/g,wk=/;\s*$/,Bf={},$f={},Ck=!1,p_=!1,M0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),R0="http://www.w3.org/1998/Math/MathML",kh="http://www.w3.org/2000/svg",Xv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},g_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Cl={},m_=RegExp("^(aria)-[: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]*$"),Jv=RegExp("^(aria)[A-Z][: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]*$"),v_=!1,Uo={},I0=/^on./,u=/^on[^A-Z]/,f=RegExp("^(aria)-[: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]*$"),g=RegExp("^(aria)[A-Z][: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]*$"),b=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,E=null,M=null,U=null,Z=!1,ue=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),De=!1;if(ue)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{De=!1}var Xe=null,$e=null,ze=null,Yt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=oo(Yt),or=bn({},Yt,{view:0,detail:0}),Ee=oo(or),xe,Oe,Ke,Lt=bn({},or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ym,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Ke&&(Ke&&i.type==="mousemove"?(xe=i.screenX-Ke.screenX,Oe=i.screenY-Ke.screenY):Oe=xe=0,Ke=i),xe)},movementY:function(i){return"movementY"in i?i.movementY:Oe}}),En=oo(Lt),Pt=bn({},Lt,{dataTransfer:0}),Jt=oo(Pt),eo=bn({},or,{relatedTarget:0}),qn=oo(eo),xc=bn({},Yt,{animationName:0,elapsedTime:0,pseudoElement:0}),VD=oo(xc),qpe=bn({},Yt,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ppe=oo(qpe),Gpe=bn({},Yt,{data:0}),Vj=oo(Gpe),Vpe=Vj,Ype={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zpe={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"},Qpe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Kpe=bn({},or,{key:function(i){if(i.key){var s=Ype[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Bd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Zpe[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ym,charCode:function(i){return i.type==="keypress"?Bd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Bd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Wpe=oo(Kpe),Xpe=bn({},Lt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yj=oo(Xpe),Jpe=bn({},or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ym}),e0e=oo(Jpe),t0e=bn({},Yt,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0e=oo(t0e),r0e=bn({},Lt,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),i0e=oo(r0e),o0e=bn({},Yt,{newState:0,oldState:0}),a0e=oo(o0e),s0e=[9,13,27,32],Zj=229,YD=ue&&"CompositionEvent"in window,y_=null;ue&&"documentMode"in document&&(y_=document.documentMode);var l0e=ue&&"TextEvent"in window&&!y_,Qj=ue&&(!YD||y_&&8<y_&&11>=y_),Kj=32,Wj=String.fromCharCode(Kj),Xj=!1,ey=!1,u0e={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},x_=null,b_=null,Jj=!1;ue&&(Jj=y1("input")&&(!document.documentMode||9<document.documentMode));var Ia=typeof Object.is=="function"?Object.is:RD,c0e=ue&&"documentMode"in document&&11>=document.documentMode,ty=null,ZD=null,__=null,QD=!1,ny={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},KD={},eH={};ue&&(eH=document.createElement("div").style,"AnimationEvent"in window||(delete ny.animationend.animation,delete ny.animationiteration.animation,delete ny.animationstart.animation),"TransitionEvent"in window||delete ny.transitionend.transition);var tH=Jc("animationend"),nH=Jc("animationiteration"),rH=Jc("animationstart"),f0e=Jc("transitionrun"),d0e=Jc("transitionstart"),h0e=Jc("transitioncancel"),iH=Jc("transitionend"),oH=new Map,WD="abort auxClick beforeToggle 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(" ");WD.push("scrollEnd");var XD=new WeakMap,JD=1,B0=2,El=[],ry=0,e8=0,Th={};Object.freeze(Th);var Al=null,iy=null,Gr=0,p0e=1,jo=2,ga=8,yu=16,aH=64,sH=!1;try{var lH=Object.preventExtensions({})}catch{sH=!0}var oy=[],ay=0,Ek=null,Ak=0,kl=[],Tl=0,$0=null,Nf=1,zf="",Ba=null,Di=null,ar=!1,Ff=!1,Ol=null,L0=null,bc=!1,t8=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),uH=0;if(typeof performance=="object"&&typeof performance.now=="function")var g0e=performance,cH=function(){return g0e.now()};else{var m0e=Date;cH=function(){return m0e.now()}}var n8=F(null),r8=F(null),fH={},kk=null,sy=null,ly=!1,v0e=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,v){i.push(v)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},y0e=gi.unstable_scheduleCallback,x0e=gi.unstable_NormalPriority,po={$$typeof:os,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},uy=gi.unstable_now,dH=-0,Tk=-0,ls=-1.1,N0=-0,Ok=!1,Dk=!1,S_=null,i8=0,z0=0,cy=null,hH=Ue.S;Ue.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&$2(i,s),hH!==null&&hH(i,s)};var F0=F(null),xu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},w_=[],C_=[],E_=[],A_=[],k_=[],T_=[],U0=new Set;xu.recordUnsafeLifecycleWarnings=function(i,s){U0.has(i.type)||(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0&&w_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillMount=="function"&&C_.push(i),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&E_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillReceiveProps=="function"&&A_.push(i),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0&&k_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillUpdate=="function"&&T_.push(i))},xu.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<w_.length&&(w_.forEach(function($){i.add(V($)||"Component"),U0.add($.type)}),w_=[]);var s=new Set;0<C_.length&&(C_.forEach(function($){s.add(V($)||"Component"),U0.add($.type)}),C_=[]);var c=new Set;0<E_.length&&(E_.forEach(function($){c.add(V($)||"Component"),U0.add($.type)}),E_=[]);var v=new Set;0<A_.length&&(A_.forEach(function($){v.add(V($)||"Component"),U0.add($.type)}),A_=[]);var _=new Set;0<k_.length&&(k_.forEach(function($){_.add(V($)||"Component"),U0.add($.type)}),k_=[]);var C=new Set;if(0<T_.length&&(T_.forEach(function($){C.add(V($)||"Component"),U0.add($.type)}),T_=[]),0<s.size){var B=m(s);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
5105
|
+
Check the render method of %s.`,V(Ra)||"Unknown")),v=Js(s),v.payload={element:c},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",C),v.callback=C),c=ws(i,v,s),c!==null&&(fi(c,i,s),Yu(c,i,s))}function Bv(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function Qb(i,s){Bv(i,s),(i=i.alternate)&&Bv(i,s)}function Kb(i){if(i.tag===13){var s=ta(i,67108864);s!==null&&fi(s,i,67108864),Qb(i,67108864)}}function LD(){return Ra}function ND(){for(var i=new Map,s=1,c=0;31>c;c++){var v=_t(s);i.set(s,v),s*=2}return i}function zD(i,s,c,v){var _=Ue.T;Ue.T=null;var C=tn.p;try{tn.p=ho,uc(i,s,c,v)}finally{tn.p=C,Ue.T=_}}function $v(i,s,c,v){var _=Ue.T;Ue.T=null;var C=tn.p;try{tn.p=Rs,uc(i,s,c,v)}finally{tn.p=C,Ue.T=_}}function uc(i,s,c,v){if(r4){var _=p0(v);if(_===null)No(i,s,v,i4,c),cc(i,v);else if(g0(_,i,s,c,v))v.stopPropagation();else if(cc(i,v),s&4&&-1<V0e.indexOf(i)){for(;_!==null;){var C=pt(_);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var B=kt(C.pendingLanes);if(B!==0){var $=C;for($.pendingLanes|=2,$.entangledLanes|=2;B;){var Q=1<<31-Eo(B);$.entanglements[1]|=Q,B&=~Q}ns(C),(vr&(La|Su))===Is&&(jk=Sl()+fq,Cf(0))}}break;case 13:$=ta(C,2),$!==null&&fi($,C,2),Sf(),Qb(C,2)}if(C=p0(v),C===null&&No(i,s,v,i4,c),C===_)break;_=C}_!==null&&v.stopPropagation()}else No(i,s,v,null,c)}}function p0(i){return i=Kc(i),ph(i)}function ph(i){if(i4=null,i=mn(i),i!==null){var s=A(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=D(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return i4=i,null}function Lv(i){switch(i){case"beforetoggle":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"toggle":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 ho;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Rs;case"message":switch(hc()){case jv:return ho;case C0:return Rs;case bh:case qD:return gu;case E0:return Gv;default:return gu}default:return gu}}function cc(i,s){switch(i){case"focusin":case"focusout":zh=null;break;case"dragenter":case"dragleave":Fh=null;break;case"mouseover":case"mouseout":Uh=null;break;case"pointerover":case"pointerout":K_.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":W_.delete(s.pointerId)}}function fa(i,s,c,v,_,C){return i===null||i.nativeEvent!==C?(i={blockedOn:s,domEventName:c,eventSystemFlags:v,nativeEvent:C,targetContainers:[_]},s!==null&&(s=pt(s),s!==null&&Kb(s)),i):(i.eventSystemFlags|=v,s=i.targetContainers,_!==null&&s.indexOf(_)===-1&&s.push(_),i)}function g0(i,s,c,v,_){switch(s){case"focusin":return zh=fa(zh,i,s,c,v,_),!0;case"dragenter":return Fh=fa(Fh,i,s,c,v,_),!0;case"mouseover":return Uh=fa(Uh,i,s,c,v,_),!0;case"pointerover":var C=_.pointerId;return K_.set(C,fa(K_.get(C)||null,i,s,c,v,_)),!0;case"gotpointercapture":return C=_.pointerId,W_.set(C,fa(W_.get(C)||null,i,s,c,v,_)),!0}return!1}function uk(i){var s=mn(i.target);if(s!==null){var c=A(s);if(c!==null){if(s=c.tag,s===13){if(s=D(c),s!==null){i.blockedOn=s,Kt(i.priority,function(){if(c.tag===13){var v=la(c);v=we(v);var _=ta(c,v);_!==null&&fi(_,c,v),Qb(c,v)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function m0(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=p0(i.nativeEvent);if(c===null){c=i.nativeEvent;var v=new c.constructor(c.type,c),_=v;E!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),E=_,c.target.dispatchEvent(v),E===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),E=null}else return s=pt(c),s!==null&&Kb(s),i.blockedOn=c,!1;s.shift()}return!0}function Wb(i,s,c){m0(i)&&c.delete(s)}function ck(){P8=!1,zh!==null&&m0(zh)&&(zh=null),Fh!==null&&m0(Fh)&&(Fh=null),Uh!==null&&m0(Uh)&&(Uh=null),K_.forEach(Wb),W_.forEach(Wb)}function v0(i,s){i.blockedOn===s&&(i.blockedOn=null,P8||(P8=!0,gi.unstable_scheduleCallback(gi.unstable_NormalPriority,ck)))}function fk(i){o4!==i&&(o4=i,gi.unstable_scheduleCallback(gi.unstable_NormalPriority,function(){o4===i&&(o4=null);for(var s=0;s<i.length;s+=3){var c=i[s],v=i[s+1],_=i[s+2];if(typeof v!="function"){if(ph(v||c)===null)continue;break}var C=pt(c);C!==null&&(i.splice(s,3),s-=3,c={pending:!0,data:_,method:c.method,action:v},Object.freeze(c),ff(C,c,v,_))}}))}function Mf(i){function s(Q){return v0(Q,i)}zh!==null&&v0(zh,i),Fh!==null&&v0(Fh,i),Uh!==null&&v0(Uh,i),K_.forEach(s),W_.forEach(s);for(var c=0;c<jh.length;c++){var v=jh[c];v.blockedOn===i&&(v.blockedOn=null)}for(;0<jh.length&&(c=jh[0],c.blockedOn===null);)uk(c),c.blockedOn===null&&jh.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(v=0;v<c.length;v+=3){var _=c[v],C=c[v+1],B=_[ha]||null;if(typeof C=="function")B||fk(c);else if(B){var $=null;if(C&&C.hasAttribute("formAction")){if(_=C,B=C[ha]||null)$=B.formAction;else if(ph(_)!==null)continue}else $=B.action;typeof $=="function"?c[v+1]=$:(c.splice(v,3),v-=3),fk(c)}}}function Nv(i){this._internalRoot=i}function y0(i){this._internalRoot=i}function dk(i){i[mc]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var gi=nj(),x0=ie,FD=vo,bn=Object.assign,b0=Symbol.for("react.element"),fc=Symbol.for("react.transitional.element"),Rf=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),Xb=Symbol.for("react.provider"),zv=Symbol.for("react.consumer"),os=Symbol.for("react.context"),fu=Symbol.for("react.forward_ref"),vh=Symbol.for("react.suspense"),dc=Symbol.for("react.suspense_list"),_0=Symbol.for("react.memo"),Ma=Symbol.for("react.lazy"),Jb=Symbol.for("react.activity"),hk=Symbol.for("react.memo_cache_sentinel"),e_=Symbol.iterator,Fv=Symbol.for("react.client.reference"),an=Array.isArray,Ue=x0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tn=FD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UD=Object.freeze({pending:!1,data:null,method:null,action:null}),S0=[],w0=[],as=-1,du=F(null),yh=F(null),_l=F(null),xh=F(null),hu=Object.prototype.hasOwnProperty,Uv=gi.unstable_scheduleCallback,jD=gi.unstable_cancelCallback,pk=gi.unstable_shouldYield,HD=gi.unstable_requestPaint,Sl=gi.unstable_now,hc=gi.unstable_getCurrentPriorityLevel,jv=gi.unstable_ImmediatePriority,C0=gi.unstable_UserBlockingPriority,bh=gi.unstable_NormalPriority,qD=gi.unstable_LowPriority,E0=gi.unstable_IdlePriority,PD=gi.log,Ms=gi.unstable_setDisableYieldValue,pc=null,fo=null,Dt=null,da=!1,mi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Eo=Math.clz32?Math.clz32:yt,Hv=Math.log,pu=Math.LN2,qv=256,Pv=4194304,ho=2,Rs=8,gu=32,Gv=268435456,gc=Math.random().toString(36).slice(2),Ao="__reactFiber$"+gc,ha="__reactProps$"+gc,mc="__reactContainer$"+gc,t_="__reactEvents$"+gc,gk="__reactListeners$"+gc,_h="__reactHandles$"+gc,Sh="__reactResources$"+gc,wh="__reactMarker$"+gc,mk=new Set,ss={},If={},vk={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vv=RegExp("^[: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]*$"),Yv={},Zv={},vc=0,n_,r_,yk,i_,Ch,xk,bk;Qn.__reactDisabledLog=!0;var o_,A0,Eh=!1,k0=new(typeof WeakMap=="function"?WeakMap:Map),Ra=null,pa=!1,GD=/[\n"\\]/g,a_=!1,s_=!1,l_=!1,u_=!1,Qv=!1,c_=!1,T0=["value","defaultValue"],_k=!1,Sk=/["'&<>\n\t]|^\s|\s$/,f_="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Kv="applet caption html table td th marquee object template foreignObject desc title".split(" "),Wv=Kv.concat(["button"]),d_="dd dt li option optgroup p rp rt".split(" "),h_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ah={},wl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},mu=/([A-Z])/g,vu=/^ms-/,O0=/^(?:webkit|moz|o)[A-Z]/,D0=/^-ms-/,yc=/-(.)/g,wk=/;\s*$/,Bf={},$f={},Ck=!1,p_=!1,M0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),R0="http://www.w3.org/1998/Math/MathML",kh="http://www.w3.org/2000/svg",Xv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},g_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Cl={},m_=RegExp("^(aria)-[: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]*$"),Jv=RegExp("^(aria)[A-Z][: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]*$"),v_=!1,Uo={},I0=/^on./,u=/^on[^A-Z]/,f=RegExp("^(aria)-[: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]*$"),g=RegExp("^(aria)[A-Z][: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]*$"),b=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,E=null,M=null,U=null,Z=!1,ue=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),De=!1;if(ue)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{De=!1}var Xe=null,$e=null,ze=null,Yt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=oo(Yt),or=bn({},Yt,{view:0,detail:0}),Ae=oo(or),xe,Oe,Ke,Lt=bn({},or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ym,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Ke&&(Ke&&i.type==="mousemove"?(xe=i.screenX-Ke.screenX,Oe=i.screenY-Ke.screenY):Oe=xe=0,Ke=i),xe)},movementY:function(i){return"movementY"in i?i.movementY:Oe}}),En=oo(Lt),Pt=bn({},Lt,{dataTransfer:0}),Jt=oo(Pt),eo=bn({},or,{relatedTarget:0}),qn=oo(eo),xc=bn({},Yt,{animationName:0,elapsedTime:0,pseudoElement:0}),VD=oo(xc),qpe=bn({},Yt,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Ppe=oo(qpe),Gpe=bn({},Yt,{data:0}),Vj=oo(Gpe),Vpe=Vj,Ype={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zpe={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"},Qpe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Kpe=bn({},or,{key:function(i){if(i.key){var s=Ype[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Bd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Zpe[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ym,charCode:function(i){return i.type==="keypress"?Bd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Bd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Wpe=oo(Kpe),Xpe=bn({},Lt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yj=oo(Xpe),Jpe=bn({},or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ym}),e0e=oo(Jpe),t0e=bn({},Yt,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0e=oo(t0e),r0e=bn({},Lt,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),i0e=oo(r0e),o0e=bn({},Yt,{newState:0,oldState:0}),a0e=oo(o0e),s0e=[9,13,27,32],Zj=229,YD=ue&&"CompositionEvent"in window,y_=null;ue&&"documentMode"in document&&(y_=document.documentMode);var l0e=ue&&"TextEvent"in window&&!y_,Qj=ue&&(!YD||y_&&8<y_&&11>=y_),Kj=32,Wj=String.fromCharCode(Kj),Xj=!1,ey=!1,u0e={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},x_=null,b_=null,Jj=!1;ue&&(Jj=y1("input")&&(!document.documentMode||9<document.documentMode));var Ia=typeof Object.is=="function"?Object.is:RD,c0e=ue&&"documentMode"in document&&11>=document.documentMode,ty=null,ZD=null,__=null,QD=!1,ny={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},KD={},eH={};ue&&(eH=document.createElement("div").style,"AnimationEvent"in window||(delete ny.animationend.animation,delete ny.animationiteration.animation,delete ny.animationstart.animation),"TransitionEvent"in window||delete ny.transitionend.transition);var tH=Jc("animationend"),nH=Jc("animationiteration"),rH=Jc("animationstart"),f0e=Jc("transitionrun"),d0e=Jc("transitionstart"),h0e=Jc("transitioncancel"),iH=Jc("transitionend"),oH=new Map,WD="abort auxClick beforeToggle 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(" ");WD.push("scrollEnd");var XD=new WeakMap,JD=1,B0=2,El=[],ry=0,e8=0,Th={};Object.freeze(Th);var Al=null,iy=null,Gr=0,p0e=1,jo=2,ga=8,yu=16,aH=64,sH=!1;try{var lH=Object.preventExtensions({})}catch{sH=!0}var oy=[],ay=0,Ek=null,Ak=0,kl=[],Tl=0,$0=null,Nf=1,zf="",Ba=null,Di=null,ar=!1,Ff=!1,Ol=null,L0=null,bc=!1,t8=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),uH=0;if(typeof performance=="object"&&typeof performance.now=="function")var g0e=performance,cH=function(){return g0e.now()};else{var m0e=Date;cH=function(){return m0e.now()}}var n8=F(null),r8=F(null),fH={},kk=null,sy=null,ly=!1,v0e=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,v){i.push(v)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},y0e=gi.unstable_scheduleCallback,x0e=gi.unstable_NormalPriority,po={$$typeof:os,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},uy=gi.unstable_now,dH=-0,Tk=-0,ls=-1.1,N0=-0,Ok=!1,Dk=!1,S_=null,i8=0,z0=0,cy=null,hH=Ue.S;Ue.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&$2(i,s),hH!==null&&hH(i,s)};var F0=F(null),xu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},w_=[],C_=[],E_=[],A_=[],k_=[],T_=[],U0=new Set;xu.recordUnsafeLifecycleWarnings=function(i,s){U0.has(i.type)||(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0&&w_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillMount=="function"&&C_.push(i),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&E_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillReceiveProps=="function"&&A_.push(i),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0&&k_.push(i),i.mode&ga&&typeof s.UNSAFE_componentWillUpdate=="function"&&T_.push(i))},xu.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<w_.length&&(w_.forEach(function($){i.add(V($)||"Component"),U0.add($.type)}),w_=[]);var s=new Set;0<C_.length&&(C_.forEach(function($){s.add(V($)||"Component"),U0.add($.type)}),C_=[]);var c=new Set;0<E_.length&&(E_.forEach(function($){c.add(V($)||"Component"),U0.add($.type)}),E_=[]);var v=new Set;0<A_.length&&(A_.forEach(function($){v.add(V($)||"Component"),U0.add($.type)}),A_=[]);var _=new Set;0<k_.length&&(k_.forEach(function($){_.add(V($)||"Component"),U0.add($.type)}),k_=[]);var C=new Set;if(0<T_.length&&(T_.forEach(function($){C.add(V($)||"Component"),U0.add($.type)}),T_=[]),0<s.size){var B=m(s);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
5106
5106
|
|
|
5107
5107
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
5108
5108
|
|