@dori-ai/dori-side-widget 1.13.13 → 1.13.14
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/assets/{MarkdownContent-c0__FK7Y.js → MarkdownContent-Cnu8VPfl.js} +1 -1
- package/dist/assets/MarkdownContent-Cnu8VPfl.js.br +0 -0
- package/dist/assets/{MarkdownContent-c0__FK7Y.js.gz → MarkdownContent-Cnu8VPfl.js.gz} +0 -0
- package/dist/assets/{main-DtsSECXq.js → main-BfEf6Rqi.js} +2 -2
- package/dist/assets/main-BfEf6Rqi.js.br +0 -0
- package/dist/assets/main-BfEf6Rqi.js.gz +0 -0
- package/dist/widget.js +1 -1
- package/dist/widget.js.br +0 -0
- package/dist/widget.js.gz +0 -0
- package/package.json +1 -1
- package/dist/assets/MarkdownContent-c0__FK7Y.js.br +0 -0
- package/dist/assets/main-DtsSECXq.js.br +0 -0
- package/dist/assets/main-DtsSECXq.js.gz +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MarkdownContent-
|
|
2
|
-
import{l as e,h as t,A as r,S as n,u as i,s as a,a as o,b as s,c as l,d as c,g as u,m as d,e as p,f,i as h,j as g,k as m,n as v,o as b,p as y,q as x,r as k,_,t as w,v as S}from"../widget.js";function C(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P="undefined"!=typeof window?window:void 0,z="undefined"!=typeof globalThis?globalThis:P,E=Array.prototype,T=E.forEach,j=E.indexOf,R=null==z?void 0:z.navigator,O=null==z?void 0:z.document,I=null==z?void 0:z.location,A=null==z?void 0:z.fetch,D=null!=z&&z.XMLHttpRequest&&"withCredentials"in new z.XMLHttpRequest?z.XMLHttpRequest:void 0,M=null==z?void 0:z.AbortController,L=null==R?void 0:R.userAgent,F=null!=P?P:{},N={DEBUG:!1,LIB_VERSION:"1.283.0"};function W(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,i)}function $(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){W(a,n,i,o,s,"next",e)}function s(e){W(a,n,i,o,s,"throw",e)}o(void 0)})}}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(null,arguments)}function H(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var V=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],U=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return V.concat(t).some(e=>{var t=e.toLowerCase();return-1!==r.indexOf(t)})},q=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Y(e,t){return-1!==e.indexOf(t)}var G=function(e){return e.trim()},Q=function(e){return e.replace(/^\$/,"")},K=Array.isArray,X=Object.prototype,Z=X.hasOwnProperty,J=X.toString,ee=K||function(e){return"[object Array]"===J.call(e)},te=e=>"function"==typeof e,re=e=>e===Object(e)&&!ee(e),ne=e=>{if(re(e)){for(var t in e)if(Z.call(e,t))return!1;return!0}return!1},ie=e=>void 0===e,ae=e=>"[object String]"==J.call(e),oe=e=>ae(e)&&0===e.trim().length,se=e=>null===e,le=e=>ie(e)||se(e),ce=e=>"[object Number]"==J.call(e),ue=e=>"[object Boolean]"===J.call(e),de=e=>Y(q,e);function pe(e){return null===e||"object"!=typeof e}function fe(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function he(e){return!ie(Event)&&function(e,t){try{return e instanceof t}catch(r){return!1}}(e,Event)}var ge=[!0,"true",1,"1","yes"],me=e=>Y(ge,e),ve=[!1,"false",0,"0","no"];function be(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),ce(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),be(i||r,t,r,n))}class ye{constructor(e){this.t={},this.i=e.i,this.o=be(e.bucketSize,0,100,e.h),this.m=be(e.refillRate,0,this.o,e.h),this.S=be(e.refillInterval,0,864e5,e.h)}$(e,t){var r=t-e.lastAccess,n=Math.floor(r/this.S);if(n>0){var i=n*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+n*this.S}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.$(i,r):(i={tokens:this.o,lastAccess:r},this.t[n]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var xe,ke,_e,we=e=>e instanceof Error;function Se(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return _e&&r.length===ke||(ke=r.length,_e=r.reduce((r,n)=>{xe||(xe={});var i=xe[n];if(i)r[i[0]]=i[1];else for(var a=e(n),o=a.length-1;o>=0;o--){var s=a[o],l=null==s?void 0:s.filename,c=t[n];if(l&&c){r[l]=c,xe[n]=[l,c];break}}return r},{})),_e}}var Ce="?";function Pe(e,t,r,n){var i={platform:"web:javascript",filename:e,function:"<anonymous>"===t?Ce:t,in_app:!0};return ie(r)||(i.lineno=r),ie(n)||(i.colno=n),i}var ze=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Ce,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Ee=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Te=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,je=/\((\S*)(?::(\d+))(?::(\d+))\)/,Re=e=>{var t=Ee.exec(e);if(t){var[,r,n,i]=t;return Pe(r,Ce,+n,+i)}var a=Te.exec(e);if(a){if(a[2]&&0===a[2].indexOf("eval")){var o=je.exec(a[2]);o&&(a[2]=o[1],a[3]=o[2],a[4]=o[3])}var[s,l]=ze(a[1]||Ce,a[2]);return Pe(l,s,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},Oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ae=e=>{var t=Oe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=Ie.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],i=t[1]||Ce;return[i,n]=ze(i,n),Pe(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},De=/\(error: (.*)\)/;class Me{constructor(e,t,r){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===r&&(r=[]),this.coercers=e,this.modifiers=r,this.stackParser=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){void 0===r&&(r=0);for(var n=[],i=e.split("\n"),a=r;a<i.length;a++){var o=i[a];if(!(o.length>1024)){var s=De.test(o)?o.replace(De,"$1"):o;if(!s.match(/\S*Error: /)){for(var l of t){var c=l(s);if(c){n.push(c);break}}if(n.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return B({},e,{filename:e.filename||(r=t,r[r.length-1]||{}).filename,function:e.function||Ce});var r})}(n)}}(...t)}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(),a=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(a,r),$exception_level:"error"}}modifyFrames(e){var t=this;return $(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&ee(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?1:0),t.chunkIdMap)),B({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return $(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,a={type:e.type,value:e.value,mechanism:{type:null!==(r=t.type)&&void 0!==r?r:"generic",handled:null===(n=t.handled)||void 0===n||n,synthetic:null!==(i=e.synthetic)&&void 0!==i&&i}};e.stack&&(a.stacktrace={type:"raw",frames:e.stack});var o=[a];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,B({},t,{handled:!0}))),o}buildParsingContext(){return{chunkIdMap:Se(this.stackParser)}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(n<=4){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return B({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}class Le{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=ae(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return fe(e,"DOMException")}isDOMError(e){return fe(e,"DOMError")}}class Fe{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var r=e.message;return r.error&&"string"==typeof r.error.message?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class Ne{constructor(){}match(e){return fe(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var r;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}var We=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class $e{match(e){return"string"==typeof e}coerce(e,t){var r,[n,i]=this.getInfos(e);return{type:null!=n?n:"Error",value:null!=i?i:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(We);return n&&(t=n[1],r=n[2]),[t,r]}}var Be=["fatal","error","warning","log","info","debug"];function He(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class Ve{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null==(r=t.syntheticException)?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return he(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+He(e)}isSeverityLevel(e){return ae(e)&&!oe(e)&&Be.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(we(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(r){return}}}class Ue{match(e){return he(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+He(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class qe{match(e){return pe(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Ye{match(e){return fe(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return pe(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){if(pe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}}var Ge=e=>{var t={k:function(t){if(P&&(N.DEBUG||F.POSTHOG_DEBUG)&&!ie(P.console)&&P.console){for(var r=("__rrweb_original__"in P.console[t]?P.console[t].__rrweb_original__:P.console[t]),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];r(e,...i)}},info:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("log",...r)},warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("warn",...r)},error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("error",...r)},critical:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning:e=>{t.error("You must initialize PostHog before calling "+e)},createLogger:t=>Ge(e+" "+t)};return t},Qe=Ge("[PostHog.js]"),Ke=Qe.createLogger,Xe=Ke("[ExternalScriptsLoader]"),Ze=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Xe.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==O?void 0:O.querySelectorAll("script");if(n)for(var i,a=function(){if(n[o].src===t){var e=n[o];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}},o=0;o<n.length;o++)if(i=a())return i.v;var s=()=>{if(!O)return r("document not found");var n=O.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");var i,a=O.querySelectorAll("body > script");a.length>0?null==(i=a[0].parentNode)||i.insertBefore(n,a[0]):O.body.appendChild(n)};null!=O&&O.body?s():null==O||O.addEventListener("DOMContentLoaded",s)};F.__PosthogExtensions__=F.__PosthogExtensions__||{},F.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;if("remote-config"===t&&(n="/array/"+e.config.token+"/config.js"),"toolbar"===t){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var a=e.requestRouter.endpointFor("assets",n);Ze(e,a,r)},F.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Ze(e,n,r)};var Je={};function et(e,t,r){if(ee(e))if(T&&e.forEach===T)e.forEach(t,r);else if("length"in e&&e.length===+e.length)for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===Je)return}function tt(e,t,r){if(!le(e)){if(ee(e))return et(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Je)return}else for(var i in e)if(Z.call(e,i)&&t.call(r,e[i],i)===Je)return}}var rt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return et(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},nt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return et(r,function(t){et(t,function(t){e.push(t)})}),e};function it(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var at=function(e){try{return e()}catch(t){return}},ot=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(i){Qe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Qe.critical(i)}}},st=function(e){var t={};return tt(e,function(e,r){(ae(e)&&e.length>0||ce(e))&&(t[r]=e)}),t},lt=["herokuapp.com","vercel.app","netlify.app"];function ct(e){var t=null==e?void 0:e.hostname;if(!ae(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of lt)if(r===n)return!1;return!0}function ut(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function dt(e,t,r,n){var{capture:i=!1,passive:a=!0}=null!=n?n:{};null==e||e.addEventListener(t,r,{capture:i,passive:a})}var pt="$people_distinct_id",ft="__alias",ht="__timers",gt="$autocapture_disabled_server_side",mt="$heatmaps_enabled_server_side",vt="$exception_capture_enabled_server_side",bt="$error_tracking_suppression_rules",yt="$error_tracking_capture_extension_exceptions",xt="$web_vitals_enabled_server_side",kt="$dead_clicks_enabled_server_side",_t="$web_vitals_allowed_metrics",wt="$session_recording_remote_config",St="$sesid",Ct="$session_is_sampled",Pt="$enabled_feature_flags",zt="$early_access_features",Et="$feature_flag_details",Tt="$stored_person_properties",jt="$stored_group_properties",Rt="$surveys",Ot="$surveys_activated",It="$flag_call_reported",At="$user_state",Dt="$client_session_props",Mt="$capture_rate_limit",Lt="$initial_campaign_params",Ft="$initial_referrer_info",Nt="$initial_person_info",Wt="$epp",$t="__POSTHOG_TOOLBAR__",Bt="$posthog_cookieless",Ht=[pt,ft,"__cmpns",ht,"$session_recording_enabled_server_side",mt,St,Pt,bt,At,zt,Et,jt,Tt,Rt,It,Dt,Mt,Lt,Ft,Wt,Nt];function Vt(e){return e instanceof Element&&(e.id===$t||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function Ut(e){return!!e&&1===e.nodeType}function qt(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Yt(e){return!!e&&3===e.nodeType}function Gt(e){return!!e&&11===e.nodeType}function Qt(e){return e?G(e).split(/\s+/):[]}function Kt(e){var t=null==P?void 0:P.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Xt(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Qt(t)}function Zt(e){return le(e)?null:G(e).split(/(\s+)/).filter(e=>gr(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Jt(e){var t="";return sr(e)&&!lr(e)&&e.childNodes&&e.childNodes.length&&tt(e.childNodes,function(e){var r;Yt(e)&&e.textContent&&(t+=null!==(r=Zt(e.textContent))&&void 0!==r?r:"")}),G(t)}function er(e){return ie(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var tr=["a","button","form","input","select","textarea","label"];function rr(e,t){if(ie(t))return!0;var r,n=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function nr(e){var t=e.parentNode;return!(!t||!Ut(t))&&t}var ir=[".ph-no-rageclick",".ph-no-capture"],ar=e=>!e||qt(e,"html")||!Ut(e),or=(e,t)=>{if(!P||ar(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!qt(i,"body");)if(Gt(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var a=nr(i);if(!a)break;if(t||tr.indexOf(a.tagName.toLowerCase())>-1)r=!0;else{var o=P.getComputedStyle(a);o&&"pointer"===o.getPropertyValue("cursor")&&(r=!0)}n.push(a),i=a}return{parentIsUsefulElement:r,targetElementList:n}};function sr(e){for(var t=e;t.parentNode&&!qt(t,"body");t=t.parentNode){var r=Xt(t);if(Y(r,"ph-sensitive")||Y(r,"ph-no-capture"))return!1}if(Y(Xt(e),"ph-include"))return!0;var n=e.type||"";if(ae(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!ae(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function lr(e){return!!(qt(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||qt(e,"select")||qt(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var cr="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ur=new RegExp("^(?:"+cr+")$"),dr=new RegExp(cr),pr="\\d{3}-?\\d{2}-?\\d{4}",fr=new RegExp("^("+pr+")$"),hr=new RegExp("("+pr+")");function gr(e,t){if(void 0===t&&(t=!0),le(e))return!1;if(ae(e)){if(e=G(e),(t?ur:dr).test((e||"").replace(/[- ]/g,"")))return!1;if((t?fr:hr).test(e))return!1}return!0}function mr(e){var t=Jt(e);return gr(t=(t+" "+vr(e)).trim())?t:""}function vr(e){var t="";return e&&e.childNodes&&e.childNodes.length&&tt(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Jt(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+vr(e)).trim())}catch(i){Qe.error("[AutoCapture]",i)}}),t}function br(e){return e.map(e=>{var t,r,n={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:xr(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return it(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return n.attributes[t]=r}),n}).map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var a=B({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(r=e.nth_of_type)&&void 0!==r?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return it(a).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[yr(t.toString())]=yr(r.toString())}),(n+=":")+it(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";")}function yr(e){return e.replace(/"|\\"/g,'\\"')}function xr(e){var t=e.attr__class;return t?ee(t)?t:Qt(t):void 0}class kr{constructor(){this.clicks=[]}isRageClick(e,t,r){var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<30&&r-n.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:r}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var _r,wr="$copy_autocapture",Sr=((_r={}).GZipJS="gzip-js",_r.Base64="base64",_r),Cr=e=>{var t=null==O?void 0:O.createElement("a");return ie(t)?null:(t.href=e,t)},Pr=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<n.length;i++){var a=n[i].split("=");if(a[0]===t){r=a;break}}if(!ee(r)||r.length<2)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){Qe.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},zr=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[0]||"",a=n[1],o=i.split("?"),s=o[1],l=o[0],c=(s||"").split("&"),u=[],d=0;d<c.length;d++){var p=c[d].split("=");ee(p)&&(t.includes(p[0])?u.push(p[0]+"="+r):u.push(c[d]))}var f=l;return null!=s&&(f+="?"+u.join("&")),null!=a&&(f+="#"+a),f},Er=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},Tr=Ke("[AutoCapture]");function jr(e,t){return t.length>e?t.slice(0,e)+"...":t}function Rr(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Ut(t));return t}class Or{constructor(e){this.P=!1,this.T=null,this.rageclicks=new kr,this.R=!1,this.instance=e,this.I=null}get C(){var e,t,r=re(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}O(){if(this.isBrowserSupported()){if(P&&O){var e=e=>{e=e||(null==P?void 0:P.event);try{this.F(e)}catch(_r){Tr.error("Failed to capture event",_r)}};if(dt(O,"submit",e,{capture:!0}),dt(O,"change",e,{capture:!0}),dt(O,"click",e,{capture:!0}),this.C.capture_copied_text){var t=e=>{e=e||(null==P?void 0:P.event),this.F(e,wr)};dt(O,"copy",t,{capture:!0}),dt(O,"cut",t,{capture:!0})}}}else Tr.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.O(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.R=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[gt]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.I=e}getElementSelectors(e){var t,r=[];return null==(t=this.I)||t.forEach(t=>{var n=null==O?void 0:O.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[gt],n=this.T;if(se(n)&&!ue(r)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!r;return!!this.instance.config.autocapture&&!i}F(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=er(e);Yt(n)&&(n=n.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&function(e,t){if(!P||ar(e))return!1;var r,n;if(!1===(r=ue(t)?!!t&&ir:null!==(n=null==t?void 0:t.css_selector_ignorelist)&&void 0!==n?n:ir))return!1;var{targetElementList:i}=or(e,!1);return!rr(i,r)}(n,this.instance.config.rageclick)&&this.F(e,"$rageclick");var i=t===wr;if(n&&function(e,t,r,n,i){var a,o,s,l;if(void 0===r&&(r=void 0),!P||ar(e))return!1;if(null!=(a=r)&&a.url_allowlist&&!Kt(r.url_allowlist))return!1;if(null!=(o=r)&&o.url_ignorelist&&Kt(r.url_ignorelist))return!1;if(null!=(s=r)&&s.dom_event_allowlist){var c=r.dom_event_allowlist;if(c&&!c.some(e=>t.type===e))return!1}var{parentIsUsefulElement:u,targetElementList:d}=or(e,n);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(ie(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var a of e)if(n=i(a))return n.v;return!1}(d,r))return!1;if(!rr(d,null==(l=r)?void 0:l.css_selector_allowlist))return!1;var p=P.getComputedStyle(e);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return u?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(tr.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.C,i,i?["copy","cut"]:void 0)){var{props:a,explicitNoCapture:o}=function(e,t){for(var r,n,{e:i,maskAllElementAttributes:a,maskAllText:o,elementAttributeIgnoreList:s,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!qt(u,"body");)Gt(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p=[],f={},h=!1,g=!1;if(tt(c,e=>{var t=sr(e);"a"===e.tagName.toLowerCase()&&(h=e.getAttribute("href"),h=t&&h&&gr(h)&&h),Y(Xt(e),"ph-no-capture")&&(g=!0),p.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),a={tag_name:i};tr.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?a.$el_text=jr(1024,mr(e)):a.$el_text=jr(1024,Jt(e)));var o=Xt(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),tt(e.attributes,function(r){var i;if((!lr(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&gr(r.value)&&(i=r.name,!ae(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var o=r.value;"class"===r.name&&(o=Qt(o).join(" ")),a["attr__"+r.name]=jr(1024,o)}});for(var s=1,l=1,c=e;c=Rr(c);)s++,c.tagName===e.tagName&&l++;return a.nth_child=s,a.nth_of_type=l,a}(e,a,o,s));var r=function(e){if(!sr(e))return{};var t={};return tt(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&gr(n)&&(t[r]=n)}}),t}(e);rt(f,r)}),g)return{props:{},explicitNoCapture:g};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?p[0].$el_text=mr(e):p[0].$el_text=Jt(e)),h){var m,v;p[0].attr__href=h;var b=null==(m=Cr(h))?void 0:m.host,y=null==P||null==(v=P.location)?void 0:v.host;b&&y&&b!==y&&(d=h)}return{props:rt({$event_type:i.type,$ce_version:1},l?{}:{$elements:p},{$elements_chain:br(p)},null!=(r=p[0])&&r.$el_text?{$el_text:null==(n=p[0])?void 0:n.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},f)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.C.element_attribute_ignorelist,elementsChainAsString:this.R});if(o)return!1;var s=this.getElementSelectors(n);if(s&&s.length>0&&(a.$element_selectors=s),t===wr){var l,c=Zt(null==P||null==(l=P.getSelection())?void 0:l.toString()),u=e.type||"clipboard";if(!c)return!1;a.$selected_content=c,a.$copy_type=u}return this.instance.capture(t,a),!0}}}isBrowserSupported(){return te(null==O?void 0:O.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return ce(e)&&isFinite(e)&&Math.floor(e)===e});var Ir="0123456789abcdef";class Ar{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||e<0||t<0||r<0||n<0||e>0xffffffffffff||t>4095||r>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new Ar(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+Ir.charAt(this.bytes[t]>>>4)+Ir.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Ar(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class Dr{constructor(){this.A=0,this.D=0,this.j=new Fr}generate(){var e=this.generateOrAbort();if(ie(e)){this.A=0;var t=this.generateOrAbort();if(ie(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return Ar.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var Mr,Lr=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};P&&!ie(P.crypto)&&crypto.getRandomValues&&(Lr=e=>crypto.getRandomValues(e));class Fr{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(Lr(this.N),this.U=0),this.N[this.U++]}}var Nr=()=>Wr().toString(),Wr=()=>(Mr||(Mr=new Dr)).generate(),$r="",Br=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Hr={H:()=>!!O,B:function(e){Qe.error("cookieStore error: "+e)},q:function(e){if(O){try{for(var t=e+"=",r=O.cookie.split(";").filter(e=>e.length),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(a){}return null}},W:function(e){var t;try{t=JSON.parse(Hr.q(e))||{}}catch(r){}return t},G:function(e,t,r,n,i){if(O)try{var a="",o="",s=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=O),$r)return $r;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+Nr();!$r&&n--;){var a=r.slice(n).join("."),o=i+"=1;domain=."+a+";path=/";t.cookie=o+";max-age=3",t.cookie.includes(i)&&(t.cookie=o+";max-age=0",$r=a)}return $r}(e);if(!r){var n=(i=e.match(Br))?i[0]:"";n!==r&&Qe.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}var i;return""}(O.location.hostname,n);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),a="; expires="+l.toUTCString()}i&&(o="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+a+"; SameSite=Lax; path=/"+s+o;return c.length>3686.4&&Qe.warn("cookieStore warning: large cookie, len="+c.length),O.cookie=c,c}catch(u){return}},V:function(e,t){if(null!=O&&O.cookie)try{Hr.G(e,"",-1,t)}catch(r){return}}},Vr=null,Ur={H:function(){if(!se(Vr))return Vr;var e=!0;if(ie(P))e=!1;else try{var t="__mplssupport__";Ur.G(t,"xyz"),'"xyz"'!==Ur.q(t)&&(e=!1),Ur.V(t)}catch(_r){e=!1}return e||Qe.error("localStorage unsupported; falling back to cookie store"),Vr=e,e},B:function(e){Qe.error("localStorage error: "+e)},q:function(e){try{return null==P?void 0:P.localStorage.getItem(e)}catch(_r){Ur.B(_r)}return null},W:function(e){try{return JSON.parse(Ur.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==P||P.localStorage.setItem(e,JSON.stringify(t))}catch(_r){Ur.B(_r)}},V:function(e){try{null==P||P.localStorage.removeItem(e)}catch(_r){Ur.B(_r)}}},qr=["distinct_id",St,Ct,Wt,Nt],Yr=B({},Ur,{W:function(e){try{var t={};try{t=Hr.W(e)||{}}catch(n){}var r=rt(t,JSON.parse(Ur.q(e)||"{}"));return Ur.G(e,r),r}catch(n){}return null},G:function(e,t,r,n,i,a){try{Ur.G(e,t,void 0,void 0,a);var o={};qr.forEach(e=>{t[e]&&(o[e]=t[e])}),Object.keys(o).length&&Hr.G(e,o,r,n,i,a)}catch(s){Ur.B(s)}},V:function(e,t){try{null==P||P.localStorage.removeItem(e),Hr.V(e,t)}catch(_r){Ur.B(_r)}}}),Gr={},Qr={H:function(){return!0},B:function(e){Qe.error("memoryStorage error: "+e)},q:function(e){return Gr[e]||null},W:function(e){return Gr[e]||null},G:function(e,t){Gr[e]=t},V:function(e){delete Gr[e]}},Kr=null,Xr={H:function(){if(!se(Kr))return Kr;if(Kr=!0,ie(P))Kr=!1;else try{var e="__support__";Xr.G(e,"xyz"),'"xyz"'!==Xr.q(e)&&(Kr=!1),Xr.V(e)}catch(_r){Kr=!1}return Kr},B:function(e){Qe.error("sessionStorage error: ",e)},q:function(e){try{return null==P?void 0:P.sessionStorage.getItem(e)}catch(_r){Xr.B(_r)}return null},W:function(e){try{return JSON.parse(Xr.q(e))||null}catch(t){}return null},G:function(e,t){try{null==P||P.sessionStorage.setItem(e,JSON.stringify(t))}catch(_r){Xr.B(_r)}},V:function(e){try{null==P||P.sessionStorage.removeItem(e)}catch(_r){Xr.B(_r)}}},Zr=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Jr{constructor(e){this._instance=e}get C(){return this._instance.config}get consent(){return this.J()?Zr.DENIED:this.K}isOptedOut(){return"always"===this.C.cookieless_mode||this.consent===Zr.DENIED||this.consent===Zr.PENDING&&(this.C.opt_out_capturing_by_default||"on_reject"===this.C.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Zr.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.C.cookie_expiration,this.C.cross_subdomain_cookie,this.C.secure_cookie)}reset(){this.Y.V(this.X,this.C.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:r}=this._instance.config;return r||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return me(e)?Zr.GRANTED:Y(ve,e)?Zr.DENIED:Zr.PENDING}get Y(){if(!this.Z){var e=this.C.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Ur:Hr;var t="localStorage"===e?Hr:Ur;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(me(t.q(this.X))),t.V(this.X,this.C.cross_subdomain_cookie))}return this.Z}J(){return!!this.C.respect_dnt&&!!ut([null==R?void 0:R.doNotTrack,null==R?void 0:R.msDoNotTrack,F.doNotTrack],e=>me(e))}}var en=Ke("[Dead Clicks]"),tn=()=>!0,rn=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(kt)),n=e.instance.config.capture_dead_clicks;return ue(n)?n:r};class nn{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[kt]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?en.error("failed to load script",t):e()})}et(){var e;if(O){if(!this.tt&&null!=(e=F.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=re(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=F.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(O),en.info("starting...")}}else en.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,en.info("stopping..."))}}var an=Ke("[ExceptionAutocapture]");class on{constructor(e){var t,r,n;this.rt=()=>{var e;if(P&&this.isEnabled&&null!=(e=F.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=F.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=F.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=F.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.C.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.C.capture_unhandled_rejections&&(this.nt=r(this.captureException.bind(this))),!this.ot&&this.C.capture_console_errors&&(this.ot=n(this.captureException.bind(this)))}catch(_r){an.error("failed to start",_r),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[vt]),this.C=this.ht(),this.dt=new ye({refillRate:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==r?r:1,bucketSize:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==n?n:10,refillInterval:1e4,h:an}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return re(e)?t=B({},t,e):(ie(e)?this.ut:e)&&(t=B({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.C.capture_console_errors||this.C.capture_unhandled_errors||this.C.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(an.info("enabled"),this.it(this.rt))}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return an.error("failed to load script",t);e()})}lt(){var e,t,r;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(r=this.ot)||r.call(this),this.ot=void 0}onRemoteConfig(e){var t=e.autocaptureExceptions;this.ut=!!t||!1,this.C=this.ht(),this._instance.persistence&&this._instance.persistence.register({[vt]:this.ut}),this.startIfEnabled()}captureException(e){var t,r,n=null!==(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)&&void 0!==t?t:"Exception";this.dt.consumeRateLimit(n)?an.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function sn(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return te(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch(a){return()=>{}}}class ln{constructor(e){var t;this._instance=e,this.vt=(null==P||null==(t=P.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Qe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Qe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(P&&P.history){var r=this;null!=(e=P.history.pushState)&&e.__posthog_wrapped__||sn(P.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("pushState")}),null!=(t=P.history.replaceState)&&t.__posthog_wrapped__||sn(P.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("replaceState")}),this.gt()}}ft(e){try{var t,r=null==P||null==(t=P.location)?void 0:t.pathname;if(!r)return;r!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.vt=r}catch(_r){Qe.error("Error capturing "+e+" pageview",_r)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};dt(P,"popstate",e),this.ct=()=>{P&&P.removeEventListener("popstate",e)}}}}var cn=Ke("[SegmentIntegration]"),un="posthog-js";function dn(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:a=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{var s,l,c,u,d;if("*"!==a&&!a.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var f=(null==(s=t.exception)?void 0:s.values)||[],h=f.map(e=>B({},e,{stacktrace:e.stacktrace?B({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>B({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(l=f[0])?void 0:l.value)||t.message,$exception_type:null==(c=f[0])?void 0:c.type,$exception_level:t.level,$exception_list:h,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=f[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=f[0])?void 0:d.type,$sentry_tags:t.tags};return r&&n&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+t.event_id),o&&e.exceptions.sendExceptionEvent(g),t}}class pn{constructor(e,t,r,n,i,a){this.name=un,this.setupOnce=function(o){o(dn(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==a||a}))}}}var fn=null!=P&&P.location?Er(P.location.hash,"__posthog")||Er(location.hash,"state"):null,hn="_postHogToolbarParams",gn=Ke("[Toolbar]"),mn=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(mn||{});class vn{constructor(e){this.instance=e}_t(e){F.ph_toolbar_state=e}yt(){var e;return null!==(e=F.ph_toolbar_state)&&void 0!==e?e:mn.UNINITIALIZED}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),!P||!O)return!1;e=null!=e?e:P.location,r=null!=r?r:P.history;try{if(!t){try{P.localStorage.setItem("test","test"),P.localStorage.removeItem("test")}catch(_r){return!1}t=null==P?void 0:P.localStorage}var n,i=fn||Er(e.hash,"__posthog")||Er(e.hash,"state"),a=i?at(()=>JSON.parse(atob(decodeURIComponent(i))))||at(()=>JSON.parse(decodeURIComponent(i))):null;return a&&"ph_authorize"===a.action?((n=a).source="url",n&&Object.keys(n).length>0&&(a.desiredHash?e.hash=a.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(hn)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(_r){return!1}}bt(e){var t=F.ph_load_toolbar||F.ph_load_editor;!le(t)&&te(t)?t(e,this.instance):gn.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==O||!O.getElementById($t));if(!P||t)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=B({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(P.localStorage.setItem(hn,JSON.stringify(B({},n,{source:void 0}))),this.yt()===mn.LOADED)this.bt(n);else if(this.yt()===mn.UNINITIALIZED){var i;this._t(mn.LOADING),null==(i=F.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return gn.error("[Toolbar] Failed to load",e),void this._t(mn.UNINITIALIZED);this._t(mn.LOADED),this.bt(n)}),dt(P,"turbolinks:load",()=>{this._t(mn.UNINITIALIZED),this.loadToolbar(n)})}return!0}wt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}var bn=Ke("[TracingHeaders]");class yn{constructor(e){this.xt=void 0,this.St=void 0,this.rt=()=>{var e,t;ie(this.xt)&&(null==(e=F.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),ie(this.St)&&(null==(t=F.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return bn.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.xt)||e.call(this),null==(t=this.St)||t.call(this),this.xt=void 0,this.St=void 0)}}var xn="Mobile",kn="iOS",_n="Android",wn="Tablet",Sn=_n+" "+wn,Cn="iPad",Pn="Apple",zn=Pn+" Watch",En="Safari",Tn="BlackBerry",jn="Samsung",Rn=jn+"Browser",On=jn+" Internet",In="Chrome",An=In+" OS",Dn=In+" "+kn,Mn="Internet Explorer",Ln=Mn+" "+xn,Fn="Opera",Nn=Fn+" Mini",Wn="Edge",$n="Microsoft "+Wn,Bn="Firefox",Hn=Bn+" "+kn,Vn="Nintendo",Un="PlayStation",qn="Xbox",Yn=_n+" "+xn,Gn=xn+" "+En,Qn="Windows",Kn=Qn+" Phone",Xn="Nokia",Zn="Ouya",Jn="Generic",ei=Jn+" "+xn.toLowerCase(),ti=Jn+" "+wn.toLowerCase(),ri="Konqueror",ni="(\\d+(\\.\\d+)?)",ii=new RegExp("Version/"+ni),ai=new RegExp(qn,"i"),oi=new RegExp(Un+" \\w+","i"),si=new RegExp(Vn+" \\w+","i"),li=new RegExp(Tn+"|PlayBook|BB10","i"),ci={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},ui=function(e,t){return t=t||"",Y(e," OPR/")&&Y(e,"Mini")?Nn:Y(e," OPR/")?Fn:li.test(e)?Tn:Y(e,"IE"+xn)||Y(e,"WPDesktop")?Ln:Y(e,Rn)?On:Y(e,Wn)||Y(e,"Edg/")?$n:Y(e,"FBIOS")?"Facebook "+xn:Y(e,"UCWEB")||Y(e,"UCBrowser")?"UC Browser":Y(e,"CriOS")?Dn:Y(e,"CrMo")||Y(e,In)?In:Y(e,_n)&&Y(e,En)?Yn:Y(e,"FxiOS")?Hn:Y(e.toLowerCase(),ri.toLowerCase())?ri:((e,t)=>{return t&&Y(t,Pn)||Y(r=e,En)&&!Y(r,In)&&!Y(r,_n);var r})(e,t)?Y(e,xn)?Gn:En:Y(e,Bn)?Bn:Y(e,"MSIE")||Y(e,"Trident/")?Mn:Y(e,"Gecko")?Bn:""},di={[Ln]:[new RegExp("rv:"+ni)],[$n]:[new RegExp(Wn+"?\\/"+ni)],[In]:[new RegExp("("+In+"|CrMo)\\/"+ni)],[Dn]:[new RegExp("CriOS\\/"+ni)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ni)],[En]:[ii],[Gn]:[ii],[Fn]:[new RegExp("(Opera|OPR)\\/"+ni)],[Bn]:[new RegExp(Bn+"\\/"+ni)],[Hn]:[new RegExp("FxiOS\\/"+ni)],[ri]:[new RegExp("Konqueror[:/]?"+ni,"i")],[Tn]:[new RegExp(Tn+" "+ni),ii],[Yn]:[new RegExp("android\\s"+ni,"i")],[On]:[new RegExp(Rn+"\\/"+ni)],[Mn]:[new RegExp("(rv:|MSIE )"+ni)],Mozilla:[new RegExp("rv:"+ni)]},pi=function(e,t){var r=ui(e,t),n=di[r];if(ie(n))return null;for(var i=0;i<n.length;i++){var a=n[i],o=e.match(a);if(o)return parseFloat(o[o.length-2])}return null},fi=[[new RegExp(qn+"; "+qn+" (.*?)[);]","i"),e=>[qn,e&&e[1]||""]],[new RegExp(Vn,"i"),[Vn,""]],[new RegExp(Un,"i"),[Un,""]],[li,[Tn,""]],[new RegExp(Qn,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Kn,""];if(new RegExp(xn).test(t)&&!/IEMobile\b/.test(t))return[Qn+" "+xn,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=ci[n]||"";return/arm/i.test(t)&&(i="RT"),[Qn,i]}return[Qn,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[kn,t.join(".")]}return[kn,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ie(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+_n+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+_n+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[_n,t.join(".")]}return[_n,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[An,""]],[/Linux|debian/i,["Linux",""]]],hi=function(e){return si.test(e)?Vn:oi.test(e)?Un:ai.test(e)?qn:new RegExp(Zn,"i").test(e)?Zn:new RegExp("("+Kn+"|WPDesktop)","i").test(e)?Kn:/iPad/.test(e)?Cn:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?zn:li.test(e)?Tn:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Xn,"i").test(e)?Xn:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(xn).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?_n:Sn:_n:new RegExp("(pda|"+xn+")","i").test(e)?ei:new RegExp(wn,"i").test(e)&&!new RegExp(wn+" pc","i").test(e)?ti:""},gi="https?://(.*)",mi=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],vi=nt(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],mi),bi="<masked>",yi=["li_fat_id"];function xi(e,t,r){if(!O)return{};var n,i=t?nt([],mi,r||[]):[],a=ki(zr(O.URL,i,bi),e),o=(n={},tt(yi,function(e){var t=Hr.q(e);n[e]=t||null}),n);return rt(o,a)}function ki(e,t){var r=vi.concat(t||[]),n={};return tt(r,function(t){var r=Pr(e,t);n[t]=r||null}),n}function _i(e){var t,r=(t=e)?0===t.search(gi+"google.([^/?]*)")?"google":0===t.search(gi+"bing.com")?"bing":0===t.search(gi+"yahoo.com")?"yahoo":0===t.search(gi+"duckduckgo.com")?"duckduckgo":null:null,n="yahoo"!=r?"q":"p",i={};if(!se(r)){i.$search_engine=r;var a=O?Pr(O.referrer,n):"";a.length&&(i.ph_keyword=a)}return i}function wi(){return navigator.language||navigator.userLanguage}function Si(){return(null==O?void 0:O.referrer)||"$direct"}function Ci(e,t){var r=e?nt([],mi,t||[]):[],n=null==I?void 0:I.href.substring(0,1e3);return{r:Si().substring(0,1e3),u:n?zr(n,r,bi):void 0}}function Pi(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=Cr(r))?void 0:t.host};if(n){i.$current_url=n;var a=Cr(n);i.$host=null==a?void 0:a.host,i.$pathname=null==a?void 0:a.pathname;var o=ki(n);rt(i,o)}if(r){var s=_i(r);rt(i,s)}return i}function zi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(_r){return}}function Ei(){try{return(new Date).getTimezoneOffset()}catch(_r){return}}var Ti=Ke("[Web Vitals]"),ji=9e5;class Ri{constructor(e){var t;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>B({},e,{["$web_vitals_"+t.name+"_event"]:B({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(ie(r))Ti.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Tt();ie(n)||(le(null==e?void 0:e.name)||le(null==e?void 0:e.value)?Ti.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?Ti.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),ie(this.N.url)&&(this.N.url=n),this.N.firstMetricTimestamp=ie(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(B({},e,{$current_url:n,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var e,t,r,n,i=F.__PosthogExtensions__;ie(i)||ie(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:r,onINP:n}=i.postHogWebVitalsCallbacks),e&&t&&r&&n?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.Pt.bind(this)),this.P=!0):Ti.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.Et=!(null==(t=this._instance.persistence)||!t.props[xt]),this.startIfEnabled()}get allowedMetrics(){var e,t,r=re(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return ie(r)?(null==(t=this._instance.persistence)?void 0:t.props[_t])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=re(this._instance.config.capture_performance)&&ce(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:ji;return 0<e&&e<=6e4?ji:e}get isEnabled(){var e=null==I?void 0:I.protocol;if("http:"!==e&&"https:"!==e)return Ti.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:ue(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return ue(t)?t:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(Ti.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=re(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=re(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[xt]:t}),this._instance.persistence.register({[_t]:r})),this.Et=t,this.startIfEnabled()}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"web-vitals",t=>{t?Ti.error("failed to load script",t):e()})}Tt(){var e=P?P.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,n=t?nt([],mi,r||[]):[];return zr(e,n,bi)}Ti.error("Could not determine current URL")}}var Oi=Ke("[Heatmaps]");function Ii(e){return re(e)&&"clientX"in e&&"clientY"in e&&ce(e.clientX)&&ce(e.clientY)}class Ai{constructor(e){var t;this.rageclicks=new kr,this.Et=!1,this.P=!1,this.It=null,this.instance=e,this.Et=!(null==(t=this.instance.persistence)||!t.props[mt])}get flushIntervalMilliseconds(){var e=5e3;return re(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return ie(this.instance.config.capture_heatmaps)?ie(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;Oi.info("starting..."),this.Ct(),this.Ot()}else{var e;clearInterval(null!==(e=this.It)&&void 0!==e?e:void 0),this.Ft(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[mt]:t}),this.Et=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}Mt(e){this.At(e.originalEvent,"deadclick")}Ot(){this.It&&clearInterval(this.It),this.It="visible"===(null==O?void 0:O.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ct(){P&&O&&(this.jt=this.Dt.bind(this),dt(P,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==P?void 0:P.event)),dt(O,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==P?void 0:P.event)),dt(O,"mousemove",this.Nt,{capture:!0}),this.zt=new nn(this.instance,tn,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ot.bind(this),dt(O,"visibilitychange",this.Ht),this.P=!0)}Ft(){var e;P&&O&&(this.jt&&P.removeEventListener("beforeunload",this.jt),this.Lt&&O.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&O.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&O.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),null==(e=this.zt)||e.stop(),this.P=!1)}qt(e,t){var r=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),a=function(e,t,r){for(var n=e;n&&Ut(n)&&!qt(n,"body");){if(n===r)return!1;if(Y(t,null==P?void 0:P.getComputedStyle(n).position))return!0;n=nr(n)}return!1}(er(e),["fixed","sticky"],i);return{x:e.clientX+(a?0:n),y:e.clientY+(a?0:r),target_fixed:a,type:t}}At(e,t){var r;if(void 0===t&&(t="click"),!Vt(e.target)&&Ii(e)){var n=this.qt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(B({},n,{type:"rageclick"})),this.Wt(n)}}Ut(e){!Vt(e.target)&&Ii(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(P){var t=P.location.href,r=this.instance.config.mask_personal_data_properties,n=this.instance.config.custom_personal_data_properties,i=r?nt([],mi,n||[]):[],a=zr(t,i,bi);this.N=this.N||{},this.N[a]||(this.N[a]=[]),this.N[a].push(e)}}Dt(){this.N&&!ne(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Di{constructor(e){this._instance=e}doPageView(e,t){var r,n=this.Gt(e,t);return this.Vt={pathname:null!==(r=null==P?void 0:P.location.pathname)&&void 0!==r?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.Gt(e,null==(t=this.Vt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Vt)?void 0:e.pageViewId}}Gt(e,t){var r=this.Vt;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:a,lastScrollY:o,maxScrollY:s,maxContentHeight:l,lastContentY:c,maxContentY:u}=i;if(!(ie(a)||ie(o)||ie(s)||ie(l)||ie(c)||ie(u))){a=Math.ceil(a),o=Math.ceil(o),s=Math.ceil(s),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=a<=1?1:be(o/a,0,1,Qe),p=a<=1?1:be(s/a,0,1,Qe),f=l<=1?1:be(c/l,0,1,Qe),h=l<=1?1:be(u/l,0,1,Qe);n=rt(n,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:f,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:h})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var Mi=Uint8Array,Li=Uint16Array,Fi=Uint32Array,Ni=new Mi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wi=new Mi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),$i=new Mi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bi=function(e,t){for(var r=new Li(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Fi(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Hi=Bi(Ni,2),Vi=Hi[0],Ui=Hi[1];Vi[28]=258,Ui[258]=28;for(var qi=Bi(Wi,0)[1],Yi=new Li(32768),Gi=0;Gi<32768;++Gi){var Qi=(43690&Gi)>>>1|(21845&Gi)<<1;Qi=(61680&(Qi=(52428&Qi)>>>2|(13107&Qi)<<2))>>>4|(3855&Qi)<<4,Yi[Gi]=((65280&Qi)>>>8|(255&Qi)<<8)>>>1}var Ki=function(e,t,r){for(var n=e.length,i=0,a=new Li(t);i<n;++i)++a[e[i]-1];var o,s=new Li(t);for(i=0;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;for(o=new Li(n),i=0;i<n;++i)o[i]=Yi[s[e[i]-1]++]>>>15-e[i];return o},Xi=new Mi(288);for(Gi=0;Gi<144;++Gi)Xi[Gi]=8;for(Gi=144;Gi<256;++Gi)Xi[Gi]=9;for(Gi=256;Gi<280;++Gi)Xi[Gi]=7;for(Gi=280;Gi<288;++Gi)Xi[Gi]=8;var Zi=new Mi(32);for(Gi=0;Gi<32;++Gi)Zi[Gi]=5;var Ji=Ki(Xi,9),ea=Ki(Zi,5),ta=function(e){return(e/8|0)+(7&e&&1)},ra=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof Li?Li:e instanceof Fi?Fi:Mi)(r-t);return n.set(e.subarray(t,r)),n},na=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},ia=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},aa=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return[new Mi(0),0];if(1==i){var o=new Mi(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,d=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[d].f?c++:d++],l=r[c!=u&&r[c].f<r[d].f?c++:d++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};var p=a[0].s;for(n=1;n<i;++n)a[n].s>p&&(p=a[n].s);var f=new Li(p+1),h=oa(r[u-1],f,0);if(h>t){n=0;var g=0,m=h-t,v=1<<m;for(a.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});n<i;++n){var b=a[n].s;if(!(f[b]>t))break;g+=v-(1<<h-f[b]),f[b]=t}for(g>>>=m;g>0;){var y=a[n].s;f[y]<t?g-=1<<t-f[y]++-1:++n}for(;n>=0&&g;--n){var x=a[n].s;f[x]==t&&(--f[x],++g)}h=t}return[new Mi(f),h]},oa=function(e,t,r){return-1==e.s?Math.max(oa(e.l,t,r+1),oa(e.r,t,r+1)):t[e.s]=r},sa=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Li(++t),n=0,i=e[0],a=1,o=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[r.subarray(0,n),t]},la=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},ca=function(e,t,r){var n=r.length,i=ta(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<n;++a)e[i+a+4]=r[a];return 8*(i+4+n)},ua=function(e,t,r,n,i,a,o,s,l,c,u){na(t,u++,r),++i[256];for(var d=aa(i,15),p=d[0],f=d[1],h=aa(a,15),g=h[0],m=h[1],v=sa(p),b=v[0],y=v[1],x=sa(g),k=x[0],_=x[1],w=new Li(19),S=0;S<b.length;++S)w[31&b[S]]++;for(S=0;S<k.length;++S)w[31&k[S]]++;for(var C=aa(w,7),P=C[0],z=C[1],E=19;E>4&&!P[$i[E-1]];--E);var T,j,R,O,I=c+5<<3,A=la(i,Xi)+la(a,Zi)+o,D=la(i,p)+la(a,g)+o+14+3*E+la(w,P)+(2*w[16]+3*w[17]+7*w[18]);if(I<=A&&I<=D)return ca(t,u,e.subarray(l,l+c));if(na(t,u,1+(D<A)),u+=2,D<A){T=Ki(p,f),j=p,R=Ki(g,m),O=g;var M=Ki(P,z);for(na(t,u,y-257),na(t,u+5,_-1),na(t,u+10,E-4),u+=14,S=0;S<E;++S)na(t,u+3*S,P[$i[S]]);u+=3*E;for(var L=[b,k],F=0;F<2;++F){var N=L[F];for(S=0;S<N.length;++S){var W=31&N[S];na(t,u,M[W]),u+=P[W],W>15&&(na(t,u,N[S]>>>5&127),u+=N[S]>>>12)}}}else T=Ji,j=Xi,R=ea,O=Zi;for(S=0;S<s;++S)if(n[S]>255){W=n[S]>>>18&31,ia(t,u,T[W+257]),u+=j[W+257],W>7&&(na(t,u,n[S]>>>23&31),u+=Ni[W]);var $=31&n[S];ia(t,u,R[$]),u+=O[$],$>3&&(ia(t,u,n[S]>>>5&8191),u+=Wi[$])}else ia(t,u,T[n[S]]),u+=j[n[S]];return ia(t,u,T[256]),u+j[256]},da=new Fi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pa=function(){for(var e=new Fi(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),fa=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};var ha=!!D||!!A,ga="text/plain",ma=function(e,t,r){var n;void 0===r&&(r=!0);var[i,a]=e.split("?"),o=B({},t),s=null!==(n=null==a?void 0:a.split("&").map(e=>{var t,[n,i]=e.split("="),a=r&&null!==(t=o[n])&&void 0!==t?t:i;return delete o[n],n+"="+a}))&&void 0!==n?n:[],l=function(e,t){var r,n;void 0===t&&(t="&");var i=[];return tt(e,function(e,t){ie(e)||ie(t)||"undefined"===t||(r=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r)}),i.join(t)}(o);return l&&s.push(l),i+"?"+s.join("&")},va=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),ba=e=>{var t,{data:r,compression:n}=e;if(r){if(n===Sr.GZipJS){var i=function(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=pa[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var i,a=function(e,t,r){return function(e,t,r,n){var i=e.length,a=new Mi(n+i+5*(1+Math.floor(i/7e3))+8),o=a.subarray(n,a.length-8),s=0;if(!t||i<8)for(var l=0;l<=i;l+=65535){var c=l+65535;c<i?s=ca(o,s,e.subarray(l,c)):(o[l]=!0,s=ca(o,s,e.subarray(l,i)))}else{for(var u=da[t-1],d=u>>>13,p=8191&u,f=(1<<r)-1,h=new Li(32768),g=new Li(f+1),m=Math.ceil(r/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&f},y=new Fi(25e3),x=new Li(288),k=new Li(32),_=0,w=0,S=(l=0,0),C=0,P=0;l<i;++l){var z=b(l),E=32767&l,T=g[z];if(h[E]=T,g[z]=E,C<=l){var j=i-l;if((_>7e3||S>24576)&&j>423){s=ua(e,o,0,y,x,k,w,S,P,l-P,s),S=_=w=0,P=l;for(var R=0;R<286;++R)x[R]=0;for(R=0;R<30;++R)k[R]=0}var O=2,I=0,A=p,D=E-T&32767;if(j>2&&z==b(l-D))for(var M=Math.min(d,j)-1,L=Math.min(32767,l),F=Math.min(258,j);D<=L&&--A&&E!=T;){if(e[l+O]==e[l+O-D]){for(var N=0;N<F&&e[l+N]==e[l+N-D];++N);if(N>O){if(O=N,I=D,N>M)break;var W=Math.min(D,N-2),$=0;for(R=0;R<W;++R){var B=l-D+R+32768&32767,H=B-h[B]+32768&32767;H>$&&($=H,T=B)}}}D+=(E=T)-(T=h[E])+32768&32767}if(I){y[S++]=268435456|Ui[O]<<18|qi[I];var V=31&Ui[O],U=31&qi[I];w+=Ni[V]+Wi[U],++x[257+V],++k[U],C=l+O,++_}else y[S++]=e[l],++x[e[l]]}}s=ua(e,o,!0,y,x,k,w,S,P,l-P,s)}return ra(a,0,n+ta(s)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r)}(e,t,10+((i=t).filename&&i.filename.length+1||0)),o=a.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&fa(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(a,t),fa(a,o-8,r.d()),fa(a,o-4,n),a}(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Mi(e.length+(e.length>>>1)),n=0,i=function(e){r[n++]=e},a=0;a<t;++a){if(n+5>r.length){var o=new Mi(n+8+(t-a<<1));o.set(r),r=o}var s=e.charCodeAt(a);s<128?i(s):s<2048?(i(192|s>>>6),i(128|63&s)):s>55295&&s<57344?(i(240|(s=65536+(1047552&s)|1023&e.charCodeAt(++a))>>>18),i(128|s>>>12&63),i(128|s>>>6&63),i(128|63&s)):(i(224|s>>>12),i(128|s>>>6&63),i(128|63&s))}return ra(r,0,n)}(va(r)),{mtime:0}),a=new Blob([i],{type:ga});return{contentType:ga,body:a,estimatedSize:a.size}}if(n===Sr.Base64){var o=function(e){var t,r,n,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,r,n,i,a="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var o=e.charCodeAt(i),s=null;o<128?r++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),se(s)||(r>t&&(a+=e.substring(t,r)),a+=s,t=r=i+1)}return r>t&&(a+=e.substring(t,e.length)),a}(e);do{t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=a>>12&63,n=a>>6&63,i=63&a,u[l++]=o.charAt(t)+o.charAt(r)+o.charAt(n)+o.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(va(r)),s=(t=o,"data="+encodeURIComponent("string"==typeof t?t:va(t)));return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=va(r);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},ya=[];A&&ya.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:a}=null!==(t=ba(e))&&void 0!==t?t:{},o=new Headers;tt(e.headers,function(e,t){o.append(t,e)}),n&&o.append("Content-Type",n);var s=e.url,l=null;if(M){var c=new M;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}A(s,B({method:(null==e?void 0:e.method)||"GET",headers:o,keepalive:"POST"===e.method&&(a||0)<52428.8,body:i,signal:null==(r=l)?void 0:r.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(i){Qe.error(i)}null==e.callback||e.callback(n)})).catch(t=>{Qe.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),D&&ya.push({transport:"XHR",method:e=>{var t,r=new D;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=null!==(t=ba(e))&&void 0!==t?t:{};tt(e.headers,function(e,t){r.setRequestHeader(t,e)}),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(n){}null==e.callback||e.callback(t)}},r.send(i)}}),null!=R&&R.sendBeacon&&ya.push({transport:"sendBeacon",method:e=>{var t=ma(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=null!==(r=ba(e))&&void 0!==r?r:{},a="string"==typeof i?new Blob([i],{type:n}):i;R.sendBeacon(t,a)}catch(o){}}});var xa=function(e,t){if(!function(){return!0}())return!1;try{return new RegExp(t).test(e)}catch(r){return!1}};function ka(e,t,r){return va({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var _a={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>xa(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!xa(t,e))),icontains:(e,t)=>t.map(wa).some(t=>e.map(wa).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(wa).every(t=>e.map(wa).every(e=>!t.includes(e)))},wa=e=>e.toLowerCase(),Sa=Ke("[Error tracking]");class Ca{constructor(e){var t,r;this.Jt=[],this.Kt=new Me([new Le,new Ye,new Ne,new Fe,new Ue,new Ve,new $e,new qe],[Re,Ae]),this._instance=e,this.Jt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(bt))&&void 0!==t?t:[]}onRemoteConfig(e){var t,r,n,i=null!==(t=null==(r=e.errorTracking)?void 0:r.suppressionRules)&&void 0!==t?t:[],a=null==(n=e.errorTracking)?void 0:n.captureExtensionExceptions;this.Jt=i,this._instance.persistence&&this._instance.persistence.register({[bt]:this.Jt,[yt]:a})}get Yt(){var e,t=!!this._instance.get_property(yt),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.Kt.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.Xt(t)){if(this.Qt(t))return void Sa.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void Sa.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void Sa.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:r,value:n}=t;return ae(r)&&r.length>0&&e.$exception_types.push(r),ae(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.Jt.some(e=>{var r=e.values.map(e=>{var r,n=_a[e.operator],i=ee(e.value)?e.value:[e.value],a=null!==(r=t[e.key])&&void 0!==r?r:[];return i.length>0&&n(i,a)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}Zt(e){return e.flatMap(e=>{var t,r;return null!==(t=null==(r=e.stacktrace)?void 0:r.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ti(e){if(e.length>0){var t,r,n,i,a=null!==(t=null==(r=e[0].stacktrace)?void 0:r.frames)&&void 0!==t?t:[],o=a[a.length-1];return null!==(n=null==o||null==(i=o.filename)?void 0:i.includes("posthog.com/static"))&&void 0!==n&&n}return!1}Xt(e){return!le(e)&&ee(e)}}var Pa=Ke("[FeatureFlags]"),za="$active_feature_flags",Ea="$override_feature_flags",Ta="$feature_flag_payloads",ja="$override_feature_flag_payloads",Ra="$feature_flag_request_id",Oa=e=>{var t={};for(var[r,n]of it(e||{}))n&&(t[r]=n);return t},Ia=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class Aa{constructor(e){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=e,this.featureFlagEventHandlers=[]}li(){var e=this._instance.config.evaluation_environments;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||Pa.error("Invalid evaluation environment found:",e,"Expected non-empty string"),t}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var e=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:e})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(Et),t=this._instance.get_property(Ea),r=this._instance.get_property(ja);if(!r&&!t)return e||{};var n=rt({},e||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])];for(var a of i){var o,s,l=n[a],c=null==t?void 0:t[a],u=ie(c)?null!==(o=null==l?void 0:l.enabled)&&void 0!==o&&o:!!c,d=ie(c)?l.variant:"string"==typeof c?c:void 0,p=null==r?void 0:r[a],f=B({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(f.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(f.original_variant=null==l?void 0:l.variant),p&&(f.metadata=B({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),n[a]=f}return this.ii||(Pa.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.ii=!0),n}getFlagVariants(){var e=this._instance.get_property(Pt),t=this._instance.get_property(Ea);if(!t)return e||{};for(var r=rt({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(Pa.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var e=this._instance.get_property(Ta),t=this._instance.get_property(ja);if(!t)return e||{};for(var r=rt({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(Pa.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.ii=!0),r}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.si=e}di(e){var t;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:B({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(Tt)||{}),group_properties:this._instance.get_property(jt)};(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.ui()&&(r.evaluation_environments=this.li());var n=this._instance.config.__preview_remote_config,i=n?"/flags/?v=2":"/flags/?v=2&config=true",a=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",o=this._instance.requestRouter.endpointFor("api",i+a);n&&(r.timezone=zi()),this.ri=!0,this._instance.ci({method:"POST",url:o,data:r,compression:this._instance.config.disable_compression?void 0:Sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,n,i=!0;if(200===e.statusCode&&(this.ni||(this.$anon_distinct_id=void 0),i=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi(null!==(n=e.json)&&void 0!==n?n:{})),!r.disable_flags||this.ni)if(this.ai=!i,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(Ia.FeatureFlags))Pa.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var a;r.disable_flags||this.receivedFeatureFlags(null!==(a=e.json)&&void 0!==a?a:{},i),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[e],n=""+r,i=this._instance.get_property(Ra)||void 0,a=this._instance.get_property(It)||{};if((t.send_event||!("send_event"in t))&&(!(e in a)||!a[e].includes(n))){var o,s,l,c,u,d,p,f,h;ee(a[e])?a[e].push(n):a[e]=[n],null==(o=this._instance.persistence)||o.register({[It]:a});var g=this.getFeatureFlagDetails(e),m={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(e)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:(null==(s=this._instance.config.bootstrap)||null==(s=s.featureFlags)?void 0:s[e])||null,$feature_flag_bootstrapped_payload:(null==(l=this._instance.config.bootstrap)||null==(l=l.featureFlagPayloads)?void 0:l[e])||null,$used_bootstrap_value:!this.ai};ie(null==g||null==(c=g.metadata)?void 0:c.version)||(m.$feature_flag_version=g.metadata.version);var v,b=null!==(u=null==g||null==(d=g.reason)?void 0:d.description)&&void 0!==u?u:null==g||null==(p=g.reason)?void 0:p.code;b&&(m.$feature_flag_reason=b),null!=g&&null!=(f=g.metadata)&&f.id&&(m.$feature_flag_id=g.metadata.id),ie(null==g?void 0:g.original_variant)&&ie(null==g?void 0:g.original_enabled)||(m.$feature_flag_original_response=ie(g.original_variant)?g.original_enabled:g.original_variant),null!=g&&null!=(h=g.metadata)&&h.original_payload&&(m.$feature_flag_original_payload=null==g||null==(v=g.metadata)?void 0:v.original_payload),this._instance.capture("$feature_flag_called",m)}return r}Pa.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.ui()&&(n.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:n,compression:this._instance.config.disable_compression?void 0:Sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:r=>{var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return ie(r)?void 0:!!r}Pa.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ei=!0;var r=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,r,n,i){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var a=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(e=>{var r;return[e,null!==(r=t[e].variant)&&void 0!==r?r:t[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(e=>t[e].enabled).filter(e=>{var r;return null==(r=t[e].metadata)?void 0:r.payload}).map(e=>{var r;return[e,null==(r=t[e].metadata)?void 0:r.payload]}))):Pa.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e})(e),o=a.flags,s=a.featureFlags,l=a.featureFlagPayloads;if(s){var c=e.requestId;if(ee(s)){Pa.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var u={};if(s)for(var d=0;d<s.length;d++)u[s[d]]=!0;t&&t.register({[za]:s,[Pt]:u})}else{var p=s,f=l,h=o;e.errorsWhileComputingFlags&&(p=B({},r,p),f=B({},n,f),h=B({},i,h)),t&&t.register(B({[za]:Object.keys(Oa(p)),[Pt]:p||{},[Ta]:f||{},[Et]:h||{}},c?{[Ra]:c}:{}))}}}(e,this._instance.persistence,r,n,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),Pa.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return Pa.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(Ea),this._instance.persistence.unregister(ja),void this.pi();if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;if(this.ii=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t),"flags"in r)if(!1===r.flags)this._instance.persistence.unregister(Ea);else if(r.flags)if(ee(r.flags)){for(var n={},i=0;i<r.flags.length;i++)n[r.flags[i]]=!0;this._instance.persistence.register({[Ea]:n})}else this._instance.persistence.register({[Ea]:r.flags});return"payloads"in r&&(!1===r.payloads?this._instance.persistence.unregister(ja):r.payloads&&this._instance.persistence.register({[ja]:r.payloads})),void this.pi()}this.pi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ei){var{flags:t,flagVariants:r}=this.gi();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(zt)||[]).find(t=>t.flagKey===e),a={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:a};i&&(o.$early_access_feature_name=i.name),r&&(o.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(a,!1);var s=B({},this.getFlagVariants(),{[e]:t});null==(n=this._instance.persistence)||n.register({[za]:Object.keys(Oa(s)),[Pt]:s}),this.pi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(zt),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this._instance.persistence)||r.unregister(zt),null==(n=this._instance.persistence)||n.register({[zt]:i}),e(i)}}})}gi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}pi(e){var{flags:t,flagVariants:r}=this.gi();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Tt)||{};this._instance.register({[Tt]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Tt)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(jt)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=B({},r[t],e[t]),delete e[t]}),this._instance.register({[jt]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(jt)||{};this._instance.register({[jt]:B({},t,{[e]:{}})})}else this._instance.unregister(jt)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var Da=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Ma{constructor(e,t){var r,n;this.C=e,this.props={},this.mi=!1,this.yi=(n="",(r=e).token&&(n=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+n+"_posthog"),this.Y=this.bi(e),this.load(),e.debug&&Qe.info("Persistence loaded",e.persistence,B({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===Da.indexOf(e.persistence.toLowerCase())&&(Qe.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Ur.H()?Ur:"localstorage+cookie"===t&&Yr.H()?Yr:"sessionstorage"===t&&Xr.H()?Xr:"memory"===t?Qr:"cookie"===t?Hr:Yr.H()?Yr:Hr}properties(){var e={};return tt(this.props,function(t,r){if(r===Pt&&re(t))for(var n=Object.keys(t),i=0;i<n.length;i++)e["$feature/"+n[i]]=t[n[i]];else o=r,s=!1,(se(a=Ht)?s:j&&a.indexOf===j?-1!=a.indexOf(o):(tt(a,function(e){if(s||(s=e===o))return Je}),s))||(e[r]=t);var a,o,s}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=rt({},e))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.C.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(re(e)){ie(t)&&(t="None"),this.xi=ie(r)?this.$i:r;var n=!1;if(tt(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e,n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(re(e)){this.xi=ie(t)?this.$i:t;var r=!1;if(tt(e,(t,n)=>{e.hasOwnProperty(n)&&this.props[n]!==t&&(this.props[n]=t,r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.mi){var e=xi(this.C.custom_campaign_params,this.C.mask_personal_data_properties,this.C.custom_personal_data_properties);ne(st(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==O?void 0:O.referrer)?_i(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Si(),$referring_domain:null!=O&&O.referrer&&(null==(e=Cr(O.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Lt]||this.props[Ft]||this.register_once({[Nt]:Ci(this.C.mask_personal_data_properties,this.C.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};tt([Ft,Lt],t=>{var r=this.props[t];r&&tt(r,function(t,r){e["$initial_"+Q(r)]=t})});var t,r,n=this.props[Nt];if(n){var i=(t=Pi(n),r={},tt(t,function(e,t){r["$initial_"+Q(t)]=e}),r);rt(e,i)}return e}safe_merge(e){return tt(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.$i=this.xi=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.bi(e),i=this.props;this.clear(),this.Y=n,this.props=i,this.save()}}set_disabled(e){this.wi=e,this.wi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Si&&(this.Si=e,this.remove(),this.save())}set_secure(e){e!==this.Ei&&(this.Ei=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[ht]||{};r[e]=t,this.props[ht]=r,this.save()}remove_event_timer(e){var t=(this.props[ht]||{})[e];return ie(t)||(delete this.props[ht][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}!function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({});var La=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});!function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({});var Fa=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),Na=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),Wa=function(e){return e.Popover="popover",e.Inline="inline",e}({});class $a{constructor(){this.ki={},this.ki={}}on(e,t){return this.ki[e]||(this.ki[e]=[]),this.ki[e].push(t),()=>{this.ki[e]=this.ki[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.ki[e]||[])r(t);for(var n of this.ki["*"]||[])n(e,t)}}class Ba{constructor(e){this.Pi=new $a,this.Ti=(e,t)=>this.Ri(e,t)&&this.Ii(e,t)&&this.Ci(e,t),this.Ri=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Oi=new Set,this.Fi=new Set}init(){var e,t;ie(null==(e=this._instance)?void 0:e.Mi)||null==(t=this._instance)||t.Mi((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!ie(null==(t=this._instance)?void 0:t.Mi)&&(e.forEach(e=>{var t,r;null==(t=this.Fi)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Oi)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.Oi.has(e)||this.Oi.has(null==t?void 0:t.event))&&this.Fi&&(null==(r=this.Fi)?void 0:r.size)>0&&this.Fi.forEach(e=>{this.Ai(t,e)&&this.Pi.emit("actionCaptured",e.name)})}Di(e){this.onAction("actionCaptured",t=>e(t))}Ai(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Ti(e,r))return!0;return!1}onAction(e,t){return this.Pi.on(e,t)}Ii(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!Ba.ji(n,null==t?void 0:t.url,(null==t?void 0:t.url_matching)||"contains"))return!1}return!0}static ji(e,t,r){switch(r){case"regex":return!!P&&xa(e,t);case"exact":return t===e;case"contains":var n=Ba.Li(t).replace(/_/g,".").replace(/%/g,".*");return xa(e,n);default:return!1}}static Li(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ci(e,t){if((null!=t&&t.href||null!=t&&t.tag_name||null!=t&&t.text)&&!this.Ni(e).some(e=>!(null!=t&&t.href&&!Ba.ji(e.href||"",null==t?void 0:t.href,(null==t?void 0:t.href_matching)||"exact")||null!=t&&t.tag_name&&e.tag_name!==(null==t?void 0:t.tag_name)||null!=t&&t.text&&!Ba.ji(e.text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact")&&!Ba.ji(e.$el_text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact"))))return!1;if(null!=t&&t.selector){var r,n=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(!n)return!1;if(!n.includes(null==t?void 0:t.selector))return!1}return!0}Ni(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}var Ha=Ke("[Surveys]"),Va="seenSurvey_",Ua=(e,t)=>{var r="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(r="$survey_"+t+"/"+e.id+"/"+e.current_iteration),r},qa=e=>{var t=""+Va+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Va+e.id+"_"+e.current_iteration),t},Ya=[La.Popover,La.Widget,La.API],Ga={ignoreConditions:!1,ignoreDelay:!1,displayType:Wa.Popover};class Qa{constructor(e){this._instance=e,this.Ui=new Map,this.zi=new Map}register(e){var t;ie(null==(t=this._instance)?void 0:t.Mi)||(this.Hi(e),this.Bi(e))}Bi(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.qi&&(this.qi=new Ba(this._instance),this.qi.init(),this.qi.Di(e=>{this.onAction(e)})),t.forEach(e=>{var t,r,n,i,a;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.qi)||i.register(e.conditions.actions.values),null==(a=e.conditions)||null==(a=a.actions)||null==(a=a.values)||a.forEach(t=>{if(t&&t.name){var r=this.zi.get(t.name);r&&r.push(e.id),this.zi.set(t.name,r||[e.id])}}))}))}Hi(e){var t;0!==e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}).length&&(null==(t=this._instance)||t.Mi((e,t)=>{this.onEvent(e,t)}),e.forEach(e=>{var t;null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||t.forEach(t=>{if(t&&t.name){var r=this.Ui.get(t.name);r&&r.push(e.id),this.Ui.set(t.name,r||[e.id])}})}))}onEvent(e,t){var r,n,i=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[Ot])||[];if(Fa.SHOWN===e&&t&&i.length>0){var a;Ha.info("survey event matched, removing survey from activated surveys",{event:e,eventPayload:t,existingActivatedSurveys:i});var o=null==t||null==(a=t.properties)?void 0:a.$survey_id;if(o){var s=i.indexOf(o);s>=0&&(i.splice(s,1),this.Wi(i))}}else if(this.Ui.has(e)){Ha.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Ui.get(e)});var l=[];null==(n=this._instance)||n.getSurveys(t=>{l=t.filter(t=>{var r;return null==(r=this.Ui.get(e))?void 0:r.includes(t.id)})});var c=l.filter(r=>{var n,i=null==(n=r.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.find(t=>t.name===e);return!!i&&(!i.propertyFilters||Object.entries(i.propertyFilters).every(e=>{var r,[n,i]=e,a=null==t||null==(r=t.properties)?void 0:r[n];if(ie(a)||se(a))return!1;var o=[String(a)],s=_a[i.operator];return s?s(i.values,o):(Ha.warn("Unknown property comparison operator: "+i.operator),!1)}))});this.Wi(i.concat(c.map(e=>e.id)||[]))}}onAction(e){var t,r=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[Ot])||[];this.zi.has(e)&&this.Wi(r.concat(this.zi.get(e)||[]))}Wi(e){var t;Ha.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[Ot]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[Ot])||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class Ka{constructor(e){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(le(t))return Ha.warn("Flags not loaded yet. Not loading surveys.");var r=ee(t);this.Vi=r?t.length>0:t,Ha.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(Va)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)Ha.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ha.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Ha.info("Not loading surveys in cookieless mode without consent.");else{var e=null==F?void 0:F.__PosthogExtensions__;if(e){if(!ie(this.Vi)||this._instance.config.advanced_enable_surveys){var t=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var r=e.generateSurveys;if(r)return void this.Xi(r,t);var n=e.loadExternalDependency;if(!n)return void this.Qi("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.Qi("Could not load surveys script",r):this.Xi(e.generateSurveys,t)})}catch(i){throw this.Qi("Error initializing surveys",i),i}finally{this.Ki=!1}}}else Ha.error("PostHog Extensions not found.")}}Xi(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Qa(this._instance),Ha.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(e,t){Ha.error(e,t),this.Zi({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Yi.push(e),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Ha.info("Disabled. Not loading surveys."),e([]);var r=this._instance.get_property(Rt);if(r&&!t)return e(r,{isLoaded:!0});if(this.Ji)return e([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var r;this.Ji=!1;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;return Ha.error(i),e([],{isLoaded:!1,error:i})}var a,o=t.json.surveys||[],s=o.filter(e=>{return!(!(t=e).start_date||t.end_date)&&(function(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e));var t});return s.length>0&&(null==(a=this._surveyEventReceiver)||a.register(s)),null==(r=this._instance.persistence)||r.register({[Rt]:o}),e(o,{isLoaded:!0})}})}catch(n){throw this.Ji=!1,n}}Zi(e){for(var t of this.Yi)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(r){Ha.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!le(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Ha.warn("init was not called")}te(e){var t=null;return this.getSurveys(r=>{var n;t=null!==(n=r.find(t=>t.id===e))&&void 0!==n?n:null}),t}ie(e){if(le(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.te(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(le(this._surveyManager))return Ha.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.ie(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return le(this._surveyManager)?(Ha.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!==(n=t.find(t=>t.id===e))&&void 0!==n?n:null;if(i){var a=this.ie(i);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t){var r;if(le(this._surveyManager))Ha.warn("init was not called");else{var n="string"==typeof e?this.te(e):e;if(null!=n&&n.id)if(Ya.includes(n.type)){var i=null==O?void 0:O.querySelector(t);if(i)return null!=(r=n.appearance)&&r.surveyPopupDelaySeconds?(Ha.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Ha.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,i),Ha.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i);Ha.warn("Survey element not found")}else Ha.warn("Surveys of type "+n.type+" cannot be rendered in the app");else Ha.warn("Survey not found")}}displaySurvey(e,t){var r;if(le(this._surveyManager))Ha.warn("init was not called");else{var n=this.te(e);if(n){var i=n;if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=B({},n,{appearance:B({},n.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var a=this.canRenderSurvey(n);if(!a.visible)return void Ha.warn("Survey is not eligible to be displayed: ",a.disabledReason)}t.displayType!==Wa.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else Ha.warn("Survey not found")}}}var Xa=Ke("[RateLimiter]");class Za{constructor(e){var t,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{Xa.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(r){return void Xa.warn('could not rate limit - continuing. Error: "'+(null==r?void 0:r.message)+'"',{text:t})}},this.instance=e,this.captureEventsPerSecond=(null==(t=e.config.rate_limiting)?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(r=e.config.rate_limiting)?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(e){var t,r,n;void 0===e&&(e=!1);var i=(new Date).getTime(),a=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property(Mt))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:i};a.tokens+=(i-a.last)/1e3*this.captureEventsPerSecond,a.last=i,a.tokens>this.captureEventsBurstLimit&&(a.tokens=this.captureEventsBurstLimit);var o=a.tokens<1;return o||e||(a.tokens=Math.max(0,a.tokens-1)),!o||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,null==(n=this.instance.persistence)||n.set_property(Mt,a),{isRateLimited:o,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var Ja=Ke("[RemoteConfig]");class eo{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=F._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ee(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(Ja.error("PostHog Extensions not found. Cannot load remote config."),e())}re(e){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return Ja.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void Ja.warn("Remote config is disabled. Falling back to local config.");this.ee(e=>{if(!e)return Ja.info("No config found after loading remote JS config. Falling back to JSON."),void this.re(e=>{this.fi(e)});this.fi(e)})}catch(_r){Ja.error("Error loading remote config",_r)}}fi(e){e?this._instance.config.__preview_remote_config?(this._instance.fi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):Ja.info("__preview_remote_config is disabled. Logging config instead",e):Ja.error("Failed to fetch remote config from PostHog.")}}var to=3e3;class ro{constructor(e,t){this.se=!0,this.ne=[],this.oe=be((null==t?void 0:t.flush_interval_ms)||to,250,5e3,Qe.createLogger("flush interval"),to),this.ae=e}enqueue(e){this.ne.push(e),this.le||this.ue()}unload(){this.he();var e=this.ne.length>0?this.de():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ae(B({},e,{transport:"sendBeacon"}))})}enable(){this.se=!1,this.ue()}ue(){var e=this;this.se||(this.le=setTimeout(()=>{if(this.he(),this.ne.length>0){var t=this.de(),r=function(){var r=t[n],i=(new Date).getTime();r.data&&ee(r.data)&&tt(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.ae(r)};for(var n in t)r()}},this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var e={};return tt(this.ne,t=>{var r,n=t,i=(n?n.batchKey:null)||n.url;ie(e[i])&&(e[i]=B({},n,{data:[]})),null==(r=e[i].data)||r.push(n.data)}),this.ne=[],e}}var no=["retriesPerformedSoFar"];class io{constructor(e){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=e,this.ne=[],this.fe=!0,!ie(P)&&"onLine"in P.navigator&&(this.fe=P.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},dt(P,"online",this.pe),dt(P,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=H(e,no);ce(t)&&t>0&&(r.url=ma(r.url,{retry_count:t})),this._instance.ci(B({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this._e(B({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}_e(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var r,n,i,a,o,s=(r=t,i=(n=3e3*Math.pow(2,r))/2,a=Math.min(18e5,n),o=(Math.random()-.5)*(a-i),Math.ceil(a+o)),l=Date.now()+s;this.ne.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),Qe.warn(c),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),0===this.ne.length)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout(()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()},this.ce)}Dt(){var e=Date.now(),t=[],r=this.ne.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.ne=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,ie(P)||(this.pe&&(P.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(P.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(B({},e,{transport:"sendBeacon"}))}catch(_r){Qe.error(_r)}this.ne=[]}}class ao{constructor(e){this.be=()=>{var e,t,r,n;this.we||(this.we={});var i=this.scrollElement(),a=this.scrollY(),o=i?Math.max(0,i.scrollHeight-i.clientHeight):0,s=a+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.we.lastScrollY=Math.ceil(a),this.we.maxScrollY=Math.max(a,null!==(e=this.we.maxScrollY)&&void 0!==e?e:0),this.we.maxScrollHeight=Math.max(o,null!==(t=this.we.maxScrollHeight)&&void 0!==t?t:0),this.we.lastContentY=s,this.we.maxContentY=Math.max(s,null!==(r=this.we.maxContentY)&&void 0!==r?r:0),this.we.maxContentHeight=Math.max(l,null!==(n=this.we.maxContentHeight)&&void 0!==n?n:0)},this._instance=e}getContext(){return this.we}resetContext(){var e=this.we;return setTimeout(this.be,0),e}startMeasuringScrollPosition(){dt(P,"scroll",this.be,{capture:!0}),dt(P,"scrollend",this.be,{capture:!0}),dt(P,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==P?void 0:P.document.documentElement;var e=ee(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var t of e){var r=null==P?void 0:P.document.querySelector(t);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return P&&(P.scrollY||P.pageYOffset||P.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return P&&(P.scrollX||P.pageXOffset||P.document.documentElement.scrollLeft)||0}}var oo=e=>Ci(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class so{constructor(e,t,r,n){this.xe=e=>{var t=this.Se();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Ee(this._instance)};this.$e.register({[Dt]:r})}},this._instance=e,this.ke=t,this.$e=r,this.Ee=n||oo,this.ke.onSessionId(this.xe)}Se(){return this.$e.props[Dt]}getSetOnceProps(){var e,t=null==(e=this.Se())?void 0:e.props;return t?"r"in t?Pi(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return tt(st(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+Q(r)]=t}),e}}var lo=Ke("[SessionId]");class co{on(e,t){return this.Pe.on(e,t)}constructor(e,t,r){var n;if(this.Te=[],this.Re=void 0,this.Pe=new $a,this.Ie=(e,t)=>Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.C=e.config,this.$e=e.persistence,this.Ce=void 0,this.Oe=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fe=t||Nr,this.Me=r||Nr;var i=this.C.persistence_name||this.C.token,a=this.C.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*be(a,60,36e3,lo.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+i+"_window_id",this.je="ph_"+i+"_primary_window_exists",this.Le()){var o=Xr.W(this.De),s=Xr.W(this.je);o&&!s?this.Ce=o:Xr.V(this.De),Xr.G(this.je,!0)}if(null!=(n=this.C.bootstrap)&&n.sessionID)try{var l=(()=>{var e=this.C.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Ne(this.C.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){lo.error("Invalid sessionID in bootstrap",c)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ie(this.Te)&&(this.Te=[]),this.Te.push(e),this.Oe&&e(this.Oe,this.Ce),()=>{this.Te=this.Te.filter(t=>t!==e)}}Le(){return"memory"!==this.C.persistence&&!this.$e.wi&&Xr.H()}ze(e){e!==this.Ce&&(this.Ce=e,this.Le()&&Xr.G(this.De,e))}He(){return this.Ce?this.Ce:this.Le()?Xr.W(this.De):null}Ne(e,t,r){e===this.Oe&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.Oe=e,this.$e.register({[St]:[t,e,r]}))}Be(){if(this.Oe&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Oe,this._sessionStartTimestamp];var e=this.$e.props[St];return ee(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Re&&P&&(P.removeEventListener("beforeunload",this.Re,{capture:!1}),this.Re=void 0),this.Te=[]}Ue(){this.Re=()=>{this.Le()&&Xr.V(this.je)},dt(P,"beforeunload",this.Re,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.C.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,a]=this.Be(),o=this.He(),s=ce(a)&&a>0&&Math.abs(r-a)>864e5,l=!1,c=!i,u=!e&&this.Ie(r,n);c||u||s?(i=this.Fe(),o=this.Me(),lo.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),a=r,l=!0):o||(o=this.Me(),l=!0);var d=0===n||!e||s?r:n,p=0===a?(new Date).getTime():a;return this.ze(o),this.Ne(i,d,p),e||this.Ae(),l&&this.Te.forEach(e=>e(i,o,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0)),{sessionId:i,windowId:o,sessionStartTimestamp:p,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:n}}Ae(){clearTimeout(this.qe),this.qe=setTimeout(()=>{var[e]=this.Be();if(this.Ie((new Date).getTime(),e)){var t=this.Oe;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var uo=["$set_once","$set"],po=Ke("[SiteApps]");class fo{constructor(e){this._instance=e,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(e,t){if(t){var r=this.globalsForEvent(t);this.We.push(r),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var e;return null==(e=F._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{e(),this.We=[],this.Ve=void 0}}}globalsForEvent(e){var t,r,n,i,a,o,s;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,p]of Object.entries(u))l[d]={id:c[d],type:d,properties:p};var{$set_once:f,$set:h}=e;return{event:B({},H(e,uo),{properties:B({},e.properties,h?{$set:B({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},h)}:{},f?{$set_once:B({},null!==(n=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==n?n:{},f)}:{}),elements_chain:null!==(a=null==(o=e.properties)?void 0:o.$elements_chain)&&void 0!==a?a:"",distinct_id:null==(s=e.properties)?void 0:s.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this.We.length&&(po.info("Processing "+this.We.length+" events for site app with id "+e.id),this.We.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.Ve)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,po.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var{processEvent:a}=e.init({posthog:this._instance,callback:e=>{i(e)}});a&&(t.processEvent=a),n=!0}catch(o){po.error("Error while initializing PostHog app with config id "+e.id,o),i(!1)}if(n&&t.loaded)try{r()}catch(s){po.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}Je(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}Ke(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var r of Object.values(this.apps))try{null==r.processEvent||r.processEvent(t)}catch(n){po.error("Error while processing event "+e.event+" for site app "+r.id,n)}}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",e=>this.Ke(e))):void po.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.Ve)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var a=function(e){var t;F["__$$ph_site_app_"+e]=i._instance,null==(t=F.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return po.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:s}of e.siteApps)a(o)}else po.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var ho=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&U(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>U(null==e?void 0:e.brand,t)))return!0}catch(i){}return!!e.webdriver},go=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),mo="i.posthog.com";class vo{constructor(e){this.Ye={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+mo,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=go.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=go.EU:this.Ye[this.apiHost]=go.CUSTOM),this.Ye[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if(this.region===go.CUSTOM)return this.apiHost+t;var r=mo+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var bo={icontains:(e,t)=>!!P&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!P&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!P&&xa(t.href,e),not_regex:(e,t)=>!!P&&!xa(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class yo{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{yo.Xe("retrieved web experiments from the server"),t.Qe=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.Qe&&(yo.Xe("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Qe)||r.set(e.feature_flag_key,e));var n=t._instance.getFeatureFlag(e.feature_flag_key);ae(n)&&e.variants[n]&&t.Ze(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var a=e.variants[i];yo.tr(a)&&t.Ze(e.name,i,a.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())yo.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(le(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();yo.Xe("applying feature flags",e),e.forEach(e=>{var t;if(this.Qe&&null!=(t=this.Qe)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.Qe)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Ze(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=yo.getWindowLocation();if(null!=e&&e.search){var t=Pr(null==e?void 0:e.search,"__experiment_id"),r=Pr(null==e?void 0:e.search,"__experiment_variant");t&&r&&(yo.Xe("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.ir(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>{if(200!==t.statusCode||!t.json)return e([]);var r=t.json.experiments||[];return e(r)}})}ir(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(yo.Xe("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Ze(n[0].name,t,n[0].variants[t].transforms))}static tr(e){return!le(e.conditions)&&yo.er(e)&&yo.rr(e)}static er(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,a=yo.getWindowLocation();return!!a&&(null==(r=e.conditions)||!r.url||bo[null!==(n=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url,a))}static getWindowLocation(){return null==P?void 0:P.location}static rr(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.utm))return!0;var r=xi();if(r.utm_source){var n,i,a,o,s,l,c,u,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==r.utm_campaign,p=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==r.utm_source,f=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==r.utm_medium,h=null==(c=e.conditions)||null==(c=c.utm)||!c.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==r.utm_term;return d&&f&&h&&p}return!1}static Xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Qe.info("[WebExperiments] "+e,r)}Ze(e,t,r){this._is_bot()?yo.Xe("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;yo.Xe("applying transform of variant "+t+" for experiment "+e+" ",r);var i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute("style",r.css)})}}):yo.Xe("Control variants leave the page unmodified.")}_is_bot(){return R&&this._instance?ho(R,this._instance.config.custom_blocked_useragents):void 0}}var xo=Ke("[PostHog ExternalIntegrations]"),ko={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class _o{constructor(e){this._instance=e}it(e,t){var r;null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return xo.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,a;!n||null!=(r=F.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(ko[t],()=>{var r;null==(r=F.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=F.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(a=F.__PosthogExtensions__)||null==(a=a.integrations)||null==(a=a[t])||a.stop())};for(var[r,n]of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t(r)}}}var wo="[SessionRecording]",So=Ke(wo);class Co{get started(){var e;return!(null==(e=this.sr)||!e.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=e,!this._instance.sessionManager)throw So.error("started without valid sessionManager"),new Error(wo+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(wo+' cannot be used with cookieless_mode="always"')}get ar(){var e,t=!(null==(e=this._instance.get_property(wt))||!e.enabled),r=!this._instance.config.disable_session_recording,n=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return P&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!this.ar||null==(t=this.sr)||!t.isStarted){var r=!ie(Object.assign)&&!ie(Array.from);this.ar&&r?(this.ur(e),So.info("starting")):this.stopRecording()}}ur(e){var t,r,n;this.ar&&(null!=F&&null!=(t=F.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=F.__PosthogExtensions__)&&r.initSessionRecording?this.hr(e):null==(n=F.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.dr,t=>{if(t)return So.error("could not load recorder",t);this.hr(e)}))}stopRecording(){var e,t;null==(e=this.lr)||e.call(this),this.lr=void 0,null==(t=this.sr)||t.stop()}vr(){var e;null==(e=this._instance.persistence)||e.unregister(Ct)}cr(e){if(this._instance.persistence){var t,r,n=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=null==t?void 0:t.sampleRate,i=le(r)?null:parseFloat(r);le(i)&&this.vr();var a=null==t?void 0:t.minimumDurationMilliseconds;n.register({[wt]:B({enabled:!!t},t,{networkPayloadCapture:B({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:ie(a)?null:a,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.lr)||t.call(this),this.lr=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.cr(e),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:So.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.sr)&&r.log?this.sr.log(e,t):So.warn("log called before recorder was ready")}get dr(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(wt);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}hr(e){var t,r;if(null==(t=F.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=null==(r=F.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(e)}onRRwebEmit(e){var t;null==(t=this.sr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e;null==(e=this.sr)||e.overrideLinkedFlag()}overrideSampling(){var e;null==(e=this.sr)||e.overrideSampling()}overrideTrigger(e){var t;null==(t=this.sr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.sr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.sr)||!r.tryAddCustomEvent(e,t))}}var Po={},zo=()=>{},Eo="posthog",To=!ha&&-1===(null==L?void 0:L.indexOf("MSIE"))&&-1===(null==L?void 0:L.indexOf("Mozilla")),jo=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:ct(null==O?void 0:O.location),persistence:"localStorage+cookie",persistence_name:"",loaded:zo,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:"2025-05-24"!==e||"history_change",capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",debug:I&&ae(null==I?void 0:I.search)&&-1!==I.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==P||null==(t=P.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;Qe.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:to},error_tracking:{},_onCapture:zo,__preview_eager_load_replay:!1}},Ro=e=>{var t={};ie(e.process_person)||(t.person_profiles=e.process_person),ie(e.xhr_headers)||(t.request_headers=e.xhr_headers),ie(e.cookie_name)||(t.persistence_name=e.cookie_name),ie(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),ie(e.store_google)||(t.save_campaign_params=e.store_google),ie(e.verbose)||(t.debug=e.verbose);var r=rt({},t,e);return ee(e.property_blacklist)&&(ie(e.property_denylist)?r.property_denylist=e.property_blacklist:ee(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Qe.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class Oo{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(e){Qe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Io{get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){this.webPerformance=new Oo,this.gr=!1,this.version=N.LIB_VERSION,this._r=new $a,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=jo(),this.SentryIntegration=pn,this.sentryIntegration=e=>{return t=dn(this,e),{name:un,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new Aa(this),this.toolbar=new vn(this),this.scrollManager=new ao(this),this.pageViewManager=new Di(this),this.surveys=new Ka(this),this.experiments=new yo(this),this.exceptions=new Ca(this),this.rateLimiter=new Za(this),this.requestRouter=new vo(this),this.consent=new Jr(this),this.externalIntegrations=new _o(this),this.people={set:(e,t,r)=>{var n=ae(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=ae(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>Qe.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Eo){var n,i=null!==(n=Po[r])&&void 0!==n?n:new Io;return i._init(e,t,r),Po[r]=i,Po[Eo][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n,i;if(void 0===t&&(t={}),ie(e)||oe(e))return Qe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Sr(t.debug),this.Er=t,this.$r=[],t.person_profiles&&(this.br=t.person_profiles),this.set_config(rt({},jo(t.defaults),Ro(t),{name:r,token:e})),this.config.on_xhr_error&&Qe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:Sr.GZipJS;var a=this.kr();this.persistence=new Ma(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ma(B({},this.config,{persistence:"sessionStorage"}),a);var o=B({},this.persistence.props),s=B({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Pr=new ro(e=>this.Tr(e),this.config.request_queue_config),this.Rr=new io(this),this.__request_queue=[];var l="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new co(this),this.sessionPropsManager=new so(this,this.sessionManager,this.persistence)),new yn(this).startIfEnabledOrStop(),this.siteApps=new fo(this),null==(n=this.siteApps)||n.init(),l||(this.sessionRecording=new Co(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Or(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Ai(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new Ri(this),this.exceptionObserver=new on(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new nn(this,rn),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new ln(this),this.historyAutocapture.startIfEnabled(),N.DEBUG=N.DEBUG||this.config.debug,N.DEBUG&&Qe.info("Starting in debug mode",{this:this,config:t,thisC:B({},this.config),p:o,s:s}),void 0!==(null==(i=t.bootstrap)?void 0:i.distinctID)){var c,u,d=this.config.get_device_id(Nr()),p=null!=(c=t.bootstrap)&&c.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(At,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:p})}if(this.Ir()){var f,h,g=Object.keys((null==(f=t.bootstrap)?void 0:f.featureFlags)||{}).filter(e=>{var r;return!(null==(r=t.bootstrap)||null==(r=r.featureFlags)||!r[e])}).reduce((e,r)=>{var n;return e[r]=(null==(n=t.bootstrap)||null==(n=n.featureFlags)?void 0:n[r])||!1,e},{}),m=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>g[e]).reduce((e,r)=>{var n,i;return null!=(n=t.bootstrap)&&null!=(n=n.featureFlagPayloads)&&n[r]&&(e[r]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[r]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:m})}if(l)this.register_once({distinct_id:Bt,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(Nr());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(At,"anonymous")}return dt(P,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||Nr();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(At,"identified")),t()},i=r.user();"then"in i&&te(i.then)?i.then(e=>n(e)):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||cn.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(cn.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(cn.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Cr()):this.Cr(),te(this.config._onCapture)&&this.config._onCapture!==zo&&(Qe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Qe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}fi(e){var t,r,n,i,a,o,s,l;if(!O||!O.body)return Qe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(e)},500);this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Y(e.supportedCompression,Sr.GZipJS)?Sr.GZipJS:Y(e.supportedCompression,Sr.Base64)?Sr.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),null==(r=this.siteApps)||r.onRemoteConfig(e),null==(n=this.sessionRecording)||n.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(a=this.heatmaps)||a.onRemoteConfig(e),this.surveys.onRemoteConfig(e),null==(o=this.webVitalsAutocapture)||o.onRemoteConfig(e),null==(s=this.exceptionObserver)||s.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(l=this.deadClicksAutocapture)||l.onRemoteConfig(e)}Cr(){try{this.config.loaded(this)}catch(_r){Qe.critical("`loaded` function failed",_r)}this.Or(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Fr()},1),new eo(this).load(),this.featureFlags.flags()}Or(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Pr)||e.enable())}_dom_loaded(){this.is_capturing()&&et(this.__request_queue,e=>this.Tr(e)),this.__request_queue=[],this.Or()}_handle_unload(){var e,t;this.config.request_batching?(this.Mr()&&this.capture("$pageleave"),null==(e=this.Pr)||e.unload(),null==(t=this.Rr)||t.unload()):this.Mr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(e){this.__loaded&&(To?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ma(e.url,{ip:this.config.ip?1:0}),e.headers=B({},this.config.request_headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,r,n,i=B({},e);i.timeout=i.timeout||6e4,i.url=ma(i.url,{_:(new Date).getTime().toString(),ver:N.LIB_VERSION,compression:i.compression});var a=null!==(t=i.transport)&&void 0!==t?t:"fetch",o=ya.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),s=null!==(r=null==(n=ut(o,e=>e.transport===a))?void 0:n.method)&&void 0!==r?r:o[0].method;if(!s)throw new Error("No available transport method");s(i)})(B({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(r=(n=this.config).on_request_error)||r.call(n,t)),null==e.callback||e.callback(t)}}))))}Tr(e){this.Rr?this.Rr.retriableRequest(e):this.ci(e)}_execute_array(e){var t,r=[],n=[],i=[];et(e,e=>{e&&(t=e[0],ee(t)?i.push(e):te(e)?e.call(this):ee(e)&&"alias"===t?r.push(e):ee(e)&&-1!==t.indexOf("capture")&&te(this[t])?i.push(e):n.push(e))});var a=function(e,t){et(e,function(e){if(ee(e[0])){var r=t;tt(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(r,this),a(n,this),a(i,this)}Ir(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,r){var n;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!ie(e)&&ae(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!i||this.config.__preview_capture_bot_pageviews){var a=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==a||!a.isRateLimited){null!=t&&t.$current_url&&!ae(null==t?void 0:t.$current_url)&&(Qe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,s=(null==r?void 0:r.timestamp)||o,l=Nr(),c={uuid:l,event:e,properties:this.calculateEventProperties(e,t||{},s,l)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),a&&(c.properties.$lib_rate_limit_remaining_tokens=a.remainingTokens),(null==r?void 0:r.$set)&&(c.$set=null==r?void 0:r.$set);var u,d=this.Ar(null==r?void 0:r.$set_once);if(d&&(c.$set_once=d),(c=function(e,t){return r=e,n=e=>ae(e)&&!se(t)?e.slice(0,t):e,i=new Set,function e(t,r){return t!==Object(t)?n?n(t):t:i.has(t)?void 0:(i.add(t),ee(t)?(a=[],et(t,t=>{a.push(e(t))})):(a={},tt(t,(t,r)=>{i.has(t)||(a[r]=e(t))})),a);var a}(r);var r,n,i}(c,null!=r&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=s,ie(null==r?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=o),e===Fa.DISMISSED||e===Fa.SENT){var p=null==t?void 0:t[Na.SURVEY_ID],f=null==t?void 0:t[Na.SURVEY_ITERATION];u={id:p,current_iteration:f},localStorage.getItem(qa(u))||localStorage.setItem(qa(u),"true"),c.$set=B({},c.$set,{[Ua({id:p,current_iteration:f},e===Fa.SENT?"responded":"dismissed")]:!0})}var h=B({},c.properties.$set,c.$set);if(ne(h)||this.setPersonPropertiesForFlags(h),!le(this.config.before_send)){var g=this.Dr(c);if(!g)return;c=g}this._r.emit("eventCaptured",c);var m={method:"POST",url:null!==(n=null==r?void 0:r._url)&&void 0!==n?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==r?void 0:r._batchKey};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Tr(m):this.Pr.enqueue(m),c}Qe.critical("This capture call is ignored due to client rate limiting.")}}else Qe.error("No event name provided to posthog.capture")}else Qe.uninitializedWarning("posthog.capture")}Mi(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,r,n,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var a=i?void 0:this.persistence.remove_event_timer(e),o=B({},t);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(o.$cookieless_mode=!0),"$snapshot"===e){var s=B({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,(!ae(o.distinct_id)&&!ce(o.distinct_id)||oe(o.distinct_id))&&Qe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var l,c=function(e,t){if(!L)return{};var r,n,i,a=e?nt([],mi,t||[]):[],[o,s]=function(e){for(var t=0;t<fi.length;t++){var[r,n]=fi[t],i=r.exec(e),a=i&&(te(n)?n(i,e):n);if(a)return a}return["",""]}(L);return rt(st({$os:o,$os_version:s,$browser:ui(L,navigator.vendor),$device:hi(L),$device_type:(n=L,i=hi(n),i===Cn||i===Sn||"Kobo"===i||"Kindle Fire"===i||i===ti?wn:i===Vn||i===qn||i===Un||i===Zn?"Console":i===zn?"Wearable":i?xn:"Desktop"),$timezone:zi(),$timezone_offset:Ei()}),{$current_url:zr(null==I?void 0:I.href,a,bi),$host:null==I?void 0:I.host,$pathname:null==I?void 0:I.pathname,$raw_user_agent:L.length>1e3?L.substring(0,997)+"...":L,$browser_version:pi(L,navigator.vendor),$browser_language:wi(),$browser_language_prefix:(r=wi(),"string"==typeof r?r.split("-")[0]:void 0),$screen_height:null==P?void 0:P.screen.height,$screen_width:null==P?void 0:P.screen.width,$viewport_height:null==P?void 0:P.innerHeight,$viewport_width:null==P?void 0:P.innerWidth,$lib:"web",$lib_version:N.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());o.$session_id=u,o.$window_id=d}this.sessionPropsManager&&rt(o,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&rt(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=null==(p=this.Rr)?void 0:p.length}catch(m){o.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===go.CUSTOM&&(o.$lib_custom_api_host=this.config.api_host),l="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,n),o=rt(o,l),"$pageview"===e&&O&&(o.title=O.title),!ie(a)){var f=r.getTime()-a;o.$duration=parseFloat((f/1e3).toFixed(3))}L&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=rt({},c,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),ee(this.config.property_denylist)?tt(this.config.property_denylist,function(e){delete o[e]}):Qe.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var h=this.config.sanitize_properties;h&&(Qe.error("sanitize_properties is deprecated. Use before_send instead"),o=h(o,e));var g=this.jr();return o.$process_person_profile=g,g&&!i&&this.Lr("_calculate_event_properties"),o}Ar(e){var t;if(!this.persistence||!this.jr())return e;if(this.gr)return e;var r=this.persistence.get_initial_props(),n=null==(t=this.sessionPropsManager)?void 0:t.getSetOnceProps(),i=rt({},r,n||{},e||{}),a=this.config.sanitize_properties;return a&&(Qe.error("sanitize_properties is deprecated. Use before_send instead"),i=a(i,"$set_once")),this.gr=!0,ne(i)?void 0:i}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Nr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(r){return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,r)}on(e,t){return this._r.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,r;return null!==(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=Ga),this.surveys.displaySurvey(e,t)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,r){if(!this.__loaded||!this.persistence)return Qe.uninitializedWarning("posthog.identify");if(ce(e)&&(e=e.toString(),Qe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))Qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==Bt){if(this.Lr("posthog.identify")){var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==n&&e!==this.get_property(ft)&&(this.unregister(ft),this.register({distinct_id:e}));var a="anonymous"===(this.persistence.get_property(At)||"anonymous");e!==n&&a?(this.persistence.set_property(At,"identified"),this.setPersonPropertiesForFlags(B({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.wr=ka(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(It))}}else Qe.critical('The string "'+Bt+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Qe.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Lr("posthog.setPersonProperties")){var r=ka(this.get_distinct_id(),e,t);this.wr!==r?(this.setPersonPropertiesForFlags(B({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.wr=r):Qe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){if(this.Lr("posthog.group")){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:B({},n,{[e]:t})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),n[e]===t||r||this.reloadFeatureFlags()}}else Qe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Lr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,r,n,i;if(Qe.info("reset"),!this.__loaded)return Qe.uninitializedWarning("posthog.reset");var a=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),this.surveys.reset(),this.featureFlags.reset(),null==(n=this.persistence)||n.set_property(At,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.wr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Bt,$device_id:null},"");else{var o=this.config.get_device_id(Nr());this.register_once({distinct_id:o,$device_id:e?o:a},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&r){var i,a=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-a,0)}return n}alias(e,t){return e===this.get_property(pt)?(Qe.critical("Attempting to create alias for existing People user - aborting."),-2):this.Lr("posthog.alias")?(ie(t)&&(t=this.get_distinct_id()),e!==t?(this.Nr(ft,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Qe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=B({},this.config);if(re(e)){var r,n,i,a,o;rt(this.config,Ro(e));var s=this.kr();null==(r=this.persistence)||r.update_config(this.config,t,s),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ma(B({},this.config,{persistence:"sessionStorage"}),s);var l=this.Sr(this.config.debug);ue(l)&&(this.config.debug=l),ue(this.config.debug)&&(this.config.debug?(N.DEBUG=!0,Ur.H()&&Ur.G("ph_debug","true"),Qe.info("set_config",{config:e,oldConfig:t,newConfig:B({},this.config)})):(N.DEBUG=!1,Ur.H()&&Ur.V("ph_debug"))),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(i=this.autocapture)||i.startIfEnabled(),null==(a=this.heatmaps)||a.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ur(),null==(o=this.externalIntegrations)||o.startIfEnabledOrStop()}}startSessionRecording(e){var t,r,n,i,a,o=!0===e,s={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(s).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),s.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),s.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),s.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),s.event_trigger&&(null==(a=this.sessionRecording)||a.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var r=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(B({},n,t))}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:Eo;return t!==Eo&&(t=Eo+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(At))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(At))}jr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&ne(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[ft])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Wt]))}Mr(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.jr()||this.Lr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Lr(e){return"never"===this.config.person_profiles?(Qe.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Nr(Wt,!0),!0)}kr(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}Ur(){var e,t,r,n,i=this.kr();return(null==(e=this.persistence)?void 0:e.wi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.wi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t,r;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(t=this.sessionManager)||t.destroy(),this.sessionManager=new co(this),this.persistence&&(this.sessionPropsManager=new so(this,this.sessionManager,this.persistence)),this.sessionRecording=new Co(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Ur(),this.Or(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(ie(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(r=null==e?void 0:e.captureEventName)&&void 0!==r?r:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fr()):Qe.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ur(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Bt,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(t=this.sessionRecording)||t.stopRecording(),this.sessionRecording=void 0,this.Fr())):Qe.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===Zr.GRANTED?"granted":e===Zr.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ur()}_is_bot(){return R?ho(R,this.config.custom_blocked_useragents):void 0}Fr(){O&&("visible"===O.visibilityState?this.mr||(this.mr=!0,this.capture("$pageview",{title:O.title},{send_instantly:!0}),this.yr&&(O.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Fr.bind(this),dt(O,"visibilitychange",this.yr)))}debug(e){!1===e?(null==P||P.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==P||P.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var e,t,r,n,i,a,o=this.Er||{};return"advanced_disable_flags"in o?!!o.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(Qe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",n=Qe,i=(t="advanced_disable_flags")in(e=o)&&!ie(e[t]),a=r in e&&!ie(e[r]),i?e[t]:!!a&&(n&&n.warn("Config field '"+r+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[r]))}Dr(e){if(le(this.config.before_send))return e;var t=ee(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of t){if(r=n(r),le(r)){var i="Event '"+e.event+"' was rejected in beforeSend function";return de(e.event)?Qe.warn(i+". This can cause unexpected behavior."):Qe.info(i),null}r.properties&&!ne(r.properties)||Qe.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return null==(e=this.pageViewManager.Vt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}Sr(e){var t=ue(e)&&!e,r=Ur.H()&&"true"===Ur.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=ot(e.prototype[t[r]])}(Io,["identify"]);var Ao,Do=(Ao=Po[Eo]=new Io,function(){function e(){e.done||(e.done=!0,To=!1,tt(Po,function(e){e._dom_loaded()}))}null!=O&&O.addEventListener?"complete"===O.readyState?e():dt(O,"DOMContentLoaded",e,{capture:!1}):P&&Qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Ao);let Mo=null,Lo=!1,Fo=null;const No=()=>(Mo||Lo||(Mo=(()=>{if(Do.__loaded)return Do;if(Lo)return null;Lo=!0;try{return Do.init("phc_Q0yKPwlYDSkhDCTq1U1K4oP5ne5xFMfso0cCkDbm4VI",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",before_send:e=>e&&"$exception"===e.event&&!(e=>{const t=e?.properties??{};if("manual"===t.dori_capture)return!0;const r=(()=>{if(Fo)return Fo;const e=[];try{const t=document.querySelector("script#dori-side-widget"),r=t?.src;if(r){e.push(r);const t=r.slice(0,r.lastIndexOf("/")+1);t&&t!==r&&e.push(t)}}catch{}return Fo=e,e})();if(0===r.length)return!0;const n=t.$exception_list;if(!Array.isArray(n)||0===n.length)return!0;for(const i of n){const e=i?.stacktrace?.frames;if(Array.isArray(e))for(const t of e){const e=t?.filename;if("string"==typeof e&&r.some(t=>e.startsWith(t)))return!0}}return!1})(e)?null:e,loaded:e=>{try{const t=(()=>{const e={},t=(()=>{try{const e=document.querySelector("script#dori-side-widget");return e?.getAttribute("data-sharing-id")||null}catch{return null}})();return t&&(e.sharing_id=t),"undefined"!=typeof window&&window.location&&window.location.hostname&&(e.shop_domain=window.location.hostname),e})();Object.keys(t).length>0&&e.register(t)}catch(t){}}}),Mo=Do,Do}catch(e){return console.error("[PostHog] Failed to initialize:",e),null}finally{Lo=!1}})()),Mo),Wo=(e,t)=>{const r=No();if(r)try{r.capture(e,t)}catch(n){}},$o=(e,t)=>{const r=No();if(r)try{console.error("Error captured:",e,t),r.capture("$exception",{$exception_message:e.message,$exception_type:e.name,$exception_stack_trace:e.stack,dori_capture:"manual",...t})}catch(n){console.error("[PostHog] Failed to capture exception:",n)}},Bo=(e,t)=>(...r)=>{try{return console.log("withErrorHandling",e),t(...r)}catch(n){throw console.error("Error in withErrorHandling:",n),$o(n,{context:e}),n}},Ho=(e,t)=>(...r)=>{try{return t(...r).catch(t=>{throw"AbortError"!==t.name&&$o(t,{context:e}),t})}catch(n){throw"AbortError"!==n.name&&$o(n,{context:e}),n}};var Vo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Uo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Yo,Go,Qo={exports:{}},Ko={};function Xo(){if(Yo)return Ko;Yo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==r?r:null,props:n}}return Ko.Fragment=t,Ko.jsx=r,Ko.jsxs=r,Ko}function Zo(){return Go||(Go=1,Qo.exports=Xo()),Qo.exports}var Jo,es,ts=Zo(),rs={exports:{}},ns={};function is(){if(Jo)return ns;Jo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var b=v.prototype=new m;b.constructor=v,f(b,g.prototype),b.isPureReactComponent=!0;var y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function _(t,r,n,i,a,o){return n=o.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:o}}function w(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var S=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function P(){}function z(r,n,i,a,o){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var l,c,p=!1;if(null===r)p=!0;else switch(s){case"bigint":case"string":case"number":p=!0;break;case"object":switch(r.$$typeof){case e:case t:p=!0;break;case u:return z((p=r._init)(r._payload),n,i,a,o)}}if(p)return o=o(r),p=""===a?"."+C(r,0):a,y(o)?(i="",null!=p&&(i=p.replace(S,"$&/")+"/"),z(o,n,i,"",function(e){return e})):null!=o&&(w(o)&&(l=o,c=i+(null==o.key||r&&r.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+p,o=_(l.type,c,void 0,0,0,l.props)),n.push(o)),1;p=0;var f,h=""===a?".":a+":";if(y(r))for(var g=0;g<r.length;g++)p+=z(a=r[g],n,i,s=h+C(a,g),o);else if("function"==typeof(g=null===(f=r)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(r=g.call(r),g=0;!(a=r.next()).done;)p+=z(a=a.value,n,i,s=h+C(a,g++),o);else if("object"===s){if("function"==typeof r.then)return z(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(P,P):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(r),n,i,a,o);throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return p}function E(e,t,r){if(null==e)return e;var n=[],i=0;return z(e,n,"","",function(e){return t.call(r,e,i++)}),n}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function R(){}return ns.Children={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ns.Component=g,ns.Fragment=r,ns.Profiler=i,ns.PureComponent=v,ns.StrictMode=n,ns.Suspense=l,ns.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ns.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},ns.cache=function(e){return function(){return e.apply(null,arguments)}},ns.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=f({},e.props),i=e.key;if(null!=t)for(a in t.ref,void 0!==t.key&&(i=""+t.key),t)!k.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(n[a]=t[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];n.children=o}return _(e.type,i,void 0,0,0,n)},ns.createContext=function(e){return(e={$$typeof:o,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},ns.createElement=function(e,t,r){var n,i={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=""+t.key),t)k.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(i[n]=t[n]);var o=arguments.length-2;if(1===o)i.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps)void 0===i[n]&&(i[n]=o[n]);return _(e,a,void 0,0,0,i)},ns.createRef=function(){return{current:null}},ns.forwardRef=function(e){return{$$typeof:s,render:e}},ns.isValidElement=w,ns.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},ns.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},ns.startTransition=function(e){var t=x.T,r={};x.T=r;try{var n=e(),i=x.S;null!==i&&i(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(R,j)}catch(a){j(a)}finally{x.T=t}},ns.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},ns.use=function(e){return x.H.use(e)},ns.useActionState=function(e,t,r){return x.H.useActionState(e,t,r)},ns.useCallback=function(e,t){return x.H.useCallback(e,t)},ns.useContext=function(e){return x.H.useContext(e)},ns.useDebugValue=function(){},ns.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},ns.useEffect=function(e,t,r){var n=x.H;if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},ns.useId=function(){return x.H.useId()},ns.useImperativeHandle=function(e,t,r){return x.H.useImperativeHandle(e,t,r)},ns.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},ns.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},ns.useMemo=function(e,t){return x.H.useMemo(e,t)},ns.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},ns.useReducer=function(e,t,r){return x.H.useReducer(e,t,r)},ns.useRef=function(e){return x.H.useRef(e)},ns.useState=function(e){return x.H.useState(e)},ns.useSyncExternalStore=function(e,t,r){return x.H.useSyncExternalStore(e,t,r)},ns.useTransition=function(){return x.H.useTransition()},ns.version="19.1.1",ns}function as(){return es||(es=1,rs.exports=is()),rs.exports}var os=as();const ss=Uo(os),ls=C({__proto__:null,default:ss},[os]);var cs,us,ds={exports:{}},ps={},fs={exports:{}},hs={};function gs(){return cs||(cs=1,function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<i(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,r))c<a&&0>i(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<a&&0>i(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,p=3,f=!1,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=r(c);null!==i;){if(null===i.callback)n(c);else{if(!(i.startTime<=e))break;n(c),i.sortIndex=i.expirationTime,t(l,i)}i=r(c)}}function k(e){if(g=!1,x(e),!h)if(null!==r(l))h=!0,w||(w=!0,_());else{var t=r(c);null!==t&&R(k,t.startTime-e)}}var _,w=!1,S=-1,C=5,P=-1;function z(){return!(!m&&e.unstable_now()-P<C)}function E(){if(m=!1,w){var t=e.unstable_now();P=t;var i=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),f=!0;var a=p;try{t:{for(x(t),d=r(l);null!==d&&!(d.expirationTime>t&&z());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,x(t),i=!0;break t}d===r(l)&&n(l),x(t)}else n(l);d=r(l)}if(null!==d)i=!0;else{var u=r(c);null!==u&&R(k,u.startTime-t),i=!1}}break e}finally{d=null,p=a,f=!1}i=void 0}}finally{i?_():w=!1}}}if("function"==typeof y)_=function(){y(E)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,j=T.port2;T.port1.onmessage=E,_=function(){j.postMessage(null)}}else _=function(){v(E,0)};function R(t,r){S=v(function(){t(e.unstable_now())},r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},e.unstable_scheduleCallback=function(n,i,a){var o=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:i,priorityLevel:n,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(n.sortIndex=a,t(c,n),null===r(l)&&n===r(c)&&(g?(b(S),S=-1):g=!0,R(k,a-o))):(n.sortIndex=s,t(l,n),h||f||(h=!0,w||(w=!0,_()))),n},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}}(hs)),hs}function ms(){return us||(us=1,fs.exports=gs()),fs.exports}var vs,bs,ys,xs,ks={exports:{}},_s={};function ws(){if(vs)return _s;vs=1;var e=as();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return _s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,_s.createPortal=function(e,r){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!r||1!==r.nodeType&&9!==r.nodeType&&11!==r.nodeType)throw Error(t(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,r,null,n)},_s.flushSync=function(e){var t=a.T,r=n.p;try{if(a.T=null,n.p=2,e)return e()}finally{a.T=t,n.p=r,n.d.f()}},_s.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,n.d.C(e,t))},_s.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},_s.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=o(r,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?n.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:s}):"script"===r&&n.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},_s.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=o(t.as,t.crossOrigin);n.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&n.d.M(e)},_s.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=o(r,t.crossOrigin);n.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},_s.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=o(t.as,t.crossOrigin);n.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else n.d.m(e)},_s.requestFormReset=function(e){n.d.r(e)},_s.unstable_batchedUpdates=function(e,t){return e(t)},_s.useFormState=function(e,t,r){return a.H.useFormState(e,t,r)},_s.useFormStatus=function(){return a.H.useHostTransitionStatus()},_s.version="19.1.1",_s}function Ss(){return bs||(bs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ks.exports=ws()),ks.exports}function Cs(){if(ys)return ps;ys=1;var e=ms(),t=as(),r=Ss();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function o(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(a(e)!==e)throw Error(n(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var E=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case k:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return T(e(t))}catch(r){}}return null}var j=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},A=[],D=-1;function M(e){return{current:e}}function L(e){0>D||(e.current=A[D],A[D]=null,D--)}function F(e,t){D++,A[D]=e.current,e.current=t}var N=M(null),W=M(null),$=M(null),B=M(null);function H(e,t){switch(F($,t),F(W,e),F(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(N),F(N,e)}function V(){L(N),L(W),L($)}function U(e){null!==e.memoizedState&&F(B,e);var t=N.current,r=sd(t,e.type);t!==r&&(F(W,e),F(N,r))}function q(e){W.current===e&&(L(N),L(W)),B.current===e&&(L(B),Kd._currentValue=I)}var Y=Object.prototype.hasOwnProperty,G=e.unstable_scheduleCallback,Q=e.unstable_cancelCallback,K=e.unstable_shouldYield,X=e.unstable_requestPaint,Z=e.unstable_now,J=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,te=e.unstable_UserBlockingPriority,re=e.unstable_NormalPriority,ne=e.unstable_LowPriority,ie=e.unstable_IdlePriority,ae=e.log,oe=e.unstable_setDisableYieldValue,se=null,le=null;function ce(e){if("function"==typeof ae&&oe(e),le&&"function"==typeof le.setStrictMode)try{le.setStrictMode(se,e)}catch(t){}}var ue=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(de(e)/pe|0)|0},de=Math.log,pe=Math.LN2,fe=256,he=4194304;function ge(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function me(e,t,r){var n=e.pendingLanes;if(0===n)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=134217727&n;return 0!==s?0!==(n=s&~a)?i=ge(n):0!==(o&=s)?i=ge(o):r||0!==(r=s&~e)&&(i=ge(r)):0!==(s=n&~a)?i=ge(s):0!==o?i=ge(o):r||0!==(r=n&~e)&&(i=ge(r)),0===i?0:0!==t&&t!==i&&0===(t&a)&&((a=i&-i)>=(r=t&-t)||32===a&&4194048&r)?t:i}function ve(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;default:return-1}}function ye(){var e=fe;return!(4194048&(fe<<=1))&&(fe=256),e}function xe(){var e=he;return!(62914560&(he<<=1))&&(he=4194304),e}function ke(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function we(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-ue(t);e.entangledLanes|=t,e.entanglements[n]=1073741824|e.entanglements[n]|4194090&r}function Se(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ue(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}function Ce(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var Ee=Math.random().toString(36).slice(2),Te="__reactFiber$"+Ee,je="__reactProps$"+Ee,Re="__reactContainer$"+Ee,Oe="__reactEvents$"+Ee,Ie="__reactListeners$"+Ee,Ae="__reactHandles$"+Ee,De="__reactResources$"+Ee,Me="__reactMarker$"+Ee;function Le(e){delete e[Te],delete e[je],delete e[Oe],delete e[Ie],delete e[Ae]}function Fe(e){var t=e[Te];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Re]||r[Te]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=kd(e);null!==e;){if(r=e[Te])return r;e=kd(e)}return t}r=(e=r).parentNode}return null}function Ne(e){if(e=e[Te]||e[Re]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(n(33))}function $e(e){var t=e[De];return t||(t=e[De]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[Me]=!0}var He=new Set,Ve={};function Ue(e,t){qe(e,t),qe(e+"Capture",t)}function qe(e,t){for(Ve[e]=t,e=0;e<t.length;e++)He.add(t[e])}var Ye,Ge,Qe=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]*$"),Ke={},Xe={};function Ze(e,t,r){if(i=t,Y.call(Xe,i)||!Y.call(Ke,i)&&(Qe.test(i)?Xe[i]=!0:(Ke[i]=!0,0)))if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var n=t.toLowerCase().slice(0,5);if("data-"!==n&&"aria-"!==n)return void e.removeAttribute(t)}e.setAttribute(t,""+r)}var i}function Je(e,t,r){if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+r)}}function et(e,t,r,n){if(null===n)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(r)}e.setAttributeNS(t,r,""+n)}}function tt(e){if(void 0===Ye)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Ge=-1<r.stack.indexOf("\n at")?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ye+e+Ge}var rt=!1;function nt(e,t){if(!e||rt)return"";rt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(r,[])}catch(i){var n=i}Reflect.construct(e,[],r)}else{try{r.call()}catch(a){n=a}e.call(r.prototype)}}else{try{throw Error()}catch(o){n=o}(r=e())&&"function"==typeof r.catch&&r.catch(function(){})}}catch(s){if(s&&n&&"string"==typeof s.stack)return[s.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=n.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split("\n"),c=s.split("\n");for(i=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(n===l.length||i===c.length)for(n=l.length-1,i=c.length-1;1<=n&&0<=i&&l[n]!==c[i];)i--;for(;1<=n&&0<=i;n--,i--)if(l[n]!==c[i]){if(1!==n||1!==i)do{if(n--,0>--i||l[n]!==c[i]){var u="\n"+l[n].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=n&&0<=i);break}}}finally{rt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?tt(r):""}function it(e){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return tt("Activity");default:return""}}function at(e){try{var t="";do{t+=it(e),e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function st(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function lt(e){e._valueTracker||(e._valueTracker=function(e){var t=st(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=st(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function ut(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var dt=/[\n"\\]/g;function pt(e){return e.replace(dt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ft(e,t,r,n,i,a,o,s){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?gt(e,o,ot(t)):null!=r?gt(e,o,ot(r)):null!=n&&e.removeAttribute("value"),null==i&&null!=a&&(e.defaultChecked=!!a),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ot(s):e.removeAttribute("name")}function ht(e,t,r,n,i,a,o,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=r){if(("submit"===a||"reset"===a)&&null==t)return;r=null!=r?""+ot(r):"",t=null!=t?""+ot(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n="function"!=typeof(n=null!=n?n:i)&&"symbol"!=typeof n&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function gt(e,t,r){"number"===t&&ut(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function mt(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ot(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function vt(e,t,r){null==t||((t=""+ot(t))!==e.value&&(e.value=t),null!=r)?e.defaultValue=null!=r?""+ot(r):"":e.defaultValue!==t&&(e.defaultValue=t)}function bt(e,t,r,i){if(null==t){if(null!=i){if(null!=r)throw Error(n(92));if(j(i)){if(1<i.length)throw Error(n(93));i=i[0]}r=i}null==r&&(r=""),t=r}r=ot(t),e.defaultValue=r,(i=e.textContent)===r&&""!==i&&null!==i&&(e.value=i)}function yt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var xt=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 kt(e,t,r){var n=0===t.indexOf("--");null==r||"boolean"==typeof r||""===r?n?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":n?e.setProperty(t,r):"number"!=typeof r||0===r||xt.has(t)?"float"===t?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function _t(e,t,r){if(null!=t&&"object"!=typeof t)throw Error(n(62));if(e=e.style,null!=r){for(var i in r)!r.hasOwnProperty(i)||null!=t&&t.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&r[a]!==i&&kt(e,a,i)}else for(var o in t)t.hasOwnProperty(o)&&kt(e,o,t[o])}function wt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var St=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"]]),Ct=/^[\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 Pt(e){return Ct.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var zt=null;function Et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Tt=null,jt=null;function Rt(e){var t=Ne(e);if(t&&(e=t.stateNode)){var r=e[je]||null;e:switch(e=t.stateNode,t.type){case"input":if(ft(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var a=i[je]||null;if(!a)throw Error(n(90));ft(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)(i=r[t]).form===e.form&&ct(i)}break e;case"textarea":vt(e,r.value,r.defaultValue);break e;case"select":null!=(t=r.value)&&mt(e,!!r.multiple,t,!1)}}}var Ot=!1;function It(e,t,r){if(Ot)return e(t,r);Ot=!0;try{return e(t)}finally{if(Ot=!1,(null!==Tt||null!==jt)&&(Hc(),Tt&&(t=Tt,e=jt,jt=Tt=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function At(e,t){var r=e.stateNode;if(null===r)return null;var i=r[je]||null;if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Dt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Mt=!1;if(Dt)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(Dp){Mt=!1}var Ft=null,Nt=null,Wt=null;function $t(){if(Wt)return Wt;var e,t,r=Nt,n=r.length,i="value"in Ft?Ft.value:Ft.textContent,a=i.length;for(e=0;e<n&&r[e]===i[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===i[a-t];t++);return Wt=i.slice(e,1<t?1-t:void 0)}function Bt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ht(){return!0}function Vt(){return!1}function Ut(e){function t(t,r,n,i,a){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Ht:Vt,this.isPropagationStopped=Vt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ht)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ht)},persist:function(){},isPersistent:Ht}),t}var qt,Yt,Gt,Qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kt=Ut(Qt),Xt=c({},Qt,{view:0,detail:0}),Zt=Ut(Xt),Jt=c({},Xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gt&&(Gt&&"mousemove"===e.type?(qt=e.screenX-Gt.screenX,Yt=e.screenY-Gt.screenY):Yt=qt=0,Gt=e),qt)},movementY:function(e){return"movementY"in e?e.movementY:Yt}}),er=Ut(Jt),tr=Ut(c({},Jt,{dataTransfer:0})),rr=Ut(c({},Xt,{relatedTarget:0})),nr=Ut(c({},Qt,{animationName:0,elapsedTime:0,pseudoElement:0})),ir=Ut(c({},Qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ar=Ut(c({},Qt,{data:0})),or={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sr={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"},lr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=lr[e])&&!!t[e]}function ur(){return cr}var dr=Ut(c({},Xt,{key:function(e){if(e.key){var t=or[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Bt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(e){return"keypress"===e.type?Bt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Bt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),pr=Ut(c({},Jt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),fr=Ut(c({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur})),hr=Ut(c({},Qt,{propertyName:0,elapsedTime:0,pseudoElement:0})),gr=Ut(c({},Jt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),mr=Ut(c({},Qt,{newState:0,oldState:0})),vr=[9,13,27,32],br=Dt&&"CompositionEvent"in window,yr=null;Dt&&"documentMode"in document&&(yr=document.documentMode);var xr=Dt&&"TextEvent"in window&&!yr,kr=Dt&&(!br||yr&&8<yr&&11>=yr),_r=String.fromCharCode(32),wr=!1;function Sr(e,t){switch(e){case"keyup":return-1!==vr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pr=!1,zr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Tr(e,t,r,n){Tt?jt?jt.push(n):jt=[n]:Tt=n,0<(t=qu(t,"onChange")).length&&(r=new Kt("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var jr=null,Rr=null;function Or(e){Fu(e,0)}function Ir(e){if(ct(We(e)))return e}function Ar(e,t){if("change"===e)return t}var Dr=!1;if(Dt){var Mr;if(Dt){var Lr="oninput"in document;if(!Lr){var Fr=document.createElement("div");Fr.setAttribute("oninput","return;"),Lr="function"==typeof Fr.oninput}Mr=Lr}else Mr=!1;Dr=Mr&&(!document.documentMode||9<document.documentMode)}function Nr(){jr&&(jr.detachEvent("onpropertychange",Wr),Rr=jr=null)}function Wr(e){if("value"===e.propertyName&&Ir(Rr)){var t=[];Tr(t,Rr,e,Et(e)),It(Or,t)}}function $r(e,t,r){"focusin"===e?(Nr(),Rr=r,(jr=t).attachEvent("onpropertychange",Wr)):"focusout"===e&&Nr()}function Br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ir(Rr)}function Hr(e,t){if("click"===e)return Ir(t)}function Vr(e,t){if("input"===e||"change"===e)return Ir(t)}var Ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function qr(e,t){if(Ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Y.call(t,i)||!Ur(e[i],t[i]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var r,n=Yr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yr(n)}}function Qr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Kr(e){for(var t=ut((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=ut((e=t.contentWindow).document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Zr=Dt&&"documentMode"in document&&11>=document.documentMode,Jr=null,en=null,tn=null,rn=!1;function nn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;rn||null==Jr||Jr!==ut(n)||(n="selectionStart"in(n=Jr)&&Xr(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},tn&&qr(tn,n)||(tn=n,0<(n=qu(en,"onSelect")).length&&(t=new Kt("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Jr)))}function an(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var on={animationend:an("Animation","AnimationEnd"),animationiteration:an("Animation","AnimationIteration"),animationstart:an("Animation","AnimationStart"),transitionrun:an("Transition","TransitionRun"),transitionstart:an("Transition","TransitionStart"),transitioncancel:an("Transition","TransitionCancel"),transitionend:an("Transition","TransitionEnd")},sn={},ln={};function cn(e){if(sn[e])return sn[e];if(!on[e])return e;var t,r=on[e];for(t in r)if(r.hasOwnProperty(t)&&t in ln)return sn[e]=r[t];return e}Dt&&(ln=document.createElement("div").style,"AnimationEvent"in window||(delete on.animationend.animation,delete on.animationiteration.animation,delete on.animationstart.animation),"TransitionEvent"in window||delete on.transitionend.transition);var un=cn("animationend"),dn=cn("animationiteration"),pn=cn("animationstart"),fn=cn("transitionrun"),hn=cn("transitionstart"),gn=cn("transitioncancel"),mn=cn("transitionend"),vn=new Map,bn="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(" ");function yn(e,t){vn.set(e,t),Ue(t,[e])}bn.push("scrollEnd");var xn=new WeakMap;function kn(e,t){if("object"==typeof e&&null!==e){var r=xn.get(e);return void 0!==r?r:(t={value:e,source:t,stack:at(t)},xn.set(e,t),t)}return{value:e,source:t,stack:at(t)}}var _n=[],wn=0,Sn=0;function Cn(){for(var e=wn,t=Sn=wn=0;t<e;){var r=_n[t];_n[t++]=null;var n=_n[t];_n[t++]=null;var i=_n[t];_n[t++]=null;var a=_n[t];if(_n[t++]=null,null!==n&&null!==i){var o=n.pending;null===o?i.next=i:(i.next=o.next,o.next=i),n.pending=i}0!==a&&Tn(r,i,a)}}function Pn(e,t,r,n){_n[wn++]=e,_n[wn++]=t,_n[wn++]=r,_n[wn++]=n,Sn|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function zn(e,t,r,n){return Pn(e,t,r,n),jn(e)}function En(e,t){return Pn(e,null,null,t),jn(e)}function Tn(e,t,r){e.lanes|=r;var n=e.alternate;null!==n&&(n.lanes|=r);for(var i=!1,a=e.return;null!==a;)a.childLanes|=r,null!==(n=a.alternate)&&(n.childLanes|=r),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(i=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,i&&null!==t&&(i=31-ue(r),null===(n=(e=a.hiddenUpdates)[i])?e[i]=[t]:n.push(t),t.lane=536870912|r),a):null}function jn(e){if(50<Ac)throw Ac=0,Dc=null,Error(n(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rn={};function On(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,r,n){return new On(e,t,r,n)}function An(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dn(e,t){var r=e.alternate;return null===r?((r=In(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=65011712&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Mn(e,t){e.flags&=65011714;var r=e.alternate;return null===r?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ln(e,t,r,i,a,o){var s=0;if(i=e,"function"==typeof e)An(e)&&(s=1);else if("string"==typeof e)s=function(e,t,r){if(1===r||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,r,N.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case S:return(e=In(31,r,t,a)).elementType=S,e.lanes=o,e;case f:return Fn(r.children,a,o,t);case h:s=8,a|=24;break;case g:return(e=In(12,r,t,2|a)).elementType=g,e.lanes=o,e;case x:return(e=In(13,r,t,a)).elementType=x,e.lanes=o,e;case k:return(e=In(19,r,t,a)).elementType=k,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case m:case b:s=10;break e;case v:s=9;break e;case y:s=11;break e;case _:s=14;break e;case w:s=16,i=null;break e}s=29,r=Error(n(130,null===e?"null":typeof e,"")),i=null}return(t=In(s,r,t,a)).elementType=e,t.type=i,t.lanes=o,t}function Fn(e,t,r,n){return(e=In(7,e,n,t)).lanes=r,e}function Nn(e,t,r){return(e=In(6,e,null,t)).lanes=r,e}function Wn(e,t,r){return(t=In(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $n=[],Bn=0,Hn=null,Vn=0,Un=[],qn=0,Yn=null,Gn=1,Qn="";function Kn(e,t){$n[Bn++]=Vn,$n[Bn++]=Hn,Hn=e,Vn=t}function Xn(e,t,r){Un[qn++]=Gn,Un[qn++]=Qn,Un[qn++]=Yn,Yn=e;var n=Gn;e=Qn;var i=32-ue(n)-1;n&=~(1<<i),r+=1;var a=32-ue(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Gn=1<<32-ue(t)+i|r<<i|n,Qn=a+e}else Gn=1<<a|r<<i|n,Qn=e}function Zn(e){null!==e.return&&(Kn(e,1),Xn(e,1,0))}function Jn(e){for(;e===Hn;)Hn=$n[--Bn],$n[Bn]=null,Vn=$n[--Bn],$n[Bn]=null;for(;e===Yn;)Yn=Un[--qn],Un[qn]=null,Qn=Un[--qn],Un[qn]=null,Gn=Un[--qn],Un[qn]=null}var ei=null,ti=null,ri=!1,ni=null,ii=!1,ai=Error(n(519));function oi(e){throw pi(kn(Error(n(418,"")),e)),ai}function si(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Te]=e,t[je]=n,r){case"dialog":Nu("cancel",t),Nu("close",t);break;case"iframe":case"object":case"embed":Nu("load",t);break;case"video":case"audio":for(r=0;r<Mu.length;r++)Nu(Mu[r],t);break;case"source":Nu("error",t);break;case"img":case"image":case"link":Nu("error",t),Nu("load",t);break;case"details":Nu("toggle",t);break;case"input":Nu("invalid",t),ht(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),lt(t);break;case"select":Nu("invalid",t);break;case"textarea":Nu("invalid",t),bt(t,n.value,n.defaultValue,n.children),lt(t)}"string"!=typeof(r=n.children)&&"number"!=typeof r&&"bigint"!=typeof r||t.textContent===""+r||!0===n.suppressHydrationWarning||Zu(t.textContent,r)?(null!=n.popover&&(Nu("beforetoggle",t),Nu("toggle",t)),null!=n.onScroll&&Nu("scroll",t),null!=n.onScrollEnd&&Nu("scrollend",t),null!=n.onClick&&(t.onclick=Ju),t=!0):t=!1,t||oi(e)}function li(e){for(ei=e.return;ei;)switch(ei.tag){case 5:case 13:return void(ii=!1);case 27:case 3:return void(ii=!0);default:ei=ei.return}}function ci(e){if(e!==ei)return!1;if(!ri)return li(e),ri=!0,!1;var t,r=e.tag;if((t=3!==r&&27!==r)&&((t=5===r)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&ti&&oi(e),li(e),13===r){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,r=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===r){ti=yd(e.nextSibling);break e}r--}else"$"!==t&&"$!"!==t&&"$?"!==t||r++;e=e.nextSibling}ti=null}}else 27===r?(r=ti,gd(e.type)?(e=xd,xd=null,ti=e):ti=r):ti=ei?yd(e.stateNode.nextSibling):null;return!0}function ui(){ti=ei=null,ri=!1}function di(){var e=ni;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),ni=null),e}function pi(e){null===ni?ni=[e]:ni.push(e)}var fi=M(null),hi=null,gi=null;function mi(e,t,r){F(fi,t._currentValue),t._currentValue=r}function vi(e){e._currentValue=fi.current,L(fi)}function bi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yi(e,t,r,i){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var s=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=r,null!==(l=o.alternate)&&(l.lanes|=r),bi(o.return,r,e),i||(s=null);break e}o=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(o=s.alternate)&&(o.lanes|=r),bi(s,r,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function xi(e,t,r,i){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(n(387));if(null!==(s=s.memoizedProps)){var l=a.type;Ur(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===B.current){if(null===(s=a.alternate))throw Error(n(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Kd):e=[Kd])}a=a.return}null!==e&&yi(t,e,r,i),t.flags|=262144}function ki(e){for(e=e.firstContext;null!==e;){if(!Ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _i(e){hi=e,gi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function wi(e){return Ci(hi,e)}function Si(e,t){return null===hi&&_i(e),Ci(e,t)}function Ci(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},null===gi){if(null===e)throw Error(n(308));gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gi=gi.next=t;return r}var Pi="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},zi=e.unstable_scheduleCallback,Ei=e.unstable_NormalPriority,Ti={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ji(){return{controller:new Pi,data:new Map,refCount:0}}function Ri(e){e.refCount--,0===e.refCount&&zi(Ei,function(){e.controller.abort()})}var Oi=null,Ii=0,Ai=0,Di=null;function Mi(){if(0===--Ii&&null!==Oi){null!==Di&&(Di.status="fulfilled");var e=Oi;Oi=null,Ai=0,Di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Li=R.S;R.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Oi){var r=Oi=[];Ii=0,Ai=Ru(),Di={status:"pending",value:void 0,then:function(e){r.push(e)}}}Ii++,t.then(Mi,Mi)}(0,t),null!==Li&&Li(e,t)};var Fi=M(null);function Ni(){var e=Fi.current;return null!==e?e:ac.pooledCache}function Wi(e,t){F(Fi,null===t?Fi.current:t.pool)}function $i(){var e=Ni();return null===e?null:{parent:Ti._currentValue,pool:e}}var Bi=Error(n(460)),Hi=Error(n(474)),Vi=Error(n(542)),Ui={then:function(){}};function qi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Yi(){}function Gi(e,t,r){switch(void 0===(r=e[r])?e.push(t):r!==t&&(t.then(Yi,Yi),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw Xi(e=t.reason),e;default:if("string"==typeof t.status)t.then(Yi,Yi);else{if(null!==(e=ac)&&100<e.shellSuspendCounter)throw Error(n(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var r=t;r.status="fulfilled",r.value=e}},function(e){if("pending"===t.status){var r=t;r.status="rejected",r.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Xi(e=t.reason),e}throw Qi=t,Bi}}var Qi=null;function Ki(){if(null===Qi)throw Error(n(459));var e=Qi;return Qi=null,e}function Xi(e){if(e===Bi||e===Vi)throw Error(n(483))}var Zi=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ea(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&ic){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=jn(e),Tn(e,null,r),t}return Pn(e,n,t,r),jn(e)}function na(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,Se(e,r)}}function ia(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};null===a?i=a=o:a=a.next=o,r=r.next}while(null!==r);null===a?i=a=t:a=a.next=t}else i=a=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,callbacks:n.callbacks},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var aa=!1;function oa(){if(aa&&null!==Di)throw Di}function sa(e,t,r,n){aa=!1;var i=e.updateQueue;Zi=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==o&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==a){var p=i.baseState;for(o=0,d=u=l=null,s=a;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(sc&f)===f:(n&f)===f){0!==f&&f===Ai&&(aa=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;f=t;var v=r;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){p=g.call(v,p,f);break e}p=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(v,p,f):g))break e;p=c({},p,f);break e;case 2:Zi=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=p):d=d.next=h,o|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===a&&(i.shared.lanes=0),gc|=o,e.lanes=o,e.memoizedState=p}}function la(e,t){if("function"!=typeof e)throw Error(n(191,e));e.call(t)}function ca(e,t){var r=e.callbacks;if(null!==r)for(e.callbacks=null,e=0;e<r.length;e++)la(r[e],t)}var ua=M(null),da=M(0);function pa(e,t){F(da,e=fc),F(ua,t),fc=e|t.baseLanes}function fa(){F(da,fc),F(ua,ua.current)}function ha(){fc=da.current,L(ua),L(da)}var ga=0,ma=null,va=null,ba=null,ya=!1,xa=!1,ka=!1,_a=0,wa=0,Sa=null,Ca=0;function Pa(){throw Error(n(321))}function za(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ur(e[r],t[r]))return!1;return!0}function Ea(e,t,r,n,i,a){return ga=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?Ho:Vo,ka=!1,a=r(n,i),ka=!1,xa&&(a=ja(t,r,n,i)),Ta(e),a}function Ta(e){R.H=Bo;var t=null!==va&&null!==va.next;if(ga=0,ba=va=ma=null,ya=!1,wa=0,Sa=null,t)throw Error(n(300));null===e||Ts||null!==(e=e.dependencies)&&ki(e)&&(Ts=!0)}function ja(e,t,r,i){ma=e;var a=0;do{if(xa&&(Sa=null),wa=0,xa=!1,25<=a)throw Error(n(301));if(a+=1,ba=va=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}R.H=Uo,o=t(r,i)}while(xa);return o}function Ra(){var e=R.H,t=e.useState()[0];return t="function"==typeof t.then?La(t):t,e=e.useState()[0],(null!==va?va.memoizedState:null)!==e&&(ma.flags|=1024),t}function Oa(){var e=0!==_a;return _a=0,e}function Ia(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Aa(e){if(ya){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ya=!1}ga=0,ba=va=ma=null,xa=!1,wa=_a=0,Sa=null}function Da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ba?ma.memoizedState=ba=e:ba=ba.next=e,ba}function Ma(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ba?ma.memoizedState:ba.next;if(null!==t)ba=t,va=e;else{if(null===e){if(null===ma.alternate)throw Error(n(467));throw Error(n(310))}e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ba?ma.memoizedState=ba=e:ba=ba.next=e}return ba}function La(e){var t=wa;return wa+=1,null===Sa&&(Sa=[]),e=Gi(Sa,e,t),t=ma,null===(null===ba?t.memoizedState:ba.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?Ho:Vo),e}function Fa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return La(e);if(e.$$typeof===b)return wi(e)}throw Error(n(438,String(e)))}function Na(e){var t=null,r=ma.updateQueue;if(null!==r&&(t=r.memoCache),null==t){var n=ma.alternate;null!==n&&null!==(n=n.updateQueue)&&null!=(n=n.memoCache)&&(t={data:n.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===r&&(r={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=r),r.memoCache=t,void 0===(r=t.data[t.index]))for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=C;return t.index++,r}function Wa(e,t){return"function"==typeof t?t(e):t}function $a(e){return Ba(Ma(),va,e)}function Ba(e,t,r){var i=e.queue;if(null===i)throw Error(n(311));i.lastRenderedReducer=r;var a=e.baseQueue,o=i.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=s=null,c=null,u=t=a.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(sc&p)===p:(ga&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Ai&&(d=!0);else{if((ga&f)===f){u=u.next,f===Ai&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=o):c=c.next=p,ma.lanes|=f,gc|=f}p=u.action,ka&&r(o,p),o=u.hasEagerState?u.eagerState:r(o,p)}else f={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=o):c=c.next=f,ma.lanes|=p,gc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=o:c.next=l,!Ur(o,e.memoizedState)&&(Ts=!0,d&&null!==(r=Di)))throw r;e.memoizedState=o,e.baseState=s,e.baseQueue=c,i.lastRenderedState=o}return null===a&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ha(e){var t=Ma(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,a=r.pending,o=t.memoizedState;if(null!==a){r.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);Ur(o,t.memoizedState)||(Ts=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,i]}function Va(e,t,r){var i=ma,a=Ma(),o=ri;if(o){if(void 0===r)throw Error(n(407));r=r()}else r=t();var s=!Ur((va||a).memoizedState,r);if(s&&(a.memoizedState=r,Ts=!0),a=a.queue,ho(2048,8,Ya.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||null!==ba&&1&ba.memoizedState.tag){if(i.flags|=2048,uo(9,{destroy:void 0,resource:void 0},qa.bind(null,i,a,r,t),null),null===ac)throw Error(n(349));o||124&ga||Ua(i,t,r)}return r}function Ua(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ma.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function qa(e,t,r,n){t.value=r,t.getSnapshot=n,Ga(t)&&Qa(e)}function Ya(e,t,r){return r(function(){Ga(t)&&Qa(e)})}function Ga(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ur(e,r)}catch(n){return!0}}function Qa(e){var t=En(e,2);null!==t&&Fc(t,0,2)}function Ka(e){var t=Da();if("function"==typeof e){var r=e;if(e=r(),ka){ce(!0);try{r()}finally{ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t}function Xa(e,t,r,n){return e.baseState=r,Ba(e,va,"function"==typeof n?n:Wa)}function Za(e,t,r,i,a){if(No(e))throw Error(n(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==R.T?r(!0):o.isTransition=!1,i(o),null===(r=t.pending)?(o.next=t.pending=o,Ja(t,o)):(o.next=r.next,t.pending=r.next=o)}}function Ja(e,t){var r=t.action,n=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};R.T=o;try{var s=r(i,n),l=R.S;null!==l&&l(o,s),eo(e,t,s)}catch(c){ro(e,t,c)}finally{R.T=a}}else try{eo(e,t,a=r(i,n))}catch(u){ro(e,t,u)}}function eo(e,t,r){null!==r&&"object"==typeof r&&"function"==typeof r.then?r.then(function(r){to(e,t,r)},function(r){return ro(e,t,r)}):to(e,t,r)}function to(e,t,r){t.status="fulfilled",t.value=r,no(t),e.state=r,null!==(t=e.pending)&&((r=t.next)===t?e.pending=null:(r=r.next,t.next=r,Ja(e,r)))}function ro(e,t,r){var n=e.pending;if(e.pending=null,null!==n){n=n.next;do{t.status="rejected",t.reason=r,no(t),t=t.next}while(t!==n)}e.action=null}function no(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function io(e,t){return t}function ao(e,t){if(ri){var r=ac.formState;if(null!==r){e:{var n=ma;if(ri){if(ti){t:{for(var i=ti,a=ii;8!==i.nodeType;){if(!a){i=null;break t}if(null===(i=yd(i.nextSibling))){i=null;break t}}i="F!"===(a=i.data)||"F"===a?i:null}if(i){ti=yd(i.nextSibling),n="F!"===i.data;break e}}oi(n)}n=!1}n&&(t=r[0])}}return(r=Da()).memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:io,lastRenderedState:t},r.queue=n,r=Mo.bind(null,ma,n),n.dispatch=r,n=Ka(!1),a=Fo.bind(null,ma,!1,n.queue),i={state:t,dispatch:null,action:e,pending:null},(n=Da()).queue=i,r=Za.bind(null,ma,i,a,r),i.dispatch=r,n.memoizedState=e,[t,r,!1]}function oo(e){return so(Ma(),va,e)}function so(e,t,r){if(t=Ba(e,t,io)[0],e=$a(Wa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var n=La(t)}catch(o){if(o===Bi)throw Vi;throw o}else n=t;var i=(t=Ma()).queue,a=i.dispatch;return r!==t.memoizedState&&(ma.flags|=2048,uo(9,{destroy:void 0,resource:void 0},lo.bind(null,i,r),null)),[n,a,e]}function lo(e,t){e.action=t}function co(e){var t=Ma(),r=va;if(null!==r)return so(t,r,e);Ma(),t=t.memoizedState;var n=(r=Ma()).queue.dispatch;return r.memoizedState=e,[t,n,!1]}function uo(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},null===(t=ma.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=t),null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function po(){return Ma().memoizedState}function fo(e,t,r,n){var i=Da();n=void 0===n?null:n,ma.flags|=e,i.memoizedState=uo(1|t,{destroy:void 0,resource:void 0},r,n)}function ho(e,t,r,n){var i=Ma();n=void 0===n?null:n;var a=i.memoizedState.inst;null!==va&&null!==n&&za(n,va.memoizedState.deps)?i.memoizedState=uo(t,a,r,n):(ma.flags|=e,i.memoizedState=uo(1|t,a,r,n))}function go(e,t){fo(8390656,8,e,t)}function mo(e,t){ho(2048,8,e,t)}function vo(e,t){return ho(4,2,e,t)}function bo(e,t){return ho(4,4,e,t)}function yo(e,t){if("function"==typeof t){e=e();var r=t(e);return function(){"function"==typeof r?r():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function xo(e,t,r){r=null!=r?r.concat([e]):null,ho(4,4,yo.bind(null,t,e),r)}function ko(){}function _o(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;return null!==t&&za(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function wo(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;if(null!==t&&za(t,n[1]))return n[0];if(n=e(),ka){ce(!0);try{e()}finally{ce(!1)}}return r.memoizedState=[n,t],n}function So(e,t,r){return void 0===r||1073741824&ga?e.memoizedState=t:(e.memoizedState=r,e=Lc(),ma.lanes|=e,gc|=e,r)}function Co(e,t,r,n){return Ur(r,t)?r:null!==ua.current?(e=So(e,r,n),Ur(e,t)||(Ts=!0),e):42&ga?(e=Lc(),ma.lanes|=e,gc|=e,t):(Ts=!0,e.memoizedState=r)}function Po(e,t,r,n,i){var a=O.p;O.p=0!==a&&8>a?a:8;var o,s,l,c=R.T,u={};R.T=u,Fo(e,!1,t,r);try{var d=i(),p=R.S;null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Lo(e,t,(o=n,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=o;for(var e=0;e<s.length;e++)(0,s[e])(o)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Mc()):Lo(e,t,n,Mc())}catch(f){Lo(e,t,{then:function(){},status:"rejected",reason:f},Mc())}finally{O.p=a,R.T=c}}function zo(){}function Eo(e,t,r,i){if(5!==e.tag)throw Error(n(476));var a=To(e).queue;Po(e,a,t,I,null===r?zo:function(){return jo(e),r(i)})}function To(e){var t=e.memoizedState;if(null!==t)return t;var r={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:I},next:null}).next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:r},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function jo(e){Lo(e,To(e).next.queue,{},Mc())}function Ro(){return wi(Kd)}function Oo(){return Ma().memoizedState}function Io(){return Ma().memoizedState}function Ao(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var r=Mc(),n=ra(t,e=ta(r),r);return null!==n&&(Fc(n,0,r),na(n,t,r)),t={cache:ji()},void(e.payload=t)}t=t.return}}function Do(e,t,r){var n=Mc();r={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},No(e)?Wo(t,r):null!==(r=zn(e,t,r,n))&&(Fc(r,0,n),$o(r,t,n))}function Mo(e,t,r){Lo(e,t,r,Mc())}function Lo(e,t,r,n){var i={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(No(e))Wo(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ur(s,o))return Pn(e,t,i,0),null===ac&&Cn(),!1}catch(l){}if(null!==(r=zn(e,t,i,n)))return Fc(r,0,n),$o(r,t,n),!0}return!1}function Fo(e,t,r,i){if(i={lane:2,revertLane:Ru(),action:i,hasEagerState:!1,eagerState:null,next:null},No(e)){if(t)throw Error(n(479))}else null!==(t=zn(e,r,i,2))&&Fc(t,0,2)}function No(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function Wo(e,t){xa=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $o(e,t,r){if(4194048&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,Se(e,r)}}var Bo={readContext:wi,use:Fa,useCallback:Pa,useContext:Pa,useEffect:Pa,useImperativeHandle:Pa,useLayoutEffect:Pa,useInsertionEffect:Pa,useMemo:Pa,useReducer:Pa,useRef:Pa,useState:Pa,useDebugValue:Pa,useDeferredValue:Pa,useTransition:Pa,useSyncExternalStore:Pa,useId:Pa,useHostTransitionStatus:Pa,useFormState:Pa,useActionState:Pa,useOptimistic:Pa,useMemoCache:Pa,useCacheRefresh:Pa},Ho={readContext:wi,use:Fa,useCallback:function(e,t){return Da().memoizedState=[e,void 0===t?null:t],e},useContext:wi,useEffect:go,useImperativeHandle:function(e,t,r){r=null!=r?r.concat([e]):null,fo(4194308,4,yo.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var r=Da();t=void 0===t?null:t;var n=e();if(ka){ce(!0);try{e()}finally{ce(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=Da();if(void 0!==r){var i=r(t);if(ka){ce(!0);try{r(t)}finally{ce(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Do.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Da().memoizedState=e},useState:function(e){var t=(e=Ka(e)).queue,r=Mo.bind(null,ma,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:ko,useDeferredValue:function(e,t){return So(Da(),e,t)},useTransition:function(){var e=Ka(!1);return e=Po.bind(null,ma,e.queue,!0,!1),Da().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var i=ma,a=Da();if(ri){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===ac)throw Error(n(349));124&sc||Ua(i,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,go(Ya.bind(null,i,o,e),[e]),i.flags|=2048,uo(9,{destroy:void 0,resource:void 0},qa.bind(null,i,o,r,t),null),r},useId:function(){var e=Da(),t=ac.identifierPrefix;if(ri){var r=Qn;t="«"+t+"R"+(r=(Gn&~(1<<32-ue(Gn)-1)).toString(32)+r),0<(r=_a++)&&(t+="H"+r.toString(32)),t+="»"}else t="«"+t+"r"+(r=Ca++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ro,useFormState:ao,useActionState:ao,useOptimistic:function(e){var t=Da();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Fo.bind(null,ma,!0,r),r.dispatch=t,[e,t]},useMemoCache:Na,useCacheRefresh:function(){return Da().memoizedState=Ao.bind(null,ma)}},Vo={readContext:wi,use:Fa,useCallback:_o,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:$a,useRef:po,useState:function(){return $a(Wa)},useDebugValue:ko,useDeferredValue:function(e,t){return Co(Ma(),va.memoizedState,e,t)},useTransition:function(){var e=$a(Wa)[0],t=Ma().memoizedState;return["boolean"==typeof e?e:La(e),t]},useSyncExternalStore:Va,useId:Oo,useHostTransitionStatus:Ro,useFormState:oo,useActionState:oo,useOptimistic:function(e,t){return Xa(Ma(),0,e,t)},useMemoCache:Na,useCacheRefresh:Io},Uo={readContext:wi,use:Fa,useCallback:_o,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:Ha,useRef:po,useState:function(){return Ha(Wa)},useDebugValue:ko,useDeferredValue:function(e,t){var r=Ma();return null===va?So(r,e,t):Co(r,va.memoizedState,e,t)},useTransition:function(){var e=Ha(Wa)[0],t=Ma().memoizedState;return["boolean"==typeof e?e:La(e),t]},useSyncExternalStore:Va,useId:Oo,useHostTransitionStatus:Ro,useFormState:co,useActionState:co,useOptimistic:function(e,t){var r=Ma();return null!==va?Xa(r,0,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Na,useCacheRefresh:Io},qo=null,Yo=0;function Go(e){var t=Yo;return Yo+=1,null===qo&&(qo=[]),Gi(qo,e,t)}function Qo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Ko(e,t){if(t.$$typeof===u)throw Error(n(525));throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){return(0,e._init)(e._payload)}function Zo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function i(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Dn(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=67108866,r):n:(t.flags|=67108866,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Nn(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){var i=r.type;return i===f?h(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===w&&Xo(i)===t.type)?(Qo(t=a(t,r.props),r),t.return=e,t):(Qo(t=Ln(r.type,r.key,r.props,null,e.mode,n),r),t.return=e,t)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Wn(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function h(e,t,r,n,i){return null===t||7!==t.tag?((t=Fn(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function g(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Nn(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return Qo(r=Ln(t.type,t.key,t.props,null,e.mode,r),t),r.return=e,r;case p:return(t=Wn(t,e.mode,r)).return=e,t;case w:return g(e,t=(0,t._init)(t._payload),r)}if(j(t)||z(t))return(t=Fn(t,e.mode,r,null)).return=e,t;if("function"==typeof t.then)return g(e,Go(t),r);if(t.$$typeof===b)return g(e,Si(e,t),r);Ko(e,t)}return null}function m(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return r.key===i?c(e,t,r,n):null;case p:return r.key===i?u(e,t,r,n):null;case w:return m(e,t,r=(i=r._init)(r._payload),n)}if(j(r)||z(r))return null!==i?null:h(e,t,r,n,null);if("function"==typeof r.then)return m(e,t,Go(r),n);if(r.$$typeof===b)return m(e,t,Si(e,r),n);Ko(e,r)}return null}function v(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case p:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case w:return v(e,t,r,n=(0,n._init)(n._payload),i)}if(j(n)||z(n))return h(t,e=e.get(r)||null,n,i,null);if("function"==typeof n.then)return v(e,t,r,Go(n),i);if(n.$$typeof===b)return v(e,t,r,Si(t,n),i);Ko(t,n)}return null}function y(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===f&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case d:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===f){if(7===c.tag){r(l,c.sibling),(h=a(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===w&&Xo(x)===c.type){r(l,c.sibling),Qo(h=a(c,u.props),u),h.return=l,l=h;break e}r(l,c);break}t(l,c),c=c.sibling}u.type===f?((h=Fn(u.props.children,l.mode,h,u.key)).return=l,l=h):(Qo(h=Ln(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return s(l);case p:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){r(l,c.sibling),(h=a(c,u.children||[])).return=l,l=h;break e}r(l,c);break}t(l,c),c=c.sibling}(h=Wn(u,l.mode,h)).return=l,l=h}return s(l);case w:return y(l,c,u=(x=u._init)(u._payload),h)}if(j(u))return function(n,a,s,l){for(var c=null,u=null,d=a,p=a=0,f=null;null!==d&&p<s.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var h=m(n,d,s[p],l);if(null===h){null===d&&(d=f);break}e&&d&&null===h.alternate&&t(n,d),a=o(h,a,p),null===u?c=h:u.sibling=h,u=h,d=f}if(p===s.length)return r(n,d),ri&&Kn(n,p),c;if(null===d){for(;p<s.length;p++)null!==(d=g(n,s[p],l))&&(a=o(d,a,p),null===u?c=d:u.sibling=d,u=d);return ri&&Kn(n,p),c}for(d=i(d);p<s.length;p++)null!==(f=v(d,n,p,s[p],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),a=o(f,a,p),null===u?c=f:u.sibling=f,u=f);return e&&d.forEach(function(e){return t(n,e)}),ri&&Kn(n,p),c}(l,c,u,h);if(z(u)){if("function"!=typeof(x=z(u)))throw Error(n(150));return function(a,s,l,c){if(null==l)throw Error(n(151));for(var u=null,d=null,p=s,f=s=0,h=null,b=l.next();null!==p&&!b.done;f++,b=l.next()){p.index>f?(h=p,p=null):h=p.sibling;var y=m(a,p,b.value,c);if(null===y){null===p&&(p=h);break}e&&p&&null===y.alternate&&t(a,p),s=o(y,s,f),null===d?u=y:d.sibling=y,d=y,p=h}if(b.done)return r(a,p),ri&&Kn(a,f),u;if(null===p){for(;!b.done;f++,b=l.next())null!==(b=g(a,b.value,c))&&(s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return ri&&Kn(a,f),u}for(p=i(p);!b.done;f++,b=l.next())null!==(b=v(p,a,f,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?f:b.key),s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(a,e)}),ri&&Kn(a,f),u}(l,c,u=x.call(u),h)}if("function"==typeof u.then)return y(l,c,Go(u),h);if(u.$$typeof===b)return y(l,c,Si(l,u),h);Ko(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(r(l,c.sibling),(h=a(c,u)).return=l,l=h):(r(l,c),(h=Nn(u,l.mode,h)).return=l,l=h),s(l)):r(l,c)}return function(e,t,r,n){try{Yo=0;var i=y(e,t,r,n);return qo=null,i}catch(o){if(o===Bi||o===Vi)throw o;var a=In(29,o,null,e.mode);return a.lanes=n,a.return=e,a}}}var Jo=Zo(!0),es=Zo(!1),ts=M(null),rs=null;function ns(e){var t=e.alternate;F(ls,1&ls.current),F(ts,e),null===rs&&(null===t||null!==ua.current||null!==t.memoizedState)&&(rs=e)}function is(e){if(22===e.tag){if(F(ls,ls.current),F(ts,e),null===rs){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rs=e)}}else os()}function os(){F(ls,ls.current),F(ts,ts.current)}function ss(e){L(ts),rs===e&&(rs=null),L(ls)}var ls=M(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||bd(r)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function us(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:c({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var ds={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Mc(),i=ta(n);i.payload=t,null!=r&&(i.callback=r),null!==(t=ra(e,i,n))&&(Fc(t,0,n),na(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Mc(),i=ta(n);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=ra(e,i,n))&&(Fc(t,0,n),na(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mc(),n=ta(r);n.tag=2,null!=t&&(n.callback=t),null!==(t=ra(e,n,r))&&(Fc(t,0,r),na(t,e,r))}};function fs(e,t,r,n,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&qr(r,n)&&qr(i,a))}function hs(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ds.enqueueReplaceState(t,t.state,null)}function gs(e,t){var r=t;if("ref"in t)for(var n in r={},t)"ref"!==n&&(r[n]=t[n]);if(e=e.defaultProps)for(var i in r===t&&(r=c({},r)),e)void 0===r[i]&&(r[i]=e[i]);return r}var vs="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function bs(e){vs(e)}function xs(e){console.error(e)}function ks(e){vs(e)}function _s(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function ws(e,t,r){try{(0,e.onCaughtError)(r.value,{componentStack:r.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Cs(e,t,r){return(r=ta(r)).tag=3,r.payload={element:null},r.callback=function(){_s(e,t)},r}function Ps(e){return(e=ta(e)).tag=3,e}function zs(e,t,r,n){var i=r.type.getDerivedStateFromError;if("function"==typeof i){var a=n.value;e.payload=function(){return i(a)},e.callback=function(){ws(t,r,n)}}var o=r.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){ws(t,r,n),"function"!=typeof i&&(null===Pc?Pc=new Set([this]):Pc.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})})}var Es=Error(n(461)),Ts=!1;function js(e,t,r,n){t.child=null===e?es(t,null,r,n):Jo(t,e.child,r,n)}function Rs(e,t,r,n,i){r=r.render;var a=t.ref;if("ref"in n){var o={};for(var s in n)"ref"!==s&&(o[s]=n[s])}else o=n;return _i(t),n=Ea(e,t,r,o,a,i),s=Oa(),null===e||Ts?(ri&&s&&Zn(t),t.flags|=1,js(e,t,n,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Os(e,t,r,n,i){if(null===e){var a=r.type;return"function"!=typeof a||An(a)||void 0!==a.defaultProps||null!==r.compare?((e=Ln(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Is(e,t,a,n,i))}if(a=e.child,!Zs(e,i)){var o=a.memoizedProps;if((r=null!==(r=r.compare)?r:qr)(o,n)&&e.ref===t.ref)return Xs(e,t,i)}return t.flags|=1,(e=Dn(a,n)).ref=t.ref,e.return=t,t.child=e}function Is(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(qr(a,n)&&e.ref===t.ref){if(Ts=!1,t.pendingProps=n=a,!Zs(e,i))return t.lanes=e.lanes,Xs(e,t,i);131072&e.flags&&(Ts=!0)}}return Ls(e,t,r,n,i)}function As(e,t,r){var n=t.pendingProps,i=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode){if(128&t.flags){if(n=null!==a?a.baseLanes|r:r,null!==e){for(i=t.child=e.child,a=0;null!==i;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~n}else t.childLanes=0,t.child=null;return Ds(e,t,n,r)}if(!(536870912&r))return t.lanes=t.childLanes=536870912,Ds(e,t,null!==a?a.baseLanes|r:r,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Wi(0,null!==a?a.cachePool:null),null!==a?pa(t,a):fa(),is(t)}else null!==a?(Wi(0,a.cachePool),pa(t,a),os(),t.memoizedState=null):(null!==e&&Wi(0,null),fa(),os());return js(e,t,i,r),t.child}function Ds(e,t,r,n){var i=Ni();return i=null===i?null:{parent:Ti._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},null!==e&&Wi(0,null),fa(),is(t),null!==e&&xi(e,t,n,!0),null}function Ms(e,t){var r=t.ref;if(null===r)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof r&&"object"!=typeof r)throw Error(n(284));null!==e&&e.ref===r||(t.flags|=4194816)}}function Ls(e,t,r,n,i){return _i(t),r=Ea(e,t,r,n,void 0,i),n=Oa(),null===e||Ts?(ri&&n&&Zn(t),t.flags|=1,js(e,t,r,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Fs(e,t,r,n,i,a){return _i(t),t.updateQueue=null,r=ja(t,n,r,i),Ta(e),n=Oa(),null===e||Ts?(ri&&n&&Zn(t),t.flags|=1,js(e,t,r,a),t.child):(Ia(e,t,a),Xs(e,t,a))}function Ns(e,t,r,n,i){if(_i(t),null===t.stateNode){var a=Rn,o=r.contextType;"object"==typeof o&&null!==o&&(a=wi(o)),a=new r(n,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ds,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=n,a.state=t.memoizedState,a.refs={},Ji(t),o=r.contextType,a.context="object"==typeof o&&null!==o?wi(o):Rn,a.state=t.memoizedState,"function"==typeof(o=r.getDerivedStateFromProps)&&(us(t,r,o,n),a.state=t.memoizedState),"function"==typeof r.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&ds.enqueueReplaceState(a,a.state,null),sa(t,n,a,i),oa(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=gs(r,s);a.props=l;var c=a.context,u=r.contextType;o=Rn,"object"==typeof u&&null!==u&&(o=wi(u));var d=r.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||c!==o)&&hs(t,a,n,o),Zi=!1;var p=t.memoizedState;a.state=p,sa(t,n,a,i),oa(),c=t.memoizedState,s||p!==c||Zi?("function"==typeof d&&(us(t,r,d,n),c=t.memoizedState),(l=Zi||fs(t,r,l,n,p,c,o))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=o,n=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,ea(e,t),u=gs(r,o=t.memoizedProps),a.props=u,d=t.pendingProps,p=a.context,c=r.contextType,l=Rn,"object"==typeof c&&null!==c&&(l=wi(c)),(c="function"==typeof(s=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==d||p!==l)&&hs(t,a,n,l),Zi=!1,p=t.memoizedState,a.state=p,sa(t,n,a,i),oa();var f=t.memoizedState;o!==d||p!==f||Zi||null!==e&&null!==e.dependencies&&ki(e.dependencies)?("function"==typeof s&&(us(t,r,s,n),f=t.memoizedState),(u=Zi||fs(t,r,u,n,p,f,l)||null!==e&&null!==e.dependencies&&ki(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return a=n,Ms(e,t),n=!!(128&t.flags),a||n?(a=t.stateNode,r=n&&"function"!=typeof r.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&n?(t.child=Jo(t,e.child,null,i),t.child=Jo(t,null,r,i)):js(e,t,r,i),t.memoizedState=a.state,e=t.child):e=Xs(e,t,i),e}function Ws(e,t,r,n){return ui(),t.flags|=256,js(e,t,r,n),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:$i()}}function Hs(e,t,r){return e=null!==e?e.childLanes&~r:0,t&&(e|=bc),e}function Vs(e,t,r){var i,a=t.pendingProps,o=!1,s=!!(128&t.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&ls.current)),i&&(o=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(ri){if(o?ns(t):os(),ri){var l,c=ti;if(l=c){e:{for(l=c,c=ii;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=yd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Yn?{id:Gn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},(l=In(18,null,null,0)).stateNode=c,l.return=t,t.child=l,ei=t,ti=null,l=!0):l=!1}l||oi(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return bd(c)?t.lanes=32:t.lanes=536870912,null;ss(t)}return c=a.children,a=a.fallback,o?(os(),c=qs({mode:"hidden",children:c},o=t.mode),a=Fn(a,o,r,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(o=t.child).memoizedState=Bs(r),o.childLanes=Hs(e,i,r),t.memoizedState=$s,a):(ns(t),Us(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(ns(t),t.flags&=-257,t=Ys(e,t,r)):null!==t.memoizedState?(os(),t.child=e.child,t.flags|=128,t=null):(os(),o=a.fallback,c=t.mode,a=qs({mode:"visible",children:a.children},c),(o=Fn(o,c,r,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Jo(t,e.child,null,r),(a=t.child).memoizedState=Bs(r),a.childLanes=Hs(e,i,r),t.memoizedState=$s,t=o);else if(ns(t),bd(c)){if(i=c.nextSibling&&c.nextSibling.dataset)var u=i.dgst;i=u,(a=Error(n(419))).stack="",a.digest=i,pi({value:a,source:null,stack:null}),t=Ys(e,t,r)}else if(Ts||xi(e,t,r,!1),i=0!==(r&e.childLanes),Ts||i){if(null!==(i=ac)&&0!==(a=0!==((a=42&(a=r&-r)?1:Ce(a))&(i.suspendedLanes|r))?0:a)&&a!==l.retryLane)throw l.retryLane=a,En(e,a),Fc(i,0,a),Es;"$?"===c.data||Qc(),t=Ys(e,t,r)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ti=yd(c.nextSibling),ei=t,ri=!0,ni=null,ii=!1,null!==e&&(Un[qn++]=Gn,Un[qn++]=Qn,Un[qn++]=Yn,Gn=e.id,Qn=e.overflow,Yn=t),(t=Us(t,a.children)).flags|=4096);return t}return o?(os(),o=a.fallback,c=t.mode,u=(l=e.child).sibling,(a=Dn(l,{mode:"hidden",children:a.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?o=Dn(u,o):(o=Fn(o,c,r,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,null===(c=e.child.memoizedState)?c=Bs(r):(null!==(l=c.cachePool)?(u=Ti._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=$i(),c={baseLanes:c.baseLanes|r,cachePool:l}),o.memoizedState=c,o.childLanes=Hs(e,i,r),t.memoizedState=$s,a):(ns(t),e=(r=e.child).sibling,(r=Dn(r,{mode:"visible",children:a.children})).return=t,r.sibling=null,null!==e&&(null===(i=t.deletions)?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function Us(e,t){return(t=qs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function qs(e,t){return(e=In(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ys(e,t,r){return Jo(t,e.child,null,r),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),bi(e.return,t,r)}function Qs(e,t,r,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function Ks(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(js(e,t,n.children,r),2&(n=ls.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,r,t);else if(19===e.tag)Gs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}switch(F(ls,n),i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===cs(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Qs(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===cs(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Qs(t,!0,r,null,a);break;case"together":Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),gc|=t.lanes,0===(r&t.childLanes)){if(null===e)return null;if(xi(e,t,r,!1),0===(r&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Dn(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Dn(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Zs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ki(e))}function Js(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ts=!0;else{if(!(Zs(e,r)||128&t.flags))return Ts=!1,function(e,t,r){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),mi(0,Ti,e.memoizedState.cache),ui();break;case 27:case 5:U(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:mi(0,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(null!==n)return null!==n.dehydrated?(ns(t),t.flags|=128,null):0!==(r&t.child.childLanes)?Vs(e,t,r):(ns(t),null!==(e=Xs(e,t,r))?e.sibling:null);ns(t);break;case 19:var i=!!(128&e.flags);if((n=0!==(r&t.childLanes))||(xi(e,t,r,!1),n=0!==(r&t.childLanes)),i){if(n)return Ks(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(ls,ls.current),n)break;return null;case 22:case 23:return t.lanes=0,As(e,t,r);case 24:mi(0,Ti,e.memoizedState.cache)}return Xs(e,t,r)}(e,t,r);Ts=!!(131072&e.flags)}else Ts=!1,ri&&1048576&t.flags&&Xn(t,Vn,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,a=i._init;if(i=a(i._payload),t.type=i,"function"!=typeof i){if(null!=i){if((a=i.$$typeof)===y){t.tag=11,t=Rs(null,t,i,e,r);break e}if(a===_){t.tag=14,t=Os(null,t,i,e,r);break e}}throw t=T(i)||i,Error(n(306,t,""))}An(i)?(e=gs(i,e),t.tag=1,t=Ns(null,t,i,e,r)):(t.tag=0,t=Ls(null,t,i,e,r))}return t;case 0:return Ls(e,t,t.type,t.pendingProps,r);case 1:return Ns(e,t,i=t.type,a=gs(i,t.pendingProps),r);case 3:e:{if(H(t,t.stateNode.containerInfo),null===e)throw Error(n(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,ea(e,t),sa(t,i,null,r);var s=t.memoizedState;if(i=s.cache,mi(0,Ti,i),i!==o.cache&&yi(t,[Ti],r,!0),oa(),i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ws(e,t,i,r);break e}if(i!==a){pi(a=kn(Error(n(424)),t)),t=Ws(e,t,i,r);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ti=yd(e.firstChild),ei=t,ri=!0,ni=null,ii=!0,r=es(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ui(),i===a){t=Xs(e,t,r);break e}js(e,t,i,r)}t=t.child}return t;case 26:return Ms(e,t),null===e?(r=jd(t.type,null,t.pendingProps,null))?t.memoizedState=r:ri||(r=t.type,e=t.pendingProps,(i=ad($.current).createElement(r))[Te]=t,i[je]=e,rd(i,r,e),Be(i),t.stateNode=i):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return U(t),null===e&&ri&&(i=t.stateNode=_d(t.type,t.pendingProps,$.current),ei=t,ii=!0,a=ti,gd(t.type)?(xd=a,ti=yd(i.firstChild)):ti=a),js(e,t,t.pendingProps.children,r),Ms(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ri&&((a=i=ti)&&(null!==(i=function(e,t,r,n){for(;1===e.nodeType;){var i=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(n){if(!e[Me])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===a)return e}if(null===(e=yd(e.nextSibling)))break}return null}(i,t.type,t.pendingProps,ii))?(t.stateNode=i,ei=t,ti=yd(i.firstChild),ii=!1,a=!0):a=!1),a||oi(t)),U(t),a=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,i=o.children,ld(a,o)?i=null:null!==s&&ld(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=Ea(e,t,Ra,null,null,r),Kd._currentValue=a),Ms(e,t),js(e,t,i,r),t.child;case 6:return null===e&&ri&&((e=r=ti)&&(null!==(r=function(e,t,r){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!r)return null;if(null===(e=yd(e.nextSibling)))return null}return e}(r,t.pendingProps,ii))?(t.stateNode=r,ei=t,ti=null,e=!0):e=!1),e||oi(t)),null;case 13:return Vs(e,t,r);case 4:return H(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Jo(t,null,i,r):js(e,t,i,r),t.child;case 11:return Rs(e,t,t.type,t.pendingProps,r);case 7:return js(e,t,t.pendingProps,r),t.child;case 8:case 12:return js(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,mi(0,t.type,i.value),js(e,t,i.children,r),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,_i(t),i=i(a=wi(a)),t.flags|=1,js(e,t,i,r),t.child;case 14:return Os(e,t,t.type,t.pendingProps,r);case 15:return Is(e,t,t.type,t.pendingProps,r);case 19:return Ks(e,t,r);case 31:return i=t.pendingProps,r=t.mode,i={mode:i.mode,children:i.children},null===e?((r=qs(i,r)).ref=t.ref,t.child=r,r.return=t,t=r):((r=Dn(e.child,i)).ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return As(e,t,r);case 24:return _i(t),i=wi(Ti),null===e?(null===(a=Ni())&&(a=ac,o=ji(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=r),a=o),t.memoizedState={parent:i,cache:a},Ji(t),mi(0,Ti,a)):(0!==(e.lanes&r)&&(ea(e,t),sa(t,null,null,r),oa()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),mi(0,Ti,i)):(i=o.cache,mi(0,Ti,i),i!==a.cache&&yi(t,[Ti],r,!0))),js(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(n(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Hd(t)){if(null!==(t=ts.current)&&((4194048&sc)===sc?null!==rs:(62914560&sc)!==sc&&!(536870912&sc)||t!==rs))throw Qi=Ui,Hi;e.flags|=8192}}function rl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?xe():536870912,e.lanes|=t,yc|=t)}function nl(e,t){if(!ri)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function il(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=65011712&i.subtreeFlags,n|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function al(e,t,r){var i=t.pendingProps;switch(Jn(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return il(t),null;case 3:return r=t.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vi(Ti),V(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ci(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,di())),il(t),null;case 26:return r=t.memoizedState,null===e?(el(t),null!==r?(il(t),tl(t,r)):(il(t),t.flags&=-16777217)):r?r!==e.memoizedState?(el(t),il(t),tl(t,r)):(il(t),t.flags&=-16777217):(e.memoizedProps!==i&&el(t),il(t),t.flags&=-16777217),null;case 27:q(t),r=$.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(n(166));return il(t),null}e=N.current,ci(t)?si(t):(e=_d(a,i,r),t.stateNode=e,el(t))}return il(t),null;case 5:if(q(t),r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(n(166));return il(t),null}if(e=N.current,ci(t))si(t);else{switch(a=ad($.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof i.is?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e="string"==typeof i.is?a.createElement(r,{is:i.is}):a.createElement(r)}}e[Te]=t,e[je]=i;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(rd(e,r,i),r){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return il(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(e=$.current,ci(t)){if(e=t.stateNode,r=t.memoizedProps,i=null,null!==(a=ei))switch(a.tag){case 27:case 5:i=a.memoizedProps}e[Te]=t,(e=!!(e.nodeValue===r||null!==i&&!0===i.suppressHydrationWarning||Zu(e.nodeValue,r)))||oi(t)}else(e=ad(e).createTextNode(i))[Te]=t,t.stateNode=e}return il(t),null;case 13:if(i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ci(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(n(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(n(317));a[Te]=t}else ui(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;il(t),a=!1}else a=di(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(ss(t),t):(ss(t),null)}if(ss(t),128&t.flags)return t.lanes=r,t;if(r=null!==i,e=null!==e&&null!==e.memoizedState,r){a=null,null!==(i=t.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(a=i.alternate.memoizedState.cachePool.pool);var o=null;null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),rl(t,t.updateQueue),il(t),null;case 4:return V(),null===e&&Bu(t.stateNode.containerInfo),il(t),null;case 10:return vi(t.type),il(t),null;case 19:if(L(ls),null===(a=t.memoizedState))return il(t),null;if(i=!!(128&t.flags),null===(o=a.rendering))if(i)nl(a,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=cs(e))){for(t.flags|=128,nl(a,!1),e=o.updateQueue,t.updateQueue=e,rl(t,e),t.subtreeFlags=0,e=r,r=t.child;null!==r;)Mn(r,e),r=r.sibling;return F(ls,1&ls.current|2),t.child}e=e.sibling}null!==a.tail&&Z()>Sc&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=cs(o))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,rl(t,e),nl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!ri)return il(t),null}else 2*Z()-a.renderingStartTime>Sc&&536870912!==r&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Z(),t.sibling=null,e=ls.current,F(ls,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return ss(t),ha(),i=null!==t.memoizedState,null!==e?null!==e.memoizedState!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?!!(536870912&r)&&!(128&t.flags)&&(il(t),6&t.subtreeFlags&&(t.flags|=8192)):il(t),null!==(r=t.updateQueue)&&rl(t,r.retryQueue),r=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),i=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(i=t.memoizedState.cachePool.pool),i!==r&&(t.flags|=2048),null!==e&&L(Fi),null;case 24:return r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),vi(Ti),il(t),null;case 25:case 30:return null}throw Error(n(156,t.tag))}function ol(e,t){switch(Jn(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Ti),V(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return q(t),null;case 13:if(ss(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ui()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return L(ls),null;case 4:return V(),null;case 10:return vi(t.type),null;case 22:case 23:return ss(t),ha(),null!==e&&L(Fi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Ti),null;default:return null}}function sl(e,t){switch(Jn(t),t.tag){case 3:vi(Ti),V();break;case 26:case 27:case 5:q(t);break;case 4:V();break;case 13:ss(t);break;case 19:L(ls);break;case 10:vi(t.type);break;case 22:case 23:ss(t),ha(),null!==e&&L(Fi);break;case 24:vi(Ti)}}function ll(e,t){try{var r=t.updateQueue,n=null!==r?r.lastEffect:null;if(null!==n){var i=n.next;r=i;do{if((r.tag&e)===e){n=void 0;var a=r.create,o=r.inst;n=a(),o.destroy=n}r=r.next}while(r!==i)}}catch(s){pu(t,t.return,s)}}function cl(e,t,r){try{var n=t.updateQueue,i=null!==n?n.lastEffect:null;if(null!==i){var a=i.next;n=a;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(void 0!==s){o.destroy=void 0,i=t;var l=r,c=s;try{c()}catch(u){pu(i,l,u)}}}n=n.next}while(n!==a)}}catch(u){pu(t,t.return,u)}}function ul(e){var t=e.updateQueue;if(null!==t){var r=e.stateNode;try{ca(t,r)}catch(n){pu(e,e.return,n)}}}function dl(e,t,r){r.props=gs(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){pu(e,t,n)}}function pl(e,t){try{var r=e.ref;if(null!==r){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}"function"==typeof r?e.refCleanup=r(n):r.current=n}}catch(i){pu(e,t,i)}}function fl(e,t){var r=e.ref,n=e.refCleanup;if(null!==r)if("function"==typeof n)try{n()}catch(i){pu(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof r)try{r(null)}catch(a){pu(e,t,a)}else r.current=null}function hl(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(i){pu(e,e.return,i)}}function gl(e,t,r){try{var i=e.stateNode;!function(e,t,r,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,s=null,l=null,c=null,u=null,d=null;for(h in r){var p=r[h];if(r.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":c=p;default:i.hasOwnProperty(h)||ed(e,t,h,null,i,p)}}for(var f in i){var h=i[f];if(p=r[f],i.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":o=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,t));break;default:h!==p&&ed(e,t,f,h,i,p)}}return void ft(e,s,l,c,u,d,o,a);case"select":for(o in h=s=l=f=null,r)if(c=r[o],r.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":h=c;default:i.hasOwnProperty(o)||ed(e,t,o,null,i,c)}for(a in i)if(o=i[a],c=r[a],i.hasOwnProperty(a)&&(null!=o||null!=c))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==c&&ed(e,t,a,o,i,c)}return t=l,r=s,i=h,void(null!=f?mt(e,!!r,f,!1):!!i!=!!r&&(null!=t?mt(e,!!r,t,!0):mt(e,!!r,r?[]:"",!1)));case"textarea":for(l in h=f=null,r)if(a=r[l],r.hasOwnProperty(l)&&null!=a&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,i,a)}for(s in i)if(a=i[s],o=r[s],i.hasOwnProperty(s)&&(null!=a||null!=o))switch(s){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(n(91));break;default:a!==o&&ed(e,t,s,a,i,o)}return void vt(e,f,h);case"option":for(var g in r)f=r[g],r.hasOwnProperty(g)&&null!=f&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,f));for(c in i)f=i[c],h=r[c],!i.hasOwnProperty(c)||f===h||null==f&&null==h||("selected"===c?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:ed(e,t,c,f,i,h));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 m in r)f=r[m],r.hasOwnProperty(m)&&null!=f&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,f);for(u in i)if(f=i[u],h=r[u],i.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,t));break;default:ed(e,t,u,f,i,h)}return;default:if(wt(t)){for(var v in r)f=r[v],r.hasOwnProperty(v)&&void 0!==f&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,f);for(d in i)f=i[d],h=r[d],!i.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||td(e,t,d,f,i,h);return}}for(var b in r)f=r[b],r.hasOwnProperty(b)&&null!=f&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,f);for(p in i)f=i[p],h=r[p],!i.hasOwnProperty(p)||f===h||null==f&&null==h||ed(e,t,p,f,i,h)}(i,e.type,r,t),i[je]=t}catch(a){pu(e,e.return,a)}}function ml(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&gd(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&gd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(e,t):((t=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==n&&(27===n&&gd(e.type)&&(r=e.stateNode,t=null),null!==(e=e.child)))for(bl(e,t,r),e=e.sibling;null!==e;)bl(e,t,r),e=e.sibling}function yl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&(27===n&&gd(e.type)&&(r=e.stateNode),null!==(e=e.child)))for(yl(e,t,r),e=e.sibling;null!==e;)yl(e,t,r),e=e.sibling}function xl(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rd(t,n,r),t[Te]=e,t[je]=r}catch(a){pu(e,e.return,a)}}var kl=!1,_l=!1,wl=!1,Sl="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Pl(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Nl(e,r),4&n&&ll(5,r);break;case 1:if(Nl(e,r),4&n)if(e=r.stateNode,null===t)try{e.componentDidMount()}catch(o){pu(r,r.return,o)}else{var i=gs(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){pu(r,r.return,s)}}64&n&&ul(r),512&n&&pl(r,r.return);break;case 3:if(Nl(e,r),64&n&&null!==(e=r.updateQueue)){if(t=null,null!==r.child)switch(r.child.tag){case 27:case 5:case 1:t=r.child.stateNode}try{ca(e,t)}catch(o){pu(r,r.return,o)}}break;case 27:null===t&&4&n&&xl(r);case 26:case 5:Nl(e,r),null===t&&4&n&&hl(r),512&n&&pl(r,r.return);break;case 12:Nl(e,r);break;case 13:Nl(e,r),4&n&&Ol(e,r),64&n&&null!==(e=r.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var r=e.ownerDocument;if("$?"!==e.data||"complete"===r.readyState)t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}(e,r=mu.bind(null,r));break;case 22:if(!(n=null!==r.memoizedState||kl)){t=null!==t&&null!==t.memoizedState||_l,i=kl;var a=_l;kl=n,(_l=t)&&!a?$l(e,r,!!(8772&r.subtreeFlags)):Nl(e,r),kl=i,_l=a}break;case 30:break;default:Nl(e,r)}}function zl(e){var t=e.alternate;null!==t&&(e.alternate=null,zl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Le(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var El=null,Tl=!1;function jl(e,t,r){for(r=r.child;null!==r;)Rl(e,t,r),r=r.sibling}function Rl(e,t,r){if(le&&"function"==typeof le.onCommitFiberUnmount)try{le.onCommitFiberUnmount(se,r)}catch(a){}switch(r.tag){case 26:_l||fl(r,t),jl(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode).parentNode.removeChild(r);break;case 27:_l||fl(r,t);var n=El,i=Tl;gd(r.type)&&(El=r.stateNode,Tl=!1),jl(e,t,r),wd(r.stateNode),El=n,Tl=i;break;case 5:_l||fl(r,t);case 6:if(n=El,i=Tl,El=null,jl(e,t,r),Tl=i,null!==(El=n))if(Tl)try{(9===El.nodeType?El.body:"HTML"===El.nodeName?El.ownerDocument.body:El).removeChild(r.stateNode)}catch(o){pu(r,t,o)}else try{El.removeChild(r.stateNode)}catch(o){pu(r,t,o)}break;case 18:null!==El&&(Tl?(md(9===(e=El).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,r.stateNode),Tp(e)):md(El,r.stateNode));break;case 4:n=El,i=Tl,El=r.stateNode.containerInfo,Tl=!0,jl(e,t,r),El=n,Tl=i;break;case 0:case 11:case 14:case 15:_l||cl(2,r,t),_l||cl(4,r,t),jl(e,t,r);break;case 1:_l||(fl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount&&dl(r,t,n)),jl(e,t,r);break;case 21:jl(e,t,r);break;case 22:_l=(n=_l)||null!==r.memoizedState,jl(e,t,r),_l=n;break;default:jl(e,t,r)}}function Ol(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Tp(e)}catch(r){pu(t,t.return,r)}}function Il(e,t){var r=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Sl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Sl),t;default:throw Error(n(435,e.tag))}}(e);t.forEach(function(t){var n=vu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}function Al(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var a=r[i],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(gd(l.type)){El=l.stateNode,Tl=!1;break e}break;case 5:El=l.stateNode,Tl=!1;break e;case 3:case 4:El=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===El)throw Error(n(160));Rl(o,s,a),El=null,Tl=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ml(t,e),t=t.sibling}var Dl=null;function Ml(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Al(t,e),Ll(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),64&i&&kl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===r?i:r.concat(i));break;case 26:var a=Dl;if(Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),4&i){var o=null!==r?r.memoizedState:null;if(i=e.memoizedState,null===r)if(null===i)if(null===e.stateNode){e:{i=e.type,r=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":(!(o=a.getElementsByTagName("title")[0])||o[Me]||o[Te]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(i),a.head.insertBefore(o,a.querySelector("head > title"))),rd(o,i,r),o[Te]=e,Be(o),i=o;break e;case"link":var s=$d("link","href",a).get(i+(r.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==r.href||""===r.href?null:r.href)&&o.getAttribute("rel")===(null==r.rel?null:r.rel)&&o.getAttribute("title")===(null==r.title?null:r.title)&&o.getAttribute("crossorigin")===(null==r.crossOrigin?null:r.crossOrigin)){s.splice(l,1);break t}rd(o=a.createElement(i),i,r),a.head.appendChild(o);break;case"meta":if(s=$d("meta","content",a).get(i+(r.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==r.content?null:""+r.content)&&o.getAttribute("name")===(null==r.name?null:r.name)&&o.getAttribute("property")===(null==r.property?null:r.property)&&o.getAttribute("http-equiv")===(null==r.httpEquiv?null:r.httpEquiv)&&o.getAttribute("charset")===(null==r.charSet?null:r.charSet)){s.splice(l,1);break t}rd(o=a.createElement(i),i,r),a.head.appendChild(o);break;default:throw Error(n(468,i))}o[Te]=e,Be(o),i=o}e.stateNode=i}else Bd(a,e.type,e.stateNode);else e.stateNode=Md(a,i,e.memoizedProps);else o!==i?(null===o?null!==r.stateNode&&(r=r.stateNode).parentNode.removeChild(r):o.count--,null===i?Bd(a,e.type,e.stateNode):Md(a,i,e.memoizedProps)):null===i&&null!==e.stateNode&&gl(e,e.memoizedProps,r.memoizedProps)}break;case 27:Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),null!==r&&4&i&&gl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),32&e.flags){a=e.stateNode;try{yt(a,"")}catch(h){pu(e,e.return,h)}}4&i&&null!=e.stateNode&&gl(e,a=e.memoizedProps,null!==r?r.memoizedProps:a),1024&i&&(wl=!0);break;case 6:if(Al(t,e),Ll(e),4&i){if(null===e.stateNode)throw Error(n(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(h){pu(e,e.return,h)}}break;case 3:if(Wd=null,a=Dl,Dl=Pd(t.containerInfo),Al(t,e),Dl=a,Ll(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Tp(t.containerInfo)}catch(h){pu(e,e.return,h)}wl&&(wl=!1,Fl(e));break;case 4:i=Dl,Dl=Pd(e.stateNode.containerInfo),Al(t,e),Ll(e),Dl=i;break;case 12:default:Al(t,e),Ll(e);break;case 13:Al(t,e),Ll(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==r&&null!==r.memoizedState)&&(wc=Z()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));break;case 22:a=null!==e.memoizedState;var c=null!==r&&null!==r.memoizedState,u=kl,d=_l;if(kl=u||a,_l=d||c,Al(t,e),_l=d,kl=u,Ll(e),8192&i)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===r||c||kl||_l||Wl(e)),r=null,t=e;;){if(5===t.tag||26===t.tag){if(null===r){c=r=t;try{if(o=c.stateNode,a)"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(h){pu(c,c.return,h)}}}else if(6===t.tag){if(null===r){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(h){pu(c,c.return,h)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(r=i.retryQueue)&&(i.retryQueue=null,Il(e,r));break;case 19:Al(t,e),Ll(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));case 30:case 21:}}function Ll(e){var t=e.flags;if(2&t){try{for(var r,i=e.return;null!==i;){if(ml(i)){r=i;break}i=i.return}if(null==r)throw Error(n(160));switch(r.tag){case 27:var a=r.stateNode;yl(e,vl(e),a);break;case 5:var o=r.stateNode;32&r.flags&&(yt(o,""),r.flags&=-33),yl(e,vl(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;bl(e,vl(e),s);break;default:throw Error(n(161))}}catch(l){pu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Fl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Fl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Pl(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),Wl(t);break;case 1:fl(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&dl(t,t.return,r),Wl(t);break;case 27:wd(t.stateNode);case 26:case 5:fl(t,t.return),Wl(t);break;case 22:null===t.memoizedState&&Wl(t);break;default:Wl(t)}e=e.sibling}}function $l(e,t,r){for(r=r&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var n=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:$l(i,a,r),ll(4,a);break;case 1:if($l(i,a,r),"function"==typeof(i=(n=a).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){pu(n,n.return,c)}if(null!==(i=(n=a).updateQueue)){var s=n.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)la(l[i],s)}catch(c){pu(n,n.return,c)}}r&&64&o&&ul(a),pl(a,a.return);break;case 27:xl(a);case 26:case 5:$l(i,a,r),r&&null===n&&4&o&&hl(a),pl(a,a.return);break;case 12:$l(i,a,r);break;case 13:$l(i,a,r),r&&4&o&&Ol(i,a);break;case 22:null===a.memoizedState&&$l(i,a,r),pl(a,a.return);break;case 30:break;default:$l(i,a,r)}t=t.sibling}}function Bl(e,t){var r=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==r&&(null!=e&&e.refCount++,null!=r&&Ri(r))}function Hl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ri(e))}function Vl(e,t,r,n){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Ul(e,t,r,n),t=t.sibling}function Ul(e,t,r,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Vl(e,t,r,n),2048&i&&ll(9,t);break;case 1:case 13:default:Vl(e,t,r,n);break;case 3:Vl(e,t,r,n),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ri(e)));break;case 12:if(2048&i){Vl(e,t,r,n),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;"function"==typeof s&&s(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){pu(t,t.return,l)}}else Vl(e,t,r,n);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,null!==t.memoizedState?2&a._visibility?Vl(e,t,r,n):Yl(e,t):2&a._visibility?Vl(e,t,r,n):(a._visibility|=2,ql(e,t,r,n,!!(10256&t.subtreeFlags))),2048&i&&Bl(o,t);break;case 24:Vl(e,t,r,n),2048&i&&Hl(t.alternate,t)}}function ql(e,t,r,n,i){for(i=i&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,o=t,s=r,l=n,c=o.flags;switch(o.tag){case 0:case 11:case 15:ql(a,o,s,l,i),ll(8,o);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?2&u._visibility?ql(a,o,s,l,i):Yl(a,o):(u._visibility|=2,ql(a,o,s,l,i)),i&&2048&c&&Bl(o.alternate,o);break;case 24:ql(a,o,s,l,i),i&&2048&c&&Hl(o.alternate,o);break;default:ql(a,o,s,l,i)}t=t.sibling}}function Yl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,n=t,i=n.flags;switch(n.tag){case 22:Yl(r,n),2048&i&&Bl(n.alternate,n);break;case 24:Yl(r,n),2048&i&&Hl(n.alternate,n);break;default:Yl(r,n)}t=t.sibling}}var Gl=8192;function Ql(e){if(e.subtreeFlags&Gl)for(e=e.child;null!==e;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 26:Ql(e),e.flags&Gl&&null!==e.memoizedState&&function(e,t,r){if(null===Vd)throw Error(n(475));var i=Vd;if(!("stylesheet"!==t.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&t.state.loading)){if(null===t.instance){var a=Rd(r.href),o=e.querySelector(Od(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(i.count++,i=qd.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=o,void Be(o);o=e.ownerDocument||e,r=Id(r),(a=Sd.get(a))&&Fd(r,a),Be(o=o.createElement("link"));var s=o;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rd(o,"link",r),t.instance=o}null===i.stylesheets&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(i.count++,t=qd.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}(Dl,e.memoizedState,e.memoizedProps);break;case 5:default:Ql(e);break;case 3:case 4:var t=Dl;Dl=Pd(e.stateNode.containerInfo),Ql(e),Dl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Gl,Gl=16777216,Ql(e),Gl=t):Ql(e))}}function Xl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var r=0;r<t.length;r++){var n=t[r];Cl=n,tc(n,e)}Xl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Zl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Zl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zl(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var r=0;r<t.length;r++){var n=t[r];Cl=n,tc(n,e)}Xl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cl(8,t,t.return),ec(t);break;case 22:2&(r=t.stateNode)._visibility&&(r._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Cl;){var r=Cl;switch(r.tag){case 0:case 11:case 15:cl(8,r,t);break;case 23:case 22:if(null!==r.memoizedState&&null!==r.memoizedState.cachePool){var n=r.memoizedState.cachePool.pool;null!=n&&n.refCount++}break;case 24:Ri(r.memoizedState.cache)}if(null!==(n=r.child))n.return=r,Cl=n;else e:for(r=e;null!==Cl;){var i=(n=Cl).sibling,a=n.return;if(zl(n),n===r){Cl=null;break e}if(null!==i){i.return=a,Cl=i;break e}Cl=a}}}var rc={getCacheForType:function(e){var t=wi(Ti),r=t.data.get(e);return void 0===r&&(r=e(),t.data.set(e,r)),r}},nc="function"==typeof WeakMap?WeakMap:Map,ic=0,ac=null,oc=null,sc=0,lc=0,cc=null,uc=!1,dc=!1,pc=!1,fc=0,hc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,kc=null,_c=!1,wc=0,Sc=1/0,Cc=null,Pc=null,zc=0,Ec=null,Tc=null,jc=0,Rc=0,Oc=null,Ic=null,Ac=0,Dc=null;function Mc(){return 2&ic&&0!==sc?sc&-sc:null!==R.T?0!==Ai?Ai:Ru():ze()}function Lc(){0===bc&&(bc=536870912&sc&&!ri?536870912:ye());var e=ts.current;return null!==e&&(e.flags|=32),bc}function Fc(e,t,r){(e!==ac||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Bc(e,sc,bc,!1)),_e(e,r),2&ic&&e===ac||(e===ac&&(!(2&ic)&&(mc|=r),4===hc&&Bc(e,sc,bc,!1)),Su(e))}function Nc(e,t,r){if(6&ic)throw Error(n(327));for(var i=!r&&!(124&t)&&0===(t&e.expiredLanes)||ve(e,t),a=i?function(e,t){var r=ic;ic|=2;var i=Yc(),a=Gc();ac!==e||sc!==t?(Cc=null,Sc=Z()+500,Uc(e,t)):dc=ve(e,t);e:for(;;)try{if(0!==lc&&null!==oc){t=oc;var o=cc;t:switch(lc){case 1:lc=0,cc=null,tu(e,t,o,1);break;case 2:case 9:if(qi(o)){lc=0,cc=null,eu(t);break}t=function(){2!==lc&&9!==lc||ac!==e||(lc=7),Su(e)},o.then(t,t);break e;case 3:lc=7;break e;case 4:lc=5;break e;case 7:qi(o)?(lc=0,cc=null,eu(t)):(lc=0,cc=null,tu(e,t,o,7));break;case 5:var s=null;switch(oc.tag){case 26:s=oc.memoizedState;case 5:case 27:var l=oc;if(!s||Hd(s)){lc=0,cc=null;var c=l.sibling;if(null!==c)oc=c;else{var u=l.return;null!==u?(oc=u,ru(u)):oc=null}break t}}lc=0,cc=null,tu(e,t,o,5);break;case 6:lc=0,cc=null,tu(e,t,o,6);break;case 8:Vc(),hc=6;break e;default:throw Error(n(462))}}Zc();break}catch(d){qc(e,d)}return gi=hi=null,R.H=i,R.A=a,ic=r,null!==oc?0:(ac=null,sc=0,Cn(),hc)}(e,t):Kc(e,t,!0),o=i;;){if(0===a){dc&&!i&&Bc(e,t,0,!1);break}if(r=e.current.alternate,!o||$c(r)){if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=xc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,s).flags|=256),2!==(s=Kc(l,s,!1))){if(pc&&!c){l.errorRecoveryDisabledLanes|=o,mc|=o,a=4;break e}o=kc,kc=a,null!==o&&(null===kc?kc=o:kc.push.apply(kc,o))}a=s}if(o=!1,2!==a)continue}}if(1===a){Uc(e,0),Bc(e,t,0,!0);break}e:{switch(i=e,o=a){case 0:case 1:throw Error(n(345));case 4:if((4194048&t)!==t)break;case 6:Bc(i,t,bc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&t)===t&&10<(a=wc+300-Z())){if(Bc(i,t,bc,!uc),0!==me(i,0,!0))break e;i.timeoutHandle=ud(Wc.bind(null,i,r,kc,Cc,_c,t,bc,mc,yc,uc,o,2,-0,0),a)}else Wc(i,r,kc,Cc,_c,t,bc,mc,yc,uc,o,0,-0,0)}break}a=Kc(e,t,!1),o=!1}Su(e)}function Wc(e,t,r,i,a,o,s,l,c,u,d,p,f,h){if(e.timeoutHandle=-1,(8192&(p=t.subtreeFlags)||!(16785408&~p))&&(Vd={stylesheets:null,count:0,unsuspend:Ud},Kl(t),null!==(p=function(){if(null===Vd)throw Error(n(475));var e=Vd;return e.stylesheets&&0===e.count&&Gd(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}())))return e.cancelPendingCommit=p(iu.bind(null,e,t,o,r,i,a,s,l,c,d,1,f,h)),void Bc(e,o,s,!u);iu(e,t,o,r,i,a,s,l,c)}function $c(e){for(var t=e;;){var r=t.tag;if((0===r||11===r||15===r)&&16384&t.flags&&null!==(r=t.updateQueue)&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ur(a(),i))return!1}catch(o){return!1}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bc(e,t,r,n){t&=~vc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var a=31-ue(i),o=1<<a;n[a]=-1,i&=~o}0!==r&&we(e,r,t)}function Hc(){return!!(6&ic)||(Cu(0),!1)}function Vc(){if(null!==oc){if(0===lc)var e=oc.return;else gi=hi=null,Aa(e=oc),qo=null,Yo=0,e=oc;for(;null!==e;)sl(e.alternate,e),e=e.return;oc=null}}function Uc(e,t){var r=e.timeoutHandle;-1!==r&&(e.timeoutHandle=-1,dd(r)),null!==(r=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,r()),Vc(),ac=e,oc=r=Dn(e.current,null),sc=t,lc=0,cc=null,uc=!1,dc=ve(e,t),pc=!1,yc=bc=vc=mc=gc=hc=0,kc=xc=null,_c=!1,8&t&&(t|=32&t);var n=e.entangledLanes;if(0!==n)for(e=e.entanglements,n&=t;0<n;){var i=31-ue(n),a=1<<i;t|=e[i],n&=~a}return fc=t,Cn(),r}function qc(e,t){ma=null,R.H=Bo,t===Bi||t===Vi?(t=Ki(),lc=3):t===Hi?(t=Ki(),lc=4):lc=t===Es?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===oc&&(hc=1,_s(e,kn(t,e.current)))}function Yc(){var e=R.H;return R.H=Bo,null===e?Bo:e}function Gc(){var e=R.A;return R.A=rc,e}function Qc(){hc=4,uc||(4194048&sc)!==sc&&null!==ts.current||(dc=!0),!(134217727&gc)&&!(134217727&mc)||null===ac||Bc(ac,sc,bc,!1)}function Kc(e,t,r){var n=ic;ic|=2;var i=Yc(),a=Gc();ac===e&&sc===t||(Cc=null,Uc(e,t)),t=!1;var o=hc;e:for(;;)try{if(0!==lc&&null!==oc){var s=oc,l=cc;switch(lc){case 8:Vc(),o=6;break e;case 3:case 2:case 9:case 6:null===ts.current&&(t=!0);var c=lc;if(lc=0,cc=null,tu(e,s,l,c),r&&dc){o=0;break e}break;default:c=lc,lc=0,cc=null,tu(e,s,l,c)}}Xc(),o=hc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,gi=hi=null,ic=n,R.H=i,R.A=a,null===oc&&(ac=null,sc=0,Cn()),o}function Xc(){for(;null!==oc;)Jc(oc)}function Zc(){for(;null!==oc&&!K();)Jc(oc)}function Jc(e){var t=Js(e.alternate,e,fc);e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function eu(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Fs(r,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=Fs(r,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:Aa(t);default:sl(r,t),t=Js(r,t=oc=Mn(t,fc),fc)}e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function tu(e,t,r,i){gi=hi=null,Aa(t),qo=null,Yo=0;var a=t.return;try{if(function(e,t,r,i,a){if(r.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(t=r.alternate)&&xi(t,r,a,!0),null!==(r=ts.current)){switch(r.tag){case 13:return null===rs?Qc():null===r.alternate&&0===hc&&(hc=3),r.flags&=-257,r.flags|=65536,r.lanes=a,i===Ui?r.flags|=16384:(null===(t=r.updateQueue)?r.updateQueue=new Set([i]):t.add(i),fu(e,i,a)),!1;case 22:return r.flags|=65536,i===Ui?r.flags|=16384:(null===(t=r.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=t):null===(r=t.retryQueue)?t.retryQueue=new Set([i]):r.add(i),fu(e,i,a)),!1}throw Error(n(435,r.tag))}return fu(e,i,a),Qc(),!1}if(ri)return null!==(t=ts.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==ai&&pi(kn(e=Error(n(422),{cause:i}),r))):(i!==ai&&pi(kn(t=Error(n(423),{cause:i}),r)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,i=kn(i,r),ia(e,a=Cs(e.stateNode,i,a)),4!==hc&&(hc=2)),!1;var o=Error(n(520),{cause:i});if(o=kn(o,r),null===xc?xc=[o]:xc.push(o),4!==hc&&(hc=2),null===t)return!0;i=kn(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,ia(r,e=Cs(r.stateNode,i,e)),!1;case 1:if(t=r.type,o=r.stateNode,!(128&r.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Pc&&Pc.has(o))))return r.flags|=65536,a&=-a,r.lanes|=a,zs(a=Ps(a),e,r,i),ia(r,a),!1}r=r.return}while(null!==r);return!1}(e,a,t,r,sc))return hc=1,_s(e,kn(r,e.current)),void(oc=null)}catch(o){if(null!==a)throw oc=a,o;return hc=1,_s(e,kn(r,e.current)),void(oc=null)}32768&t.flags?(ri||1===i?e=!0:dc||536870912&sc?e=!1:(uc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=ts.current)&&13===i.tag&&(i.flags|=16384)),nu(t,e)):ru(t)}function ru(e){var t=e;do{if(32768&t.flags)return void nu(t,uc);e=t.return;var r=al(t.alternate,t,fc);if(null!==r)return void(oc=r);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===hc&&(hc=5)}function nu(e,t){do{var r=ol(e.alternate,e);if(null!==r)return r.flags&=32767,void(oc=r);if(null!==(r=e.return)&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&null!==(e=e.sibling))return void(oc=e);oc=e=r}while(null!==e);hc=6,oc=null}function iu(e,t,r,i,a,o,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==zc);if(6&ic)throw Error(n(327));if(null!==t){if(t===e.current)throw Error(n(177));if(o=t.lanes|t.childLanes,function(e,t,r,n,i,a){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=o&~r;0<r;){var u=31-ue(r),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}r&=~d}0!==n&&we(e,n,0),0!==a&&0===i&&0!==e.tag&&(e.suspendedLanes|=a&~(o&~t))}(e,r,o|=Sn,s,l,c),e===ac&&(oc=ac=null,sc=0),Tc=t,Ec=e,jc=r,Rc=o,Oc=a,Ic=i,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,G(re,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&t.flags),13878&t.subtreeFlags||i){i=R.T,R.T=null,a=O.p,O.p=2,s=ic,ic|=4;try{!function(e,t){if(e=e.containerInfo,nd=ip,Xr(e=Kr(e))){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;e:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(l=s+a),p!==o||0!==i&&3!==p.nodeType||(c=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break e;if(f===r&&++u===a&&(l=s),f===o&&++d===i&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(id={focusedElem:e,selectionRange:r},ip=!1,Cl=t;null!==Cl;)if(e=(t=Cl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cl=e;else for(;null!==Cl;){switch(o=(t=Cl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,r=t,a=o.memoizedProps,o=o.memoizedState,i=r.stateNode;try{var g=gs(r.type,a);e=i.getSnapshotBeforeUpdate(g,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(m){pu(r,r.return,m)}}break;case 3:if(1024&e)if(9===(r=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===r)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(n(163))}if(null!==(e=t.sibling)){e.return=t.return,Cl=e;break}Cl=t.return}}(e,t)}finally{ic=s,O.p=a,R.T=i}}zc=1,au(),ou(),su()}}function au(){if(1===zc){zc=0;var e=Ec,t=Tc,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=R.T,R.T=null;var n=O.p;O.p=2;var i=ic;ic|=4;try{Ml(t,e);var a=id,o=Kr(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(null!==l&&Xr(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!f.extend&&g>m&&(o=m,m=g,g=o);var v=Gr(s,g),b=Gr(s,m);if(v&&b&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),f.removeAllRanges(),g>m?(f.addRange(y),f.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),f.addRange(y))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}ip=!!nd,id=nd=null}finally{ic=i,O.p=n,R.T=r}}e.current=t,zc=2}}function ou(){if(2===zc){zc=0;var e=Ec,t=Tc,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=R.T,R.T=null;var n=O.p;O.p=2;var i=ic;ic|=4;try{Pl(e,t.alternate,t)}finally{ic=i,O.p=n,R.T=r}}zc=3}}function su(){if(4===zc||3===zc){zc=0,X();var e=Ec,t=Tc,r=jc,n=Ic;10256&t.subtreeFlags||10256&t.flags?zc=5:(zc=0,Tc=Ec=null,lu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pc=null),Pe(r),t=t.stateNode,le&&"function"==typeof le.onCommitFiberRoot)try{le.onCommitFiberRoot(se,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==n){t=R.T,i=O.p,O.p=2,R.T=null;try{for(var a=e.onRecoverableError,o=0;o<n.length;o++){var s=n[o];a(s.value,{componentStack:s.stack})}}finally{R.T=t,O.p=i}}3&jc&&cu(),Su(e),i=e.pendingLanes,4194090&r&&42&i?e===Dc?Ac++:(Ac=0,Dc=e):Ac=0,Cu(0)}}function lu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ri(t))}function cu(e){return au(),ou(),su(),uu()}function uu(){if(5!==zc)return!1;var e=Ec,t=Rc;Rc=0;var r=Pe(jc),i=R.T,a=O.p;try{O.p=32>r?32:r,R.T=null,r=Oc,Oc=null;var o=Ec,s=jc;if(zc=0,Tc=Ec=null,jc=0,6&ic)throw Error(n(331));var l=ic;if(ic|=4,Jl(o.current),Ul(o,o.current,s,r),ic=l,Cu(0),le&&"function"==typeof le.onPostCommitFiberRoot)try{le.onPostCommitFiberRoot(se,o)}catch(c){}return!0}finally{O.p=a,R.T=i,lu(e,t)}}function du(e,t,r){t=kn(r,t),null!==(e=ra(e,t=Cs(e.stateNode,t,2),2))&&(_e(e,2),Su(e))}function pu(e,t,r){if(3===e.tag)du(e,e,r);else for(;null!==t;){if(3===t.tag){du(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Pc||!Pc.has(n))){e=kn(r,e),null!==(n=ra(t,r=Ps(2),2))&&(zs(r,n,t,e),_e(n,2),Su(n));break}}t=t.return}}function fu(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new nc;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(pc=!0,i.add(r),e=hu.bind(null,e,t,r),t.then(e,e))}function hu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ac===e&&(sc&r)===r&&(4===hc||3===hc&&(62914560&sc)===sc&&300>Z()-wc?!(2&ic)&&Uc(e,0):vc|=r,yc===sc&&(yc=0)),Su(e)}function gu(e,t){0===t&&(t=xe()),null!==(e=En(e,t))&&(_e(e,t),Su(e))}function mu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),gu(e,r)}function vu(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(n(314))}null!==i&&i.delete(t),gu(e,r)}var bu=null,yu=null,xu=!1,ku=!1,_u=!1,wu=0;function Su(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),ku=!0,xu||(xu=!0,fd(function(){6&ic?G(ee,Pu):zu()}))}function Cu(e,t){if(!_u&&ku){_u=!0;do{for(var r=!1,n=bu;null!==n;){if(0!==e){var i=n.pendingLanes;if(0===i)var a=0;else{var o=n.suspendedLanes,s=n.pingedLanes;a=(1<<31-ue(42|e)+1)-1,a=201326741&(a&=i&~(o&~s))?201326741&a|1:a?2|a:0}0!==a&&(r=!0,ju(n,a))}else a=sc,!(3&(a=me(n,n===ac?a:0,null!==n.cancelPendingCommit||-1!==n.timeoutHandle)))||ve(n,a)||(r=!0,ju(n,a));n=n.next}}while(r);_u=!1}}function Pu(){zu()}function zu(){ku=xu=!1;var e,t=0;0!==wu&&(((e=window.event)&&"popstate"===e.type?e!==cd&&(cd=e,!0):(cd=null,!1))&&(t=wu),wu=0);for(var r=Z(),n=null,i=bu;null!==i;){var a=i.next,o=Eu(i,r);0===o?(i.next=null,null===n?bu=a:n.next=a,null===a&&(yu=n)):(n=i,(0!==t||3&o)&&(ku=!0)),i=a}Cu(t)}function Eu(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ue(a),s=1<<o,l=i[o];-1===l?0!==(s&r)&&0===(s&n)||(i[o]=be(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(r=sc,r=me(e,e===(t=ac)?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),n=e.callbackNode,0===r||e===t&&(2===lc||9===lc)||null!==e.cancelPendingCommit)return null!==n&&null!==n&&Q(n),e.callbackNode=null,e.callbackPriority=0;if(!(3&r)||ve(e,r)){if((t=r&-r)===e.callbackPriority)return t;switch(null!==n&&Q(n),Pe(r)){case 2:case 8:r=te;break;case 32:default:r=re;break;case 268435456:r=ie}return n=Tu.bind(null,e),r=G(r,n),e.callbackPriority=t,e.callbackNode=r,t}return null!==n&&null!==n&&Q(n),e.callbackPriority=2,e.callbackNode=null,2}function Tu(e,t){if(0!==zc&&5!==zc)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(cu()&&e.callbackNode!==r)return null;var n=sc;return 0===(n=me(e,e===ac?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Nc(e,n,t),Eu(e,Z()),null!=e.callbackNode&&e.callbackNode===r?Tu.bind(null,e):null)}function ju(e,t){if(cu())return null;Nc(e,t,!0)}function Ru(){return 0===wu&&(wu=ye()),wu}function Ou(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Iu(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}for(var Au=0;Au<bn.length;Au++){var Du=bn[Au];yn(Du.toLowerCase(),"on"+(Du[0].toUpperCase()+Du.slice(1)))}yn(un,"onAnimationEnd"),yn(dn,"onAnimationIteration"),yn(pn,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(fn,"onTransitionRun"),yn(hn,"onTransitionStart"),yn(gn,"onTransitionCancel"),yn(mn,"onTransitionEnd"),qe("onMouseEnter",["mouseout","mouseover"]),qe("onMouseLeave",["mouseout","mouseover"]),qe("onPointerEnter",["pointerout","pointerover"]),qe("onPointerLeave",["pointerout","pointerover"]),Ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="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(" "),Lu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function Fu(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){vs(u)}i.currentTarget=null,a=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){vs(u)}i.currentTarget=null,a=l}}}}function Nu(e,t){var r=t[Oe];void 0===r&&(r=t[Oe]=new Set);var n=e+"__bubble";r.has(n)||(Hu(t,e,2,!1),r.add(n))}function Wu(e,t,r){var n=0;t&&(n|=4),Hu(r,e,n,t)}var $u="_reactListening"+Math.random().toString(36).slice(2);function Bu(e){if(!e[$u]){e[$u]=!0,He.forEach(function(t){"selectionchange"!==t&&(Lu.has(t)||Wu(t,!1,e),Wu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$u]||(t[$u]=!0,Wu("selectionchange",!1,t))}}function Hu(e,t,r,n){switch(dp(t)){case 2:var i=ap;break;case 8:i=op;break;default:i=sp}r=i.bind(null,t,r,e),i=void 0,!Mt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Vu(e,t,r,n,i){var o=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var l=n.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=n.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Fe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){n=o=s;continue e}l=l.parentNode}}n=n.return}It(function(){var n=o,i=Et(r),s=[];e:{var l=vn.get(e);if(void 0!==l){var c=Kt,u=e;switch(e){case"keypress":if(0===Bt(r))break e;case"keydown":case"keyup":c=dr;break;case"focusin":u="focus",c=rr;break;case"focusout":u="blur",c=rr;break;case"beforeblur":case"afterblur":c=rr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=er;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=tr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=fr;break;case un:case dn:case pn:c=nr;break;case mn:c=hr;break;case"scroll":case"scrollend":c=Zt;break;case"wheel":c=gr;break;case"copy":case"cut":case"paste":c=ir;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=pr;break;case"toggle":case"beforetoggle":c=mr}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=n;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===f||null!=(m=At(g,f))&&d.push(Uu(g,m,h)),p)break;g=g.return}0<d.length&&(l=new c(l,u,null,r,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||r===zt||!(u=r.relatedTarget||r.fromElement)||!Fe(u)&&!u[Re])&&(c||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=n,null!==(u=(u=r.relatedTarget||r.toElement)?Fe(u):null)&&(p=a(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=n),c!==u)){if(d=er,m="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=pr,m="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==c?l:We(c),h=null==u?l:We(u),(l=new d(m,g+"leave",c,r,i)).target=p,l.relatedTarget=h,m=null,Fe(i)===n&&((d=new d(f,g+"enter",u,r,i)).target=h,d.relatedTarget=p,m=d),p=m,c&&u)e:{for(f=u,g=0,h=d=c;h;h=Yu(h))g++;for(h=0,m=f;m;m=Yu(m))h++;for(;0<g-h;)d=Yu(d),g--;for(;0<h-g;)f=Yu(f),h--;for(;g--;){if(d===f||null!==f&&d===f.alternate)break e;d=Yu(d),f=Yu(f)}d=null}else d=null;null!==c&&Gu(s,l,c,d,!1),null!==u&&null!==p&&Gu(s,p,u,d,!0)}if("select"===(c=(l=n?We(n):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Ar;else if(Er(l))if(Dr)v=Vr;else{v=Br;var b=$r}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?n&&wt(n.elementType)&&(v=Ar):v=Hr;switch(v&&(v=v(e,n))?Tr(s,v,r,i):(b&&b(e,l,n),"focusout"===e&&n&&"number"===l.type&&null!=n.memoizedProps.value&>(l,"number",l.value)),b=n?We(n):window,e){case"focusin":(Er(b)||"true"===b.contentEditable)&&(Jr=b,en=n,tn=null);break;case"focusout":tn=en=Jr=null;break;case"mousedown":rn=!0;break;case"contextmenu":case"mouseup":case"dragend":rn=!1,nn(s,r,i);break;case"selectionchange":if(Zr)break;case"keydown":case"keyup":nn(s,r,i)}var y;if(br)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Pr?Sr(e,r)&&(x="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(x="onCompositionStart");x&&(kr&&"ko"!==r.locale&&(Pr||"onCompositionStart"!==x?"onCompositionEnd"===x&&Pr&&(y=$t()):(Nt="value"in(Ft=i)?Ft.value:Ft.textContent,Pr=!0)),0<(b=qu(n,x)).length&&(x=new ar(x,e,null,r,i),s.push({event:x,listeners:b}),(y||null!==(y=Cr(r)))&&(x.data=y))),(y=xr?function(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return 32!==t.which?null:(wr=!0,_r);case"textInput":return(e=t.data)===_r&&wr?null:e;default:return null}}(e,r):function(e,t){if(Pr)return"compositionend"===e||!br&&Sr(e,t)?(e=$t(),Wt=Nt=Ft=null,Pr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(x=qu(n,"onBeforeInput")).length&&(b=new ar("onBeforeInput","beforeinput",null,r,i),s.push({event:b,listeners:x}),b.data=y),function(e,t,r,n,i){if("submit"===t&&r&&r.stateNode===i){var a=Ou((i[je]||null).action),o=n.submitter;o&&null!==(t=(t=o[je]||null)?Ou(t.formAction):o.getAttribute("formAction"))&&(a=t,o=null);var s=new Kt("action","action",null,n,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==wu){var e=o?Iu(i,o):new FormData(i);Eo(r,{pending:!0,data:e,method:i.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=o?Iu(i,o):new FormData(i),Eo(r,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(s,e,n,r,i)}Fu(s,t)})}function Uu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function qu(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,a=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===a||(null!=(i=At(e,r))&&n.unshift(Uu(e,i,a)),null!=(i=At(e,t))&&n.push(Uu(e,i,a))),3===e.tag)return n;e=e.return}return[]}function Yu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Gu(e,t,r,n,i){for(var a=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===n)break;5!==s&&26!==s&&27!==s||null===c||(l=c,i?null!=(c=At(r,a))&&o.unshift(Uu(r,c,l)):i||null!=(c=At(r,a))&&o.push(Uu(r,c,l))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Qu=/\r\n?/g,Ku=/\u0000|\uFFFD/g;function Xu(e){return("string"==typeof e?e:""+e).replace(Qu,"\n").replace(Ku,"")}function Zu(e,t){return t=Xu(t),Xu(e)===t}function Ju(){}function ed(e,t,r,i,a,o){switch(r){case"children":"string"==typeof i?"body"===t||"textarea"===t&&""===i||yt(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==t&&yt(e,""+i);break;case"className":Je(e,"class",i);break;case"tabIndex":Je(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Je(e,r,i);break;case"style":_t(e,i,o);break;case"data":if("object"!==t){Je(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==t||"href"!==r)){e.removeAttribute(r);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(r);break}i=Pt(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(r,"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}if("function"==typeof o&&("formAction"===r?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(r);break}i=Pt(""+i),e.setAttribute(r,i);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(r=i.__html)){if(null!=a.children)throw Error(n(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}r=Pt(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,""+i):e.removeAttribute(r);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":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":!0===i?e.setAttribute(r,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":Nu("beforetoggle",e),Nu("toggle",e),Ze(e,"popover",i);break;case"xlinkActuate":et(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":et(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":et(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":et(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":et(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":et(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":et(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":et(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":et(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ze(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])&&Ze(e,r=St.get(r)||r,i)}}function td(e,t,r,i,a,o){switch(r){case"style":_t(e,i,o);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(r=i.__html)){if(null!=a.children)throw Error(n(60));e.innerHTML=r}}break;case"children":"string"==typeof i?yt(e,i):("number"==typeof i||"bigint"==typeof i)&&yt(e,""+i);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ve.hasOwnProperty(r)||("o"!==r[0]||"n"!==r[1]||(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),"function"==typeof(o=null!=(o=e[je]||null)?o[r]:null)&&e.removeEventListener(t,o,a),"function"!=typeof i)?r in e?e[r]=i:!0===i?e.setAttribute(r,""):Ze(e,r,i):("function"!=typeof o&&null!==o&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,i,a)))}}function rd(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nu("error",e),Nu("load",e);var i,a=!1,o=!1;for(i in r)if(r.hasOwnProperty(i)){var s=r[i];if(null!=s)switch(i){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,t));default:ed(e,t,i,s,r,null)}}return o&&ed(e,t,"srcSet",r.srcSet,r,null),void(a&&ed(e,t,"src",r.src,r,null));case"input":Nu("invalid",e);var l=i=s=o=null,c=null,u=null;for(a in r)if(r.hasOwnProperty(a)){var d=r[a];if(null!=d)switch(a){case"name":o=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(n(137,t));break;default:ed(e,t,a,d,r,null)}}return ht(e,i,l,c,u,s,o,!1),void lt(e);case"select":for(o in Nu("invalid",e),a=s=i=null,r)if(r.hasOwnProperty(o)&&null!=(l=r[o]))switch(o){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:ed(e,t,o,l,r,null)}return t=i,r=s,e.multiple=!!a,void(null!=t?mt(e,!!a,t,!1):null!=r&&mt(e,!!a,r,!0));case"textarea":for(s in Nu("invalid",e),i=o=a=null,r)if(r.hasOwnProperty(s)&&null!=(l=r[s]))switch(s){case"value":a=l;break;case"defaultValue":o=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(n(91));break;default:ed(e,t,s,l,r,null)}return bt(e,a,o,i),void lt(e);case"option":for(c in r)r.hasOwnProperty(c)&&null!=(a=r[c])&&("selected"===c?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:ed(e,t,c,a,r,null));return;case"dialog":Nu("beforetoggle",e),Nu("toggle",e),Nu("cancel",e),Nu("close",e);break;case"iframe":case"object":Nu("load",e);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Nu(Mu[a],e);break;case"image":Nu("error",e),Nu("load",e);break;case"details":Nu("toggle",e);break;case"embed":case"source":case"link":Nu("error",e),Nu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&null!=(a=r[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,t));default:ed(e,t,u,a,r,null)}return;default:if(wt(t)){for(d in r)r.hasOwnProperty(d)&&void 0!==(a=r[d])&&td(e,t,d,a,r,void 0);return}}for(l in r)r.hasOwnProperty(l)&&null!=(a=r[l])&&ed(e,t,l,a,r,null)}var nd=null,id=null;function ad(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null,ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,pd="function"==typeof Promise?Promise:void 0,fd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(hd)}:ud;function hd(e){setTimeout(function(){throw e})}function gd(e){return"head"===e}function md(e,t){var r=t,n=0,i=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&8===a.nodeType)if("/$"===(r=a.data)){if(0<n&&8>n){r=n;var o=e.ownerDocument;if(1&r&&wd(o.documentElement),2&r&&wd(o.body),4&r)for(wd(r=o.head),o=r.firstChild;o;){var s=o.nextSibling,l=o.nodeName;o[Me]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===o.rel.toLowerCase()||r.removeChild(o),o=s}}if(0===i)return e.removeChild(a),void Tp(t);i--}else"$"===r||"$?"===r||"$!"===r?i++:n=r.charCodeAt(0)-48;else n=0;r=a}while(r);Tp(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":vd(r),Le(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===r.rel.toLowerCase())continue}e.removeChild(r)}}function bd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function yd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var xd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}function _d(e,t,r){switch(t=ad(r),e){case"html":if(!(e=t.documentElement))throw Error(n(452));return e;case"head":if(!(e=t.head))throw Error(n(453));return e;case"body":if(!(e=t.body))throw Error(n(454));return e;default:throw Error(n(451))}}function wd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Le(e)}var Sd=new Map,Cd=new Set;function Pd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var zd=O.d;O.d={f:function(){var e=zd.f(),t=Hc();return e||t},r:function(e){var t=Ne(e);null!==t&&5===t.tag&&"form"===t.type?jo(t):zd.r(e)},D:function(e){zd.D(e),Td("dns-prefetch",e,null)},C:function(e,t){zd.C(e,t),Td("preconnect",e,t)},L:function(e,t,r){zd.L(e,t,r);var n=Ed;if(n&&e&&t){var i='link[rel="preload"][as="'+pt(t)+'"]';"image"===t&&r&&r.imageSrcSet?(i+='[imagesrcset="'+pt(r.imageSrcSet)+'"]',"string"==typeof r.imageSizes&&(i+='[imagesizes="'+pt(r.imageSizes)+'"]')):i+='[href="'+pt(e)+'"]';var a=i;switch(t){case"style":a=Rd(e);break;case"script":a=Ad(e)}Sd.has(a)||(e=c({rel:"preload",href:"image"===t&&r&&r.imageSrcSet?void 0:e,as:t},r),Sd.set(a,e),null!==n.querySelector(i)||"style"===t&&n.querySelector(Od(a))||"script"===t&&n.querySelector(Dd(a))||(rd(t=n.createElement("link"),"link",e),Be(t),n.head.appendChild(t)))}},m:function(e,t){zd.m(e,t);var r=Ed;if(r&&e){var n=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+pt(n)+'"][href="'+pt(e)+'"]',a=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Ad(e)}if(!Sd.has(a)&&(e=c({rel:"modulepreload",href:e},t),Sd.set(a,e),null===r.querySelector(i))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Dd(a)))return}rd(n=r.createElement("link"),"link",e),Be(n),r.head.appendChild(n)}}},X:function(e,t){zd.X(e,t);var r=Ed;if(r&&e){var n=$e(r).hoistableScripts,i=Ad(e),a=n.get(i);a||((a=r.querySelector(Dd(i)))||(e=c({src:e,async:!0},t),(t=Sd.get(i))&&Nd(e,t),Be(a=r.createElement("script")),rd(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}},S:function(e,t,r){zd.S(e,t,r);var n=Ed;if(n&&e){var i=$e(n).hoistableStyles,a=Rd(e);t=t||"default";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(Od(a)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Sd.get(a))&&Fd(e,r);var l=o=n.createElement("link");Be(l),rd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Ld(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){zd.M(e,t);var r=Ed;if(r&&e){var n=$e(r).hoistableScripts,i=Ad(e),a=n.get(i);a||((a=r.querySelector(Dd(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=Sd.get(i))&&Nd(e,t),Be(a=r.createElement("script")),rd(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}}};var Ed="undefined"==typeof document?null:document;function Td(e,t,r){var n=Ed;if(n&&"string"==typeof t&&t){var i=pt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof r&&(i+='[crossorigin="'+r+'"]'),Cd.has(i)||(Cd.add(i),e={rel:e,crossOrigin:r,href:t},null===n.querySelector(i)&&(rd(t=n.createElement("link"),"link",e),Be(t),n.head.appendChild(t)))}}function jd(e,t,r,i){var a,o,s,l,c=(c=$.current)?Pd(c):null;if(!c)throw Error(n(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof r.precedence&&"string"==typeof r.href?(t=Rd(r.href),(i=(r=$e(c).hoistableStyles).get(t))||(i={type:"style",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===r.rel&&"string"==typeof r.href&&"string"==typeof r.precedence){e=Rd(r.href);var u=$e(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Od(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Sd.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Sd.set(e,r),u||(a=c,o=e,s=r,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=a.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),rd(o,"link",s),Be(o),a.head.appendChild(o))))),t&&null===i)throw Error(n(528,""));return d}if(t&&null!==i)throw Error(n(529,""));return null;case"script":return t=r.async,"string"==typeof(r=r.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(r),(i=(r=$e(c).hoistableScripts).get(t))||(i={type:"script",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,e))}}function Rd(e){return'href="'+pt(e)+'"'}function Od(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+pt(e)+'"]'}function Dd(e){return"script[async]"+e}function Md(e,t,r){if(t.count++,null===t.instance)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pt(r.href)+'"]');if(i)return t.instance=i,Be(i),i;var a=c({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return Be(i=(e.ownerDocument||e).createElement("style")),rd(i,"style",a),Ld(i,r.precedence,e),t.instance=i;case"stylesheet":a=Rd(r.href);var o=e.querySelector(Od(a));if(o)return t.state.loading|=4,t.instance=o,Be(o),o;i=Id(r),(a=Sd.get(a))&&Fd(i,a),Be(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rd(o,"link",i),t.state.loading|=4,Ld(o,r.precedence,e),t.instance=o;case"script":return o=Ad(r.src),(a=e.querySelector(Dd(o)))?(t.instance=a,Be(a),a):(i=r,(a=Sd.get(o))&&Nd(i=c({},r),a),Be(a=(e=e.ownerDocument||e).createElement("script")),rd(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(n(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(i=t.instance,t.state.loading|=4,Ld(i,r.precedence,e));return t.instance}function Ld(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,a=i,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===r.nodeType?r.head:r).insertBefore(e,t.firstChild)}function Fd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Nd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Wd=null;function $d(e,t,r){if(null===Wd){var n=new Map,i=Wd=new Map;i.set(r,n)}else(n=(i=Wd).get(r))||(n=new Map,i.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),i=0;i<r.length;i++){var a=r[i];if(!(a[Me]||a[Te]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(a):n.set(o,[a])}}return n}function Bd(e,t,r){(e=e.ownerDocument||e).head.insertBefore(r,"title"===t?e.querySelector("head > title"):null)}function Hd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Vd=null;function Ud(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Yd=null;function Gd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Yd=new Map,t.forEach(Qd,e),Yd=null,qd.call(e))}function Qd(e,t){if(!(4&t.state.loading)){var r=Yd.get(e);if(r)var n=r.get(null);else{r=new Map,Yd.set(e,r);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}o=(i=t.instance).getAttribute("data-precedence"),(a=r.get(o)||n)===n&&r.set(null,i),r.set(o,i),this.count++,n=qd.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),a?a.parentNode.insertBefore(i,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Kd={$$typeof:b,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Xd(e,t,r,n,i,a,o,s){this.tag=1,this.containerInfo=e,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=ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ke(0),this.hiddenUpdates=ke(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Zd(e,t,r,n,i,a,o,s,l,c,u,d){return e=new Xd(e,t,r,o,s,l,c,d),t=1,!0===a&&(t|=24),a=In(3,null,null,t),e.current=a,a.stateNode=e,(t=ji()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:n,isDehydrated:r,cache:t},Ji(a),e}function Jd(e){return e?e=Rn:Rn}function ep(e,t,r,n,i,a){i=Jd(i),null===n.context?n.context=i:n.pendingContext=i,(n=ta(t)).payload={element:r},null!==(a=void 0===a?null:a)&&(n.callback=a),null!==(r=ra(e,n,t))&&(Fc(r,0,t),na(r,e,t))}function tp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function rp(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function np(e){if(13===e.tag){var t=En(e,67108864);null!==t&&Fc(t,0,67108864),rp(e,67108864)}}var ip=!0;function ap(e,t,r,n){var i=R.T;R.T=null;var a=O.p;try{O.p=2,sp(e,t,r,n)}finally{O.p=a,R.T=i}}function op(e,t,r,n){var i=R.T;R.T=null;var a=O.p;try{O.p=8,sp(e,t,r,n)}finally{O.p=a,R.T=i}}function sp(e,t,r,n){if(ip){var i=lp(n);if(null===i)Vu(e,t,n,cp,r),xp(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return fp=kp(fp,e,t,r,n,i),!0;case"dragenter":return hp=kp(hp,e,t,r,n,i),!0;case"mouseover":return gp=kp(gp,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return mp.set(a,kp(mp.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,vp.set(a,kp(vp.get(a)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(xp(e,n),4&t&&-1<yp.indexOf(e)){for(;null!==i;){var a=Ne(i);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var o=ge(a.pendingLanes);if(0!==o){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-ue(o);s.entanglements[1]|=l,o&=~l}Su(a),!(6&ic)&&(Sc=Z()+500,Cu(0))}}break;case 13:null!==(s=En(a,2))&&Fc(s,0,2),Hc(),rp(a,2)}if(null===(a=lp(n))&&Vu(e,t,n,cp,r),a===i)break;i=a}null!==i&&n.stopPropagation()}else Vu(e,t,n,null,r)}}function lp(e){return up(e=Et(e))}var cp=null;function up(e){if(cp=null,null!==(e=Fe(e))){var t=a(e);if(null===t)e=null;else{var r=t.tag;if(13===r){if(null!==(e=o(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cp=e,null}function dp(e){switch(e){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(J()){case ee:return 2;case te:return 8;case re:case ne:return 32;case ie:return 268435456;default:return 32}default:return 32}}var pp=!1,fp=null,hp=null,gp=null,mp=new Map,vp=new Map,bp=[],yp="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 xp(e,t){switch(e){case"focusin":case"focusout":fp=null;break;case"dragenter":case"dragleave":hp=null;break;case"mouseover":case"mouseout":gp=null;break;case"pointerover":case"pointerout":mp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vp.delete(t.pointerId)}}function kp(e,t,r,n,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=Ne(t))&&np(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _p(e){var t=Fe(e.target);if(null!==t){var r=a(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=o(r)))return e.blockedOn=t,void function(e){var t=O.p;try{return O.p=e,function(){if(13===r.tag){var e=Mc();e=Ce(e);var t=En(r,e);null!==t&&Fc(t,0,e),rp(r,e)}}()}finally{O.p=t}}(e.priority)}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function wp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=lp(e.nativeEvent);if(null!==r)return null!==(t=Ne(r))&&np(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);zt=n,r.target.dispatchEvent(n),zt=null,t.shift()}return!0}function Sp(e,t,r){wp(e)&&r.delete(t)}function Cp(){pp=!1,null!==fp&&wp(fp)&&(fp=null),null!==hp&&wp(hp)&&(hp=null),null!==gp&&wp(gp)&&(gp=null),mp.forEach(Sp),vp.forEach(Sp)}function Pp(t,r){t.blockedOn===r&&(t.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Cp)))}var zp=null;function Ep(t){zp!==t&&(zp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){zp===t&&(zp=null);for(var e=0;e<t.length;e+=3){var r=t[e],n=t[e+1],i=t[e+2];if("function"!=typeof n){if(null===up(n||r))continue;break}var a=Ne(r);null!==a&&(t.splice(e,3),e-=3,Eo(a,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function Tp(e){function t(t){return Pp(t,e)}null!==fp&&Pp(fp,e),null!==hp&&Pp(hp,e),null!==gp&&Pp(gp,e),mp.forEach(t),vp.forEach(t);for(var r=0;r<bp.length;r++){var n=bp[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<bp.length&&null===(r=bp[0]).blockedOn;)_p(r),null===r.blockedOn&&bp.shift();if(null!=(r=(e.ownerDocument||e).$$reactFormReplay))for(n=0;n<r.length;n+=3){var i=r[n],a=r[n+1],o=i[je]||null;if("function"==typeof a)o||Ep(r);else if(o){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[je]||null)s=o.formAction;else if(null!==up(i))continue}else s=o.action;"function"==typeof s?r[n+1]=s:(r.splice(n,3),n-=3),Ep(r)}}}function jp(e){this._internalRoot=e}function Rp(e){this._internalRoot=e}Rp.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));ep(t.current,Mc(),e,t,null,null)},Rp.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Hc(),t[Re]=null}},Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var r=0;r<bp.length&&0!==t&&t<bp[r].priority;r++);bp.splice(r,0,e),0===r&&_p(e)}};var Op=t.version;if("19.1.1"!==Op)throw Error(n(527,Op,"19.1.1"));O.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var l=o.alternate;if(null===l){if(null!==(i=o.return)){r=i;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===r)return s(o),e;if(l===i)return s(o),t;l=l.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=l;else{for(var c=!1,u=o.child;u;){if(u===r){c=!0,r=o,i=l;break}if(u===i){c=!0,i=o,r=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===r){c=!0,r=l,i=o;break}if(u===i){c=!0,i=l,r=o;break}u=u.sibling}if(!c)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(t),null===(e=null!==e?l(e):null)?null:e.stateNode};var Ip={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ap=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ap.isDisabled&&Ap.supportsFiber)try{se=Ap.inject(Ip),le=Ap}catch(Mp){}}return ps.createRoot=function(e,t){if(!i(e))throw Error(n(299));var r=!1,a="",o=bs,s=xs,l=ks;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,r,a,o,s,l,0,null),e[Re]=t.current,Bu(e),new jp(t)},ps.hydrateRoot=function(e,t,r){if(!i(e))throw Error(n(299));var a=!1,o="",s=bs,l=xs,c=ks,u=null;return null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onUncaughtError&&(s=r.onUncaughtError),void 0!==r.onCaughtError&&(l=r.onCaughtError),void 0!==r.onRecoverableError&&(c=r.onRecoverableError),void 0!==r.unstable_transitionCallbacks&&r.unstable_transitionCallbacks,void 0!==r.formState&&(u=r.formState)),(t=Zd(e,1,!0,t,0,a,o,s,l,c,0,u)).context=Jd(null),r=t.current,(o=ta(a=Ce(a=Mc()))).callback=null,ra(r,o,a),r=a,t.current.lanes=r,_e(t,r),Su(t),e[Re]=t.current,Bu(e),new Rp(t)},ps.version="19.1.1",ps}function Ps(){return xs||(xs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ds.exports=Cs()),ds.exports}const zs=Uo(Ps());function Es(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Ts=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,js=Es(function(e){return Ts.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Rs=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Os="-ms-",Is="-moz-",As="-webkit-",Ds="comm",Ms="rule",Ls="decl",Fs="@keyframes",Ns=Math.abs,Ws=String.fromCharCode,$s=Object.assign;function Bs(e){return e.trim()}function Hs(e,t,r){return e.replace(t,r)}function Vs(e,t){return e.indexOf(t)}function Us(e,t){return 0|e.charCodeAt(t)}function qs(e,t,r){return e.slice(t,r)}function Ys(e){return e.length}function Gs(e){return e.length}function Qs(e,t){return t.push(e),e}var Ks=1,Xs=1,Zs=0,Js=0,el=0,tl="";function rl(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Ks,column:Xs,length:o,return:""}}function nl(e,t){return $s(rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function il(){return el=Js>0?Us(tl,--Js):0,Xs--,10===el&&(Xs=1,Ks--),el}function al(){return el=Js<Zs?Us(tl,Js++):0,Xs++,10===el&&(Xs=1,Ks++),el}function ol(){return Us(tl,Js)}function sl(){return Js}function ll(e,t){return qs(tl,e,t)}function cl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ul(e){return Ks=Xs=1,Zs=Ys(tl=e),Js=0,[]}function dl(e){return tl="",e}function pl(e){return Bs(ll(Js-1,gl(91===e?e+2:40===e?e+1:e)))}function fl(e){for(;(el=ol())&&el<33;)al();return cl(e)>2||cl(el)>3?"":" "}function hl(e,t){for(;--t&&al()&&!(el<48||el>102||el>57&&el<65||el>70&&el<97););return ll(e,sl()+(t<6&&32==ol()&&32==al()))}function gl(e){for(;al();)switch(el){case e:return Js;case 34:case 39:34!==e&&39!==e&&gl(el);break;case 40:41===e&&gl(e);break;case 92:al()}return Js}function ml(e,t){for(;al()&&e+el!==57&&(e+el!==84||47!==ol()););return"/*"+ll(t,Js-1)+"*"+Ws(47===e?e:al())}function vl(e){for(;!cl(ol());)al();return ll(e,Js)}function bl(e){return dl(yl("",null,null,null,[""],e=ul(e),0,[0],e))}function yl(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=i,k=a,_=n,w=y;m;)switch(h=b,b=al()){case 40:if(108!=h&&58==Us(w,d-1)){-1!=Vs(w+=Hs(pl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=pl(b);break;case 9:case 10:case 13:case 32:w+=fl(h);break;case 92:w+=hl(sl()-1,7);continue;case 47:switch(ol()){case 42:case 47:Qs(kl(ml(al(),sl()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=Ys(w)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(w=Hs(w,/\f/g,"")),f>0&&Ys(w)-d&&Qs(f>32?_l(w+";",n,r,d-1):_l(Hs(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(Qs(_=xl(w,t,r,c,u,i,s,y,x=[],k=[],d),a),123===b)if(0===u)yl(w,t,_,_,x,a,d,s,k);else switch(99===p&&110===Us(w,3)?100:p){case 100:case 108:case 109:case 115:yl(e,_,_,n&&Qs(xl(e,_,_,0,0,i,s,y,i,x=[],d),k),i,k,d,s,n?x:k);break;default:yl(w,_,_,_,[""],k,0,s,k)}}c=u=f=0,g=v=1,y=w="",d=o;break;case 58:d=1+Ys(w),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==il())continue;switch(w+=Ws(b),b*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Ys(w)-1)*v,v=1;break;case 64:45===ol()&&(w+=pl(al())),p=ol(),u=d=Ys(y=w+=vl(sl())),b++;break;case 45:45===h&&2==Ys(w)&&(g=0)}}return a}function xl(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],f=Gs(p),h=0,g=0,m=0;h<n;++h)for(var v=0,b=qs(e,d+1,d=Ns(g=o[h])),y=e;v<f;++v)(y=Bs(g>0?p[v]+" "+b:Hs(b,/&\f/g,p[v])))&&(l[m++]=y);return rl(e,t,r,0===i?Ms:s,l,c,u)}function kl(e,t,r){return rl(e,t,r,Ds,Ws(el),qs(e,2,-2),0)}function _l(e,t,r,n){return rl(e,t,r,Ls,qs(e,0,n),qs(e,n+1,-1),n)}function wl(e,t){for(var r="",n=Gs(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Sl(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ls:return e.return=e.return||e.value;case Ds:return"";case Fs:return e.return=e.value+"{"+wl(e.children,n)+"}";case Ms:e.value=e.props.join(",")}return Ys(r=wl(e.children,n))?e.return=e.value+"{"+r+"}":""}var Cl=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},Pl=function(e,t,r){for(var n=0,i=0;n=i,i=ol(),38===n&&12===i&&(t[r]=1),!cl(i);)al();return ll(e,Js)},zl=new WeakMap,El=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zl.get(r))&&!n){zl.set(e,!0);for(var i=[],a=function(e,t){return dl(function(e,t){var r=-1,n=44;do{switch(cl(n)){case 0:38===n&&12===ol()&&(t[r]=1),e[r]+=Pl(Js-1,t,r);break;case 2:e[r]+=pl(n);break;case 4:if(44===n){e[++r]=58===ol()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ws(n)}}while(n=al());return e}(ul(e),t))}(t,i),o=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},Tl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jl(e,t){switch(function(e,t){return 45^Us(e,0)?(((t<<2^Us(e,0))<<2^Us(e,1))<<2^Us(e,2))<<2^Us(e,3):0}(e,t)){case 5103:return As+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return As+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return As+e+Is+e+Os+e+e;case 6828:case 4268:return As+e+Os+e+e;case 6165:return As+e+Os+"flex-"+e+e;case 5187:return As+e+Hs(e,/(\w+).+(:[^]+)/,As+"box-$1$2"+Os+"flex-$1$2")+e;case 5443:return As+e+Os+"flex-item-"+Hs(e,/flex-|-self/,"")+e;case 4675:return As+e+Os+"flex-line-pack"+Hs(e,/align-content|flex-|-self/,"")+e;case 5548:return As+e+Os+Hs(e,"shrink","negative")+e;case 5292:return As+e+Os+Hs(e,"basis","preferred-size")+e;case 6060:return As+"box-"+Hs(e,"-grow","")+As+e+Os+Hs(e,"grow","positive")+e;case 4554:return As+Hs(e,/([^-])(transform)/g,"$1"+As+"$2")+e;case 6187:return Hs(Hs(Hs(e,/(zoom-|grab)/,As+"$1"),/(image-set)/,As+"$1"),e,"")+e;case 5495:case 3959:return Hs(e,/(image-set\([^]*)/,As+"$1$`$1");case 4968:return Hs(Hs(e,/(.+:)(flex-)?(.*)/,As+"box-pack:$3"+Os+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+As+e+e;case 4095:case 3583:case 4068:case 2532:return Hs(e,/(.+)-inline(.+)/,As+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ys(e)-1-t>6)switch(Us(e,t+1)){case 109:if(45!==Us(e,t+4))break;case 102:return Hs(e,/(.+:)(.+)-([^]+)/,"$1"+As+"$2-$3$1"+Is+(108==Us(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vs(e,"stretch")?jl(Hs(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Us(e,t+1))break;case 6444:switch(Us(e,Ys(e)-3-(~Vs(e,"!important")&&10))){case 107:return Hs(e,":",":"+As)+e;case 101:return Hs(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+As+(45===Us(e,14)?"inline-":"")+"box$3$1"+As+"$2$3$1"+Os+"$2box$3")+e}break;case 5936:switch(Us(e,t+11)){case 114:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return As+e+Os+e+e}return e}var Rl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ls:e.return=jl(e.value,e.length);break;case Fs:return wl([nl(e,{value:Hs(e.value,"@","@"+As)})],n);case Ms:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return wl([nl(e,{props:[Hs(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return wl([nl(e,{props:[Hs(t,/:(plac\w+)/,":"+As+"input-$1")]}),nl(e,{props:[Hs(t,/:(plac\w+)/,":-moz-$1")]}),nl(e,{props:[Hs(t,/:(plac\w+)/,Os+"input-$1")]})],n)}return""})}}],Ol=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,i,a=e.stylisPlugins||Rl,o={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)o[t[r]]=!0;s.push(e)});var l,c,u,d,p=[Sl,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[El,Tl].concat(a,p),u=Gs(c),function(e,t,r,n){for(var i="",a=0;a<u;a++)i+=c[a](e,t,r,n)||"";return i});i=function(e,t,r,n){l=r,wl(bl(e?e+"{"+t.styles+"}":t.styles),f),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Rs({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return h.sheet.hydrate(s),h};const Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"}));function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(null,arguments)}var Dl,Ml,Ll,Fl,Nl={exports:{}},Wl={};function $l(){if(Dl)return Wl;Dl=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case a:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case o:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return Wl.AsyncMode=l,Wl.ConcurrentMode=c,Wl.ContextConsumer=s,Wl.ContextProvider=o,Wl.Element=t,Wl.ForwardRef=u,Wl.Fragment=n,Wl.Lazy=h,Wl.Memo=f,Wl.Portal=r,Wl.Profiler=a,Wl.StrictMode=i,Wl.Suspense=d,Wl.isAsyncMode=function(e){return x(e)||y(e)===l},Wl.isConcurrentMode=x,Wl.isContextConsumer=function(e){return y(e)===s},Wl.isContextProvider=function(e){return y(e)===o},Wl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wl.isForwardRef=function(e){return y(e)===u},Wl.isFragment=function(e){return y(e)===n},Wl.isLazy=function(e){return y(e)===h},Wl.isMemo=function(e){return y(e)===f},Wl.isPortal=function(e){return y(e)===r},Wl.isProfiler=function(e){return y(e)===a},Wl.isStrictMode=function(e){return y(e)===i},Wl.isSuspense=function(e){return y(e)===d},Wl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Wl.typeOf=y,Wl}function Bl(){return Ml||(Ml=1,Nl.exports=$l()),Nl.exports}function Hl(){if(Fl)return Ll;Fl=1;var e=Bl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var o=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Ll=function e(t,n,i){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,i)}var f=s(n);l&&(f=f.concat(l(n)));for(var h=a(t),g=a(n),m=0;m<f.length;++m){var v=f[m];if(!(r[v]||i&&i[v]||g&&g[v]||h&&h[v])){var b=c(n,v);try{o(t,v,b)}catch(y){}}}}return t}}const Vl=Uo(Hl());function Ul(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var ql=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Yl=function(e,t,r){ql(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Gl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ql=/[A-Z]|^ms/g,Kl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xl=function(e){return 45===e.charCodeAt(1)},Zl=function(e){return null!=e&&"boolean"!=typeof e},Jl=Es(function(e){return Xl(e)?e:e.replace(Ql,"-$&").toLowerCase()}),ec=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Kl,function(e,t,r){return rc={name:t,styles:r,next:rc},t})}return 1===Gl[e]||Xl(e)||"number"!=typeof t||0===t?t:t+"px"};function tc(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return rc={name:i.name,styles:i.styles,next:rc},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)rc={name:o.name,styles:o.styles,next:rc},o=o.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=tc(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Zl(s)&&(n+=Jl(a)+":"+ec(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=tc(e,t,o);switch(a){case"animation":case"animationName":n+=Jl(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Zl(o[c])&&(n+=Jl(a)+":"+ec(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=rc,l=r(e);return rc=s,tc(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var rc,nc=/label:\s*([^\s;{]+)\s*(;|$)/g;function ic(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";rc=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=tc(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=tc(r,t,e[o]),n&&(i+=a[o]);nc.lastIndex=0;for(var s,l="";null!==(s=nc.exec(i));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:rc}}var ac,oc,sc=!!ls.useInsertionEffect&&ls.useInsertionEffect,lc=sc||function(e){return e()},cc=sc||os.useLayoutEffect,uc=os.createContext("undefined"!=typeof HTMLElement?Ol({key:"css"}):null),dc=uc.Provider,pc=function(e){return os.forwardRef(function(t,r){var n=os.useContext(uc);return e(t,n,r)})},fc=os.createContext({}),hc=Cl(function(e){return Cl(function(t){return function(e,t){return"function"==typeof t?t(e):Al({},e,t)}(e,t)})}),gc={}.hasOwnProperty,mc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ql(t,r,n),lc(function(){return Yl(t,r,n)}),null},bc=pc(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[mc],a=[n],o="";"string"==typeof e.className?o=Ul(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=ic(a,void 0,os.useContext(fc));o+=t.key+"-"+s.name;var l={};for(var c in e)gc.call(e,c)&&"css"!==c&&c!==mc&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),os.createElement(os.Fragment,null,os.createElement(vc,{cache:t,serialized:s,isStringTag:"string"==typeof i}),os.createElement(i,l))}),yc=bc,xc=function(e,t){var r=arguments;if(null==t||!gc.call(t,"css"))return os.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=yc,i[1]=function(e,t){var r={};for(var n in t)gc.call(t,n)&&(r[n]=t[n]);return r[mc]=e,r}(e,t);for(var a=2;a<n;a++)i[a]=r[a];return os.createElement.apply(null,i)};ac=xc||(xc={}),oc||(oc=ac.JSX||(ac.JSX={}));var kc=pc(function(e,t){var r=ic([e.styles],void 0,os.useContext(fc)),n=os.useRef();return cc(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==o&&(a=!0,o.setAttribute("data-emotion",e),i.hydrate([o])),n.current=[i,a],function(){i.flush()}},[t]),cc(function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Yl(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)}},[t,r.name]),null});function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ic(t)}var wc=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var a=t[n];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var s in o="",a)a[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=a}o&&(i&&(i+=" "),i+=o)}}return i},Sc=function(e){var t=e.cache,r=e.serializedArr;return lc(function(){for(var e=0;e<r.length;e++)Yl(t,r[e],!1)}),null},Cc=pc(function(e,t){var r=[],n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=ic(n,t.registered);return r.push(a),ql(t,a,!1),t.key+"-"+a.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,r){var n=[],i=Ul(e,n,r);return n.length<2?r:i+t(n)}(t.registered,n,wc(r))},theme:os.useContext(fc)},a=e.children(i);return os.createElement(os.Fragment,null,os.createElement(Sc,{cache:t,serializedArr:r}),a)});const Pc=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:dc,ClassNames:Cc,Global:kc,ThemeContext:fc,ThemeProvider:function(e){var t=os.useContext(fc);return e.theme!==t&&(t=hc(t)(e.theme)),os.createElement(fc.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return os.useContext(uc)},get createElement(){return xc},css:_c,get jsx(){return xc},keyframes:function(){var e=_c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},useTheme:function(){return os.useContext(fc)},withEmotionCache:pc,withTheme:function(e){var t=e.displayName||e.name||"Component",r=os.forwardRef(function(t,r){var n=os.useContext(fc);return os.createElement(e,Al({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",Vl(r,e)}},Symbol.toStringTag,{value:"Module"}));function zc(...e){return function(...t){e.forEach(e=>e?.(...t))}}const Ec=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Tc=/^on[A-Z]/;function jc(...e){let t={};for(let r of e){for(let e in t)Tc.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=zc(t[e],r[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:Object.assign({},t[e]??{},r[e]??{}):Ec(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Rc(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}const Oc=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Ic=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),Ac=e=>"string"==typeof e,Dc=e=>"function"==typeof e,Mc=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function Lc(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=os.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=os.useContext(s);if(!t&&r){const t=new Error(a??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Fc,Nc]=Lc({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Wc(e){const{value:t,children:r}=e;return ts.jsxs(Fc,{value:t,children:[!t._config.disableLayers&&ts.jsx(kc,{styles:t.layers.atRule}),ts.jsx(kc,{styles:t._global}),r]})}const $c=(e,t)=>((e,t)=>{const r={},n={},i=Object.keys(e);for(const a of i)t(a)?n[a]=e[a]:r[a]=e[a];return[n,r]})(e,Dc(t)?t:e=>t.includes(e)),Bc=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Hc(e){return"string"==typeof e&&Bc.has(e)}var Vc;const Uc=(Vc=js).default||Vc,qc=e=>"theme"!==e;let Yc="undefined"!=typeof document;const Gc=({cache:e,serialized:t,isStringTag:r})=>{ql(e,t,r);const n=lc(()=>Yl(e,t,r));if(!Yc&&void 0!==n){let r=t.name,i=t.next;for(;void 0!==i;)r=Oc(r,i.name),i=i.next;return ts.jsx("style",{"data-emotion":Oc(e.key,r),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},Qc={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Kc=((e,t={},r={})=>{if(n=Qc,i=e,Object.prototype.hasOwnProperty.call(n,i)){r.forwardProps||(r.forwardProps=[]);const t=Qc[e];r.forwardProps=Mc([...r.forwardProps,...t])}var n,i;const a=e.__emotion_real===e,o=a&&e.__emotion_base||e;let s,l;void 0!==r&&(s=r.label,l=r.target);let c=[];const u=pc((n,i,s)=>{const{cva:u,isValidProperty:d}=Nc(),p=t.__cva__?t:u(t),f=Jc(e.__emotion_cva,p);var h;!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=(h=r.forwardProps,(e,t)=>!!h.includes(e)||!t?.includes(e)&&!d(e)));const g=((e,t,r)=>{let n;if(t){const r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?t=>e.__emotion_forwardProp(t)&&r(t):r}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n})(e,r,a)||((t,r)=>{const n="string"==typeof e&&e.charCodeAt(0)>96?Uc:qc,i=!r?.includes(t)&&!d(t);return n(t)&&i}),m=os.useMemo(()=>Object.assign({},r.defaultProps,Rc(n)),[n]),{props:v,styles:b}=function(e,t,r){const{css:n,isValidProperty:i}=Nc(),{children:a,...o}=e,s=os.useMemo(()=>{const[e,n]=$c(o,e=>r(e,t.variantKeys)),[a,s]=$c(n,t.variantKeys),[l,c]=$c(s,i);return{forwardedProps:e,variantProps:a,styleProps:l,elementProps:c}},[t.variantKeys,r,o,i]),{css:l,...c}=s.styleProps,u=os.useMemo(()=>{const e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=o.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=o.orientation),t(e)},[t,s.variantProps,o.colorPalette,o.orientation]);return{styles:os.useMemo(()=>{return n(u,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),c);var e},[n,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:a}}}(m,f,g);let y="",x=[b],k=v;if(null==v.theme){k={};for(let e in v)k[e]=v[e];k.theme=os.useContext(fc)}"string"==typeof v.className?y=Ul(i.registered,x,v.className):null!=v.className&&(y=Oc(y,v.className));const _=ic(c.concat(x),i.registered,k);_.styles&&(y=Oc(y,`${i.key}-${_.name}`)),void 0!==l&&(y=Oc(y,l));const w=!g("as");let S=w&&v.as||o,C={};for(let e in v)if(!w||"as"!==e){if(Hc(e)){C[e.replace("html","").toLowerCase()]=v[e];continue}g(e)&&(C[e]=v[e])}let P=y.trim();P?C.className=P:Reflect.deleteProperty(C,"className"),C.ref=s;const z=r.forwardAsChild||r.forwardProps?.includes("asChild");if(v.asChild&&!z){const e=os.isValidElement(v.children)?os.Children.only(v.children):os.Children.toArray(v.children).find(os.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");S=e.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=jc(C,e.props),C.ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}(s,function(e){const t=os.version;return Ac(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return C.as&&z?(C.as=void 0,ts.jsxs(os.Fragment,{children:[ts.jsx(Gc,{cache:i,serialized:_,isStringTag:"string"==typeof S}),ts.jsx(S,{asChild:!0,...C,children:ts.jsx(v.as,{children:C.children})})]})):ts.jsxs(os.Fragment,{children:[ts.jsx(Gc,{cache:i,serialized:_,isStringTag:"string"==typeof S}),ts.jsx(S,{...C})]})});return u.displayName=void 0!==s?s:`chakra(${"string"==typeof o?o:o.displayName||o.name||"Component"})`,u.__emotion_real=u,u.__emotion_base=o,u.__emotion_forwardProp=r.shouldForwardProp,u.__emotion_cva=t,Object.defineProperty(u,"toString",{value:()=>`.${l}`}),u}).bind(),Xc=new Map,Zc=new Proxy(Kc,{apply:(e,t,r)=>Kc(...r),get:(e,t)=>(Xc.has(t)||Xc.set(t,Kc(t)),Xc.get(t))}),Jc=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),eu=Zc("div");eu.displayName="Box";const tu=Object.freeze({}),ru=Object.freeze({});function nu(e){const{key:t,recipe:r}=e,n=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[a,o]=Lc({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(e){const{unstyled:n,...i}=e,a=function(e){const{key:t,recipe:r}=e,n=Nc();return os.useMemo(()=>{const e=r||(null!=t?n.getRecipe(t):{});return n.cva(structuredClone(e))},[t,r,n])}({key:t,recipe:i.recipe||r}),[o,s]=os.useMemo(()=>a.splitVariantProps(i),[a,i]);return{styles:n?tu:a(o),className:a.className,props:s}}return{withContext:(e,t)=>{const r=Zc(e,{},t),n=os.forwardRef((e,t)=>{const n=o(),i=os.useMemo(()=>jc(n,e),[e,n]),{styles:a,className:l,props:c}=s(i);return ts.jsx(r,{...c,ref:t,css:[a,i.css],className:Oc(l,i.className)})});return n.displayName=e.displayName||e.name,n},PropsProvider:a,withPropsProvider:function(){return a},usePropsContext:o,useRecipeResult:s}}const iu=os.forwardRef(function(e,t){const{templateAreas:r,column:n,row:i,autoFlow:a,autoRows:o,templateRows:s,autoColumns:l,templateColumns:c,inline:u,...d}=e;return ts.jsx(Zc.div,{...d,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:l,gridColumn:n,gridRow:i,gridAutoFlow:a,gridAutoRows:o,gridTemplateRows:s,gridTemplateColumns:c},e.css]})});var au=e=>"string"==typeof e;Function.prototype.toString.call(Object);var ou=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function su(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=os.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=os.useContext(s);if(!t&&r){const t=new Error(a??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[lu]=su({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var cu=e=>"object"==typeof e&&null!==e,uu=e=>cu(e)&&9===e.nodeType;function du(e){return uu(e)?e:(e=>cu(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function pu(e){return(e=>(e=>cu(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?pu(e.host):uu(e)?e.defaultView??window:(e=>cu(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var fu=new WeakMap,hu=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),gu=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,mu=e=>{const t={};let r;for(;r=gu.exec(e);)t[r[1]]=r[2];return t},vu=(e,t)=>{if(au(e)){if(au(t))return`${e};${t}`;e=mu(e)}else au(t)&&(t=mu(t));return Object.assign({},e??{},t??{})};function bu(...e){let t={};for(let r of e){if(!r)continue;for(let n in t)n.startsWith("on")&&"function"==typeof t[n]&&"function"==typeof r[n]?t[n]=ou(r[n],t[n]):t[n]="className"!==n&&"class"!==n?"style"!==n?void 0!==r[n]?r[n]:t[n]:vu(t[n],r[n]):hu(t[n],r[n]);for(let n in r)void 0===t[n]&&(t[n]=r[n]);const e=Object.getOwnPropertySymbols(r);for(let n of e)t[n]=r[n]}return t}function yu(...e){return t=>{const r=[];for(const n of e)if("function"==typeof n){const e=n(t);"function"==typeof e&&r.push(e)}else n&&(n.current=t);if(r.length)return()=>{for(const e of r)e()}}}const xu=e=>{const t=os.memo(os.forwardRef((t,r)=>{const{asChild:n,children:i,...a}=t;if(!n)return os.createElement(e,{...a,ref:r},i);if(!os.isValidElement(i))return null;const o=os.Children.only(i),s=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(o);return os.cloneElement(o,{...bu(a,o.props),ref:r?yu(r,s):s})}));return t.displayName=e.displayName||e.name,t},ku=(()=>{const e=new Map;return new Proxy(xu,{apply:(e,t,r)=>xu(r[0]),get(t,r){const n=r;return e.has(n)||e.set(n,xu(n)),e.get(n)}})})();var _u=()=>e=>Array.from(new Set(e));const wu=Zc("span"),{withContext:Su}=nu({key:"text"}),Cu=Su("p");function Pu(e,t){const r=Nc().normalizeValue(e),n=function(e={}){e.fallback||(e.fallback="base");const t=Nc();let r=!1;const n=t.breakpoints.values.map(({min:t,name:n})=>{const i={breakpoint:n,query:`(min-width: ${t})`,fallback:!r};return n===e.fallback&&(r=!0),i}).filter(({breakpoint:t})=>!!e.breakpoints?.includes(t)),i=n.map(({fallback:e})=>e),a=function(e,t={}){const{fallback:r=[],ssr:n=!0,getWindow:i}=t,a=function(e,t=[]){const r=os.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return os.useInsertionEffect(()=>{r.current=e}),os.useCallback((...e)=>r.current?.(...e),t)}(i),o=Array.isArray(e)?e:[e],s=r?.filter(e=>null!=e),[l,c]=os.useState(()=>o.map((e,t)=>{if(!n){const{media:t,matches:r}=(i?.()??window).matchMedia(e);return{media:t,matches:r}}return{media:e,matches:!!s[t]}}));return os.useEffect(()=>{const e=a()??window;c(t=>{const r=o.map(t=>{const{media:r,matches:n}=e.matchMedia(t);return{media:r,matches:n}});return t.every((e,t)=>e.matches===r[t].matches&&e.media===r[t].media)?t:r});const t=o.map(t=>e.matchMedia(t)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},n=t.map(e=>function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}}(e,r));return()=>n.forEach(e=>e())},[a]),l.map(e=>e.matches)}(n.map(e=>e.query),{fallback:i,ssr:e.ssr}).lastIndexOf(!0);return n[a]?.breakpoint??e.fallback}({breakpoints:Object.keys(r),...t});return r[n]}var zu=(e,t=[])=>({parts:(...r)=>{if(Tu(t))return zu(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>zu(e,[...t,...r]),omit:(...r)=>zu(e,t.filter(e=>!r.includes(e))),rename:e=>zu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:[`&[data-scope="${Eu(e)}"][data-part="${Eu(r)}"]`,`& [data-scope="${Eu(e)}"][data-part="${Eu(r)}"]`].join(", "),attrs:{"data-scope":Eu(e),"data-part":Eu(r)}}}),{})}),Eu=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Tu=e=>0===e.length,ju=zu("collapsible").parts("root","trigger","content","indicator");ju.build(),_u()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Ru=zu("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Ru.build(),_u()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),_u()(["xChannel","yChannel"]),_u()(["channel","orientation"]),_u()(["value","disabled"]),_u()(["value","respectAlpha"]),_u()(["size"]);var Ou=zu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Ou.build(),_u()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),_u()(["value","disabled"]);var Iu=zu("avatar").parts("root","image","fallback");Iu.build(),_u()(["dir","id","ids","onStatusChange","getRootNode"]);var Au=zu("checkbox").parts("root","label","control","indicator");Au.build(),_u()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Du=Au.extendWith("group"),[Mu,Lu]=su({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Fu=zu("clipboard").parts("root","control","trigger","indicator","input","label");Fu.build(),_u()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),_u()(["copied"]);const Nu=Ru.extendWith("view");var Wu=zu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Wu.build(),_u()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),_u()(["htmlFor"]),_u()(["id"]),_u()(["item","persistFocus"]);const $u=Wu.extendWith("empty");var Bu=zu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Bu.build(),_u()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var Hu=zu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Hu.build(),_u()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Vu=zu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Vu.build();var Uu=e=>{if(!e)return;const t=function(e){return fu.has(e)||fu.set(e,pu(e).getComputedStyle(e)),fu.get(e)}(e),r=pu(e),n=du(e),i=()=>{requestAnimationFrame(()=>{let r;e.style.height="auto",r="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&r>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),r=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${r}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);const a=Object.getPrototypeOf(e),o=Object.getOwnPropertyDescriptor(a,"value");Object.defineProperty(e,"value",{...o,set(){o?.set?.apply(this,arguments),i()}});const s=new r.ResizeObserver(()=>{requestAnimationFrame(()=>i())});s.observe(e);const l=new r.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),n.fonts?.removeEventListener("loadingdone",i),s.disconnect(),l.disconnect()}};const qu=os.forwardRef((e,t)=>{const{autoresize:r,...n}=e,i=os.useRef(null),a=Lu(),o=bu(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return os.useEffect(()=>{if(r)return Uu(i.current)},[r]),ts.jsx(ku.textarea,{...o,ref:yu(t,i)})});qu.displayName="FieldTextarea";const Yu=zu("fieldset").parts("root","errorText","helperText","legend");Yu.build();var Gu=zu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Gu.build(),_u()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),_u()(["file","type"]);const Qu=e=>{const{value:t,children:r}=e,[n,i]=os.useState(),a=os.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??n?.getRootNode()??document;var e},[t,n]),o=os.useMemo(()=>({getRootNode:a,getWindow:()=>pu(a()),getDocument:()=>du(a())}),[a]);return ts.jsxs(lu,{value:o,children:[r,!t&&ts.jsx("span",{hidden:!0,ref:i})]})};var Ku=zu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Ku.build(),_u()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Xu=zu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");Xu.build(),_u()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),_u()(["node","indexPath"]);var Zu=zu("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Zu.build(),_u()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),_u()(["item","highlightOnHover"]),_u()(["id"]),_u()(["htmlFor"]);const Ju=Zu.extendWith("empty");var ed=zu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ed.build(),_u()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),_u()(["closeOnSelect","disabled","value","valueText"]),_u()(["htmlFor"]),_u()(["id"]),_u()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var td=zu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");td.build(),_u()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var rd=zu("pinInput").parts("root","label","input","control");rd.build(),_u()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var nd=zu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");nd.build(),_u()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var id=zu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");id.build(),_u()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var ad=zu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");ad.build(),_u()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var od=zu("radio-group").parts("root","label","item","itemText","itemControl","indicator");od.build(),_u()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),_u()(["value","disabled","invalid"]);var sd=zu("rating-group").parts("root","label","item","control");sd.build(),_u()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),_u()(["index"]);var ld=zu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");ld.build(),_u()(["dir","getRootNode","ids","id"]);const cd=od.rename("segment-group");cd.build();var ud=zu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");ud.build(),_u()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),_u()(["item","persistFocus"]),_u()(["id"]),_u()(["htmlFor"]);var dd=zu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");dd.build(),_u()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),_u()(["index","name"]);var pd=zu("switch").parts("root","label","control","thumb");pd.build(),_u()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var fd=zu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function hd(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}fd.build(),_u()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const gd=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:n.value,[e]:`var(${i}, ${n.color})`}};function md(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>md(e));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=md(e[r]);return t}function vd(e,t){if(null==t)return e;for(const r of Object.keys(t))if(void 0!==t[r]&&"__proto__"!==r)if(!Ic(e[r])&&Ic(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Ic(t[r]))vd(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Ic(e[r][n])&&Ic(t[r][n])?vd(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function bd(e,...t){for(const r of t)vd(e,r);return e}const yd=e=>null!=e;function xd(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,a=[]){if(Ic(r)||Array.isArray(r)){const o={};for(const[s,l]of Object.entries(r)){const c=i?.(s,l)??s,u=[...a,c];if(n?.(r,u))return t(r,a);const d=e(l,u);yd(d)&&(o[c]=d)}return o}return t(r,a)}(e)}function kd(e,t){return Array.isArray(e)?e.map(e=>yd(e)?t(e):e):Ic(e)?xd(e,e=>t(e)):yd(e)?t(e):e}const _d=["value","type","description"],wd=(...e)=>{const t=bd({},...e.map(md));return t.theme?.tokens&&xd(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!_d.includes(e)).length>0,r=_d.some(t=>null!=e[t]);return t&&r&&(e.DEFAULT||(e.DEFAULT={}),_d.forEach(t=>{var r;null!=e[t]&&((r=e.DEFAULT)[t]||(r[t]=e[t]),delete e[t])})),e},{stop(e){return(t=e)&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(e).some(e=>_d.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function Sd(){const e=e=>e;return new Proxy(e,{get:()=>e})}const Cd=Sd(),Pd=Sd(),zd=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Ed=/[A-Z]/g;function Td(e,t={}){const{fallback:r="",prefix:n=""}=t,i=function(e){return e.replace(Ed,e=>`-${e.toLowerCase()}`)}(["-",n,(a=e,`${a}`.replace(zd,e=>`\\${e}`))].filter(Boolean).join("-"));var a;return{var:i,ref:`var(${i}${r?`, ${r}`:""})`}}const jd=(e,t)=>null!=t?`${e}(${t})`:t,Rd=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Od=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),Id=gd("borderColor"),Ad=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Dd=Td("bg-currentcolor"),Md=e=>e===Dd.ref||"currentBg"===e,Ld=e=>({...e("colors"),currentBg:Dd}),Fd={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:Ld,shorthand:["bg"],transform(e,t){if(Md(t.raw))return{background:Dd.ref};const r=gd("background")(e,t);return{...r,[Dd.var]:r?.background}}},backgroundColor:{values:Ld,shorthand:["bgColor"],transform(e,t){if(Md(t.raw))return{backgroundColor:Dd.ref};const r=gd("backgroundColor")(e,t);return{...r,[Dd.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:Ld,transform:gd("--gradient-from")},gradientTo:{values:Ld,transform:gd("--gradient-to")},gradientVia:{values:Ld,transform:(e,t)=>({...gd("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ld,transform:gd("borderColor")},borderTopColor:{values:Ld,transform:gd("borderTopColor")},borderBlockStartColor:{values:Ld,transform:gd("borderBlockStartColor")},borderBottomColor:{values:Ld,transform:gd("borderBottomColor")},borderBlockEndColor:{values:Ld,transform:gd("borderBlockEndColor")},borderLeftColor:{values:Ld,transform:gd("borderLeftColor")},borderInlineStartColor:{values:Ld,shorthand:["borderStartColor"],transform:gd("borderInlineStartColor")},borderRightColor:{values:Ld,transform:gd("borderRightColor")},borderInlineEndColor:{values:Ld,shorthand:["borderEndColor"],transform:gd("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ld,transform:gd("color")},fill:{values:Ld,transform:gd("fill")},stroke:{values:Ld,transform:gd("stroke")},accentColor:{values:Ld,transform:gd("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:Ld,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":Id(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ld,transform:gd("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":jd("blur",e)})},brightness:{transform:e=>({"--brightness":jd("brightness",e)})},contrast:{transform:e=>({"--contrast":jd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":jd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":jd("hue-rotate",Rd(e))})},invert:{transform:e=>({"--invert":jd("invert",e)})},saturate:{transform:e=>({"--saturate":jd("saturate",e)})},sepia:{transform:e=>({"--sepia":jd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":jd("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":jd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":jd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":jd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":jd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":jd("hue-rotate",Rd(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":jd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":jd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":jd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":jd("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ld,transform:gd("outlineColor")},focusRing:Od("&:is(:focus, [data-focus])"),focusVisibleRing:Od("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ld,transform:gd("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>{const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[n]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[n]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ld,transform:gd("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:Ld,transform:gd("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ld,transform:gd("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ld,transform:gd("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Rd(e)})},skewY:{transform:e=>({"--skew-y":Rd(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:Rd(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Rd(e)})},rotateY:{transform:e=>({"--rotate-y":Rd(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Ad("all");case"position":return Ad("left, right, top, bottom, inset-inline, inset-block");case"colors":return Ad("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Ad("opacity");case"shadow":return Ad("box-shadow");case"transform":return Ad("transform");case"size":return Ad("width, height");case"backgrounds":return Ad("background, background-color, background-image, background-position");case"common":return Ad("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>Nd[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:Ld,transform:gd("caretColor")},cursor:{values:"cursor"}}},Nd={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Wd="".split(","),$d="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(Wd),Bd=new Map($d.map(e=>[e,!0]));function Hd(e){const t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}var Vd,Ud,qd=/&|@/,Yd=Hd(e=>Bd.has(e)||e.startsWith("--")||qd.test(e));function Gd(e,t){const r={};return xd(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}function Qd(){if(Ud)return Vd;Ud=1,Vd=a,a.default=a,a.stable=c,a.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,a,o){var l;void 0===o&&(o=i()),s(e,"",0,[],void 0,0,o);try{l=0===n.length?JSON.stringify(e,t,a):JSON.stringify(e,d(t),a)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function o(e,t,i,a){var o=Object.getOwnPropertyDescriptor(a,i);void 0!==o.get?o.configurable?(Object.defineProperty(a,i,{value:e}),r.push([a,i,t,o])):n.push([t,i,e]):(a[i]=e,r.push([a,i,t]))}function s(r,n,i,a,l,c,u){var d;if(c+=1,"object"==typeof r&&null!==r){for(d=0;d<a.length;d++)if(a[d]===r)return void o(t,r,n,l);if(void 0!==u.depthLimit&&c>u.depthLimit)return void o(e,r,n,l);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void o(e,r,n,l);if(a.push(r),Array.isArray(r))for(d=0;d<r.length;d++)s(r[d],d,d,a,r,c,u);else{var p=Object.keys(r);for(d=0;d<p.length;d++){var f=p[d];s(r[f],f,d,a,r,c,u)}}a.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function c(e,t,a,o){void 0===o&&(o=i());var s,l=u(e,"",0,[],void 0,0,o)||e;try{s=0===n.length?JSON.stringify(l,t,a):JSON.stringify(l,d(t),a)}catch(p){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(n,i,a,s,c,d,p){var f;if(d+=1,"object"==typeof n&&null!==n){for(f=0;f<s.length;f++)if(s[f]===n)return void o(t,n,i,c);try{if("function"==typeof n.toJSON)return}catch(v){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void o(e,n,i,c);if(void 0!==p.edgesLimit&&a+1>p.edgesLimit)return void o(e,n,i,c);if(s.push(n),Array.isArray(n))for(f=0;f<n.length;f++)u(n[f],f,f,s,n,d,p);else{var h={},g=Object.keys(n).sort(l);for(f=0;f<g.length;f++){var m=g[f];u(n[m],m,f,s,n,d,p),h[m]=n[m]}if(void 0===c)return h;r.push([c,i,n]),c[i]=h}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var i=0;i<n.length;i++){var a=n[i];if(a[1]===t&&a[0]===r){r=a[2],n.splice(i,1);break}}return e.call(this,t,r)}}return Vd}const Kd=Uo(Qd()),Xd=e=>{const t=Object.create(null);return function(...r){const n=r.map(e=>Kd(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}},Zd="px",Jd="em",ep="rem";function tp(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Zd}|${Jd}|${ep}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n?.[1]}function rp(e=""){if("number"==typeof e)return`${e}px`;const t=tp(e);return t?t===Zd?e:t===Jd||t===ep?`${16*parseFloat(e)}${Zd}`:void 0:e}function np(e=""){const t=tp(e);return t?t===ep?e:t===Jd?`${parseFloat(e)}${ep}`:t===Zd?`${parseFloat(e)/16}${ep}`:void 0:e}function ip(e){return np(parseFloat(rp(e)??"")-.04+"px")}function ap({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const op=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),sp=op("width"),lp=op("height"),cp=e=>({isMin:kp(e.minMax,e.maxMin,e.min),isMax:kp(e.maxMin,e.minMax,e.max)}),{isMin:up,isMax:dp}=cp(sp),{isMin:pp,isMax:fp}=cp(lp),hp=/print/i,gp=/^print$/i,mp=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,vp=/(\d)/,bp=Number.MAX_VALUE,yp={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function xp(e){const t=mp.exec(e)||(up(e)||pp(e)?vp.exec(e):null);if(!t)return bp;if("0"===t[0])return 0;const r=parseFloat(t[1]),n=t[2];return r*(yp[n]||1)}function kp(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}const _p=Xd((e,t)=>{const r=function(e,t){const r=hp.test(e),n=gp.test(e),i=hp.test(t),a=gp.test(t);return r&&i?!n&&a?1:n&&!a?-1:e.localeCompare(t):r?1:i?-1:null}(e,t);if(null!==r)return r;const n=up(e)||pp(e),i=dp(e)||fp(e),a=up(t)||pp(t),o=dp(t)||fp(t);if(n&&o)return-1;if(i&&a)return 1;const s=xp(e),l=xp(t);return s===bp&&l===bp?e.localeCompare(t):s===bp?1:l===bp?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function wp(e){return e.sort(([e],[t])=>_p(e,t))}function Sp(e){const t=[],r=[],n={};for(const[o,s]of Object.entries(e))o.startsWith("@media")?t.push([o,s]):o.startsWith("@container")?r.push([o,s]):Ic(s)?n[o]=Sp(s):n[o]=s;const i=wp(t),a=wp(r);return{...n,...Object.fromEntries(i),...Object.fromEntries(a)}}const Cp=/\s*!(important)?/i;function Pp(e){const{transform:t,conditions:r,normalize:n}=e,i=(a=e,Xd(function(...e){return bd({},...function(e){const t=function(...e){return e.filter(e=>Ic(e)&&Object.keys(Rc(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>a.normalize(e))}(e))}));var a;return Xd(function(...e){const a=i(...e),o=n(a),s=Object.create(null);return xd(o,(e,n)=>{const i=!!Ac(a=e)&&Cp.test(a);var a;if(null==e)return;const[o,...l]=r.sort(n).map(r.resolve);i&&(e=(e=>Ac(e)?e.replace(Cp,"").trim():e)(e));let c=t(o,e)??Object.create(null);c=xd(c,e=>Ac(e)&&i?`${e} !important`:e,{getKey:e=>r.expandAtRule(e)}),function(e,t,r){let n=e;for(const i of t)i&&(n[i]||(n[i]=Object.create(null)),n=n[i]);bd(n,r)}(s,l.flat(),c)}),Sp(s)})}const zp=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const Ep={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Tp={reset:0,base:1,tokens:2,recipes:3};const jp=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Rp=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Op=e=>(e+"").replace(jp,Rp),Ip=(e,t)=>{let r="",n=0,i="char",a="",o="";const s=[];for(;n<e.length;){const l=e[n];if("{"===l){const i=e.indexOf("}",n);if(-1===i)break;const a=e.slice(n+1,i);r+=t(a)??a,n=i+1;continue}if("token"===i&&","===l){""===e[n]&&n++,i="fallback",s.push(i);const l=t(a);l?.endsWith(")")&&(r+=l.slice(0,-1)),a="",o="";continue}if("fallback"===i&&", var("===o+l){const t=Ap(e.slice(n+1))+n+1,a=e.slice(n+1,t);if(-1===t)break;r+=", var("+a+")",n=t+1,i=s.pop()??i,o="";continue}if("token"===i||"fallback"===i){if(n++,")"===l){i=s.pop()??i??"char",o+=l;const e=a?t(a)??Op(a):a;if(o)if(o=o.slice(1).trim(),!o.startsWith("token(")&&o.endsWith(")")&&(o=o.slice(0,-1)),o.includes("token(")){const e=Ip(o,t);e&&(o=e.slice(0,-1))}else if(o){const e=t(o);e&&(o=e)}const n=r.at(-1);o?n?.trim()?r+=e.slice(0,-1)+", "+o+")":r+=o:r+=e||")",a="",o="",i="char";continue}"token"===i&&(a+=l),"fallback"===i&&(o+=l);continue}const c=e.indexOf("token(",n);if(-1!==c){const t=c+6;r+=e.slice(n,c),n=t,i="token",s.push(i);continue}r+=l,n++}return r},Ap=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if("("===n)r.push(n);else if(")"===n&&(r.pop(),0===r.length))return t;t++}return t};function Dp(e){const t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}const Mp=/({([^}]*)})/g,Lp=/[{}]/g,Fp=/\w+\.\w+/,Np=e=>{if(!Ac(e))return[];const t=e.match(Mp);return t?t.map(e=>e.replace(Lp,"")).map(e=>e.trim()):[]};function Wp(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((e,r)=>{const n=t[r];if(n.extensions.conditions)return e;const i=Wp(n);return e.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function $p(e){return Ic(e)&&e.reference?e.reference:String(e)}const Bp=(e,...t)=>t.map($p).join(` ${e} `).replace(/calc/g,""),Hp=(...e)=>`calc(${Bp("+",...e)})`,Vp=(...e)=>`calc(${Bp("-",...e)})`,Up=(...e)=>`calc(${Bp("*",...e)})`,qp=(...e)=>`calc(${Bp("/",...e)})`,Yp=e=>{const t=$p(e);return null==t||Number.isNaN(parseFloat(t))?Up(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Gp=Object.assign(e=>({add:(...t)=>Gp(Hp(e,...t)),subtract:(...t)=>Gp(Vp(e,...t)),multiply:(...t)=>Gp(Up(e,...t)),divide:(...t)=>Gp(qp(e,...t)),negate:()=>Gp(Yp(e)),toString:()=>e.toString()}),{add:Hp,subtract:Vp,multiply:Up,divide:qp,negate:Yp}),Qp={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:i,registerToken:a}=e;r.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const r=e.path.slice(),o=n(r,t);if(Ac(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=Gp.negate(o.ref);const l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),a(s)})}},Kp=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Xp={enforce:"post",transform(e){e.allTokens.filter(e=>Kp.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:rp(e.value)})})}},Zp=[Qp,{enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,i=t.filter(({extensions:e})=>"colors"===e.category),a=new Map,o=new Map;i.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{a.set(n(e),e)}),t.roots.forEach(r=>{const i=n(r),s=o.get(i)||[];if(s.push(e),o.set(i,s),e.extensions.default&&1===r.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const i=r.concat(e);a.set(n(i),[])}}))}),a.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),i=n(t),a=n(t.slice(1));r({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:a,virtual:!0}},"pre")})}},Xp,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],Jp=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:i,originalPath:a}=e.extensions;return{cssVar:n((i?a:e.path).filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,i=Np(e.value);return i.length?(i.forEach(t=>{const i=n(t.split("."),r);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value):e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),0===r.length){const t=[...e.path];t.shift(),r=t}if(0===r.length)return{};const n=r.reduce((e,t,r,n)=>{const i=n.slice(0,r+1);return e.push(i),e},[]),i=r[0],a=t.formatTokenName(r),o=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,r,n)=>(e.push(n.slice(r)),e),[]);return 0===o.length&&o.push([""]),{colorPalette:{value:a,roots:n,keys:o}}}}],ef=e=>Ic(e)&&Object.prototype.hasOwnProperty.call(e,"value");function tf(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:i={}}=e,a=e=>e.join("."),o=[],s=new Map,l=new Map,c=new Map,u=new Map,d=new Map,p=new Map,f=new Map,h=new Map,g=[];function m(e,t){o.push(e),s.set(e.name,e),t&&h.forEach(r=>{r.enforce===t&&C(r,e)})}const v=function(e){return e?{breakpoints:kd(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=Rc({...r,breakpoints:v.breakpoints,sizes:{...r.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const k=Xd((e,t)=>d.get(e)??t),_=Xd(e=>x[e]||null),w=Xd(e=>Ip(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,r]=e.split("/");if(!t||!r)return{invalid:!0,value:t};const n=k(t),i=y(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:t};const a=n??t;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${i?100*Number(i)+"%":`${r}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return k(e)||(Fp.test(e)?Op(e):e)})),S={prefix:t,allTokens:o,tokenMap:s,registerToken:m,getByName:y,formatTokenName:a,formatCssVar:(e,t)=>Td(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:f,colorPaletteMap:u,getVar:k,getCategoryValues:_,expandReferenceInValue:w};function C(e,t){if(t.extensions.references)return;if(Dc(e.match)&&!e.match(t))return;const r=(n=t,e.transform(n,S));var n;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,r);break;case"value"===e.type:t.value=r;break;default:t[e.type]=r}}function P(e){g.forEach(t=>{t.enforce===e&&t.transform(S)})}function z(e){h.forEach(t=>{t.enforce===e&&o.forEach(e=>{C(t,e)})})}return xd(b,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=rf(t))[0],i=a(t),o=Ac(e)?{value:e}:e,s={value:o.value,originalValue:o.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:n,prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:ef}),xd(n,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=nf(rf(t)))[0],i=a(t),o=Ac(e.value)?{value:{base:e.value}}:e,s={value:o.value.base||"",originalValue:o.value.base||"",name:i,path:t,extensions:{originalPath:t,category:n,conditions:o.value,condition:"base",prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:ef}),function(...e){e.forEach(e=>{h.set(e.name,e)})}(...Jp),function(...e){g.push(...e)}(...Zp),P("pre"),z("pre"),o.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return xd(t,(t,n)=>{const i=nf(n);if(!i.length)return;const a=structuredClone(e);a.value=t,a.extensions.condition=i.join(":"),r.push(a)}),r}(e);t&&0!==t.length&&t.forEach(e=>{m(e)})}),o.forEach(e=>{if(t=e.value,!Mp.test(t))return;var t;const r=function(e){return Np(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),o.forEach(e=>{Wp(e)}),P("post"),z("post"),o.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:r}=e.extensions;t&&(f.has(t)||f.set(t,new Map),f.get(t).set(r,e))}(e),function(e){const{condition:t,negative:r,virtual:n,cssVar:i}=e.extensions;!r&&!n&&t&&i&&(c.has(t)||c.set(t,new Map),c.get(t).set(i.var,e.value))}(e),function(e){const{category:t,prop:r,cssVar:n,negative:i}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const a=i?e.extensions.conditions?e.originalValue:e.value:n.ref;p.get(t).set(r,a),d.set([t,r].join("."),a)}(e),function(e){const{colorPalette:t,virtual:r,default:n}=e.extensions;t&&!r&&t.roots.forEach(r=>{const i=a(r);u.has(i)||u.set(i,new Map);const o=function(e,t){const r=e.findIndex((r,n)=>t.every((t,r)=>e[n+r]===t));return-1===r||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}([...e.path],[...r]),s=y(a(o));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(u.get(i).set(l,e.extensions.cssVar.ref),n&&1===r.length){const n=y(a(["colors","colorPalette"]));if(!n)return;const i=y(a(e.path));if(!i)return;const o=t.keys[0]?.filter(Boolean);if(!o.length)return;const s=a(r.concat(o));u.has(s)||u.set(s,new Map),u.get(s).set(n.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),x=Dp(p),S}function rf(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function nf(e){return e.filter(e=>"base"!==e)}var af;af=["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"],Array.from(new Set(af));const of={};function sf(...e){const t=wd(...e),{theme:r={},utilities:n={},globalCss:i={},cssVarsRoot:a=":where(:root, :host)",cssVarsPrefix:o="chakra",preflight:s}=t,l=function(e){const t=e.layers??Ep,r=Object.values(t).sort((e,t)=>Tp[e]-Tp[t]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(r,n){if(e.disableLayers)return n;const i=t[r];return{[`@layer ${i}`]:n}}}}(t),c=tf({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:o}),u=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],r,n)=>{let i=null;return r<=n.length-1&&(i=n[r+1]?.[1]),null!=i&&(i=ip(i)),[e,{name:e,min:np(t),max:i}]})}(e),r=Object.fromEntries(t);function n(e){return r[e]}function i(e){return ap(n(e))}const a=function(){const e=function(){const e=Object.keys(r),t=function(e){const t=[];return e.forEach((r,n)=>{let i=n;i++;let a=e[i];for(;a;)t.push([r,a]),i++,a=e[i]}),t}(e),a=e.flatMap(e=>{const t=n(e),r=[`${e}Down`,ap({max:ip(t.min)})];return[[e,ap({min:t.min})],[`${e}Only`,i(e)],r]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const r=n(e),i=n(t);return[`${e}To${a=t,a.charAt(0).toUpperCase()+a.slice(1)}`,ap({min:r.min,max:ip(i.min)})];var a}));return Object.fromEntries(a)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(r),only:i,keys:function(){return["base",...Object.keys(r)]},conditions:a,getCondition:e=>a[e],up:function(e){return ap({min:n(e).min})},down:function(e){return ap({max:ip(n(e).min)})}}}(r.breakpoints??of),d=(e=>{const{breakpoints:t,conditions:r={}}=e,n=(i=r,a=(e,t)=>[`_${e}`,t],Object.fromEntries(Object.entries(i).map(([e,t])=>a(e,t))));var i,a;const o=Object.assign({},n,t.conditions);function s(){return Object.keys(o)}function l(e){return s().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:s,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{const r=l(e),n=l(t);return r&&!n?1:!r&&n?-1:0})},has:l,resolve:function(e){return Reflect.get(o,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??of,breakpoints:u}),p=function(e){const t=(r=e.config,Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t])));var r;const n=e.tokens,i=new Map,a=new Map;function o(e,r){t[e]=r,s(e,r)}const s=(e,t)=>{const r=u(t);r&&(a.set(e,r),c(e,t))},l=new Map,c=(e,t)=>{if(!t)return;const r=u(t,e=>`type:Tokens["${e}"]`);if("object"==typeof r&&r.type)return void l.set(e,new Set([`type:${r.type}`]));if(r){const t=new Set(Object.keys(r));l.set(e,t)}const n=l.get(e)??new Set;t.property&&l.set(e,n.add(`CssProperties["${t.property}"]`))},u=(e,t)=>{const{values:r}=e,i=e=>{const r=t?.(e);return r?{[r]:r}:void 0};return Ac(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):Dc(r)?r(t?i:n.getCategoryValues):r},d=Xd((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),p=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),f=Xd((e,r)=>{const i=g(e);Ac(r)&&!r.includes("_EMO_")&&(r=n.expandReferenceInValue(r));const o=t[i];if(!o)return d(i,r);const s=a.get(i)?.[r];return o.transform?o.transform(s??r,{raw:r,token:p,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||"currentBg"===r)return{invalid:!0,value:r};const i=t(`colors.${r}`),a=t.raw(`opacity.${n}`)?.value;if(!a&&isNaN(Number(n)))return{invalid:!0,value:r};const o=i??r;return{invalid:!1,color:o,value:`color-mix(in srgb, ${o} ${a?100*Number(a)+"%":`${n}%`}, transparent)`}})(e,p)}}):d(e,s??r)});(()=>{for(const[e,r]of Object.entries(t)){const{shorthand:t}=r??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>i.set(t,e))}})(),(()=>{const e=Dp(n.colorPaletteMap);o("colorPalette",{values:Object.keys(e),transform:Xd(t=>e[t])})})(),(()=>{for(const[e,r]of Object.entries(t))r&&s(e,r)})(),(()=>{for(const[e,r]of Object.entries(t))r&&c(e,r)})();const h=i.size>0,g=Xd(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:h,transform:f,shorthands:i,resolveShorthand:g,register:o,getTypes:()=>{const e=new Map;for(const[t,r]of l.entries()){if(0===r.size){e.set(t,["string"]);continue}const n=Array.from(r).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,n)}return e},addPropertyType:(e,t)=>{const r=l.get(e)??new Set;l.set(e,new Set([...r,...t]))}}}({config:n,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:n}=r,i=Rc({textStyle:e,layerStyle:t,animationStyle:n});for(const[r,a]of Object.entries(i)){const e=Gd(a??of,lf);p.register(r,{values:Object.keys(e),transform:t=>b(e[t])})}}(),p.addPropertyType("animationName",Object.keys(r.keyframes??of));const f=new Set(["css",...p.keys(),...d.keys()]),h=Xd(e=>f.has(e)||Yd(e)),g=e=>Array.isArray(e)?e.reduce((e,t,r)=>{const n=d.breakpoints[r];return null!=t&&(e[n]=t),e},{}):e,m=function(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:i}=t;return function(e){return xd(e,r,{stop:e=>Array.isArray(e),getKey:n?i:void 0})}}({utility:p,normalize:g}),v=function(e){const{conditions:t,isValidProperty:r}=e;return function(e){return xd(e,e=>e,{getKey:(e,n)=>Ic(n)?t.has(e)||r(e)?e:function(e){const t=[];let r=0,n="",i=!1;for(let a=0;a<e.length;a++){const o=e[a];"\\"!==o||i?i?(i=!1,n+=o):("("===o?r++:")"===o&&r--,","===o&&0===r?(t.push(n.trim()),n=""):n+=o):(i=!0,n+=o)}return n&&t.push(n.trim()),t}(e).map(e=>"&"+e).join(", "):e})}}({conditions:d,isValidProperty:h}),b=Pp({transform:p.transform,conditions:d,normalize:m}),y=function(e){const{css:t,conditions:r,normalize:n,layers:i}=e;return function a(o={}){const{base:s,variants:l,defaultVariants:c,compoundVariants:u}=zp(o),d=Pp({conditions:r,normalize:n,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const r=n({...c,...Rc(e)});let a={...s};bd(a,d(r));const o=function(e,r){let n={};return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>r[e]===t))&&(n=t(n,e.css))}),n}(u,r);return i.wrap("recipes",t(a,o))},f=Object.keys(l),h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(p(e)),{className:o.className,__cva__:!0,variantMap:h,variantKeys:f,raw:p,config:o,splitVariantProps:e=>{const t=hd(e,["recipe"]),[r,n]=$c(t,f);return f.includes("colorPalette")||(r.colorPalette=e.colorPalette||c.colorPalette),f.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return a(function(e){const{css:t}=e;return function(e,r){const n=zp(r.config),i=Mc(e.variantKeys,Object.keys(r.variants)),a=t(e.base,n.base),o=Object.fromEntries(i.map(r=>[r,t(e.config.variants[r],n.variants[r])])),s=bd(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:Oc(e.className,r.className),base:a,variants:o,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:d,normalize:m,layers:l}),x=function(e){const{cva:t}=e;return function(e={}){const r=Object.entries(((e={})=>{const t=t=>{return{base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(r=e.compoundVariants,n=t,r.filter(e=>e.css[n]).map(e=>({...e,css:e.css[n]}))):[]};var r,n},r=(e.slots??[]).map(e=>[e,t(e)]);for(const[n,i]of Object.entries(e.variants??{}))for(const[e,t]of Object.entries(i))r.forEach(([r,i])=>{var a;(a=i.variants)[n]??(a[n]={}),i.variants[n][e]=t[r]??{}});return Object.fromEntries(r)})(e)).map(([e,r])=>[e,t(r)]),n=e.variants??{},i=Object.keys(n),a=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,Object.keys(t)]));let o={};return e.className&&(o=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=r.map(([t,r])=>[t,r(e)]);return Object.fromEntries(t)},{variantMap:a,variantKeys:i,splitVariantProps:function(t){const r=hd(t,["recipe"]),[n,a]=$c(r,i);return i.includes("colorPalette")||(n.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(a.orientation=t.orientation),[n,a]},classNameMap:o})}}({cva:y});function k(){const e={};for(const[t,r]of c.cssVarMap.entries()){const n=Object.fromEntries(r);if(0===Object.keys(n).length)continue;const i="base"===t?a:d.resolve(t),o=i.startsWith("@");bd(e,b(v({[i]:o?{[a]:n}:n})))}return l.wrap("tokens",e)}function _(){const e=Object.fromEntries(Object.entries(r.keyframes??of).map(([e,t])=>[`@keyframes ${e}`,t])),t=Object.assign({},e,b(v(i)));return l.wrap("base",t)}function w(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Ic(t)?t:{};let i="";r&&"parent"===n?i=`${r} `:r&&"element"===n&&(i=`&${r}`);const a={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},o={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if("element"===n){const e=Object.entries(a).reduce((e,[t,r])=>(e[t]={[i]:r},e),{});Object.assign(o,e)}else i?o[i]=a:Object.assign(o,a);return o}({preflight:s});return l.wrap("reset",e)}const S=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:r,virtual:n,conditions:i}=e.extensions,a=i||n?r.ref:e.value;t.set(e.name,{value:a,variable:r.ref})}),t}(c),C=(e,t)=>S.get(e)?.value||t;function P(e){return Object.hasOwnProperty.call(r.recipes??of,e)}function z(e){return Object.hasOwnProperty.call(r.slotRecipes??of,e)}C.var=(e,t)=>S.get(e)?.variable||t;const E=[w(),_(),k()],T={layerStyles:cf(r.layerStyles??of),textStyles:cf(r.textStyles??of),animationStyles:cf(r.animationStyles??of),tokens:uf(c,Object.keys(r.tokens??of),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:uf(c,Object.keys(r.semanticTokens??of),e=>!!e.extensions.conditions),keyframes:df(r.keyframes??of),breakpoints:df(r.breakpoints??of)};return{$$chakra:!0,_config:t,_global:E,breakpoints:u,tokens:c,conditions:d,utility:p,token:C,properties:f,layers:l,isValidProperty:h,splitCssProps:function(e){return $c(e,h)},normalizeValue:g,getTokenCss:k,getGlobalCss:_,getPreflightCss:w,css:b,cva:y,sva:x,getRecipe:function(e,t){return r.recipes?.[e]??t},getSlotRecipe:function(e,t){return r.slotRecipes?.[e]??t},hasRecipe:function(e){return P(e)||z(e)},isRecipe:P,isSlotRecipe:z,query:T}}const lf=e=>Ic(e)&&"value"in e,cf=e=>({list:()=>Object.keys(Gd(e,lf)),search(e){return this.list().filter(t=>t.includes(e))}}),uf=(e,t,r)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,n])=>(r(n,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),df=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),pf="var(--chakra-empty,/*!*/ /*!*/)",ff={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":pf,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,pf])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,pf])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},hf={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},gf={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},{variants:mf,defaultVariants:vf}=hf,bf={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},yf={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},xf={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},kf={badge:hf,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:mf,defaultVariants:vf},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}},input:yf,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:yf.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:gf,radiomark:xf,colorSwatch:bf},_f=Pd.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),wf=Pd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Sf=Pd.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),Cf=Ou.extendWith("itemBody"),Pf=zu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),zf=zu("alert").parts("title","description","root","indicator","content"),Ef=zu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Tf=zu("blockquote").parts("root","icon","content","caption"),jf=zu("card").parts("root","header","body","footer","title","description"),Rf=zu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Of=zu("data-list").parts("root","item","itemLabel","itemValue"),If=Bu.extendWith("header","body","footer","backdrop"),Af=Bu.extendWith("header","body","footer","backdrop"),Df=Hu.extendWith("textarea"),Mf=zu("empty-state",["root","content","indicator","title","description"]),Lf=Vu.extendWith("requiredIndicator"),Ff=Yu.extendWith("content"),Nf=Gu.extendWith("itemContent","dropzoneContent","fileText"),Wf=zu("list").parts("root","item","indicator"),$f=ed.extendWith("itemCommand"),Bf=zu("select").parts("root","field","indicator"),Hf=nd.extendWith("header","body","footer"),Vf=od.extendWith("itemAddon","itemIndicator"),Uf=Vf.extendWith("itemContent","itemDescription"),qf=sd.extendWith("itemIndicator"),Yf=ud.extendWith("indicatorGroup"),Gf=$u.extendWith("indicatorGroup","empty"),Qf=dd.extendWith("markerIndicator"),Kf=zu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Xf=zu("status").parts("root","indicator"),Zf=zu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Jf=pd.extendWith("indicator"),eh=zu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),th=zu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),rh=zu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),nh=zu("tag").parts("root","label","closeTrigger","startElement","endElement"),ih=zu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),ah=Nu.extendWith("channelText"),oh=zu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Fu.extendWith("valueText");const sh=Ju,lh={className:"chakra-accordion",slots:Cf.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}},ch={className:"chakra-action-bar",slots:Pf.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},uh={slots:zf.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}},dh={slots:Iu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},ph={className:"chakra-blockquote",slots:Tf.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},fh={className:"chakra-breadcrumb",slots:Ef.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},hh={className:"chakra-card",slots:jf.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}},gh={slots:Du.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:gf.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:gf.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:gf.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:gf.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:gf.variants?.size?.lg}},variant:{outline:{control:gf.variants?.variant?.outline},solid:{control:gf.variants?.variant?.solid},subtle:{control:gf.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},mh={slots:Rf.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:gf.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:gf.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:gf.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:gf.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:gf.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:gf.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:gf.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:gf.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},vh={slots:oh.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}},bh={slots:ju.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},yh={className:"colorPicker",slots:ah.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...bf.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...yf.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:yf.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:yf.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:yf.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:yf.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:yf.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:yf.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:yf.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:yf.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:yf.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},xh={className:"chakra-combobox",slots:Gf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},kh={slots:Of.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},_h={slots:If.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}},wh={slots:Af.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},Sh={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Ch={slots:Df.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Sh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Sh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},Ph={slots:Mf.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},zh={className:"chakra-field",slots:Lf.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},Eh={className:"fieldset",slots:Ff.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},Th={className:"chakra-file-upload",slots:Nf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}},jh={className:"chakra-hover-card",slots:Ku.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},Rh={className:"chakra-list",slots:Wf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}},Oh={className:"chakra-listbox",slots:sh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}},Ih={className:"chakra-menu",slots:$f.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Ah={className:"chakra-select",slots:Yf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},Dh={className:"chakra-native-select",slots:Bf.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Ah.variants?.variant.outline.trigger},subtle:{field:Ah.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Ah.defaultVariants};function Mh(e,t){const r={};for(const n in e){const i=t(n,e[n]);r[i[0]]=i[1]}return r}const Lh={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},Fh={className:"chakra-number-input",slots:td.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...yf.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Lh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Lh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:yf.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:yf.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:yf.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:yf.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Mh(yf.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:Nh,defaultVariants:Wh}=yf,$h={className:"chakra-pin-input",slots:rd.keys(),base:{input:{...yf.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Mh(Nh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Mh(Nh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Wh},Bh={className:"chakra-popover",slots:Hf.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}},Hh={slots:id.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},Vh={className:"chakra-progress-circle",slots:id.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}},Uh={slots:ad.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},qh={className:"chakra-radio-card",slots:Uf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:xf.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:xf.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:xf.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:xf.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:xf.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},Yh={className:"chakra-radio-group",slots:Vf.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:xf.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:xf.variants?.variant?.outline},subtle:{itemControl:xf.variants?.variant?.subtle},solid:{itemControl:xf.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:xf.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:xf.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:xf.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:xf.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},Gh={className:"chakra-rating-group",slots:qf.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}},Qh={className:"chakra-scroll-area",slots:ld.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}},Kh={className:"chakra-segment-group",slots:cd.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}},Xh={className:"chakra-slider",slots:Qf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},Zh={className:"chakra-stat",slots:Kf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},Jh={className:"chakra-status",slots:Xf.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},eg={className:"chakra-steps",slots:Zf.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},tg={slots:Jf.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},rg={className:"chakra-table",slots:eh.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},ng={slots:rh.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},ig=hf.variants?.variant,ag={slots:nh.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ig?.subtle},solid:{root:ig?.solid},outline:{root:ig?.outline},surface:{root:ig?.surface}}},defaultVariants:{size:"md",variant:"surface"}},og={slots:ih.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}},sg={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},lg={flex:"1"},cg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},ug={_selected:{layerStyle:"fill.solid"}},dg={accordion:lh,actionBar:ch,alert:uh,avatar:dh,blockquote:ph,breadcrumb:fh,card:hh,checkbox:gh,checkboxCard:mh,codeBlock:vh,collapsible:bh,dataList:kh,dialog:_h,drawer:wh,editable:Ch,emptyState:Ph,field:zh,fieldset:Eh,fileUpload:Th,hoverCard:jh,list:Rh,listbox:Oh,menu:Ih,nativeSelect:Dh,numberInput:Fh,pinInput:$h,popover:Bh,progress:Hh,progressCircle:Vh,radioCard:qh,radioGroup:Yh,ratingGroup:Gh,scrollArea:Qh,segmentGroup:Kh,select:Ah,combobox:xh,slider:Xh,stat:Zh,steps:eg,switch:tg,table:rg,tabs:ng,tag:ag,toast:{slots:th.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}},tooltip:{slots:fd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}},status:Jh,timeline:og,colorPicker:yh,qrCode:Uh,treeView:{slots:Xu.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:sg,item:sg,itemText:lg,branchText:lg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:cg,item:cg},solid:{branchControl:ug,item:ug}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},pg=Cd.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),fg=Cd.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),hg=Cd.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),gg=Cd.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),mg=Cd.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),vg=Cd.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),bg=Cd.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),yg=Cd.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),xg=Cd.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),kg=Cd.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),_g='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',wg=Cd.fonts({heading:{value:`Inter, ${_g}`},body:{value:`Inter, ${_g}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Sg=Cd.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Cg=Cd.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Pg=Cd.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),zg=Cd.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),Eg=Cd.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Tg=Cd.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),jg=Cd.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),Rg=Cd.sizes({...Eg,...zg,...jg,...Tg}),Og=Cd.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),Ig=wd(Fd,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:ff,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},tokens:{aspectRatios:fg,animations:pg,blurs:hg,borders:gg,colors:mg,durations:bg,easings:yg,fonts:wg,fontSizes:xg,fontWeights:kg,letterSpacings:Sg,lineHeights:Cg,radii:Pg,spacing:zg,sizes:Rg,zIndex:Og,cursor:vg},semanticTokens:{colors:_f,shadows:Sf,radii:wf},recipes:kf,slotRecipes:dg,textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}}});function Ag(e,t){const r=Nc();return os.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>r.token(`${e}.${t}`,t)),[r,e,t])}sf(Ig);const Dg=Zc("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Dg.displayName="AbsoluteCenter";const{withContext:Mg}=nu({key:"badge"}),Lg=Mg("span"),{withContext:Fg}=nu({key:"spinner"}),Ng=Fg("span"),Wg=os.forwardRef(function(e,t){const{spinner:r=ts.jsx(Ng,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:i,text:a,visible:o=!0,...s}=e;return o?a?ts.jsxs(wu,{ref:t,display:"contents",...s,children:["start"===n&&r,a,"end"===n&&r]}):r?ts.jsxs(wu,{ref:t,display:"contents",...s,children:[ts.jsx(Dg,{display:"inline-flex",children:r}),ts.jsx(wu,{visibility:"hidden",display:"contents",children:i})]}):ts.jsx(wu,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:$g,usePropsContext:Bg}=nu({key:"button"}),Hg=os.forwardRef(function(e,t){const r=Bg(),n=os.useMemo(()=>jc(r,e),[r,e]),i=$g(n),{loading:a,loadingText:o,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return ts.jsx(Zc.button,{type:"button",ref:t,...u,"data-loading":(d=a,d?"":void 0),disabled:a||u.disabled,className:Oc(i.className,n.className),css:[i.styles,n.css],children:!n.asChild&&a?ts.jsx(Wg,{spinner:l,text:o,spinnerPlacement:c,children:s}):s});var d}),Vg=os.forwardRef(function(e,t){return ts.jsx(Hg,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),Ug=os.forwardRef(function(e,t){const{direction:r="column",align:n,justify:i,gap:a="0.5rem",wrap:o,children:s,separator:l,className:c,...u}=e,d=os.useMemo(()=>function(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":kd(r,e=>n[e])}}({gap:a,direction:r}),[a,r]),p=os.useMemo(()=>os.isValidElement(l)?function(e){return os.Children.toArray(e).filter(e=>os.isValidElement(e))}(s).map((e,t,r)=>{const n=void 0!==e.key?e.key:t,i=l,a=os.cloneElement(i,{css:[d,i.props.css]});return ts.jsxs(os.Fragment,{children:[e,t===r.length-1?null:a]},n)}):s,[s,l,d]);return ts.jsx(Zc.div,{ref:t,display:"flex",alignItems:n,justifyContent:i,flexDirection:r,flexWrap:o,gap:l?void 0:a,className:Oc("chakra-stack",c),...u,children:p})}),{useRecipeResult:qg}=nu({key:"icon"}),Yg=os.forwardRef(function(e,t){const{styles:r,className:n,props:i}=qg({asChild:!e.as,...e});return ts.jsx(Zc.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[r,e.css],className:Oc(n,e.className)})});function Gg(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=os.Children.toArray(e.path),o=os.forwardRef((e,n)=>ts.jsx(Yg,{ref:n,asChild:!1,viewBox:t,...i,...e,children:a.length?a:ts.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}const Qg=os.forwardRef(function(e,t){const{direction:r,align:n,justify:i,wrap:a,basis:o,grow:s,shrink:l,inline:c,...u}=e;return ts.jsx(Zc.div,{ref:t,...u,css:{display:c?"inline-flex":"flex",flexDirection:r,alignItems:n,justifyContent:i,flexWrap:a,flexBasis:o,flexGrow:s,flexShrink:l,...e.css}})}),Kg=os.forwardRef(function(e,t){const{align:r,fit:n="cover",...i}=e;return ts.jsx(Zc.img,{ref:t,objectFit:n,objectPosition:r,className:Oc("chakra-image",e.className),...i})}),{withContext:Xg}=nu({key:"link"}),Zg=Xg("a"),Jg=os.forwardRef(function(e,t){const{columns:r,minChildWidth:n,...i}=e,a=Nc(),o=n?function(e,t){return kd(e,e=>{const r=t.tokens.getVar(`sizes.${e}`,"number"==typeof(n=e)?`${n}px`:n);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(n,a):kd(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return ts.jsx(iu,{ref:t,templateColumns:o,...i})}),em=os.forwardRef(function(e,t){return ts.jsx(Ug,{align:"center",...e,direction:"row",ref:t})}),tm=os.forwardRef(function(e,t){return ts.jsx(Ug,{align:"center",...e,direction:"column",ref:t})}),{withContext:rm}=nu({key:"textarea"}),nm=rm(qu),im=()=>{const[e,t]=os.useState(!1),r=os.useCallback(()=>{const e=window.innerWidth;t(e<=768)},[]);return os.useEffect(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),{isMobile:e}},am={runAssistant:`${r}/v2/run-assistant`,streamV2:`${r}/v2/stream`,cartContextSync:`${r}/shopify/cart-context/sync`,searchProductLog:`${r}/search-selected-item-log`,getUploadUrl:`${r}/get-upload-url`,trackProductView:`${r}/roi/track-view`,trackSession:`${r}/roi/track-session`,messageFeedback:`${r}/feedback/message`,generateWelcomeMessage:`${r}/generate-welcome-message`,generateFollowupNudge:`${r}/generate-followup-nudge`,generateNudgeChips:`${r}/generate-nudge-chips`,storeQuizzes:`${r}/store-quizzes`},om=Ho("sendMessageToStreamAPI",async(e,t,r,n,i,a,o,s,l)=>{const c=t.assistant_id,u={assistant_id:c,thread_id:r||void 0,message:e,src:"undefined"!=typeof window?window.location.href:"",platform:"shopify_widget",image_url:s,end_user_id:l};let d;Object.keys(u).forEach(e=>void 0===u[e]&&delete u[e]);const p={Accept:"application/json","Content-Type":"application/json"};"undefined"!=typeof window&&window.idToken&&(p.Authorization=`Bearer ${window.idToken}`);try{d=await fetch(am.runAssistant,{method:"POST",headers:p,body:JSON.stringify(u),signal:o?.signal})}catch(m){throw console.error("[Dori Widget] Run assistant request failed:",{error:m,errorName:m?.name,errorMessage:m?.message,assistant_id:c,thread_id:r}),m}if(o?.signal.aborted)return;if(429===d.status)return console.error("[Dori Widget] API rate limit exceeded:",{status:429,assistant_id:c,thread_id:r}),void i("You have exceeded the request limit. Please wait at least 24 hours and try again.");if(402===d.status)return console.error("[Dori Widget] Monthly conversation limit reached:",{status:402,assistant_id:c,thread_id:r}),void i("Hi! 😊 This store's assistant has reached its conversation limit for this month and is taking a short break. Please check back next month — and feel free to reach out to the store directly in the meantime!");if(!d.ok)throw console.error("[Dori Widget] Run assistant response not OK:",{status:d.status,statusText:d.statusText,assistant_id:c,thread_id:r}),new Error(`Run assistant request failed with status ${d.status}: ${d.statusText}`);let f;try{f=await d.json()}catch(v){throw console.error("[Dori Widget] Failed to parse run assistant response:",v),new Error("Failed to parse run assistant response")}const h=f.thread_id;if(!h)throw new Error("No thread_id received from run assistant");const g=`${am.streamV2}/${h}`;return new Promise(e=>{const t=new EventSource(g),r=()=>{t.close(),e()};o&&o.signal.addEventListener("abort",r),t.onopen=()=>{console.log("[Dori Widget] SSE stream connected",{thread_id:h})},t.onerror=()=>{console.log("[Dori Widget] SSE stream error, EventSource will auto-reconnect",{thread_id:h,readyState:t.readyState})},t.onmessage=e=>{Bo("SSE message parse",()=>{const t=JSON.parse(e.data),r={thread_id:t.thread_id,text:t.text,wait:t.wait,tool_name:t.tool_name,products:t.products,shape:t.shape,status:t.status,suggestions:t.suggestions,action:t.action};Object.keys(r).forEach(e=>void 0===r[e]&&delete r[e]),Object.keys(r).length>0&&n(r)})()},t.addEventListener("start",()=>{console.log("[Dori Widget] SSE stream started",{thread_id:h})}),t.addEventListener("end",()=>{console.log("[Dori Widget] SSE stream ended",{thread_id:h}),o&&o.signal.removeEventListener("abort",r),t.close(),a(),e()})})}),sm=Ho("trackProductClick",async(e,t,r)=>{const n={log:{assistant_id:t.assistant_id,thread_id:r,created_at:(new Date).toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(am.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})});function lm(){if("undefined"==typeof document)return null;const e=document.cookie.match(/(?:^|;\s*)dori_client_id=([^;]+)/);return e?decodeURIComponent(e[1]):null}const cm=Ho("trackProductViewsBatch",async(e,t,r,n,i,a,o,s)=>{if(0===e.length)return;const l={customer_email:a||null,customer_id:o||null,external_product_ids:e,thread_id:t,platform:n,session_key:r,sharing_id:i,end_user_id:s||null,client_id:lm()};await fetch(am.trackProductView,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(l)})}),um=Ho("trackSession",async(e,t,r,n,i,a)=>{if(!e||!t)return;const o={sharing_id:t,thread_id:e,platform:r,session_key:n,customer_id:i||null,end_user_id:a||null,client_id:lm()};await fetch(am.trackSession,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})});async function dm(e,t,r,n,i){try{const a=new AbortController,o=setTimeout(()=>a.abort(),12e3),s=n?AbortSignal.any([n,a.signal]):a.signal,l=await fetch(am.generateNudgeChips,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,nudge_position:t,last_answer_summary:r,last_user_message:i?.lastUserMessage??null,last_answer_products:i?.lastAnswerProducts??null}),signal:s});if(clearTimeout(o),!l.ok)return console.warn("[Dori Widget] fetchNudgeChips failed:",l.status),{chips:null,bannedToken:null};const c=await l.json();return{chips:Array.isArray(c?.chips)&&c.chips.length>0?c.chips:null,bannedToken:"string"==typeof c?.banned_token?c.banned_token:null}}catch(a){return"AbortError"!==a?.name&&console.warn("[Dori Widget] fetchNudgeChips error:",a),{chips:null,bannedToken:null}}}var pm=(e=>(e.OTHER="other",e.SHOPIFY="shopify",e.WORDPRESS_WOOCOMMERCE="wordpress_woocommerce",e))(pm||{});function fm(){if("undefined"==typeof window||"undefined"==typeof document)return"other";const e=window.location.href.toLowerCase(),t=window.location.pathname.toLowerCase(),r=document.body.className.toLowerCase();return"/"===t||""===t||r.includes("home")||r.includes("front-page")?"homepage":t.includes("/cart")||t.includes("/basket")||r.includes("woocommerce-cart")||t.includes("/checkout")||r.includes("woocommerce-checkout")?"cart":t.includes("/search")||e.includes("?s=")||e.includes("?q=")||r.includes("search-results")||r.includes("search")?"search":t.includes("/product/")||t.includes("/products/")||r.includes("single-product")||r.includes("product-template")||document.querySelector("[data-product-id]")||document.querySelector(".product-single")||document.querySelector("form.cart")?"product":t.includes("/category/")||t.includes("/collection/")||t.includes("/collections/")||t.includes("/product-category/")||t.includes("/shop/")||r.includes("archive")||r.includes("tax-product_cat")||r.includes("post-type-archive-product")||r.includes("collection-template")?"category":"other"}function hm(){if("undefined"==typeof document)return"";const e=document.querySelector("h1");return e?.textContent?.trim()||document.title||""}function gm(){return{page_link:"undefined"!=typeof window?window.location.href:"",page_type:fm(),h1:hm()}}function mm(){const e=gm(),t=[];return e.page_type&&"other"!==e.page_type&&t.push(`page_type: ${e.page_type}`),e.h1&&t.push(`page_title: ${e.h1}`),e.page_link&&t.push(`url: ${e.page_link}`),0===t.length?"":`[USER_PAGE_CONTEXT: ${t.join(" | ")}]\n\n`}let vm=0;function bm(e){return"shopify"===String(e?.platform||"").toLowerCase()}function ym(){if("undefined"==typeof window)return"/";const e=window.Shopify?.routes?.root||"/";return e.endsWith("/")?e:`${e}/`}function xm(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}_${Math.random().toString(36).slice(2,10)}`}function km(){if("undefined"==typeof window)return`anon_${xm()}`;if(window.DORI_CUSTOMER_ID){const e=function(){try{const e=window.localStorage.getItem(n.SHOPIFY_END_USER_SESSION);if(e&&e.trim())return e;const t=xm();return window.localStorage.setItem(n.SHOPIFY_END_USER_SESSION,t),t}catch{return xm()}}();return`shopify_customer_${String(window.DORI_CUSTOMER_ID)}_${e}`}try{const e=window.localStorage.getItem(n.SHOPIFY_END_USER_ID);if(e&&e.trim())return e;const t=`anon_${xm()}`;return window.localStorage.setItem(n.SHOPIFY_END_USER_ID,t),t}catch{return`anon_${xm()}`}}let _m=!1;async function wm(e){const t=Date.now();if(t-vm<800)return null;vm=t;const r=await async function(){try{const e=ym(),t=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!t.ok)return null;const r=await t.json(),n=String(r?.token||"").trim();return n?{token:n,item_count:Number(r?.item_count||0),currency:String(r?.currency||""),total_price:Number(r?.total_price||0),subtotal_price:Number(r?.items_subtotal_price||0),updated_at:(new Date).toISOString()}:null}catch{return null}}();if(!r)return null;try{const t=await fetch(am.cartContextSync,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({assistant_id:e.assistantId,platform:e.platform,end_user_id:e.endUserId,thread_id:e.threadId||void 0,cart:r,src:e.src||("undefined"!=typeof window?window.location.href:"")})});if(!t.ok)return null;const n=await t.json();return"string"==typeof n?.thread_id?n.thread_id:null}catch{return null}}function Sm(e,t){const r=e.toUpperCase();return!!["POST","PUT","PATCH","DELETE"].includes(r)&&["/cart/add","/cart/change","/cart/update","/cart/clear"].some(e=>t.includes(e))}function Cm(e){if(null!=e)return String(e).trim()||void 0}function Pm(e){const t=Cm(e);if(!t)return;const r=t.match(/gid:\/\/shopify\/ProductVariant\/(\d+)/i);if(r?.[1])return r[1];const n=t.match(/\d+$/);return n?.[0]||t}function zm(e){const t=Cm(e);if(t)try{const e=new URL(t,"undefined"!=typeof window?window.location.origin:"https://example.com").pathname.match(/\/products\/([^\/?#]+)/i);return e?.[1]?decodeURIComponent(e[1]):void 0}catch{const e=t.match(/\/products\/([^\/?#]+)/i);return e?.[1]?decodeURIComponent(e[1]):void 0}}async function Em(e){const t=ym(),r=await fetch(`${t}products/${encodeURIComponent(e)}.js`,{method:"GET",credentials:"include",cache:"no-store",headers:{Accept:"application/json"}});if(!r.ok)return null;const n=await r.json();return Array.isArray(n?.variants)&&0!==n.variants.length?n:null}function Tm(e){return(Array.isArray(e.options)?e.options:[]).map((e,t)=>"string"==typeof e?{name:e,values:[]}:{name:Cm(e?.name)||`Option ${t+1}`,values:Array.isArray(e?.values)?e.values.map(e=>Cm(e)).filter(e=>Boolean(e)):[]}).filter(e=>Boolean(e.name))}function jm(e,t){return 1===t?Cm(e.option1):2===t?Cm(e.option2):3===t?Cm(e.option3):void 0}function Rm(e,t){return Tm(e).map((e,r)=>{const n=r+1,i=Array.from(new Set(t.map(e=>jm(e,n)).filter(e=>Boolean(e)))),a=e.values.length>0?e.values:i;return{name:e.name,values:a}}).filter(e=>e.values.length>0)}function Om(e,t){if(!t||0===Object.keys(t).length)return[];const r=Object.entries(t).map(([e,t])=>{const r=Cm(e)?.toLowerCase(),n=Cm(t)?.toLowerCase();return r&&n?{key:r,value:n}:null}).filter(e=>Boolean(e));if(0===r.length)return[];const n=Tm(e).map((e,t)=>({key:e.name.toLowerCase(),index:t+1}));return e.variants.filter(e=>r.every(({key:t,value:r})=>{let i;if(i="option1"===t||"option2"===t||"option3"===t?Number(t.replace("option","")):n.find(e=>e.key===t)?.index,!i)return!1;const a=jm(e,i)?.toLowerCase();return a===r}))}async function Im(e,t,r){const n=ym(),i=Number(e),a={id:Number.isFinite(i)?i:e,quantity:t};let o;r&&(a.properties={_dori_thread_id:r});try{o=await fetch(`${n}cart/add.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({items:[a]})})}catch{return{type:"failed",reason:"network",message:"Network issue while adding item to cart. Please try again."}}let s=null;try{s=await o.json()}catch{s=null}if(!o.ok){const e=Cm(s?.description||s?.message),t=(e||"").toLowerCase();return 422===o.status&&(t.includes("sold out")||t.includes("out of stock")||t.includes("stock"))?{type:"failed",reason:"out_of_stock",message:"This variant is out of stock right now."}:404===o.status?{type:"failed",reason:"variant_not_found",message:"I could not find a valid variant to add to cart."}:{type:"failed",reason:"bad_request",message:e||"I couldn't add this item to cart right now."}}return{type:"success",variant_id:e,variant_title:Cm(s?.title),quantity:t}}async function Am(e,t){const r=function(e){const t=Number(e);return!Number.isFinite(t)||t<1?1:Math.max(1,Math.floor(t))}(e.quantity),n=Pm(e.variant_id);if(n)return{...await Im(n,r,t),product_title:Cm(e.product_name)};const i=Cm(e.product_handle)||zm(e.product_url);if(!i)return{type:"failed",reason:"missing_product_handle",message:"I need the product page context to add this item. Please open the product page and try again.",product_title:Cm(e.product_name)};let a=null;try{a=await Em(i)}catch{return{type:"failed",reason:"network",message:"I couldn't load product details right now. Please try again.",product_title:Cm(e.product_name)}}if(!a)return{type:"failed",reason:"product_not_found",message:"I couldn't find that product from this page context. Please open the product page and try again.",product_title:Cm(e.product_name)};const o=function(e,t){const r=Pm(t.variant_id);if(r){const t=e.variants.find(e=>Pm(e.id)===r);return t?!1===t.available?{type:"failed",reason:"out_of_stock",product_title:e.title,message:"That variant is currently out of stock."}:t:{type:"failed",reason:"variant_not_found",product_title:e.title,message:"I could not find that variant for this product."}}const n=Om(e,t.selected_options);if(1===n.length){const t=n[0];return!1===t.available?{type:"failed",reason:"out_of_stock",product_title:e.title,message:"That variant is currently out of stock."}:t}if(n.length>1){const t=n.filter(e=>!1!==e.available);return 1===t.length?t[0]:{type:"needs_options",product_title:e.title,message:"I need one more option before adding this product to your cart.",options:Rm(e,t.length>0?t:n)}}const i=e.variants.filter(e=>!1!==e.available);if(1===i.length)return i[0];if(0===i.length)return{type:"failed",reason:"out_of_stock",product_title:e.title,message:"This product is currently out of stock."};const a=Rm(e,i).filter(e=>e.values.length>1);return{type:"needs_options",product_title:e.title,message:"Please choose an option so I can add the right variant.",options:a.length>0?a:Rm(e,i)}}(a,e);if("type"in o)return o;const s=Pm(o.id);if(!s)return{type:"failed",reason:"variant_not_found",message:"I could not resolve a valid product variant to add.",product_title:a.title};const l=await Im(s,r,t);return"success"!==l.type?{...l,product_title:a.title}:{...l,product_title:a.title,variant_title:l.variant_title||Cm(o.title)}}function Dm(e){if(null==e)return;const t=String(e).trim();if(!t)return;const r=t.match(/gid:\/\/shopify\/ProductVariant\/(\d+)/i);if(r?.[1])return r[1];const n=t.match(/\d+$/);return n?.[0]||t}function Mm(e,t){const r=function(e){if(!e)return 2;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:e}).resolvedOptions().maximumFractionDigits??2}catch{return 2}}(t),n=Math.pow(10,r);return Number((e/n).toFixed(r))}async function Lm(){try{const e=ym(),t=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});return t.ok?await t.json():null}catch{return null}}async function Fm(e,t){const r=ym();try{return(await fetch(`${r}cart/change.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({line:e,quantity:t})})).ok}catch{return!1}}function Nm(e,t){if(!t||0===Object.keys(t).length)return e;const r=Object.values(t).map(e=>e.trim().toLowerCase()),n=e.filter(e=>{const t=(e.item.title||"").toLowerCase();return r.every(e=>t.includes(e))});return n.length>0?n:e}function Wm(e,t){return{type:"needs_selection",candidates:e.map(e=>({product_title:e.item.product_title,variant_title:e.item.title,quantity:e.item.quantity,variant_id:e.item.variant_id,line_index:e.lineIndex})),message:t}}const $m={create_custom_product_card:"preparingProducts",create_product_card:"preparingProducts",create_order:"startingOrder",get_product_detail:"findingProductDetails",product_retrieval:"searchingBestOptions",order_notes:"addingNotes",order_persistence:"savingOrder",payment_processing:"processingPayment",retrieve_faq:"lookingForAnswer",prompt_recommendation:"",similar_products:"searchingSimilar",track_order:"checkingOrderStatus",web_fetch:"fetchingWebPage",web_search:"searchingTheWeb",thinking:"typing"},Bm=(e,t)=>{if(e&&e in $m){const r=$m[e];if(r)return t[r]}return t.typing},Hm={minimize:"Minimize",showFullScreen:"Show Full Screen",close:"Close",reload:"Reload",askAnything:"Ask anything you need",whatsYourQuestion:"What's your question?",processing:"Processing...",writePrompt:"Write a prompt or paste a contract address",similar:"Similar",more:"More",removeProduct:"Remove product",doYouHaveSimilar:"Do you have similar to",doesProductHaveDiscount:"Does this product have a discount?",whatFeaturesSpecial:"What features make this product special?",otherColorsAvailable:"Are there other colors available?",poweredBy:"Powered by",aiCanMakeMistakes:"AI can make mistakes. Check important info",errorOccurred:"An error has occurred. Please try again.",rateLimitError:"You have exceeded the request limit. Please wait at least 24 hours and try again.",preparingProducts:"Preparing products to show you...",startingOrder:"Starting the order process...",findingProductDetails:"Finding product details for you...",searchingBestOptions:"Searching for the best options for you...",addingNotes:"Adding your notes to the order...",savingOrder:"Carefully saving your order...",processingPayment:"Processing your payment information...",lookingForAnswer:"Looking for the best answer for you...",searchingSimilar:"Searching for similar products...",checkingOrderStatus:"Checking your order status...",fetchingWebPage:"Fetching the web page for you...",searchingTheWeb:"Searching the web for you...",typing:"Typing...",imHereToHelp:"I'm here to help with anything on your mind about your purchase!",hiIm:"Hi, I'm",addToCartButton:"Add",addToCartMessage:"Add {product} to my cart",addToCartAdding:"Adding...",cartUndoRemoved:"Removed {product}",cartUndoQuantityChanged:"Updated {product}",cartUndoButton:"Undo",cartViewCart:"View Cart",cartCheckout:"Checkout",askDori:"Ask Dori!",askAgent:"Ask {name}!",topPick:"Top Pick",alsoConsider:"Also consider"},Vm={English:Hm,Spanish:{minimize:"Minimizar",showFullScreen:"Pantalla completa",close:"Cerrar",reload:"Recargar",askAnything:"Pregunta lo que necesites",whatsYourQuestion:"¿Cuál es tu pregunta?",processing:"Procesando...",writePrompt:"Escribe una consulta o pega una dirección de contrato",similar:"Similar",more:"Más",removeProduct:"Eliminar producto",doYouHaveSimilar:"¿Tienes algo similar a",doesProductHaveDiscount:"¿Este producto tiene descuento?",whatFeaturesSpecial:"¿Qué características hacen especial este producto?",otherColorsAvailable:"¿Hay otros colores disponibles?",poweredBy:"Desarrollado por",aiCanMakeMistakes:"La IA puede cometer errores. Verifica la información importante",errorOccurred:"Ha ocurrido un error. Por favor, inténtalo de nuevo.",rateLimitError:"Has excedido el límite de solicitudes. Por favor espera al menos 24 horas e inténtalo de nuevo.",preparingProducts:"Preparando productos para mostrarte...",startingOrder:"Iniciando el proceso de pedido...",findingProductDetails:"Buscando detalles del producto para ti...",searchingBestOptions:"Buscando las mejores opciones para ti...",addingNotes:"Agregando tus notas al pedido...",savingOrder:"Guardando cuidadosamente tu pedido...",processingPayment:"Procesando tu información de pago...",lookingForAnswer:"Buscando la mejor respuesta para ti...",searchingSimilar:"Buscando productos similares...",checkingOrderStatus:"Verificando el estado de tu pedido...",fetchingWebPage:"Obteniendo la página web para ti...",searchingTheWeb:"Buscando en la web para ti...",typing:"Escribiendo...",imHereToHelp:"¡Estoy aquí para ayudarte con cualquier cosa sobre tu compra!",hiIm:"Hola, soy",addToCartButton:"Agregar",addToCartMessage:"Agregar {product} a mi carrito",addToCartAdding:"Agregando...",cartUndoRemoved:"{product} eliminado",cartUndoQuantityChanged:"{product} actualizado",cartUndoButton:"Deshacer",cartViewCart:"Ver carrito",cartCheckout:"Pagar",askDori:"¡Pregunta a Dori!",askAgent:"Pregunta a {name}!",topPick:"Mejor opción",alsoConsider:"También considere"},French:{minimize:"Réduire",showFullScreen:"Plein écran",close:"Fermer",reload:"Recharger",askAnything:"Posez votre question",whatsYourQuestion:"Quelle est votre question?",processing:"Traitement en cours...",writePrompt:"Écrivez une demande ou collez une adresse de contrat",similar:"Similaire",more:"Plus",removeProduct:"Retirer le produit",doYouHaveSimilar:"Avez-vous quelque chose de similaire à",doesProductHaveDiscount:"Ce produit a-t-il une réduction?",whatFeaturesSpecial:"Quelles caractéristiques rendent ce produit spécial?",otherColorsAvailable:"Y a-t-il d'autres couleurs disponibles?",poweredBy:"Propulsé par",aiCanMakeMistakes:"L'IA peut faire des erreurs. Vérifiez les informations importantes",errorOccurred:"Une erreur s'est produite. Veuillez réessayer.",rateLimitError:"Vous avez dépassé la limite de requêtes. Veuillez attendre au moins 24 heures et réessayer.",preparingProducts:"Préparation des produits à vous montrer...",startingOrder:"Démarrage du processus de commande...",findingProductDetails:"Recherche des détails du produit pour vous...",searchingBestOptions:"Recherche des meilleures options pour vous...",addingNotes:"Ajout de vos notes à la commande...",savingOrder:"Sauvegarde soigneuse de votre commande...",processingPayment:"Traitement de vos informations de paiement...",lookingForAnswer:"Recherche de la meilleure réponse pour vous...",searchingSimilar:"Recherche de produits similaires...",checkingOrderStatus:"Vérification de l'état de votre commande...",fetchingWebPage:"Récupération de la page web pour vous...",searchingTheWeb:"Recherche sur le web pour vous...",typing:"En train d'écrire...",imHereToHelp:"Je suis là pour vous aider avec tout ce qui concerne votre achat!",hiIm:"Salut, je suis",addToCartButton:"Ajouter",addToCartMessage:"Ajouter {product} à mon panier",addToCartAdding:"Ajout en cours...",cartUndoRemoved:"{product} supprimé",cartUndoQuantityChanged:"{product} mis à jour",cartUndoButton:"Annuler",cartViewCart:"Voir le panier",cartCheckout:"Payer",askDori:"Demandez à Dori!",askAgent:"Demandez à {name}!",topPick:"Meilleur choix",alsoConsider:"À considérer aussi"},German:{minimize:"Minimieren",showFullScreen:"Vollbild",close:"Schließen",reload:"Neu laden",askAnything:"Fragen Sie was Sie möchten",whatsYourQuestion:"Was ist Ihre Frage?",processing:"Wird verarbeitet...",writePrompt:"Schreiben Sie eine Anfrage oder fügen Sie eine Vertragsadresse ein",similar:"Ähnlich",more:"Mehr",removeProduct:"Produkt entfernen",doYouHaveSimilar:"Haben Sie etwas Ähnliches wie",doesProductHaveDiscount:"Hat dieses Produkt einen Rabatt?",whatFeaturesSpecial:"Welche Funktionen machen dieses Produkt besonders?",otherColorsAvailable:"Sind andere Farben verfügbar?",poweredBy:"Betrieben von",aiCanMakeMistakes:"KI kann Fehler machen. Überprüfen Sie wichtige Informationen",errorOccurred:"Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.",rateLimitError:"Sie haben das Anforderungslimit überschritten. Bitte warten Sie mindestens 24 Stunden und versuchen Sie es erneut.",preparingProducts:"Produkte werden vorbereitet...",startingOrder:"Bestellvorgang wird gestartet...",findingProductDetails:"Produktdetails werden für Sie gesucht...",searchingBestOptions:"Die besten Optionen werden für Sie gesucht...",addingNotes:"Ihre Notizen werden zur Bestellung hinzugefügt...",savingOrder:"Ihre Bestellung wird sorgfältig gespeichert...",processingPayment:"Ihre Zahlungsinformationen werden verarbeitet...",lookingForAnswer:"Die beste Antwort wird für Sie gesucht...",searchingSimilar:"Ähnliche Produkte werden gesucht...",checkingOrderStatus:"Ihr Bestellstatus wird überprüft...",fetchingWebPage:"Webseite wird für Sie abgerufen...",searchingTheWeb:"Suche im Web für Sie...",typing:"Schreibt...",imHereToHelp:"Ich bin hier, um Ihnen bei allem rund um Ihren Kauf zu helfen!",hiIm:"Hallo, ich bin der",addToCartButton:"Hinzufügen",addToCartMessage:"{product} in meinen Warenkorb legen",addToCartAdding:"Wird hinzugefügt...",cartUndoRemoved:"{product} entfernt",cartUndoQuantityChanged:"{product} aktualisiert",cartUndoButton:"Rückgängig",cartViewCart:"Warenkorb",cartCheckout:"Zur Kasse",askDori:"Fragen Sie Dori!",askAgent:"Fragen Sie {name}!",topPick:"Top-Auswahl",alsoConsider:"Auch interessant"},Chinese:{minimize:"最小化",showFullScreen:"全屏显示",close:"关闭",reload:"重新加载",askAnything:"问我任何问题",whatsYourQuestion:"你的问题是什么?",processing:"处理中...",writePrompt:"输入提示或粘贴合约地址",similar:"相似",more:"更多",removeProduct:"移除产品",doYouHaveSimilar:"你有类似的产品吗",doesProductHaveDiscount:"这个产品有折扣吗?",whatFeaturesSpecial:"是什么特性让这个产品特别?",otherColorsAvailable:"有其他颜色可选吗?",poweredBy:"技术支持",aiCanMakeMistakes:"AI可能会出错。请检查重要信息",errorOccurred:"发生错误。请重试。",rateLimitError:"您已超出请求限制。请等待至少24小时后重试。",preparingProducts:"正在准备产品展示给您...",startingOrder:"正在开始订单流程...",findingProductDetails:"正在为您查找产品详情...",searchingBestOptions:"正在为您搜索最佳选项...",addingNotes:"正在将您的备注添加到订单...",savingOrder:"正在仔细保存您的订单...",processingPayment:"正在处理您的付款信息...",lookingForAnswer:"正在为您寻找最佳答案...",searchingSimilar:"正在搜索类似产品...",checkingOrderStatus:"正在检查您的订单状态...",fetchingWebPage:"正在为您获取网页...",searchingTheWeb:"正在为您搜索网络...",typing:"正在输入...",imHereToHelp:"我在这里帮助您解决关于购买的任何问题!",hiIm:"你好,我是",addToCartButton:"加入",addToCartMessage:"将 {product} 加入购物车",addToCartAdding:"添加中...",cartUndoRemoved:"已移除 {product}",cartUndoQuantityChanged:"已更新 {product}",cartUndoButton:"撤销",cartViewCart:"查看购物车",cartCheckout:"结账",askDori:"问 Dori!",askAgent:"问 {name}!",topPick:"首选",alsoConsider:"也可以考虑"},Japanese:{minimize:"最小化",showFullScreen:"全画面表示",close:"閉じる",reload:"再読み込み",askAnything:"何でもお聞きください",whatsYourQuestion:"ご質問は何ですか?",processing:"処理中...",writePrompt:"プロンプトを入力するか、契約アドレスを貼り付けてください",similar:"類似",more:"もっと見る",removeProduct:"商品を削除",doYouHaveSimilar:"類似の商品はありますか",doesProductHaveDiscount:"この商品は割引がありますか?",whatFeaturesSpecial:"この商品の特別な機能は何ですか?",otherColorsAvailable:"他の色はありますか?",poweredBy:"提供元",aiCanMakeMistakes:"AIは間違える可能性があります。重要な情報を確認してください",errorOccurred:"エラーが発生しました。もう一度お試しください。",rateLimitError:"リクエスト制限を超えました。少なくとも24時間待ってから再試行してください。",preparingProducts:"商品を準備しています...",startingOrder:"注文プロセスを開始しています...",findingProductDetails:"商品の詳細を検索しています...",searchingBestOptions:"最適なオプションを検索しています...",addingNotes:"メモを注文に追加しています...",savingOrder:"注文を慎重に保存しています...",processingPayment:"お支払い情報を処理しています...",lookingForAnswer:"最適な回答を探しています...",searchingSimilar:"類似商品を検索しています...",checkingOrderStatus:"注文状況を確認しています...",fetchingWebPage:"ウェブページを取得しています...",searchingTheWeb:"ウェブを検索しています...",typing:"入力中...",imHereToHelp:"ご購入に関することなら何でもお手伝いします!",hiIm:"こんにちは、私は",addToCartButton:"追加",addToCartMessage:"{product} をカートに追加",addToCartAdding:"追加中...",cartUndoRemoved:"{product} が削除されました",cartUndoQuantityChanged:"{product} が更新されました",cartUndoButton:"元に戻す",cartViewCart:"カートを見る",cartCheckout:"レジへ",askDori:"Dori に聞いて!",askAgent:"{name} に聞いて!",topPick:"イチオシ",alsoConsider:"こちらもおすすめ"},Korean:{minimize:"최소화",showFullScreen:"전체 화면",close:"닫기",reload:"새로고침",askAnything:"무엇이든 물어보세요",whatsYourQuestion:"무엇을 도와드릴까요?",processing:"처리 중...",writePrompt:"프롬프트를 입력하거나 계약 주소를 붙여넣으세요",similar:"유사",more:"더보기",removeProduct:"상품 제거",doYouHaveSimilar:"유사한 제품이 있나요",doesProductHaveDiscount:"이 제품에 할인이 있나요?",whatFeaturesSpecial:"이 제품의 특별한 기능은 무엇인가요?",otherColorsAvailable:"다른 색상도 있나요?",poweredBy:"제공",aiCanMakeMistakes:"AI는 실수할 수 있습니다. 중요한 정보를 확인하세요",errorOccurred:"오류가 발생했습니다. 다시 시도해 주세요.",rateLimitError:"요청 한도를 초과했습니다. 최소 24시간 후에 다시 시도해 주세요.",preparingProducts:"상품을 준비하고 있습니다...",startingOrder:"주문 프로세스를 시작하고 있습니다...",findingProductDetails:"상품 세부정보를 찾고 있습니다...",searchingBestOptions:"최적의 옵션을 검색하고 있습니다...",addingNotes:"메모를 주문에 추가하고 있습니다...",savingOrder:"주문을 신중하게 저장하고 있습니다...",processingPayment:"결제 정보를 처리하고 있습니다...",lookingForAnswer:"최적의 답변을 찾고 있습니다...",searchingSimilar:"유사한 상품을 검색하고 있습니다...",checkingOrderStatus:"주문 상태를 확인하고 있습니다...",fetchingWebPage:"웹페이지를 가져오고 있습니다...",searchingTheWeb:"웹에서 검색하고 있습니다...",typing:"입력 중...",imHereToHelp:"구매에 관한 모든 것을 도와드리겠습니다!",hiIm:"안녕하세요, 저는",addToCartButton:"추가",addToCartMessage:"{product}을(를) 장바구니에 추가",addToCartAdding:"추가 중...",cartUndoRemoved:"{product} 제거됨",cartUndoQuantityChanged:"{product} 업데이트됨",cartUndoButton:"실행 취소",cartViewCart:"장바구니 보기",cartCheckout:"결제",askDori:"Dori 에게 물어보세요!",askAgent:"{name} 에게 물어보세요!",topPick:"최고 추천",alsoConsider:"이것도 고려해 보세요"},Arabic:{minimize:"تصغير",showFullScreen:"ملء الشاشة",close:"إغلاق",reload:"إعادة تحميل",askAnything:"اسأل ما تحتاج",whatsYourQuestion:"ما هو سؤالك؟",processing:"جاري المعالجة...",writePrompt:"اكتب استفسارًا أو الصق عنوان العقد",similar:"مشابه",more:"المزيد",removeProduct:"إزالة المنتج",doYouHaveSimilar:"هل لديك منتج مشابه لـ",doesProductHaveDiscount:"هل هذا المنتج عليه خصم؟",whatFeaturesSpecial:"ما هي المميزات التي تجعل هذا المنتج مميزًا؟",otherColorsAvailable:"هل هناك ألوان أخرى متاحة؟",poweredBy:"مدعوم من",aiCanMakeMistakes:"يمكن للذكاء الاصطناعي أن يخطئ. تحقق من المعلومات المهمة",errorOccurred:"حدث خطأ. يرجى المحاولة مرة أخرى.",rateLimitError:"لقد تجاوزت حد الطلبات. يرجى الانتظار 24 ساعة على الأقل والمحاولة مرة أخرى.",preparingProducts:"جاري تحضير المنتجات لعرضها عليك...",startingOrder:"جاري بدء عملية الطلب...",findingProductDetails:"جاري البحث عن تفاصيل المنتج من أجلك...",searchingBestOptions:"جاري البحث عن أفضل الخيارات لك...",addingNotes:"جاري إضافة ملاحظاتك إلى الطلب...",savingOrder:"جاري حفظ طلبك بعناية...",processingPayment:"جاري معالجة معلومات الدفع الخاصة بك...",lookingForAnswer:"جاري البحث عن أفضل إجابة لك...",searchingSimilar:"جاري البحث عن منتجات مشابهة...",checkingOrderStatus:"جاري التحقق من حالة طلبك...",fetchingWebPage:"جاري جلب صفحة الويب لك...",searchingTheWeb:"جاري البحث في الويب لك...",typing:"يكتب...",imHereToHelp:"أنا هنا لمساعدتك في أي شيء يتعلق بشرائك!",hiIm:"مرحبا، أنا",addToCartButton:"أضف",addToCartMessage:"أضف {product} إلى سلة التسوق",addToCartAdding:"جاري الإضافة...",cartUndoRemoved:"تم إزالة {product}",cartUndoQuantityChanged:"تم تحديث {product}",cartUndoButton:"تراجع",cartViewCart:"عرض السلة",cartCheckout:"الدفع",askDori:"اسأل Dori!",askAgent:"اسأل {name}!",topPick:"الخيار الأفضل",alsoConsider:"قد يعجبك أيضاً"},Hindi:{minimize:"छोटा करें",showFullScreen:"पूर्ण स्क्रीन",close:"बंद करें",reload:"पुनः लोड करें",askAnything:"कुछ भी पूछें",whatsYourQuestion:"आपका सवाल क्या है?",processing:"प्रक्रिया जारी है...",writePrompt:"एक प्रॉम्प्ट लिखें या अनुबंध पता पेस्ट करें",similar:"समान",more:"अधिक",removeProduct:"उत्पाद हटाएं",doYouHaveSimilar:"क्या आपके पास इसके समान कुछ है",doesProductHaveDiscount:"क्या इस उत्पाद पर छूट है?",whatFeaturesSpecial:"कौन सी विशेषताएं इस उत्पाद को विशेष बनाती हैं?",otherColorsAvailable:"क्या अन्य रंग उपलब्ध हैं?",poweredBy:"द्वारा संचालित",aiCanMakeMistakes:"AI गलतियाँ कर सकता है। महत्वपूर्ण जानकारी की जाँच करें",errorOccurred:"एक त्रुटि हुई है। कृपया पुनः प्रयास करें।",rateLimitError:"आपने अनुरोध सीमा पार कर ली है। कृपया कम से कम 24 घंटे प्रतीक्षा करें और पुनः प्रयास करें।",preparingProducts:"आपको दिखाने के लिए उत्पाद तैयार किए जा रहे हैं...",startingOrder:"ऑर्डर प्रक्रिया शुरू की जा रही है...",findingProductDetails:"आपके लिए उत्पाद विवरण खोजे जा रहे हैं...",searchingBestOptions:"आपके लिए सर्वोत्तम विकल्प खोजे जा रहे हैं...",addingNotes:"आपके नोट्स ऑर्डर में जोड़े जा रहे हैं...",savingOrder:"आपका ऑर्डर सावधानीपूर्वक सहेजा जा रहा है...",processingPayment:"आपकी भुगतान जानकारी संसाधित की जा रही है...",lookingForAnswer:"आपके लिए सर्वोत्तम उत्तर खोजा जा रहा है...",searchingSimilar:"समान उत्पाद खोजे जा रहे हैं...",checkingOrderStatus:"आपकी ऑर्डर स्थिति की जाँच की जा रही है...",fetchingWebPage:"आपके लिए वेब पेज प्राप्त कर रहे हैं...",searchingTheWeb:"आपके लिए वेब पर खोज रहे हैं...",typing:"टाइप कर रहा है...",imHereToHelp:"मैं आपकी खरीदारी से संबंधित किसी भी बात में मदद के लिए यहाँ हूँ!",hiIm:"नमस्ते, मैं",addToCartButton:"जोड़ें",addToCartMessage:"{product} को मेरी कार्ट में जोड़ें",addToCartAdding:"जोड़ा जा रहा है...",cartUndoRemoved:"{product} हटाया गया",cartUndoQuantityChanged:"{product} अपडेट किया गया",cartUndoButton:"पूर्ववत करें",cartViewCart:"कार्ट देखें",cartCheckout:"चेकआउट",askDori:"Dori से पूछें!",askAgent:"{name} से पूछें!",topPick:"सबसे अच्छा",alsoConsider:"ये भी देखें"},Portuguese:{minimize:"Minimizar",showFullScreen:"Tela cheia",close:"Fechar",reload:"Recarregar",askAnything:"Pergunte o que precisar",whatsYourQuestion:"Qual é a sua pergunta?",processing:"Processando...",writePrompt:"Escreva uma consulta ou cole um endereço de contrato",similar:"Similar",more:"Mais",removeProduct:"Remover produto",doYouHaveSimilar:"Você tem algo similar a",doesProductHaveDiscount:"Este produto tem desconto?",whatFeaturesSpecial:"Que características tornam este produto especial?",otherColorsAvailable:"Há outras cores disponíveis?",poweredBy:"Desenvolvido por",aiCanMakeMistakes:"A IA pode cometer erros. Verifique informações importantes",errorOccurred:"Ocorreu um erro. Por favor, tente novamente.",rateLimitError:"Você excedeu o limite de solicitações. Aguarde pelo menos 24 horas e tente novamente.",preparingProducts:"Preparando produtos para mostrar a você...",startingOrder:"Iniciando o processo de pedido...",findingProductDetails:"Procurando detalhes do produto para você...",searchingBestOptions:"Buscando as melhores opções para você...",addingNotes:"Adicionando suas notas ao pedido...",savingOrder:"Salvando cuidadosamente seu pedido...",processingPayment:"Processando suas informações de pagamento...",lookingForAnswer:"Procurando a melhor resposta para você...",searchingSimilar:"Buscando produtos similares...",checkingOrderStatus:"Verificando o status do seu pedido...",fetchingWebPage:"Buscando a página web para você...",searchingTheWeb:"Pesquisando na web para você...",typing:"Digitando...",imHereToHelp:"Estou aqui para ajudar com qualquer coisa sobre sua compra!",hiIm:"Olá, eu sou",addToCartButton:"Adicionar",addToCartMessage:"Adicionar {product} ao meu carrinho",addToCartAdding:"Adicionando...",cartUndoRemoved:"{product} removido",cartUndoQuantityChanged:"{product} atualizado",cartUndoButton:"Desfazer",cartViewCart:"Ver carrinho",cartCheckout:"Finalizar",askDori:"Pergunte ao Dori!",askAgent:"Pergunte ao {name}!",topPick:"Melhor escolha",alsoConsider:"Considere também"},Russian:{minimize:"Свернуть",showFullScreen:"Полный экран",close:"Закрыть",reload:"Перезагрузить",askAnything:"Спросите что угодно",whatsYourQuestion:"Какой у вас вопрос?",processing:"Обработка...",writePrompt:"Напишите запрос или вставьте адрес контракта",similar:"Похожие",more:"Еще",removeProduct:"Удалить продукт",doYouHaveSimilar:"У вас есть что-то похожее на",doesProductHaveDiscount:"Есть ли скидка на этот продукт?",whatFeaturesSpecial:"Какие функции делают этот продукт особенным?",otherColorsAvailable:"Есть ли другие цвета?",poweredBy:"Работает на",aiCanMakeMistakes:"ИИ может ошибаться. Проверяйте важную информацию",errorOccurred:"Произошла ошибка. Пожалуйста, попробуйте снова.",rateLimitError:"Вы превысили лимит запросов. Подождите не менее 24 часов и попробуйте снова.",preparingProducts:"Подготавливаем продукты для вас...",startingOrder:"Начинаем процесс заказа...",findingProductDetails:"Ищем детали продукта для вас...",searchingBestOptions:"Ищем лучшие варианты для вас...",addingNotes:"Добавляем ваши заметки к заказу...",savingOrder:"Бережно сохраняем ваш заказ...",processingPayment:"Обрабатываем вашу платежную информацию...",lookingForAnswer:"Ищем лучший ответ для вас...",searchingSimilar:"Ищем похожие продукты...",checkingOrderStatus:"Проверяем статус вашего заказа...",fetchingWebPage:"Загружаем веб-страницу для вас...",searchingTheWeb:"Ищем в интернете для вас...",typing:"Печатает...",imHereToHelp:"Я здесь, чтобы помочь вам с покупкой!",hiIm:"Привет, я",addToCartButton:"Добавить",addToCartMessage:"Добавить {product} в корзину",addToCartAdding:"Добавление...",cartUndoRemoved:"{product} удален",cartUndoQuantityChanged:"{product} обновлен",cartUndoButton:"Отменить",cartViewCart:"Корзина",cartCheckout:"Оформить",askDori:"Спросите Dori!",askAgent:"Спросите {name}!",topPick:"Лучший выбор",alsoConsider:"Также обратите внимание"},Italian:{minimize:"Riduci",showFullScreen:"Schermo intero",close:"Chiudi",reload:"Ricarica",askAnything:"Chiedi qualsiasi cosa",whatsYourQuestion:"Qual è la tua domanda?",processing:"Elaborazione...",writePrompt:"Scrivi una richiesta o incolla un indirizzo di contratto",similar:"Simile",more:"Altro",removeProduct:"Rimuovi prodotto",doYouHaveSimilar:"Hai qualcosa di simile a",doesProductHaveDiscount:"Questo prodotto ha uno sconto?",whatFeaturesSpecial:"Quali caratteristiche rendono speciale questo prodotto?",otherColorsAvailable:"Ci sono altri colori disponibili?",poweredBy:"Offerto da",aiCanMakeMistakes:"L'IA può commettere errori. Verifica le informazioni importanti",errorOccurred:"Si è verificato un errore. Per favore riprova.",rateLimitError:"Hai superato il limite di richieste. Attendi almeno 24 ore e riprova.",preparingProducts:"Preparazione dei prodotti da mostrarti...",startingOrder:"Avvio del processo di ordine...",findingProductDetails:"Ricerca dei dettagli del prodotto per te...",searchingBestOptions:"Ricerca delle migliori opzioni per te...",addingNotes:"Aggiunta delle tue note all'ordine...",savingOrder:"Salvataggio attento del tuo ordine...",processingPayment:"Elaborazione delle tue informazioni di pagamento...",lookingForAnswer:"Ricerca della migliore risposta per te...",searchingSimilar:"Ricerca di prodotti simili...",checkingOrderStatus:"Verifica dello stato del tuo ordine...",fetchingWebPage:"Recupero della pagina web per te...",searchingTheWeb:"Ricerca sul web per te...",typing:"Sta scrivendo...",imHereToHelp:"Sono qui per aiutarti con qualsiasi cosa riguardo il tuo acquisto!",hiIm:"Ciao, sono",addToCartButton:"Aggiungi",addToCartMessage:"Aggiungi {product} al mio carrello",addToCartAdding:"Aggiungendo...",cartUndoRemoved:"{product} rimosso",cartUndoQuantityChanged:"{product} aggiornato",cartUndoButton:"Annulla",cartViewCart:"Vedi carrello",cartCheckout:"Cassa",askDori:"Chiedi a Dori!",askAgent:"Chiedi a {name}!",topPick:"Scelta top",alsoConsider:"Da considerare anche"},Turkish:{minimize:"Küçült",showFullScreen:"Tam Ekran",close:"Kapat",reload:"Yenile",askAnything:"Ne istersen sor",whatsYourQuestion:"Sorunuz nedir?",processing:"İşleniyor...",writePrompt:"Bir istem yazın veya bir sözleşme adresi yapıştırın",similar:"Benzer",more:"Daha fazla",removeProduct:"Ürünü kaldır",doYouHaveSimilar:"Buna benzer bir şey var mı",doesProductHaveDiscount:"Bu üründe indirim var mı?",whatFeaturesSpecial:"Bu ürünü özel kılan özellikler nelerdir?",otherColorsAvailable:"Başka renkler mevcut mu?",poweredBy:"Destekleyen",aiCanMakeMistakes:"Yapay zeka hata yapabilir. Önemli bilgileri kontrol edin",errorOccurred:"Bir hata oluştu. Lütfen tekrar deneyin.",rateLimitError:"İstek sınırını aştınız. Lütfen en az 24 saat bekleyin ve tekrar deneyin.",preparingProducts:"Size göstermek için ürünler hazırlanıyor...",startingOrder:"Sipariş süreci başlatılıyor...",findingProductDetails:"Sizin için ürün detayları bulunuyor...",searchingBestOptions:"Sizin için en iyi seçenekler aranıyor...",addingNotes:"Notlarınız siparişe ekleniyor...",savingOrder:"Siparişiniz dikkatle kaydediliyor...",processingPayment:"Ödeme bilgileriniz işleniyor...",lookingForAnswer:"Sizin için en iyi cevap aranıyor...",searchingSimilar:"Benzer ürünler aranıyor...",checkingOrderStatus:"Sipariş durumunuz kontrol ediliyor...",fetchingWebPage:"Web sayfası sizin için getiriliyor...",searchingTheWeb:"Sizin için web'de aranıyor...",typing:"Yazıyor...",imHereToHelp:"Satın alma işleminizle ilgili her konuda yardımcı olmak için buradayım!",hiIm:"Merhaba, ben",addToCartButton:"Ekle",addToCartMessage:"{product} sepetime ekle",addToCartAdding:"Ekleniyor...",cartUndoRemoved:"{product} kaldırıldı",cartUndoQuantityChanged:"{product} güncellendi",cartUndoButton:"Geri al",cartViewCart:"Sepeti gör",cartCheckout:"Ödeme",askDori:"Dori'ye sorun!",askAgent:"{name}'e sorun!",topPick:"En İyi Seçim",alsoConsider:"Bunları da değerlendirin"},Polish:{minimize:"Minimalizuj",showFullScreen:"Pełny ekran",close:"Zamknij",reload:"Odśwież",askAnything:"Zapytaj o cokolwiek",whatsYourQuestion:"Jakie jest twoje pytanie?",processing:"Przetwarzanie...",writePrompt:"Wpisz zapytanie lub wklej adres kontraktu",similar:"Podobne",more:"Więcej",removeProduct:"Usuń produkt",doYouHaveSimilar:"Czy masz coś podobnego do",doesProductHaveDiscount:"Czy ten produkt ma zniżkę?",whatFeaturesSpecial:"Jakie funkcje sprawiają, że ten produkt jest wyjątkowy?",otherColorsAvailable:"Czy są dostępne inne kolory?",poweredBy:"Obsługiwane przez",aiCanMakeMistakes:"AI może popełniać błędy. Sprawdź ważne informacje",errorOccurred:"Wystąpił błąd. Spróbuj ponownie.",rateLimitError:"Przekroczyłeś limit żądań. Poczekaj co najmniej 24 godziny i spróbuj ponownie.",preparingProducts:"Przygotowywanie produktów do pokazania...",startingOrder:"Rozpoczynanie procesu zamówienia...",findingProductDetails:"Wyszukiwanie szczegółów produktu dla ciebie...",searchingBestOptions:"Wyszukiwanie najlepszych opcji dla ciebie...",addingNotes:"Dodawanie twoich notatek do zamówienia...",savingOrder:"Ostrożne zapisywanie twojego zamówienia...",processingPayment:"Przetwarzanie informacji o płatności...",lookingForAnswer:"Wyszukiwanie najlepszej odpowiedzi dla ciebie...",searchingSimilar:"Wyszukiwanie podobnych produktów...",checkingOrderStatus:"Sprawdzanie statusu twojego zamówienia...",fetchingWebPage:"Pobieranie strony internetowej dla ciebie...",searchingTheWeb:"Wyszukiwanie w sieci dla ciebie...",typing:"Pisze...",imHereToHelp:"Jestem tutaj, aby pomóc ci we wszystkim związanym z twoim zakupem!",hiIm:"Cześć, jestem",addToCartButton:"Dodaj",addToCartMessage:"Dodaj {product} do koszyka",addToCartAdding:"Dodawanie...",cartUndoRemoved:"{product} usunięty",cartUndoQuantityChanged:"{product} zaktualizowany",cartUndoButton:"Cofnij",cartViewCart:"Zobacz koszyk",cartCheckout:"Kasa",askDori:"Zapytaj Dori!",askAgent:"Zapytaj {name}!",topPick:"Najlepszy wybór",alsoConsider:"Warto też rozważyć"},Dutch:{minimize:"Minimaliseren",showFullScreen:"Volledig scherm",close:"Sluiten",reload:"Herladen",askAnything:"Vraag wat je wilt",whatsYourQuestion:"Wat is je vraag?",processing:"Verwerken...",writePrompt:"Schrijf een prompt of plak een contractadres",similar:"Vergelijkbaar",more:"Meer",removeProduct:"Product verwijderen",doYouHaveSimilar:"Heb je iets vergelijkbaars met",doesProductHaveDiscount:"Heeft dit product korting?",whatFeaturesSpecial:"Welke functies maken dit product speciaal?",otherColorsAvailable:"Zijn er andere kleuren beschikbaar?",poweredBy:"Mogelijk gemaakt door",aiCanMakeMistakes:"AI kan fouten maken. Controleer belangrijke informatie",errorOccurred:"Er is een fout opgetreden. Probeer het opnieuw.",rateLimitError:"Je hebt de aanvraaglimiet overschreden. Wacht minimaal 24 uur en probeer het opnieuw.",preparingProducts:"Producten voorbereiden om te tonen...",startingOrder:"Bestelproces starten...",findingProductDetails:"Productdetails voor je zoeken...",searchingBestOptions:"De beste opties voor je zoeken...",addingNotes:"Je notities aan de bestelling toevoegen...",savingOrder:"Je bestelling zorgvuldig opslaan...",processingPayment:"Je betalingsinformatie verwerken...",lookingForAnswer:"Het beste antwoord voor je zoeken...",searchingSimilar:"Vergelijkbare producten zoeken...",checkingOrderStatus:"Je bestelstatus controleren...",fetchingWebPage:"De webpagina wordt voor je opgehaald...",searchingTheWeb:"Op het web zoeken voor je...",typing:"Aan het typen...",imHereToHelp:"Ik ben hier om je te helpen met alles over je aankoop!",hiIm:"Hoi, ik ben",addToCartButton:"Toevoegen",addToCartMessage:"{product} aan mijn winkelwagen toevoegen",addToCartAdding:"Toevoegen...",cartUndoRemoved:"{product} verwijderd",cartUndoQuantityChanged:"{product} bijgewerkt",cartUndoButton:"Ongedaan",cartViewCart:"Winkelwagen bekijken",cartCheckout:"Afrekenen",askDori:"Vraag Dori!",askAgent:"Vraag {name}!",topPick:"Topkeuze",alsoConsider:"Ook het overwegen waard"},Ukrainian:{minimize:"Згорнути",showFullScreen:"Повний екран",close:"Закрити",reload:"Перезавантажити",askAnything:"Запитайте будь-що",whatsYourQuestion:"Яке ваше питання?",processing:"Обробка...",writePrompt:"Напишіть запит або вставте адресу контракту",similar:"Схожі",more:"Більше",removeProduct:"Видалити продукт",doYouHaveSimilar:"Чи є у вас щось схоже на",doesProductHaveDiscount:"Чи є знижка на цей продукт?",whatFeaturesSpecial:"Які функції роблять цей продукт особливим?",otherColorsAvailable:"Чи є інші кольори?",poweredBy:"Працює на",aiCanMakeMistakes:"ШІ може помилятися. Перевіряйте важливу інформацію",errorOccurred:"Сталася помилка. Будь ласка, спробуйте знову.",rateLimitError:"Ви перевищили ліміт запитів. Зачекайте щонайменше 24 години та спробуйте знову.",preparingProducts:"Підготовка продуктів для вас...",startingOrder:"Початок процесу замовлення...",findingProductDetails:"Пошук деталей продукту для вас...",searchingBestOptions:"Пошук найкращих варіантів для вас...",addingNotes:"Додавання ваших приміток до замовлення...",savingOrder:"Ретельне збереження вашого замовлення...",processingPayment:"Обробка вашої платіжної інформації...",lookingForAnswer:"Пошук найкращої відповіді для вас...",searchingSimilar:"Пошук схожих продуктів...",checkingOrderStatus:"Перевірка статусу вашого замовлення...",fetchingWebPage:"Завантажуємо веб-сторінку для вас...",searchingTheWeb:"Шукаємо в інтернеті для вас...",typing:"Друкує...",imHereToHelp:"Я тут, щоб допомогти вам з покупкою!",hiIm:"Привіт, я",addToCartButton:"Додати",addToCartMessage:"Додати {product} до кошика",addToCartAdding:"Додається...",cartUndoRemoved:"{product} видалено",cartUndoQuantityChanged:"{product} оновлено",cartUndoButton:"Скасувати",cartViewCart:"Переглянути кошик",cartCheckout:"Оформити",askDori:"Запитайте Dori!",askAgent:"Запитайте {name}!",topPick:"Найкращий вибір",alsoConsider:"Також варто розглянути"},Vietnamese:{minimize:"Thu nhỏ",showFullScreen:"Toàn màn hình",close:"Đóng",reload:"Tải lại",askAnything:"Hỏi bất cứ điều gì",whatsYourQuestion:"Câu hỏi của bạn là gì?",processing:"Đang xử lý...",writePrompt:"Viết câu hỏi hoặc dán địa chỉ hợp đồng",similar:"Tương tự",more:"Thêm",removeProduct:"Xóa sản phẩm",doYouHaveSimilar:"Bạn có sản phẩm tương tự",doesProductHaveDiscount:"Sản phẩm này có giảm giá không?",whatFeaturesSpecial:"Tính năng nào làm cho sản phẩm này đặc biệt?",otherColorsAvailable:"Có màu khác không?",poweredBy:"Được cung cấp bởi",aiCanMakeMistakes:"AI có thể mắc lỗi. Kiểm tra thông tin quan trọng",errorOccurred:"Đã xảy ra lỗi. Vui lòng thử lại.",rateLimitError:"Bạn đã vượt quá giới hạn yêu cầu. Vui lòng đợi ít nhất 24 giờ và thử lại.",preparingProducts:"Đang chuẩn bị sản phẩm để hiển thị cho bạn...",startingOrder:"Đang bắt đầu quy trình đặt hàng...",findingProductDetails:"Đang tìm chi tiết sản phẩm cho bạn...",searchingBestOptions:"Đang tìm kiếm tùy chọn tốt nhất cho bạn...",addingNotes:"Đang thêm ghi chú của bạn vào đơn hàng...",savingOrder:"Đang cẩn thận lưu đơn hàng của bạn...",processingPayment:"Đang xử lý thông tin thanh toán của bạn...",lookingForAnswer:"Đang tìm câu trả lời tốt nhất cho bạn...",searchingSimilar:"Đang tìm kiếm sản phẩm tương tự...",checkingOrderStatus:"Đang kiểm tra trạng thái đơn hàng của bạn...",fetchingWebPage:"Đang tải trang web cho bạn...",searchingTheWeb:"Đang tìm kiếm trên web cho bạn...",typing:"Đang nhập...",imHereToHelp:"Tôi ở đây để giúp bạn mọi thứ về việc mua hàng của bạn!",hiIm:"Xin chào, tôi là",addToCartButton:"Thêm",addToCartMessage:"Thêm {product} vào giỏ hàng",addToCartAdding:"Đang thêm...",cartUndoRemoved:"Đã xóa {product}",cartUndoQuantityChanged:"Đã cập nhật {product}",cartUndoButton:"Hoàn tác",cartViewCart:"Xem giỏ hàng",cartCheckout:"Thanh toán",askDori:"Hỏi Dori!",askAgent:"Hỏi {name}!",topPick:"Lựa chọn hàng đầu",alsoConsider:"Cũng nên xem"},Thai:{minimize:"ย่อเล็กสุด",showFullScreen:"แสดงแบบเต็มหน้าจอ",close:"ปิด",reload:"โหลดใหม่",askAnything:"ถามอะไรก็ได้",whatsYourQuestion:"คำถามของคุณคืออะไร?",processing:"กำลังประมวลผล...",writePrompt:"เขียนคำถามหรือวางที่อยู่สัญญา",similar:"คล้ายกัน",more:"เพิ่มเติม",removeProduct:"ลบสินค้า",doYouHaveSimilar:"คุณมีสินค้าที่คล้ายกับ",doesProductHaveDiscount:"สินค้านี้มีส่วนลดไหม?",whatFeaturesSpecial:"คุณสมบัติอะไรที่ทำให้สินค้านี้พิเศษ?",otherColorsAvailable:"มีสีอื่นให้เลือกไหม?",poweredBy:"ขับเคลื่อนโดย",aiCanMakeMistakes:"AI อาจทำผิดพลาดได้ ตรวจสอบข้อมูลสำคัญ",errorOccurred:"เกิดข้อผิดพลาด กรุณาลองอีกครั้ง",rateLimitError:"คุณใช้คำขอเกินขีดจำกัด กรุณารออย่างน้อย 24 ชั่วโมงแล้วลองอีกครั้ง",preparingProducts:"กำลังเตรียมสินค้าเพื่อแสดงให้คุณ...",startingOrder:"กำลังเริ่มกระบวนการสั่งซื้อ...",findingProductDetails:"กำลังค้นหารายละเอียดสินค้าให้คุณ...",searchingBestOptions:"กำลังค้นหาตัวเลือกที่ดีที่สุดให้คุณ...",addingNotes:"กำลังเพิ่มบันทึกของคุณในคำสั่งซื้อ...",savingOrder:"กำลังบันทึกคำสั่งซื้อของคุณอย่างระมัดระวัง...",processingPayment:"กำลังประมวลผลข้อมูลการชำระเงินของคุณ...",lookingForAnswer:"กำลังมองหาคำตอบที่ดีที่สุดให้คุณ...",searchingSimilar:"กำลังค้นหาสินค้าที่คล้ายกัน...",checkingOrderStatus:"กำลังตรวจสอบสถานะคำสั่งซื้อของคุณ...",fetchingWebPage:"กำลังดึงหน้าเว็บให้คุณ...",searchingTheWeb:"กำลังค้นหาบนเว็บให้คุณ...",typing:"กำลังพิมพ์...",imHereToHelp:"ฉันอยู่ที่นี่เพื่อช่วยเหลือคุณในทุกเรื่องเกี่ยวกับการซื้อของคุณ!",hiIm:"สวัสดี ฉันคือ",addToCartButton:"เพิ่ม",addToCartMessage:"เพิ่ม {product} ลงในตะกร้าของฉัน",addToCartAdding:"กำลังเพิ่ม...",cartUndoRemoved:"ลบ {product} แล้ว",cartUndoQuantityChanged:"อัปเดต {product} แล้ว",cartUndoButton:"ยกเลิก",cartViewCart:"ดูตะกร้า",cartCheckout:"ชำระเงิน",askDori:"ถาม Dori!",askAgent:"ถาม {name}!",topPick:"ตัวเลือกยอดนิยม",alsoConsider:"ลองพิจารณาด้วย"},Indonesian:{minimize:"Perkecil",showFullScreen:"Layar Penuh",close:"Tutup",reload:"Muat Ulang",askAnything:"Tanya apa saja",whatsYourQuestion:"Apa pertanyaan Anda?",processing:"Memproses...",writePrompt:"Tulis pertanyaan atau tempel alamat kontrak",similar:"Serupa",more:"Lainnya",removeProduct:"Hapus produk",doYouHaveSimilar:"Apakah Anda punya yang serupa dengan",doesProductHaveDiscount:"Apakah produk ini ada diskon?",whatFeaturesSpecial:"Fitur apa yang membuat produk ini istimewa?",otherColorsAvailable:"Apakah ada warna lain?",poweredBy:"Didukung oleh",aiCanMakeMistakes:"AI bisa membuat kesalahan. Periksa informasi penting",errorOccurred:"Terjadi kesalahan. Silakan coba lagi.",rateLimitError:"Anda telah melebihi batas permintaan. Harap tunggu setidaknya 24 jam dan coba lagi.",preparingProducts:"Menyiapkan produk untuk ditampilkan kepada Anda...",startingOrder:"Memulai proses pemesanan...",findingProductDetails:"Mencari detail produk untuk Anda...",searchingBestOptions:"Mencari opsi terbaik untuk Anda...",addingNotes:"Menambahkan catatan Anda ke pesanan...",savingOrder:"Menyimpan pesanan Anda dengan hati-hati...",processingPayment:"Memproses informasi pembayaran Anda...",lookingForAnswer:"Mencari jawaban terbaik untuk Anda...",searchingSimilar:"Mencari produk serupa...",checkingOrderStatus:"Memeriksa status pesanan Anda...",fetchingWebPage:"Mengambil halaman web untuk Anda...",searchingTheWeb:"Mencari di web untuk Anda...",typing:"Sedang mengetik...",imHereToHelp:"Saya di sini untuk membantu Anda dengan apa pun tentang pembelian Anda!",hiIm:"Hai, saya",addToCartButton:"Tambah",addToCartMessage:"Tambahkan {product} ke keranjang",addToCartAdding:"Menambahkan...",cartUndoRemoved:"{product} dihapus",cartUndoQuantityChanged:"{product} diperbarui",cartUndoButton:"Batalkan",cartViewCart:"Lihat keranjang",cartCheckout:"Bayar",askDori:"Tanya Dori!",askAgent:"Tanya {name}!",topPick:"Pilihan Terbaik",alsoConsider:"Pertimbangkan juga"},Malay:{minimize:"Minima",showFullScreen:"Skrin Penuh",close:"Tutup",reload:"Muat Semula",askAnything:"Tanya apa sahaja",whatsYourQuestion:"Apakah soalan anda?",processing:"Memproses...",writePrompt:"Tulis soalan atau tampal alamat kontrak",similar:"Serupa",more:"Lagi",removeProduct:"Buang produk",doYouHaveSimilar:"Adakah anda mempunyai yang serupa dengan",doesProductHaveDiscount:"Adakah produk ini mempunyai diskaun?",whatFeaturesSpecial:"Apakah ciri yang menjadikan produk ini istimewa?",otherColorsAvailable:"Adakah warna lain tersedia?",poweredBy:"Dikuasakan oleh",aiCanMakeMistakes:"AI boleh membuat kesilapan. Semak maklumat penting",errorOccurred:"Ralat telah berlaku. Sila cuba lagi.",rateLimitError:"Anda telah melebihi had permintaan. Sila tunggu sekurang-kurangnya 24 jam dan cuba lagi.",preparingProducts:"Menyediakan produk untuk ditunjukkan kepada anda...",startingOrder:"Memulakan proses pesanan...",findingProductDetails:"Mencari butiran produk untuk anda...",searchingBestOptions:"Mencari pilihan terbaik untuk anda...",addingNotes:"Menambah nota anda ke pesanan...",savingOrder:"Menyimpan pesanan anda dengan teliti...",processingPayment:"Memproses maklumat pembayaran anda...",lookingForAnswer:"Mencari jawapan terbaik untuk anda...",searchingSimilar:"Mencari produk yang serupa...",checkingOrderStatus:"Memeriksa status pesanan anda...",fetchingWebPage:"Mendapatkan halaman web untuk anda...",searchingTheWeb:"Mencari di web untuk anda...",typing:"Sedang menaip...",imHereToHelp:"Saya di sini untuk membantu anda dengan apa sahaja tentang pembelian anda!",hiIm:"Hai, saya",addToCartButton:"Tambah",addToCartMessage:"Tambah {product} ke troli saya",addToCartAdding:"Menambah...",cartUndoRemoved:"{product} dibuang",cartUndoQuantityChanged:"{product} dikemas kini",cartUndoButton:"Buat asal",cartViewCart:"Lihat troli",cartCheckout:"Daftar keluar",askDori:"Tanya Dori!",askAgent:"Tanya {name}!",topPick:"Pilihan Utama",alsoConsider:"Turut dipertimbangkan"},Hebrew:{minimize:"מזער",showFullScreen:"מסך מלא",close:"סגור",reload:"טען מחדש",askAnything:"שאל כל שאלה",whatsYourQuestion:"מה השאלה שלך?",processing:"מעבד...",writePrompt:"כתוב שאלה או הדבק כתובת חוזה",similar:"דומה",more:"עוד",removeProduct:"הסר מוצר",doYouHaveSimilar:"יש לך משהו דומה ל",doesProductHaveDiscount:"האם למוצר הזה יש הנחה?",whatFeaturesSpecial:"אילו תכונות הופכות את המוצר הזה למיוחד?",otherColorsAvailable:"האם יש צבעים אחרים זמינים?",poweredBy:"מופעל על ידי",aiCanMakeMistakes:"בינה מלאכותית עלולה לטעות. בדוק מידע חשוב",errorOccurred:"אירעה שגיאה. אנא נסה שוב.",rateLimitError:"חרגת ממגבלת הבקשות. אנא המתן לפחות 24 שעות ונסה שוב.",preparingProducts:"מכין מוצרים להצגה עבורך...",startingOrder:"מתחיל תהליך הזמנה...",findingProductDetails:"מחפש פרטי מוצר עבורך...",searchingBestOptions:"מחפש את האפשרויות הטובות ביותר עבורך...",addingNotes:"מוסיף את ההערות שלך להזמנה...",savingOrder:"שומר בזהירות את ההזמנה שלך...",processingPayment:"מעבד את פרטי התשלום שלך...",lookingForAnswer:"מחפש את התשובה הטובה ביותר עבורך...",searchingSimilar:"מחפש מוצרים דומים...",checkingOrderStatus:"בודק את סטטוס ההזמנה שלך...",fetchingWebPage:"מביא את דף האינטרנט עבורך...",searchingTheWeb:"מחפש באינטרנט עבורך...",typing:"מקליד...",imHereToHelp:"אני כאן כדי לעזור לך עם כל דבר הקשור לרכישה שלך!",hiIm:"שלום, אני",addToCartButton:"הוסף",addToCartMessage:"הוסף את {product} לעגלה שלי",addToCartAdding:"מוסיף...",cartUndoRemoved:"{product} הוסר",cartUndoQuantityChanged:"{product} עודכן",cartUndoButton:"בטל",cartViewCart:"צפה בעגלה",cartCheckout:"לתשלום",askDori:"שאל את Dori!",askAgent:"שאל את {name}!",topPick:"הבחירה המובילה",alsoConsider:"שווה גם לשקול"},Greek:{minimize:"Ελαχιστοποίηση",showFullScreen:"Πλήρης οθόνη",close:"Κλείσιμο",reload:"Επαναφόρτωση",askAnything:"Ρωτήστε ό,τι θέλετε",whatsYourQuestion:"Ποια είναι η ερώτησή σας;",processing:"Επεξεργασία...",writePrompt:"Γράψτε μια ερώτηση ή επικολλήστε μια διεύθυνση συμβολαίου",similar:"Παρόμοιο",more:"Περισσότερα",removeProduct:"Αφαίρεση προϊόντος",doYouHaveSimilar:"Έχετε κάτι παρόμοιο με",doesProductHaveDiscount:"Έχει αυτό το προϊόν έκπτωση;",whatFeaturesSpecial:"Ποια χαρακτηριστικά κάνουν αυτό το προϊόν ξεχωριστό;",otherColorsAvailable:"Υπάρχουν άλλα χρώματα διαθέσιμα;",poweredBy:"Με την υποστήριξη",aiCanMakeMistakes:"Η τεχνητή νοημοσύνη μπορεί να κάνει λάθη. Ελέγξτε σημαντικές πληροφορίες",errorOccurred:"Παρουσιάστηκε σφάλμα. Παρακαλώ δοκιμάστε ξανά.",rateLimitError:"Έχετε υπερβεί το όριο αιτημάτων. Παρακαλώ περιμένετε τουλάχιστον 24 ώρες και δοκιμάστε ξανά.",preparingProducts:"Προετοιμασία προϊόντων για εμφάνιση...",startingOrder:"Έναρξη διαδικασίας παραγγελίας...",findingProductDetails:"Αναζήτηση λεπτομερειών προϊόντος για εσάς...",searchingBestOptions:"Αναζήτηση καλύτερων επιλογών για εσάς...",addingNotes:"Προσθήκη σημειώσεών σας στην παραγγελία...",savingOrder:"Προσεκτική αποθήκευση της παραγγελίας σας...",processingPayment:"Επεξεργασία πληροφοριών πληρωμής...",lookingForAnswer:"Αναζήτηση καλύτερης απάντησης για εσάς...",searchingSimilar:"Αναζήτηση παρόμοιων προϊόντων...",checkingOrderStatus:"Έλεγχος κατάστασης παραγγελίας σας...",fetchingWebPage:"Ανάκτηση ιστοσελίδας για εσάς...",searchingTheWeb:"Αναζήτηση στο διαδίκτυο για εσάς...",typing:"Πληκτρολογεί...",imHereToHelp:"Είμαι εδώ για να σας βοηθήσω με οτιδήποτε σχετικό με την αγορά σας!",hiIm:"Γεια, είμαι",addToCartButton:"Προσθήκη",addToCartMessage:"Προσθήκη {product} στο καλάθι μου",addToCartAdding:"Προσθήκη...",cartUndoRemoved:"{product} αφαιρέθηκε",cartUndoQuantityChanged:"{product} ενημερώθηκε",cartUndoButton:"Αναίρεση",cartViewCart:"Προβολή καλαθιού",cartCheckout:"Ταμείο",askDori:"Ρωτήστε Dori!",askAgent:"Ρωτήστε {name}!",topPick:"Κορυφαία επιλογή",alsoConsider:"Αξίζει επίσης"},Romanian:{minimize:"Minimizează",showFullScreen:"Ecran complet",close:"Închide",reload:"Reîncarcă",askAnything:"Întreabă orice",whatsYourQuestion:"Care este întrebarea ta?",processing:"Se procesează...",writePrompt:"Scrie o întrebare sau lipește o adresă de contract",similar:"Similar",more:"Mai mult",removeProduct:"Elimină produs",doYouHaveSimilar:"Ai ceva similar cu",doesProductHaveDiscount:"Acest produs are reducere?",whatFeaturesSpecial:"Ce caracteristici fac acest produs special?",otherColorsAvailable:"Sunt disponibile alte culori?",poweredBy:"Susținut de",aiCanMakeMistakes:"AI poate face greșeli. Verifică informațiile importante",errorOccurred:"A apărut o eroare. Te rugăm să încerci din nou.",rateLimitError:"Ai depășit limita de solicitări. Te rugăm să aștepți cel puțin 24 de ore și să încerci din nou.",preparingProducts:"Se pregătesc produsele pentru a fi afișate...",startingOrder:"Se inițiază procesul de comandă...",findingProductDetails:"Se caută detalii despre produs...",searchingBestOptions:"Se caută cele mai bune opțiuni pentru tine...",addingNotes:"Se adaugă notele tale la comandă...",savingOrder:"Se salvează comanda ta cu atenție...",processingPayment:"Se procesează informațiile de plată...",lookingForAnswer:"Se caută cel mai bun răspuns pentru tine...",searchingSimilar:"Se caută produse similare...",checkingOrderStatus:"Se verifică starea comenzii tale...",fetchingWebPage:"Se încarcă pagina web pentru tine...",searchingTheWeb:"Se caută pe web pentru tine...",typing:"Scrie...",imHereToHelp:"Sunt aici să te ajut cu orice legat de achiziția ta!",hiIm:"Salut, sunt",addToCartButton:"Adaugă",addToCartMessage:"Adaugă {product} în coșul meu",addToCartAdding:"Se adaugă...",cartUndoRemoved:"{product} eliminat",cartUndoQuantityChanged:"{product} actualizat",cartUndoButton:"Anulează",cartViewCart:"Vezi coș",cartCheckout:"Plată",askDori:"Întreabă Dori!",askAgent:"Întreabă {name}!",topPick:"Alegerea de top",alsoConsider:"De luat în considerare"},Czech:{minimize:"Minimalizovat",showFullScreen:"Celá obrazovka",close:"Zavřít",reload:"Znovu načíst",askAnything:"Zeptejte se na cokoliv",whatsYourQuestion:"Jaká je vaše otázka?",processing:"Zpracování...",writePrompt:"Napište dotaz nebo vložte adresu smlouvy",similar:"Podobné",more:"Více",removeProduct:"Odstranit produkt",doYouHaveSimilar:"Máte něco podobného jako",doesProductHaveDiscount:"Má tento produkt slevu?",whatFeaturesSpecial:"Jaké funkce dělají tento produkt speciálním?",otherColorsAvailable:"Jsou k dispozici jiné barvy?",poweredBy:"Používá technologii",aiCanMakeMistakes:"AI může dělat chyby. Zkontrolujte důležité informace",errorOccurred:"Došlo k chybě. Zkuste to prosím znovu.",rateLimitError:"Překročili jste limit požadavků. Počkejte prosím alespoň 24 hodin a zkuste to znovu.",preparingProducts:"Připravují se produkty k zobrazení...",startingOrder:"Zahajuje se proces objednávky...",findingProductDetails:"Hledají se podrobnosti o produktu...",searchingBestOptions:"Hledají se nejlepší možnosti pro vás...",addingNotes:"Přidávají se vaše poznámky k objednávce...",savingOrder:"Pečlivě se ukládá vaše objednávka...",processingPayment:"Zpracovávají se vaše platební informace...",lookingForAnswer:"Hledá se nejlepší odpověď pro vás...",searchingSimilar:"Hledají se podobné produkty...",checkingOrderStatus:"Kontroluje se stav vaší objednávky...",fetchingWebPage:"Načítání webové stránky pro vás...",searchingTheWeb:"Vyhledávání na webu pro vás...",typing:"Píše...",imHereToHelp:"Jsem tu, abych vám pomohl s čímkoli ohledně vašeho nákupu!",hiIm:"Ahoj, jsem",addToCartButton:"Přidat",addToCartMessage:"Přidat {product} do košíku",addToCartAdding:"Přidávám...",cartUndoRemoved:"{product} odstraněn",cartUndoQuantityChanged:"{product} aktualizován",cartUndoButton:"Zpět",cartViewCart:"Zobrazit košík",cartCheckout:"Pokladna",askDori:"Zeptejte se Dori!",askAgent:"Zeptejte se {name}!",topPick:"Nejlepší volba",alsoConsider:"Zvažte také"},Slovak:{minimize:"Minimalizovať",showFullScreen:"Celá obrazovka",close:"Zavrieť",reload:"Znovu načítať",askAnything:"Spýtajte sa na čokoľvek",whatsYourQuestion:"Aká je vaša otázka?",processing:"Spracovanie...",writePrompt:"Napíšte otázku alebo vložte adresu zmluvy",similar:"Podobné",more:"Viac",removeProduct:"Odstrániť produkt",doYouHaveSimilar:"Máte niečo podobné ako",doesProductHaveDiscount:"Má tento produkt zľavu?",whatFeaturesSpecial:"Aké funkcie robia tento produkt výnimočným?",otherColorsAvailable:"Sú k dispozícii iné farby?",poweredBy:"Používa technológiu",aiCanMakeMistakes:"AI môže robiť chyby. Skontrolujte dôležité informácie",errorOccurred:"Vyskytla sa chyba. Skúste to prosím znova.",rateLimitError:"Prekročili ste limit požiadaviek. Počkajte prosím aspoň 24 hodín a skúste to znova.",preparingProducts:"Pripravujú sa produkty na zobrazenie...",startingOrder:"Začína sa proces objednávky...",findingProductDetails:"Hľadajú sa podrobnosti o produkte...",searchingBestOptions:"Hľadajú sa najlepšie možnosti pre vás...",addingNotes:"Pridávajú sa vaše poznámky k objednávke...",savingOrder:"Starostlivo sa ukladá vaša objednávka...",processingPayment:"Spracovávajú sa vaše platobné údaje...",lookingForAnswer:"Hľadá sa najlepšia odpoveď pre vás...",searchingSimilar:"Hľadajú sa podobné produkty...",checkingOrderStatus:"Kontroluje sa stav vašej objednávky...",fetchingWebPage:"Načítava sa webová stránka pre vás...",searchingTheWeb:"Vyhľadáva sa na webe pre vás...",typing:"Píše...",imHereToHelp:"Som tu, aby som vám pomohol s čímkoľvek ohľadom vášho nákupu!",hiIm:"Ahoj, som",addToCartButton:"Pridať",addToCartMessage:"Pridať {product} do košíka",addToCartAdding:"Pridávam...",cartUndoRemoved:"{product} odstránený",cartUndoQuantityChanged:"{product} aktualizovaný",cartUndoButton:"Späť",cartViewCart:"Zobraziť košík",cartCheckout:"Pokladňa",askDori:"Spýtajte sa Dori!",askAgent:"Spýtajte sa {name}!",topPick:"Najlepšia voľba",alsoConsider:"Zvážte aj"},Swedish:{minimize:"Minimera",showFullScreen:"Fullskärm",close:"Stäng",reload:"Ladda om",askAnything:"Fråga vad du vill",whatsYourQuestion:"Vad är din fråga?",processing:"Bearbetar...",writePrompt:"Skriv en fråga eller klistra in en kontraktsadress",similar:"Liknande",more:"Mer",removeProduct:"Ta bort produkt",doYouHaveSimilar:"Har du något liknande",doesProductHaveDiscount:"Har denna produkt rabatt?",whatFeaturesSpecial:"Vilka funktioner gör denna produkt speciell?",otherColorsAvailable:"Finns det andra färger tillgängliga?",poweredBy:"Drivs av",aiCanMakeMistakes:"AI kan göra misstag. Kontrollera viktig information",errorOccurred:"Ett fel har uppstått. Försök igen.",rateLimitError:"Du har överskridit begäransegränsen. Vänta minst 24 timmar och försök igen.",preparingProducts:"Förbereder produkter att visa dig...",startingOrder:"Startar beställningsprocessen...",findingProductDetails:"Söker produktdetaljer åt dig...",searchingBestOptions:"Söker efter bästa alternativen för dig...",addingNotes:"Lägger till dina anteckningar i beställningen...",savingOrder:"Sparar din beställning noggrant...",processingPayment:"Bearbetar din betalningsinformation...",lookingForAnswer:"Letar efter bästa svaret för dig...",searchingSimilar:"Söker efter liknande produkter...",checkingOrderStatus:"Kontrollerar din beställningsstatus...",fetchingWebPage:"Hämtar webbsidan åt dig...",searchingTheWeb:"Söker på webben åt dig...",typing:"Skriver...",imHereToHelp:"Jag är här för att hjälpa dig med allt om ditt köp!",hiIm:"Hej, jag är",addToCartButton:"Lägg till",addToCartMessage:"Lägg till {product} i min kundvagn",addToCartAdding:"Lägger till...",cartUndoRemoved:"{product} borttagen",cartUndoQuantityChanged:"{product} uppdaterad",cartUndoButton:"Ångra",cartViewCart:"Visa kundvagn",cartCheckout:"Kassa",askDori:"Fråga Dori!",askAgent:"Fråga {name}!",topPick:"Toppval",alsoConsider:"Överväg även"},Norwegian:{minimize:"Minimer",showFullScreen:"Fullskjerm",close:"Lukk",reload:"Last inn på nytt",askAnything:"Spør om hva som helst",whatsYourQuestion:"Hva er spørsmålet ditt?",processing:"Behandler...",writePrompt:"Skriv et spørsmål eller lim inn en kontraktsadresse",similar:"Lignende",more:"Mer",removeProduct:"Fjern produkt",doYouHaveSimilar:"Har du noe lignende som",doesProductHaveDiscount:"Har dette produktet rabatt?",whatFeaturesSpecial:"Hvilke funksjoner gjør dette produktet spesielt?",otherColorsAvailable:"Er det andre farger tilgjengelig?",poweredBy:"Drevet av",aiCanMakeMistakes:"AI kan gjøre feil. Sjekk viktig informasjon",errorOccurred:"En feil har oppstått. Vennligst prøv igjen.",rateLimitError:"Du har overskredet forespørselsgrensen. Vent minst 24 timer og prøv igjen.",preparingProducts:"Forbereder produkter å vise deg...",startingOrder:"Starter bestillingsprosessen...",findingProductDetails:"Søker etter produktdetaljer for deg...",searchingBestOptions:"Søker etter de beste alternativene for deg...",addingNotes:"Legger til notatene dine i bestillingen...",savingOrder:"Lagrer bestillingen din nøye...",processingPayment:"Behandler betalingsinformasjonen din...",lookingForAnswer:"Leter etter det beste svaret for deg...",searchingSimilar:"Søker etter lignende produkter...",checkingOrderStatus:"Sjekker bestillingsstatusen din...",fetchingWebPage:"Henter nettsiden for deg...",searchingTheWeb:"Søker på nettet for deg...",typing:"Skriver...",imHereToHelp:"Jeg er her for å hjelpe deg med alt om kjøpet ditt!",hiIm:"Hei, jeg er",askDori:"Spør Dori!",askAgent:"Spør {name}!",topPick:"Toppvalg",alsoConsider:"Vurder også"},Danish:{minimize:"Minimer",showFullScreen:"Fuld skærm",close:"Luk",reload:"Genindlæs",askAnything:"Spørg om hvad som helst",whatsYourQuestion:"Hvad er dit spørgsmål?",processing:"Behandler...",writePrompt:"Skriv et spørgsmål eller indsæt en kontraktadresse",similar:"Lignende",more:"Mere",removeProduct:"Fjern produkt",doYouHaveSimilar:"Har du noget lignende som",doesProductHaveDiscount:"Har dette produkt rabat?",whatFeaturesSpecial:"Hvilke funktioner gør dette produkt specielt?",otherColorsAvailable:"Er der andre farver tilgængelige?",poweredBy:"Drevet af",aiCanMakeMistakes:"AI kan lave fejl. Tjek vigtig information",errorOccurred:"Der opstod en fejl. Prøv venligst igen.",rateLimitError:"Du har overskredet anmodningsgrænsen. Vent venligst mindst 24 timer og prøv igen.",preparingProducts:"Forbereder produkter til at vise dig...",startingOrder:"Starter bestillingsprocessen...",findingProductDetails:"Søger efter produktdetaljer til dig...",searchingBestOptions:"Søger efter de bedste muligheder til dig...",addingNotes:"Tilføjer dine noter til bestillingen...",savingOrder:"Gemmer din bestilling omhyggeligt...",processingPayment:"Behandler dine betalingsoplysninger...",lookingForAnswer:"Søger efter det bedste svar til dig...",searchingSimilar:"Søger efter lignende produkter...",checkingOrderStatus:"Tjekker din bestillingsstatus...",fetchingWebPage:"Henter websiden til dig...",searchingTheWeb:"Søger på nettet for dig...",typing:"Skriver...",imHereToHelp:"Jeg er her for at hjælpe dig med alt om dit køb!",hiIm:"Hej, jeg er",addToCartButton:"Tilføj",addToCartMessage:"Tilføj {product} til min kurv",addToCartAdding:"Tilføjer...",cartUndoRemoved:"{product} fjernet",cartUndoQuantityChanged:"{product} opdateret",cartUndoButton:"Fortryd",cartViewCart:"Se kurv",cartCheckout:"Kassen",askDori:"Spørg Dori!",askAgent:"Spørg {name}!",topPick:"Topvalg",alsoConsider:"Overvej også"},Finnish:{minimize:"Pienennä",showFullScreen:"Koko näyttö",close:"Sulje",reload:"Lataa uudelleen",askAnything:"Kysy mitä tahansa",whatsYourQuestion:"Mikä on kysymyksesi?",processing:"Käsitellään...",writePrompt:"Kirjoita kysymys tai liitä sopimuksen osoite",similar:"Samankaltainen",more:"Lisää",removeProduct:"Poista tuote",doYouHaveSimilar:"Onko sinulla jotain vastaavaa kuin",doesProductHaveDiscount:"Onko tässä tuotteessa alennusta?",whatFeaturesSpecial:"Mitkä ominaisuudet tekevät tästä tuotteesta erityisen?",otherColorsAvailable:"Onko muita värejä saatavilla?",poweredBy:"Tarjoaa",aiCanMakeMistakes:"Tekoäly voi tehdä virheitä. Tarkista tärkeät tiedot",errorOccurred:"Tapahtui virhe. Yritä uudelleen.",rateLimitError:"Olet ylittänyt pyyntörajan. Odota vähintään 24 tuntia ja yritä uudelleen.",preparingProducts:"Valmistellaan tuotteita näytettäväksi...",startingOrder:"Aloitetaan tilausprosessi...",findingProductDetails:"Etsitään tuotetietoja sinulle...",searchingBestOptions:"Etsitään parhaita vaihtoehtoja sinulle...",addingNotes:"Lisätään muistiinpanosi tilaukseen...",savingOrder:"Tallennetaan tilaustasi huolellisesti...",processingPayment:"Käsitellään maksutietojasi...",lookingForAnswer:"Etsitään parasta vastausta sinulle...",searchingSimilar:"Etsitään samankaltaisia tuotteita...",checkingOrderStatus:"Tarkistetaan tilauksesi tilaa...",fetchingWebPage:"Haetaan verkkosivua sinulle...",searchingTheWeb:"Etsitään verkosta sinulle...",typing:"Kirjoittaa...",imHereToHelp:"Olen täällä auttaakseni sinua kaikessa ostoksesi liittyen!",hiIm:"Hei, olen",addToCartButton:"Lisää",addToCartMessage:"Lisää {product} ostoskoriin",addToCartAdding:"Lisätään...",cartUndoRemoved:"{product} poistettu",cartUndoQuantityChanged:"{product} päivitetty",cartUndoButton:"Kumoa",cartViewCart:"Näytä ostoskori",cartCheckout:"Kassalle",askDori:"Kysy Dorilta!",askAgent:"Kysy {name}:lta!",topPick:"Paras valinta",alsoConsider:"Harkitse myös"},Bengali:{minimize:"ছোট করুন",showFullScreen:"পূর্ণ স্ক্রীন",close:"বন্ধ করুন",reload:"পুনরায় লোড করুন",askAnything:"যা কিছু জিজ্ঞাসা করুন",whatsYourQuestion:"আপনার প্রশ্ন কী?",processing:"প্রক্রিয়াকরণ...",writePrompt:"একটি প্রম্পট লিখুন বা একটি চুক্তি ঠিকানা পেস্ট করুন",similar:"অনুরূপ",more:"আরও",removeProduct:"পণ্য সরান",doYouHaveSimilar:"এর মতো কিছু আছে",doesProductHaveDiscount:"এই পণ্যে কি ছাড় আছে?",whatFeaturesSpecial:"কোন বৈশিষ্ট্যগুলি এই পণ্যটিকে বিশেষ করে?",otherColorsAvailable:"অন্য রঙ পাওয়া যায় কি?",poweredBy:"দ্বারা চালিত",aiCanMakeMistakes:"AI ভুল করতে পারে। গুরুত্বপূর্ণ তথ্য যাচাই করুন",errorOccurred:"একটি ত্রুটি ঘটেছে। অনুগ্রহ করে আবার চেষ্টা করুন।",rateLimitError:"আপনি অনুরোধ সীমা অতিক্রম করেছেন। অনুগ্রহ করে কমপক্ষে 24 ঘন্টা অপেক্ষা করুন এবং আবার চেষ্টা করুন।",preparingProducts:"আপনাকে দেখানোর জন্য পণ্য প্রস্তুত করা হচ্ছে...",startingOrder:"অর্ডার প্রক্রিয়া শুরু করা হচ্ছে...",findingProductDetails:"আপনার জন্য পণ্যের বিবরণ খুঁজে বের করা হচ্ছে...",searchingBestOptions:"আপনার জন্য সেরা বিকল্পগুলি খোঁজা হচ্ছে...",addingNotes:"আপনার নোট অর্ডারে যোগ করা হচ্ছে...",savingOrder:"আপনার অর্ডার সাবধানে সংরক্ষণ করা হচ্ছে...",processingPayment:"আপনার পেমেন্ট তথ্য প্রক্রিয়া করা হচ্ছে...",lookingForAnswer:"আপনার জন্য সেরা উত্তর খোঁজা হচ্ছে...",searchingSimilar:"অনুরূপ পণ্য খোঁজা হচ্ছে...",checkingOrderStatus:"আপনার অর্ডার স্ট্যাটাস পরীক্ষা করা হচ্ছে...",fetchingWebPage:"আপনার জন্য ওয়েব পেজ আনা হচ্ছে...",searchingTheWeb:"আপনার জন্য ওয়েবে অনুসন্ধান করা হচ্ছে...",typing:"টাইপ করছে...",imHereToHelp:"আমি আপনার ক্রয় সম্পর্কে যেকোনো বিষয়ে সাহায্য করার জন্য এখানে আছি!",hiIm:"হ্যালো, আমি",addToCartButton:"যোগ করুন",addToCartMessage:"{product} আমার কার্টে যোগ করুন",addToCartAdding:"যোগ হচ্ছে...",cartUndoRemoved:"{product} মুছে ফেলা হয়েছে",cartUndoQuantityChanged:"{product} আপডেট হয়েছে",cartUndoButton:"পূর্বাবস্থায় ফেরান",cartViewCart:"কার্ট দেখুন",cartCheckout:"চেকআউট",askDori:"Dori কে জিজ্ঞাসা করুন!",askAgent:"{name} কে জিজ্ঞাসা করুন!",topPick:"সেরা পছন্দ",alsoConsider:"এটাও বিবেচনা করুন"},Tamil:{minimize:"சிறிதாக்கு",showFullScreen:"முழு திரை",close:"மூடு",reload:"மீண்டும் ஏற்று",askAnything:"எதையும் கேளுங்கள்",whatsYourQuestion:"உங்கள் கேள்வி என்ன?",processing:"செயலாக்கம்...",writePrompt:"ஒரு கேள்வியை எழுதவும் அல்லது ஒப்பந்த முகவரியை ஒட்டவும்",similar:"ஒத்த",more:"மேலும்",removeProduct:"தயாரிப்பை அகற்று",doYouHaveSimilar:"இதைப் போன்ற ஏதாவது உள்ளதா",doesProductHaveDiscount:"இந்த தயாரிப்புக்கு தள்ளுபடி உள்ளதா?",whatFeaturesSpecial:"இந்த தயாரிப்பை சிறப்பாக்கும் அம்சங்கள் என்ன?",otherColorsAvailable:"வேறு நிறங்கள் கிடைக்குமா?",poweredBy:"வழங்குபவர்",aiCanMakeMistakes:"AI தவறு செய்யலாம். முக்கிய தகவல்களை சரிபார்க்கவும்",errorOccurred:"பிழை ஏற்பட்டது. மீண்டும் முயற்சிக்கவும்.",rateLimitError:"நீங்கள் கோரிக்கை வரம்பை மீறிவிட்டீர்கள். குறைந்தது 24 மணி நேரம் காத்திருந்து மீண்டும் முயற்சிக்கவும்.",preparingProducts:"உங்களுக்காக தயாரிப்புகளை தயார்படுத்துகிறது...",startingOrder:"ஆர்டர் செயல்முறையைத் தொடங்குகிறது...",findingProductDetails:"உங்களுக்காக தயாரிப்பு விவரங்களைக் கண்டறிகிறது...",searchingBestOptions:"உங்களுக்கான சிறந்த விருப்பங்களைத் தேடுகிறது...",addingNotes:"உங்கள் குறிப்புகளை ஆர்டருக்கு சேர்க்கிறது...",savingOrder:"உங்கள் ஆர்டரை கவனமாக சேமிக்கிறது...",processingPayment:"உங்கள் பணம் செலுத்தும் தகவலை செயல்படுத்துகிறது...",lookingForAnswer:"உங்களுக்கான சிறந்த பதிலைத் தேடுகிறது...",searchingSimilar:"ஒத்த தயாரிப்புகளைத் தேடுகிறது...",checkingOrderStatus:"உங்கள் ஆர்டர் நிலையைச் சரிபார்க்கிறது...",fetchingWebPage:"உங்களுக்காக வலைப்பக்கத்தைப் பெறுகிறது...",searchingTheWeb:"உங்களுக்காக வலையில் தேடுகிறது...",typing:"தட்டச்சு செய்கிறது...",imHereToHelp:"உங்கள் வாங்குதல் பற்றிய எதற்கும் உதவ நான் இங்கே இருக்கிறேன்!",hiIm:"வணக்கம், நான்",addToCartButton:"சேர்",addToCartMessage:"{product} என் கார்ட்டில் சேர்",addToCartAdding:"சேர்க்கிறது...",cartUndoRemoved:"{product} நீக்கப்பட்டது",cartUndoQuantityChanged:"{product} புதுப்பிக்கப்பட்டது",cartUndoButton:"செயல் தவிர்",cartViewCart:"கார்ட் பார்",cartCheckout:"செலுத்து",askDori:"Dori யிடம் கேளுங்கள்!",askAgent:"{name} யிடம் கேளுங்கள்!",topPick:"சிறந்த தேர்வு",alsoConsider:"இதையும் பரிசீலியுங்கள்"},Telugu:{minimize:"చిన్నదిగా చేయండి",showFullScreen:"పూర్తి స్క్రీన్",close:"మూసివేయండి",reload:"మళ్లీ లోడ్ చేయండి",askAnything:"ఏదైనా అడగండి",whatsYourQuestion:"మీ ప్రశ్న ఏమిటి?",processing:"ప్రాసెస్ చేస్తోంది...",writePrompt:"ఒక ప్రశ్న రాయండి లేదా ఒప్పంద చిరునామా అతికించండి",similar:"సారూప్యమైన",more:"మరింత",removeProduct:"ఉత్పత్తిని తీసివేయండి",doYouHaveSimilar:"దీనికి సారూప్యమైనది ఉందా",doesProductHaveDiscount:"ఈ ఉత్పత్తికి తగ్గింపు ఉందా?",whatFeaturesSpecial:"ఈ ఉత్పత్తిని ప్రత్యేకంగా చేసే లక్షణాలు ఏమిటి?",otherColorsAvailable:"ఇతర రంగులు అందుబాటులో ఉన్నాయా?",poweredBy:"అందించినది",aiCanMakeMistakes:"AI పొరపాట్లు చేయవచ్చు. ముఖ్యమైన సమాచారాన్ని తనిఖీ చేయండి",errorOccurred:"లోపం సంభవించింది. దయచేసి మళ్లీ ప్రయత్నించండి.",rateLimitError:"మీరు అభ్యర్థన పరిమితిని మించిపోయారు. దయచేసి కనీసం 24 గంటలు వేచి మళ్లీ ప్రయత్నించండి.",preparingProducts:"మీకు చూపించడానికి ఉత్పత్తులను సిద్ధం చేస్తోంది...",startingOrder:"ఆర్డర్ ప్రక్రియను ప్రారంభిస్తోంది...",findingProductDetails:"మీ కోసం ఉత్పత్తి వివరాలను కనుగొంటోంది...",searchingBestOptions:"మీ కోసం ఉత్తమ ఎంపికలను శోధిస్తోంది...",addingNotes:"మీ గమనికలను ఆర్డర్కు జోడిస్తోంది...",savingOrder:"మీ ఆర్డర్ను జాగ్రత్తగా సేవ్ చేస్తోంది...",processingPayment:"మీ చెల్లింపు సమాచారాన్ని ప్రాసెస్ చేస్తోంది...",lookingForAnswer:"మీ కోసం ఉత్తమ సమాధానాన్ని శోధిస్తోంది...",searchingSimilar:"సారూప్య ఉత్పత్తులను శోధిస్తోంది...",checkingOrderStatus:"మీ ఆర్డర్ స్థితిని తనిఖీ చేస్తోంది...",fetchingWebPage:"మీ కోసం వెబ్ పేజీని తీసుకొస్తోంది...",searchingTheWeb:"మీ కోసం వెబ్లో శోధిస్తోంది...",typing:"టైప్ చేస్తున్నారు...",imHereToHelp:"మీ కొనుగోలు గురించి దేనికైనా సహాయం చేయడానికి నేను ఇక్కడ ఉన్నాను!",hiIm:"హలో, నేను",addToCartButton:"జోడించు",addToCartMessage:"{product}ని నా కార్ట్కి జోడించు",addToCartAdding:"జోడిస్తున్నాము...",cartUndoRemoved:"{product} తొలగించబడింది",cartUndoQuantityChanged:"{product} నవీకరించబడింది",cartUndoButton:"రద్దు చేయి",cartViewCart:"కార్ట్ చూడు",cartCheckout:"చెక్అవుట్",askDori:"Dori ని అడగండి!",askAgent:"{name} ని అడగండి!",topPick:"అత్యుత్తమ ఎంపిక",alsoConsider:"ఇవి కూడా పరిశీలించండి"},Afrikaans:{minimize:"Minimeer",showFullScreen:"Volskerm",close:"Sluit",reload:"Herlaai",askAnything:"Vra enigiets",whatsYourQuestion:"Wat is jou vraag?",processing:"Verwerk...",writePrompt:"Skryf 'n vraag of plak 'n kontrakadres",similar:"Soortgelyk",more:"Meer",removeProduct:"Verwyder produk",doYouHaveSimilar:"Het jy iets soortgelyks soos",doesProductHaveDiscount:"Het hierdie produk 'n afslag?",whatFeaturesSpecial:"Watter kenmerke maak hierdie produk spesiaal?",otherColorsAvailable:"Is daar ander kleure beskikbaar?",poweredBy:"Aangedryf deur",aiCanMakeMistakes:"KI kan foute maak. Kontroleer belangrike inligting",errorOccurred:"'n Fout het voorgekom. Probeer asseblief weer.",rateLimitError:"Jy het die versoekslimiet oorskry. Wag asseblief ten minste 24 uur en probeer weer.",preparingProducts:"Berei produkte voor om jou te wys...",startingOrder:"Begin bestelproses...",findingProductDetails:"Soek produkbesonderhede vir jou...",searchingBestOptions:"Soek die beste opsies vir jou...",addingNotes:"Voeg jou notas by die bestelling...",savingOrder:"Stoor jou bestelling versigtig...",processingPayment:"Verwerk jou betalingsinligting...",lookingForAnswer:"Soek die beste antwoord vir jou...",searchingSimilar:"Soek soortgelyke produkte...",checkingOrderStatus:"Kontroleer jou bestelstatus...",fetchingWebPage:"Haal die webblad vir jou op...",searchingTheWeb:"Soek op die web vir jou...",typing:"Tik...",imHereToHelp:"Ek is hier om jou te help met enigiets oor jou aankoop!",hiIm:"Hallo, ek is",addToCartButton:"Voeg by",addToCartMessage:"Voeg {product} by my mandjie",addToCartAdding:"Voeg by...",cartUndoRemoved:"{product} verwyder",cartUndoQuantityChanged:"{product} opgedateer",cartUndoButton:"Ongedaan maak",cartViewCart:"Bekyk mandjie",cartCheckout:"Kassa",askDori:"Vra Dori!",askAgent:"Vra {name}!",topPick:"Topkeuse",alsoConsider:"Oorweeg ook"},Albanian:{minimize:"Minimizo",showFullScreen:"Ekran i plotë",close:"Mbyll",reload:"Ringarko",askAnything:"Pyet çdo gjë",whatsYourQuestion:"Cila është pyetja juaj?",processing:"Duke përpunuar...",writePrompt:"Shkruani një pyetje ose ngjisni një adresë kontrate",similar:"I ngjashëm",more:"Më shumë",removeProduct:"Hiq produktin",doYouHaveSimilar:"A keni diçka të ngjashme me",doesProductHaveDiscount:"A ka zbritje ky produkt?",whatFeaturesSpecial:"Cilat veçori e bëjnë këtë produkt special?",otherColorsAvailable:"A ka ngjyra të tjera të disponueshme?",poweredBy:"Mundësuar nga",aiCanMakeMistakes:"AI mund të bëjë gabime. Kontrolloni informacionin e rëndësishëm",errorOccurred:"Ndodhi një gabim. Ju lutemi provoni përsëri.",rateLimitError:"Keni tejkaluar kufirin e kërkesave. Ju lutemi prisni të paktën 24 orë dhe provoni përsëri.",preparingProducts:"Duke përgatitur produktet për t'ju treguar...",startingOrder:"Duke filluar procesin e porosisë...",findingProductDetails:"Duke kërkuar detaje produkti për ju...",searchingBestOptions:"Duke kërkuar opsionet më të mira për ju...",addingNotes:"Duke shtuar shënimet tuaja në porosi...",savingOrder:"Duke ruajtur porosinë tuaj me kujdes...",processingPayment:"Duke përpunuar informacionin tuaj të pagesës...",lookingForAnswer:"Duke kërkuar përgjigjen më të mirë për ju...",searchingSimilar:"Duke kërkuar produkte të ngjashme...",checkingOrderStatus:"Duke kontrolluar statusin e porosisë suaj...",fetchingWebPage:"Duke marrë faqen e internetit për ju...",searchingTheWeb:"Duke kërkuar në internet për ju...",typing:"Po shkruan...",imHereToHelp:"Jam këtu për t'ju ndihmuar me çdo gjë për blerjen tuaj!",hiIm:"Përshëndetje, unë jam",addToCartButton:"Shto",addToCartMessage:"Shto {product} në shportën time",addToCartAdding:"Po shtohet...",cartUndoRemoved:"{product} u hoq",cartUndoQuantityChanged:"{product} u përditësua",cartUndoButton:"Zhbëj",cartViewCart:"Shiko shportën",cartCheckout:"Paguaj",askDori:"Pyet Dori!",askAgent:"Pyet {name}!",topPick:"Zgjedhja kryesore",alsoConsider:"Konsideroni gjithashtu"},Amharic:Hm,Bulgarian:Hm,Burmese:Hm,Croatian:Hm,Estonian:Hm,Filipino:Hm,Gujarati:Hm,Hausa:Hm,Hungarian:Hm,Igbo:Hm,Kannada:Hm,Khmer:Hm,Lao:Hm,Latvian:Hm,Lithuanian:Hm,Malayalam:Hm,Marathi:Hm,Mongolian:Hm,Nepali:Hm,Pashto:Hm,Persian:Hm,Punjabi:Hm,Sinhala:Hm,Somali:Hm,Iraqi:Hm,Swahili:Hm,Urdu:Hm,Yoruba:Hm,Zulu:Hm},Um=e=>{const t=Vm[e]||Vm.English;return{...Hm,...t}};function qm(){if("undefined"==typeof window)return null;const e=window.location.pathname.match(/^\/([a-z]{2})-[a-z]{2}\//i);if(e)return e[1].toLowerCase();const t=document.documentElement.lang;if(t){const e=t.split("-")[0]?.toLowerCase();if(e)return e}return null}const Ym={af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",bn:"Bengali",bg:"Bulgarian",my:"Burmese",zh:"Chinese",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fi:"Finnish",fr:"French",de:"German",el:"Greek",gu:"Gujarati",ha:"Hausa",he:"Hebrew",hi:"Hindi",hu:"Hungarian",ig:"Igbo",id:"Indonesian",it:"Italian",ja:"Japanese",kn:"Kannada",km:"Khmer",ko:"Korean",lo:"Lao",lv:"Latvian",lt:"Lithuanian",ms:"Malay",ml:"Malayalam",mr:"Marathi",mn:"Mongolian",ne:"Nepali",no:"Norwegian",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",si:"Sinhala",sk:"Slovak",so:"Somali",es:"Spanish",sw:"Swahili",sv:"Swedish",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",ur:"Urdu",vi:"Vietnamese",yo:"Yoruba",zu:"Zulu"},Gm="dori-quiz-completed",Qm=os.createContext(void 0);function Km({children:e}){const[r,n]=os.useState(null),[k,_]=os.useState(!1),[w,S]=os.useState(null),[C,P]=os.useState(()=>qm());os.useEffect(()=>function(){if("undefined"==typeof window||"undefined"==typeof MutationObserver)return()=>{};const e=new MutationObserver(()=>{var e;e=qm(),P(t=>t===e?t:e)});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>e.disconnect()}(),[]);const z=os.useRef(null);os.useEffect(()=>{const e=z.current;z.current=C,null!==e&&e!==C&&me(e=>e+1)},[C]);const E=os.useMemo(()=>{return((e=C)?Ym[e.toLowerCase()]??null:null)??r?.language??"English";var e},[C,r?.language]),T=os.useMemo(()=>{const e=r?.suggestedReplyByLanguage;if(e&&"object"==typeof e){let t=null;if("undefined"!=typeof window){const e=window.location.pathname.match(/^\/([a-z]{2}-[a-z]{2})\//i);e&&(t=e[1])}const r="undefined"!=typeof document?document.documentElement.lang:"",n=[E,C,C?C.split("-")[0]:null,t,r||null].filter(e=>"string"==typeof e&&e.length>0);for(const a of n){const t=e[a];if(Array.isArray(t)&&t.length>0)return t}const i={};for(const[a,o]of Object.entries(e))"string"==typeof a&&(i[a.toLowerCase()]=o);for(const e of n){const t=i[e.toLowerCase()];if(Array.isArray(t)&&t.length>0)return t}console.warn("[Dori Widget] suggestedReplyByLanguage has no match for",{candidates:n,availableKeys:Object.keys(e)})}return Array.isArray(r?.suggestedReply)?r.suggestedReply:[]},[r?.suggestedReplyByLanguage,r?.suggestedReply,E,C]),[j,R]=os.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[O,I]=os.useState([]),[A,D]=os.useState("welcome"),[M,L]=os.useState(!1),[F,N]=os.useState("starting"),W=os.useRef(null),[$,B]=os.useState(!0),H=os.useRef(null),V=os.useCallback(()=>{$&&p(W.current)},[$]);os.useEffect(()=>{V()},[O,V]),function({botData:e,chatState:r,messages:n,currentStep:p,setBotData:f,setChatState:h,setMessages:g,setCurrentStep:m}){const[v,b]=os.useState(!1);os.useEffect(()=>{(()=>{if(t()){const e=c();if(e){if(console.log("Restoring session data:",e),e.botData){const t=e.botData,r=e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch{return[]}},n=t.suggestedReplyByLanguage;let i;if(n){const e="string"==typeof n?(()=>{try{return JSON.parse(n)}catch{return{}}})():n;i=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,r(t)]))}f({...t,suggestedReply:r(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}})}else f(e.botData);const t=u(),r={...e.chatState,threadId:t||e.chatState.threadId};h(r),g(e.messages.filter(e=>"loading"!==e.type)),m("initial-greeting"===e.currentStep?"initial-greeting":"ongoing"),d(),b(!0)}}else{const e=u();e&&(h({repliedProduct:null,threadId:e,isRequestInProgress:!1}),d()),b(!0)}})()},[f,h,g,m]),os.useEffect(()=>{v&&e&&(i(),a(e))},[e,v]),os.useEffect(()=>{v&&o(r)},[r,v]),os.useEffect(()=>{v&&s(n)},[n,v]),os.useEffect(()=>{v&&l(p)},[p,v])}({botData:r,chatState:j,messages:O,currentStep:A,setBotData:n,setChatState:R,setMessages:I,setCurrentStep:D});const[U,q]=os.useState(null),[Y,G]=os.useState(null),Q=os.useRef(!1),[K,X]=os.useState(null),[Z,J]=os.useState(null),[ee,te]=os.useState(null),[re,ne]=os.useState(()=>{try{return"true"===sessionStorage.getItem("dori-proactive-v2-suppressed")}catch{return!1}}),ie=os.useCallback((e,t)=>{X(e),J(t)},[]),ae=os.useCallback(()=>{X(null),J(null)},[]),oe=os.useRef(null),se=os.useRef(null);os.useEffect(()=>{Z&&(oe.current=Z,se.current=Date.now())},[Z]);const le=os.useCallback(()=>{ne(!0);try{sessionStorage.setItem("dori-proactive-v2-suppressed","true")}catch{}},[]),[ce,ue]=os.useState(null),[de,pe]=os.useState(()=>{try{return"true"===sessionStorage.getItem(Gm)}catch{return!1}}),fe=os.useRef(!1),he=os.useCallback(()=>{pe(!0);try{sessionStorage.setItem(Gm,"true")}catch{}},[]),[ge,me]=os.useState(0),ve=os.useRef(!1),be=os.useRef(new Set),ye=os.useRef(r);os.useEffect(()=>{ye.current=r},[r]);const xe=os.useRef(A);os.useEffect(()=>{xe.current=A},[A]),os.useEffect(()=>{if(!r)return;if(!1===r.customization?.enable_proactive_engagement)return;if(!r.business_description)return;if(0===ge){if(Q.current)return;Q.current=!0}else if("welcome"!==A&&"initial-greeting"!==A)return;const e=new AbortController,t=E||r.language||"en",n=gm();return async function(e,t,r,n){try{const i=new AbortController,a=setTimeout(()=>i.abort(),1e4),o=n?AbortSignal.any([n,i.signal]):i.signal,s=await fetch(am.generateWelcomeMessage,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({business_description:e,h1:t.h1,page_link:t.page_link,page_type:t.page_type,lang:r}),signal:o});if(clearTimeout(a),!s.ok)return console.warn("[Dori Widget] Dynamic welcome message fetch failed:",s.status),null;const l=await s.json();return l?.message||null}catch(i){return"AbortError"!==i?.name&&console.warn("[Dori Widget] Dynamic welcome message error:",i),null}}(r.business_description,n,t,e.signal).then(t=>{t&&!e.signal.aborted&&q(t)}),()=>{e.abort()}},[r,ge]),os.useEffect(()=>{if(!r)return;if(!0!==r.customization?.enable_standalone_quiz)return;if(de)return;const e=r.sharing_id||f();if(!e)return;if(0===ge){if(fe.current)return;fe.current=!0}else if("welcome"!==A&&"initial-greeting"!==A)return;const t=new AbortController;return async function(e,t,r){try{const n=new AbortController,i=setTimeout(()=>n.abort(),2e4),a=r?AbortSignal.any([r,n.signal]):n.signal,o=await fetch(`${am.storeQuizzes}/${e}?lang=${encodeURIComponent(t)}`,{signal:a});if(clearTimeout(i),!o.ok)return console.warn("[Dori Widget] Store quizzes fetch failed:",o.status),null;const s=await o.json(),l=s?.variants;return l&&Array.isArray(l)&&0!==l.length?l.map(e=>({welcome_hook:e.welcome_hook||"",entry_label:e.entry_label||"",steps:e.steps||[],result_prompt:e.result_prompt||"",result_type:e.quiz_type||e.result_type||"recommendation",analyzing_text:e.analyzing_text||""})):null}catch(n){return"AbortError"!==n?.name&&console.warn("[Dori Widget] Store quizzes error:",n),null}}(e,E||r.language||"English",t.signal).then(e=>{if(e&&e.length>0&&!t.signal.aborted){const t=Math.floor(Math.random()*e.length);ue(e[t])}}),()=>{t.abort()}},[r,ge,de]),os.useEffect(()=>{let e=window.location.href,t=null;const r=()=>{const r=window.location.href;if(r===e)return;e=r,ve.current=!1;const n=ye.current;!1!==n?.customization?.enable_proactive_engagement&&n?.business_description&&"welcome"===xe.current&&(t&&clearTimeout(t),t=setTimeout(()=>{q(null),te(null);try{pe("true"===sessionStorage.getItem(Gm))}catch{}ue(null),fe.current=!1,me(e=>e+1)},200))};window.addEventListener("popstate",r);const n=history.pushState.bind(history);history.pushState=(...e)=>{n(...e),r()};const i=history.replaceState.bind(history);return history.replaceState=(...e)=>{i(...e),r()},()=>{t&&clearTimeout(t),window.removeEventListener("popstate",r),history.pushState=n,history.replaceState=i}},[]);const ke=os.useRef(new Set),_e=os.useRef([]),we=os.useRef(null),[Se,Ce]=os.useState(0),[Pe,ze]=os.useState(null),Ee=os.useRef(null),Te=os.useRef(!1),je=os.useCallback(()=>{ze(null),null!==Ee.current&&(window.clearTimeout(Ee.current),Ee.current=null)},[]),Re=os.useCallback(async()=>{if(!Pe)return;const{variantId:e,previousQuantity:t}=Pe;je();try{const n=await Lm();if(!n)return;const i=n.items||[],a=Dm(e)||e,o=i.findIndex(e=>String(e.variant_id)===a);if(-1!==o?await Fm(o+1,t):t>0&&await Im(a,t),r&&bm(r)){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:j.threadId});e&&R(t=>({...t,threadId:e}));const t=await Lm();t&&Ce(t.item_count)}}catch{}},[Pe,je,r,j.threadId]),Oe=os.useCallback(()=>{if(H.current)return;const e=_e.current.shift();e&&we.current&&window.setTimeout(()=>{we.current?.({message:"",apiMessage:e,silent:!0})},0)},[]),Ie=os.useCallback(async(e,t)=>{if(ke.current.has(e.action_id))return;if(ke.current.add(e.action_id),ke.current.size>300){const e=Array.from(ke.current).slice(-200);ke.current.clear(),e.forEach(e=>ke.current.add(e))}const n=t||j.threadId||void 0;let i;try{i=await Am(e.payload,n)}catch{i={type:"failed",reason:"network",message:"I couldn't add that item right now. Please try again.",product_title:e.payload.product_name||void 0}}if("success"===i.type&&r&&bm(r)){const e=km(),n=t||j.threadId||void 0,i=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:n,src:"undefined"!=typeof window?window.location.href:""});i&&R(e=>({...e,threadId:i}));const a=await Lm();a&&Ce(a.item_count)}"success"===i.type?(Te.current=!0,_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_result:${JSON.stringify({action_id:e.action_id,product_name:i.product_title||e.payload.product_name||null,variant_title:i.variant_title||null,variant_id:i.variant_id,quantity:i.quantity})}`)):"needs_options"===i.type?_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_needs_options:${JSON.stringify({action_id:e.action_id,product_name:i.product_title,message:i.message,options:i.options})}`):_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_failed:${JSON.stringify({action_id:e.action_id,reason:i.reason,message:i.message,product_name:i.product_title||e.payload.product_name||null})}`),H.current||Oe()},[r,j.threadId,Oe]),Ae=os.useCallback(async e=>{const t=j.threadId||void 0;let n;try{n=await Am(e,t)}catch{n={type:"failed",reason:"network",message:"I couldn't add that item right now. Please try again."}}if("success"===n.type&&r&&bm(r)){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:t,src:"undefined"!=typeof window?window.location.href:""});e&&R(t=>({...t,threadId:e}));const n=await Lm();n&&Ce(n.item_count)}return"success"===n.type&&(Te.current=!0,_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_result:${JSON.stringify({action_id:`direct-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,product_name:n.product_title||e.product_name||null,variant_title:n.variant_title||null,variant_id:n.variant_id,quantity:n.quantity})}`),H.current||Oe()),n},[r,j.threadId,Oe]),De=os.useCallback(async(e,t)=>{if(ke.current.has(e.action_id))return;if(ke.current.add(e.action_id),ke.current.size>300){const e=Array.from(ke.current).slice(-200);ke.current.clear(),e.forEach(e=>ke.current.add(e))}let n;try{n=await async function(e){if("clear"===e.operation){if(!0!==e.confirmed)return{type:"failed",reason:"bad_request",message:"Please confirm before clearing the cart.",product_name:e.product_name};if(!(await async function(){const e=ym();try{return(await fetch(`${e}cart/clear.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json"}})).ok}catch{return!1}}()))return{type:"failed",reason:"network",message:"Could not clear the cart. Please try again."};const t=await Lm(),r=t?.total_price??0,n=t?.currency??"";return{type:"success",operation:"clear",previousQuantity:0,item_count:t?.item_count??0,total_price:r,total_price_major:Mm(r,n),currency:n}}if("set_note"===e.operation){const t=e.note??"",r=await async function(e){const t=ym();try{return(await fetch(`${t}cart/update.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({note:e})})).ok}catch{return!1}}(t);if(!r)return{type:"failed",reason:"network",message:"Could not update the cart note. Please try again."};const n=await Lm(),i=n?.total_price??0,a=n?.currency??"";return{type:"success",operation:"set_note",note:n?.note??t,previousQuantity:0,item_count:n?.item_count??0,total_price:i,total_price_major:Mm(i,a),currency:a}}const t=await Lm();if(!t)return{type:"failed",reason:"network",message:"Could not read cart. Please try again.",product_name:e.product_name};if(0===t.items.length)return{type:"failed",reason:"item_not_found",message:"Your cart is empty.",product_name:e.product_name};const r=function(e,t){const r=Dm(t.variant_id);if(r){const n=[];for(let t=0;t<e.length;t++)Dm(e[t].variant_id)===r&&n.push({item:e[t],lineIndex:t+1});if(1===n.length)return n[0];if(n.length>1){const e=Nm(n,t.selected_options);return 1===e.length?e[0]:Wm(e,"Multiple items match this variant. Which one do you mean?")}}const n=t.product_handle?.trim().toLowerCase()||zm(t.product_url)?.toLowerCase();if(n){const r=[];for(let t=0;t<e.length;t++)e[t].handle?.toLowerCase()===n&&r.push({item:e[t],lineIndex:t+1});if(1===r.length)return r[0];if(r.length>1){const e=Nm(r,t.selected_options);return 1===e.length?e[0]:Wm(e,"I found multiple variants of this product in your cart. Which one?")}}if(t.product_name){const r=t.product_name.trim().toLowerCase(),n=[];for(let t=0;t<e.length;t++){const i=e[t].product_title?.toLowerCase()||"",a=e[t].title?.toLowerCase()||"";(i.includes(r)||r.includes(i)||a.includes(r))&&n.push({item:e[t],lineIndex:t+1})}if(1===n.length)return n[0];if(n.length>1){const e=Nm(n,t.selected_options);return 1===e.length?e[0]:Wm(e,"Multiple items match that name. Which one do you mean?")}}return{type:"failed",reason:"item_not_found",message:"I couldn't find that item in your cart.",product_name:t.product_name}}(t.items,e);if("type"in r)return r;const{item:n,lineIndex:i}=r,a=n.quantity;let o;switch(e.operation){case"remove":o=0;break;case"set_quantity":o=null!=e.quantity&&e.quantity>=1?e.quantity:1;break;case"increment":o=n.quantity+1;break;case"decrement":o=n.quantity<=1?0:n.quantity-1;break;default:return{type:"failed",reason:"bad_request",message:`Unknown operation: ${e.operation}`,product_name:e.product_name}}if(!(await Fm(i,o)))return{type:"failed",reason:"network",message:"Could not update the cart. Please try again.",product_name:e.product_name||n.product_title};const s=await Lm(),l=s?.total_price??0,c=s?.currency??"";return{type:"success",operation:e.operation,product_name:e.product_name||n.product_title,variant_id:String(n.variant_id),previousQuantity:a,quantity:o,item_count:s?.item_count??0,total_price:l,total_price_major:Mm(l,c),currency:c}}(e.payload)}catch{n={type:"failed",reason:"network",message:"Could not update the cart right now. Please try again.",product_name:e.payload.product_name}}if("success"===n.type&&r&&bm(r)){Ce(n.item_count);const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:t||j.threadId||void 0});e&&R(t=>({...t,threadId:e}))}"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(Te.current=!0),"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(null!==Ee.current&&window.clearTimeout(Ee.current),ze({productName:n.product_name||e.payload.product_name||"",variantId:n.variant_id||String(e.payload.variant_id||""),previousQuantity:n.previousQuantity,operation:n.operation}),Ee.current=window.setTimeout(()=>{ze(null),Ee.current=null},8e3)),"success"===n.type?_e.current.push(`DORI_INTERNAL_EVENT:cart_update_result:${JSON.stringify({action_id:e.action_id,operation:n.operation,product_name:n.product_name||e.payload.product_name||null,variant_id:n.variant_id||null,quantity:n.quantity??null,note:n.note??null,item_count:n.item_count,total_price:n.total_price_major,total_price_minor:n.total_price,currency:n.currency})}`):"needs_selection"===n.type?_e.current.push(`DORI_INTERNAL_EVENT:cart_update_needs_selection:${JSON.stringify({action_id:e.action_id,candidates:n.candidates,message:n.message})}`):_e.current.push(`DORI_INTERNAL_EVENT:cart_update_failed:${JSON.stringify({action_id:e.action_id,reason:n.reason,message:n.message,product_name:n.product_name||e.payload.product_name||null})}`),H.current||Oe()},[r,j.threadId,Oe]),Me=os.useCallback(e=>{R(t=>({...t,repliedProduct:e}))},[]),Le=os.useCallback(Bo("parseSuggestedReply",e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch(t){return console.error("Error parsing suggested reply:",t),[]}}),[]),Fe=os.useCallback(()=>{H.current&&(H.current.abort(),H.current=null),Te.current=!1,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type))},[]),Ne=os.useCallback(Ho("initializeBot",async e=>{if(!e||""===e.trim())return S("Invalid sharing ID provided"),void console.error("Invalid sharing ID provided");let t;_(!0),S(null);try{t=await new Promise((e,t)=>{const r=x();if(r)return console.log("[Dori Widget] Bot data already in localStorage"),void e(r);const n=()=>{const r=x();r?(a(),e(r)):(a(),t(new Error("Bot data event fired but no data in localStorage")))},i=e=>{const r=e,n=r.detail?.error||"Failed to load bot data";a(),t(new Error(n))},a=()=>{window.removeEventListener("dori-bot-data-ready",n),window.removeEventListener("dori-bot-data-error",i)};window.addEventListener("dori-bot-data-ready",n),window.addEventListener("dori-bot-data-error",i),setTimeout(()=>{a(),t(new Error("Timeout waiting for bot data"))},2e4)})}catch(o){const e=o instanceof Error?o.message:"Failed to load bot data";return S(e),console.error("[Dori Widget] Failed to load bot data:",o),void _(!1)}if(!t)return S("No bot data received"),console.error("[Dori Widget] No bot data received"),void _(!1);g();const r=t.suggestedReplyByLanguage;let i;if(r){const e="string"==typeof r?(()=>{try{return JSON.parse(r)}catch{return{}}})():r;i=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Le(t)]))}const a={...t,sharing_id:e,suggestedReply:Le(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}};n(a),_(!1),D("initial-greeting")}),[Le]),We=os.useCallback(Bo("addWelcomeMessage",()=>{const e=Um(E),t={id:`${Date.now()}-welcome-${Math.random().toString(36).slice(2,8)}`,type:"welcome",timestamp:new Date,content:r?.wellcomeMessage||e.imHereToHelp};I(e=>[...e,t])}),[r?.wellcomeMessage,E]);os.useEffect(()=>{if(!r||!bm(r))return;Lm().then(e=>{null!=e?.item_count&&Ce(e.item_count)}).catch(()=>{}),async function(){if("undefined"!=typeof window&&!_m){_m=!0;try{const e=ym(),t=km(),r=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!r.ok)return;const n=await r.json(),i=n?.attributes||{};if(i._dori_visitor_id===t)return;await fetch(`${e}cart/update.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({attributes:{...i,_dori_visitor_id:t}})})}catch{}finally{_m=!1}}}();const e=km();return function(){if("undefined"==typeof window)return()=>{};let t=null;const n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{(async()=>{const t=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:j.threadId,src:"undefined"!=typeof window?window.location.href:""});t&&R(e=>e.threadId===t?e:{...e,threadId:t});try{const e=await Lm();e&&Ce(e.item_count)}catch{}})()},700)},i=window.fetch.bind(window);window.fetch=async(...e)=>{const t=await i(...e);try{const t=e[0],r=e[1];Sm((r?.method||(t instanceof Request?t.method:"GET")||"GET").toString(),"string"==typeof t?t:t instanceof URL?t.toString():t.url)&&n()}catch{}return t};const a=XMLHttpRequest.prototype.open,o=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(e,t,r,n,i){return this.__doriCartMethod=e,this.__doriCartUrl=String(t||""),a.call(this,e,t,r??!0,n,i)},XMLHttpRequest.prototype.send=function(e){return this.addEventListener("loadend",()=>{try{Sm(String(this.__doriCartMethod||"GET"),String(this.__doriCartUrl||""))&&n()}catch{}}),o.call(this,e)},()=>{window.fetch=i,XMLHttpRequest.prototype.open=a,XMLHttpRequest.prototype.send=o,null!==t&&window.clearTimeout(t)}}()},[r,j.threadId]);const $e=os.useCallback(Ho("sendMessage",async({message:e,imageUrl:t,apiMessage:n,silent:i},a)=>{if(!r||M&&!i)return;let o=n||e;if(!o||!o.trim())return;if(B(!0),!i&&!ve.current){ve.current=!0;const e=mm();e&&!o.includes("[USER_PAGE_CONTEXT:")&&(o=e+o)}const s=Um(E);if(!i){const r={id:`${Date.now()}-user-${Math.random().toString(36).slice(2,8)}`,type:"user",content:e,timestamp:new Date,repliedProduct:a,imageUrl:t};I(e=>[...e.filter(e=>"suggestions"!==e.type),r]);const n=oe.current,i=se.current;n&&i&&Date.now()-i<=3e4&&(Wo("nudge.in_chat.user_typed_after",{nudge_position:n}),oe.current=null,se.current=null),K&&(X(null),J(null))}if(H.current){if(i)return void _e.current.unshift(o);H.current.abort(),H.current=null}D("thinking"),L(!0),N("generating"),R(e=>({...e,isRequestInProgress:!0})),H.current=new AbortController;const l={id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:s.typing,timestamp:new Date};i||I(e=>[...e,l]),a&&(o=`this message is replied to product with id ${a.id}: ${e}`);let c,u="",d=null,p=[],h=null,x=[];const k=bm(r),_=k?km():void 0;let w=j.threadId;try{if(k&&!w&&_){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:_,src:"undefined"!=typeof window?window.location.href:""});e&&(w=e,R(t=>({...t,threadId:e})))}await om(o,r,w,e=>{Bo("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",e),e.thread_id){console.log("[StreamChatResponse] thread_id received:",e.thread_id),e.thread_id!==j.threadId&&g(),m(e.thread_id),v(e.thread_id),R(t=>({...t,threadId:e.thread_id||null}));const t=e.thread_id;if(t&&!be.current.has(t)){const e=pm.SHOPIFY,r=ye.current?.sharing_id||f();if(r){be.current.add(t);const n=window.DORI_CUSTOMER_ID,i=null!=n?String(n):void 0;um(t,r,e,b(),i,km())}}}if("shopify_add_to_cart"===e.action?.type&&Ie(e.action,e.thread_id||w||j.threadId),"shopify_update_cart"===e.action?.type&&De(e.action,e.thread_id||w||j.threadId),e.wait)console.log("[StreamChatResponse] wait received, creating new message session"),d&&u.trim()&&I(e=>e.map(e=>e.id===d?.id?{...e,content:y(u)}:e)),d=null,u="",p=[],c=void 0,h=null,I(t=>[...t.filter(e=>"loading"!==e.type),{id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:Bm(e.tool_name,s),timestamp:new Date}]);else if(e.text){console.log("[StreamChatResponse] text chunk received:",e.text),u+=e.text;const t=y(u);if(d)console.log("[StreamChatResponse] Updating existing bot message with:",t),I(e=>e.map(e=>e.id===d?.id?{...e,content:t}:e));else{if(!t)return;console.log("[StreamChatResponse] Creating new bot message:",t);const e=Te.current;e&&(Te.current=!1);const r={id:`${Date.now()}-dori-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:t,timestamp:new Date,...e&&{showCartActions:!0}};I(e=>[...e.filter(e=>"loading"!==e.type),r]),d=r}}else if(e.products&&e.products.length>0){console.log("[StreamChatResponse] products received:",e.products),g(),p=[...p,...e.products],e.shape&&(c=e.shape);const t=h||`${Date.now()}-products-${Math.random().toString(36).slice(2,8)}`;h=t,I(r=>{const n=[...r.filter(e=>"loading"!==e.type&&e.id!==t)],i=n.findIndex(e=>e.id===d?.id),a={id:t,type:"products",content:"Recommended Products:",timestamp:new Date,products:p,shape:c,tool_call_id:e.products?.[0]?.tool_call_id||""};return-1!==i?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),n.splice(i+1,0,a)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),n.push(a)),n}),console.log("Products accumulated and displayed:",p)}else e.suggestions&&e.suggestions.length>0&&(x=[...x,...e.suggestions])})()},e=>{if(H.current?.signal.aborted)return H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type)),void Oe();const t=e.includes("exceeded the request limit")||e.includes("rate limit")?s.rateLimitError:e;I(e=>[...e.filter(e=>"loading"!==e.type),{id:`${Date.now()}-error-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:t,timestamp:new Date}]),H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),Oe()},()=>{x.length>0&&I(e=>{const t=[...e.filter(e=>"suggestions"!==e.type&&"loading"!==e.type)],r=t.findIndex(e=>e.id===d?.id),n={id:`${Date.now()}-suggestions-${Math.random().toString(36).slice(2,8)}`,type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:x};return-1!==r?t.splice(r+1,0,n):t.push(n),t}),H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),Oe()},H.current,t,_)}catch(S){H.current?.signal.aborted||"AbortError"===S.name?(H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type)),Oe()):(console.error("Error in sendMessage:",S),I(e=>[...e.filter(e=>"loading"!==e.type),{id:`${Date.now()}-error-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:s.errorOccurred,timestamp:new Date}]),D("ongoing"),R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),H.current=null,Oe())}}),[r,M,j.threadId,Ie,De,Oe]);os.useEffect(()=>{we.current=$e},[$e]);const Be=os.useCallback(()=>{H.current&&(H.current.abort(),H.current=null),h(),I([]),D("welcome"),L(!1),N("starting"),R({repliedProduct:null,threadId:null,isRequestInProgress:!1}),ke.current.clear(),_e.current=[],Te.current=!1},[]),He=os.useCallback(e=>{n(t=>t?{...t,...e}:null)},[]),Ve=os.useMemo(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")},[]),Ue=os.useCallback(async(e,t,r)=>{if(!Ve)return;const n=j.threadId;if(!n)return;const i=document.querySelector("script#dori-side-widget"),a=i?.getAttribute("data-sharing-id")||"",o=O.filter(e=>"dori"===e.type)[e];if(!o)return;const s=o.feedback;I(e=>e.map(e=>e.id===o.id?{...e,feedback:{rating:t,feedbackText:r}}:e));try{const i=await fetch(am.messageFeedback,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({thread_id:n,sharing_id:a,message_index:e,rating:t,feedback_text:r??null})});if(!i.ok)throw new Error(`Server responded with ${i.status}`)}catch(l){console.error("[Dori Widget] Failed to submit feedback:",l),I(e=>e.map(e=>e.id===o.id?{...e,feedback:s}:e))}},[j.threadId,Ve,O]),qe={botData:r,isLoadingBot:k,botError:w,chatState:j,messages:O,currentStep:A,isInputDisabled:M,inputState:F,cartItemCount:Se,cartUndoState:Pe,dismissCartUndo:je,handleCartUndo:Re,addToCartDirect:Ae,initializeBot:Ne,sendMessage:$e,stopCurrentRequest:Fe,setCurrentStep:D,setInputState:N,messagesEndRef:W,addWelcomeMessage:We,setRepliedProduct:Me,resetBot:Be,updateBotData:He,setAutoScrollEnabled:B,dynamicWelcomeMessage:U,pendingBubbleSuggestion:Y,setPendingBubbleSuggestion:G,proactiveChips:K,proactiveChipsPosition:Z,setProactiveChips:ie,dismissProactiveChips:ae,proactiveSuppressedThisSession:re,suppressProactiveForSession:le,dynamicFollowupNudgeMessage:ee,setDynamicFollowupNudgeMessage:te,diagnosticFlow:ce,diagnosticShown:de,markDiagnosticShown:he,isTestMode:Ve,submitFeedback:Ue,effectiveLanguage:E,effectiveSuggestedReplies:T};return ts.jsx(Qm.Provider,{value:qe,children:e})}function Xm(){const e=os.useContext(Qm);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}const Zm=()=>{const{effectiveLanguage:e}=Xm(),t=e||"English",r=Um(t);return{t:e=>r[e],language:t,translations:r}};function Jm(e,t){const r={white:"255, 255, 255",black:"0, 0, 0",transparent:"0, 0, 0"};if(r[e.toLowerCase()])return`rgba(${r[e.toLowerCase()]}, ${t})`;let n=e.replace("#","");return 3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length?e:`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`}function ev(e,t){let r=e.replace("#","");if(3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length)return e;const n=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgb(${Math.min(255,Math.round(n+t/100*(255-n)))}, ${Math.min(255,Math.round(i+t/100*(255-i)))}, ${Math.min(255,Math.round(a+t/100*(255-a)))})`}function tv(e,t){if("black"===e.toLowerCase())return e;if("white"===e.toLowerCase()){const e=255-Math.round(t/100*255);return`rgb(${e}, ${e}, ${e})`}let r=e.replace("#","");if(3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length)return e;const n=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgb(${Math.max(0,Math.round(n*(1-t/100)))}, ${Math.max(0,Math.round(i*(1-t/100)))}, ${Math.max(0,Math.round(a*(1-t/100)))})`}function rv(e,t,r=.5){const n=e=>{if("white"===e.toLowerCase())return[255,255,255];if("black"===e.toLowerCase())return[0,0,0];let t=e.replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length?[0,0,0]:[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]},[i,a,o]=n(e),[s,l,c]=n(t);return`rgb(${Math.round(i*(1-r)+s*r)}, ${Math.round(a*(1-r)+l*r)}, ${Math.round(o*(1-r)+c*r)})`}function nv(e){const t=Array.isArray(e)?e[0]:e;return`linear-gradient(126deg, ${tv(t,5)} 16%, ${ev(t,10)} 88%)`}const iv=Gg({displayName:"CloseIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M6.26915 5.7309C5.98798 5.44973 5.53209 5.44973 5.25092 5.7309C4.96975 6.01207 4.96975 6.46796 5.25092 6.74913L10.5018 12L5.25092 17.2509C4.96975 17.5321 4.96975 17.9879 5.25092 18.2691C5.53209 18.5503 5.98798 18.5503 6.26915 18.2691L11.52 13.0183L16.7709 18.2691C17.0521 18.5503 17.5079 18.5503 17.7891 18.2691C18.0703 17.9879 18.0703 17.5321 17.7891 17.2509L12.5383 12L17.7891 6.74913C18.0703 6.46796 18.0703 6.01207 17.7891 5.7309C17.5079 5.44973 17.0521 5.44973 16.7709 5.7309L11.52 10.9817L6.26915 5.7309Z",fill:"currentColor"})}),av=Gg({displayName:"ExpandIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z",fill:"currentColor"})}),ov=Gg({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16536 1.81467C7.16536 0.791333 5.9427 0.263999 5.1987 0.965999L1.30003 4.64C1.15132 4.78022 1.03284 4.94936 0.951856 5.13703C0.870874 5.3247 0.829102 5.52694 0.829102 5.73133C0.829102 5.93573 0.870874 6.13797 0.951856 6.32563C1.03284 6.5133 1.15132 6.68244 1.30003 6.82267L5.19736 10.5C5.94136 11.202 7.1647 10.674 7.1647 9.65133V8.33467C7.93731 8.19507 8.73376 8.28024 9.45939 8.58006C10.185 8.87989 10.8093 9.38175 11.258 10.026L11.7927 10.794C12.5207 11.84 14.162 11.3247 14.162 10.0507V9.738C14.162 5.89267 10.9394 2.87667 7.1647 3.05733L7.16536 1.81467ZM5.8847 1.69333C5.90839 1.67111 5.93807 1.6563 5.97007 1.65072C6.00208 1.64514 6.03501 1.64904 6.06483 1.66193C6.09465 1.67482 6.12005 1.69614 6.13791 1.72328C6.15577 1.75042 6.16531 1.78218 6.16536 1.81467V3.54C6.16536 3.87333 6.45736 4.132 6.78803 4.092C10.1767 3.68 13.1627 6.32467 13.1627 9.73867V10.0507C13.1627 10.3453 12.7827 10.4647 12.614 10.2227L12.0787 9.45467C11.4785 8.5928 10.6268 7.93727 9.63996 7.57763C8.65317 7.21799 7.5794 7.17179 6.56536 7.44533C6.45052 7.47639 6.34911 7.54442 6.27681 7.6389C6.2045 7.73337 6.16534 7.84903 6.16536 7.968V9.65067C6.16531 9.68315 6.15577 9.71492 6.13791 9.74205C6.12005 9.76919 6.09465 9.79051 6.06483 9.8034C6.03501 9.81629 6.00208 9.82019 5.97007 9.81461C5.93807 9.80903 5.90839 9.79422 5.8847 9.772L1.9867 6.09533C1.93716 6.04859 1.8977 5.99223 1.87072 5.92969C1.84375 5.86716 1.82984 5.79977 1.82984 5.73167C1.82984 5.66356 1.84375 5.59618 1.87072 5.53364C1.8977 5.4711 1.93716 5.41474 1.9867 5.368L5.8847 1.69333Z",fill:"currentColor"})}),sv=Gg({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:ts.jsx("path",{d:"M4.56503 3.915C5.11896 2.73832 6.04737 1.77849 7.20497 1.18572C8.36257 0.592947 9.68402 0.400681 10.9625 0.63901C12.2411 0.877339 13.4045 1.53281 14.2708 2.50286C15.137 3.4729 15.6573 4.70277 15.75 6C15.8332 7.19515 15.548 8.38706 14.9329 9.41516C14.3178 10.4433 13.4024 11.2581 12.31 11.75C11.9379 12.672 11.3425 13.4871 10.5774 14.122C9.81221 14.7569 8.90126 15.1917 7.92642 15.3873C6.95158 15.5829 5.94341 15.5332 4.99255 15.2426C4.04169 14.952 3.17794 14.4297 2.47896 13.7226C1.77998 13.0155 1.26768 12.1458 0.988107 11.1916C0.708538 10.2375 0.670468 9.2288 0.877321 8.25629C1.08417 7.28377 1.52946 6.37791 2.17316 5.62013C2.81685 4.86235 3.63877 4.27641 4.56503 3.915ZM9.90503 1.5H9.60503C8.52019 1.56681 7.48862 1.99351 6.67357 2.71256C5.85852 3.43161 5.30656 4.40195 5.10503 5.47L10.675 1.565C10.4205 1.52309 10.163 1.50136 9.90503 1.5ZM11.905 1.93L5.33003 6.555L5.06003 6.745C5.11592 7.4665 5.33108 8.16663 5.69003 8.79499L13.565 3.155C13.1023 2.63199 12.5329 2.21427 11.895 1.93H11.905ZM14.145 3.97L6.25003 9.60999C6.70986 10.1331 7.27572 10.5524 7.91003 10.84L14.75 5.82C14.6759 5.16869 14.47 4.53927 14.145 3.97ZM14.75 7.065L9.10503 11.2C9.4681 11.2629 9.83728 11.283 10.205 11.26C11.33 11.1916 12.3968 10.7368 13.225 9.97234C14.0532 9.20793 14.5919 8.1809 14.75 7.065ZM6.75003 14.5C7.59348 14.4958 8.42238 14.2798 9.16061 13.8718C9.89883 13.4638 10.5227 12.8769 10.975 12.165C10.7406 12.2117 10.5035 12.2434 10.265 12.26H9.90003C8.40699 12.257 6.97069 11.6876 5.88117 10.6668C4.79165 9.64592 4.13007 8.24969 4.03003 6.76C4.00121 6.25734 4.03819 5.75307 4.14003 5.26C3.22219 5.83357 2.51524 6.68948 2.12538 7.69915C1.73553 8.70883 1.68382 9.81774 1.97803 10.8593C2.27224 11.9009 2.89648 12.8189 3.75697 13.4754C4.61746 14.1318 5.66774 14.4914 6.75003 14.5Z",fill:"currentColor"})}),lv=Gg({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("path",{d:"M8 2.66683C5.42267 2.66683 3.33333 4.75617 3.33333 7.3335H2C2 4.01979 4.68629 1.3335 8 1.3335C11.3137 1.3335 14 4.01979 14 7.3335C14 8.75016 13.509 10.0522 12.6879 11.0786L14.8047 13.1954L13.8619 14.1382L11.7451 12.0214C10.7187 12.8425 9.41667 13.3335 8 13.3335V12.0002C10.5773 12.0002 12.6667 9.91083 12.6667 7.3335C12.6667 4.75617 10.5773 2.66683 8 2.66683Z",fill:"currentColor"}),ts.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),cv=Gg({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),ts.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),uv=Gg({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5858 11.0002C15.3669 10.2191 16.6332 10.2191 17.4143 11.0002L20.3738 13.9597C20.7643 14.3502 20.7643 14.9834 20.3738 15.3739C19.9833 15.7644 19.3501 15.7644 18.9596 15.3739L17 13.4144V21.0002C17 21.5524 16.5523 22.0002 16 22.0002C15.4478 22.0002 15 21.5524 15 21.0002V13.4144L13.0405 15.3739C12.65 15.7644 12.0168 15.7645 11.6263 15.3739C11.2358 14.9834 11.2358 14.3502 11.6263 13.9597L14.5858 11.0002Z",fill:"white"})]})}),dv=Gg({displayName:"ArrowLeftIcon",viewBox:"0 0 32 32",path:ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0002 17.4139C10.2191 16.6329 10.2191 15.3665 11.0002 14.5855L13.9597 11.6259C14.3502 11.2354 14.9834 11.2354 15.3739 11.6259C15.7644 12.0165 15.7644 12.6496 15.3739 13.0401L13.4144 14.9997H21.0002C21.5524 14.9997 22.0002 15.4474 22.0002 15.9997C22.0002 16.552 21.5524 16.9997 21.0002 16.9997H13.4144L15.3739 18.9592C15.7644 19.3498 15.7645 19.9829 15.3739 20.3735C14.9834 20.764 14.3502 20.764 13.9597 20.3735L11.0002 17.4139Z",fill:"currentColor"})}),pv=Gg({displayName:"ReloadIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M19.146 4.854l-1.489 1.489A8 8 0 1 0 12 20a8.094 8.094 0 0 0 7.371-4.886 1 1 0 1 0-1.842-.779A6.071 6.071 0 0 1 12 18a6 6 0 1 1 4.243-10.243l-1.39 1.39a.5.5 0 0 0 .354.854H19.5A.5.5 0 0 0 20 9.5V5.207a.5.5 0 0 0-.854-.353z",fill:"currentColor"})}),fv=Gg({displayName:"CartBagIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M16 7C16 5.4 14.9 4 13.5 4H10.5C9.1 4 8 5.4 8 7H5C4.448 7 4 7.448 4 8V19C4 19.552 4.448 20 5 20H19C19.552 20 20 19.552 20 19V8C20 7.448 19.552 7 19 7H16ZM10.5 6H13.5C13.776 6 14 6.4 14 7H10C10 6.4 10.224 6 10.5 6ZM18 18H6V9H8V10.5C8 11.052 8.448 11.5 9 11.5C9.552 11.5 10 11.052 10 10.5V9H14V10.5C14 11.052 14.448 11.5 15 11.5C15.552 11.5 16 11.052 16 10.5V9H18V18Z",fill:"currentColor"})}),hv=Gg({displayName:"ArrowRightIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M12.293 5.293C12.684 4.902 13.316 4.902 13.707 5.293L19.707 11.293C20.098 11.684 20.098 12.316 19.707 12.707L13.707 18.707C13.316 19.098 12.684 19.098 12.293 18.707C11.902 18.316 11.902 17.684 12.293 17.293L16.586 13H5C4.448 13 4 12.552 4 12C4 11.448 4.448 11 5 11H16.586L12.293 6.707C11.902 6.316 11.902 5.684 12.293 5.293Z",fill:"currentColor"})}),gv=Gg({displayName:"AiBigIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M18.423 9.97031L16.7505 10.5726C15.8336 10.903 15.0009 11.4317 14.3118 12.1208C13.6226 12.81 13.094 13.6427 12.7635 14.5596L12.1613 16.2321C12.1492 16.2651 12.1272 16.2936 12.0984 16.3137C12.0695 16.3339 12.0352 16.3447 12 16.3447C11.9649 16.3447 11.9305 16.3339 11.9017 16.3137C11.8728 16.2936 11.8509 16.2651 11.8388 16.2321L11.2365 14.5596C10.9061 13.6427 10.3774 12.81 9.68826 12.1208C8.99911 11.4317 8.16641 10.903 7.24953 10.5726L5.57703 9.97031C5.544 9.9582 5.51549 9.93624 5.49535 9.9074C5.47521 9.87856 5.46441 9.84423 5.46441 9.80906C5.46441 9.77388 5.47521 9.73955 5.49535 9.71071C5.51549 9.68188 5.544 9.65992 5.57703 9.64781L7.24953 9.04556C8.16641 8.7151 8.99911 8.18645 9.68826 7.49729C10.3774 6.80814 10.9061 5.97544 11.2365 5.05856L11.8388 3.38606C11.8509 3.35303 11.8728 3.32452 11.9017 3.30438C11.9305 3.28424 11.9649 3.27344 12 3.27344C12.0352 3.27344 12.0695 3.28424 12.0984 3.30438C12.1272 3.32452 12.1492 3.35303 12.1613 3.38606L12.7635 5.05856C13.094 5.97544 13.6226 6.80814 14.3118 7.49729C15.0009 8.18645 15.8336 8.7151 16.7505 9.04556L18.423 9.64781C18.4564 9.65958 18.4853 9.68141 18.5057 9.71029C18.5261 9.73917 18.5371 9.77368 18.5371 9.80906C18.5371 9.84443 18.5261 9.87894 18.5057 9.90782C18.4853 9.9367 18.4564 9.95853 18.423 9.97031ZM22.4423 17.4988L21.5955 17.8041C21.1313 17.9715 20.7097 18.2393 20.3607 18.5883C20.0118 18.9372 19.744 19.3588 19.5765 19.8231L19.2713 20.6698C19.2652 20.6866 19.254 20.7011 19.2394 20.7113C19.2248 20.7216 19.2074 20.727 19.1895 20.727C19.1717 20.727 19.1543 20.7216 19.1396 20.7113C19.125 20.7011 19.1139 20.6866 19.1078 20.6698L18.8025 19.8231C18.635 19.3588 18.3673 18.9372 18.0183 18.5883C17.6694 18.2393 17.2478 17.9715 16.7835 17.8041L15.9368 17.4988C15.92 17.4927 15.9055 17.4816 15.8953 17.467C15.885 17.4523 15.8795 17.4349 15.8795 17.4171C15.8795 17.3992 15.885 17.3818 15.8953 17.3672C15.9055 17.3525 15.92 17.3414 15.9368 17.3353L16.7835 17.0301C17.2478 16.8626 17.6694 16.5948 18.0183 16.2459C18.3673 15.8969 18.635 15.4753 18.8025 15.0111L19.1078 14.1643C19.1139 14.1475 19.125 14.133 19.1396 14.1228C19.1543 14.1126 19.1717 14.1071 19.1895 14.1071C19.2074 14.1071 19.2248 14.1126 19.2394 14.1228C19.254 14.133 19.2652 14.1475 19.2713 14.1643L19.5765 15.0111C19.744 15.4753 20.0118 15.8969 20.3607 16.2459C20.7097 16.5948 21.1313 16.8626 21.5955 17.0301L22.4423 17.3353C22.4591 17.3414 22.4735 17.3525 22.4838 17.3672C22.494 17.3818 22.4995 17.3992 22.4995 17.4171C22.4995 17.4349 22.494 17.4523 22.4838 17.467C22.4735 17.4816 22.4591 17.4927 22.4423 17.4988ZM8.06253 17.4988L7.21578 17.8041C6.75155 17.9715 6.32995 18.2393 5.98098 18.5883C5.63201 18.9372 5.36426 19.3588 5.19678 19.8231L4.89153 20.6698C4.88542 20.6866 4.8743 20.7011 4.85967 20.7113C4.84505 20.7216 4.82763 20.727 4.80978 20.727C4.79192 20.727 4.7745 20.7216 4.75988 20.7113C4.74525 20.7011 4.73413 20.6866 4.72803 20.6698L4.42278 19.8231C4.2553 19.3588 3.98754 18.9372 3.63858 18.5883C3.28961 18.2393 2.86801 17.9715 2.40378 17.8041L1.55703 17.4988C1.54025 17.4927 1.52576 17.4816 1.51552 17.467C1.50528 17.4523 1.49979 17.4349 1.49979 17.4171C1.49979 17.3992 1.50528 17.3818 1.51552 17.3672C1.52576 17.3525 1.54025 17.3414 1.55703 17.3353L2.40378 17.0301C2.86801 16.8626 3.28961 16.5948 3.63858 16.2459C3.98754 15.8969 4.2553 15.4753 4.42278 15.0111L4.72803 14.1643C4.73413 14.1475 4.74525 14.133 4.75988 14.1228C4.7745 14.1126 4.79192 14.1071 4.80978 14.1071C4.82763 14.1071 4.84505 14.1126 4.85967 14.1228C4.8743 14.133 4.88542 14.1475 4.89153 14.1643L5.19678 15.0111C5.36426 15.4753 5.63201 15.8969 5.98098 16.2459C6.32995 16.5948 6.75155 16.8626 7.21578 17.0301L8.06253 17.3353C8.13903 17.3631 8.13903 17.4718 8.06253 17.4988Z",fill:"currentColor"})});Gg({displayName:"AiRainbowIconBase",viewBox:"0 0 24 24",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("g",{clipPath:"url(#clip0_497_8063)",children:ts.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:"url(#paint0_linear_497_8063)"})}),ts.jsxs("defs",{children:[ts.jsxs("linearGradient",{id:"paint0_linear_497_8063",x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[ts.jsx("stop",{stopColor:"#FF7E90"}),ts.jsx("stop",{offset:"0.463542",stopColor:"#A939FF"}),ts.jsx("stop",{offset:"1",stopColor:"#0020FF"})]}),ts.jsx("clipPath",{id:"clip0_497_8063",children:ts.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})});const mv=e=>{const t=Ag("colors","primary"),[r,n,i]=function(e){const t=Array.isArray(e)?e[0]:e;return[ev(t,15),t,tv(t,10)]}(t),a=ss.useMemo(()=>`rainbow-gradient-${Math.random().toString(36).substr(2,9)}`,[]),{w:o,width:s,transform:l}=e,c="string"==typeof o?o:"string"==typeof s?s:"number"==typeof o?`${o}px`:"number"==typeof s?`${s}px`:"24px";return ts.jsx(eu,{position:"relative",display:"inline-block",width:c,height:c,transform:l,children:ts.jsxs("svg",{viewBox:"0 0 24 24",width:c,height:c,style:{display:"block"},children:[ts.jsxs("defs",{children:[ts.jsxs("linearGradient",{id:a,x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[ts.jsx("stop",{stopColor:r}),ts.jsx("stop",{offset:"0.463542",stopColor:n}),ts.jsx("stop",{offset:"1",stopColor:i})]}),ts.jsx("clipPath",{id:`clip-${a}`,children:ts.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),ts.jsx("g",{clipPath:`url(#clip-${a})`,children:ts.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:`url(#${a})`})})]})})},vv=""+new URL("dori.ico",import.meta.url).href,bv=({onClose:e,isMobile:t=!1,isExpanded:r=!1,onToggleExpand:n,onReload:i})=>{const{botData:a,cartItemCount:o}=Xm(),{t:s}=Zm(),l=bm(a)&&o>0;return ts.jsxs(Qg,{justify:"space-between",align:"center",flexShrink:0,children:[ts.jsx(Kg,{src:a?.bot_image?a?.bot_image:vv,alt:"",role:"presentation",w:"40px",h:"40px",borderRadius:"50%"}),ts.jsxs(em,{gap:3,children:[l&&ts.jsxs(Hg,{variant:"outline",size:"sm",borderRadius:"4px",px:2,height:"auto",lineHeight:"1.5",border:"none",color:"text",bgColor:"lightBackground",_hover:{bgColor:"veryLightBackground"},padding:"5px 9px",onClick:()=>{window.open(`${ym()}cart`,"_blank","noopener,noreferrer")},fontFamily:"system-ui, sans-serif",children:[ts.jsx(fv,{boxSize:"16px",color:"text"}),ts.jsx(Cu,{fontSize:"13px",fontWeight:"500",color:"text",children:o})]}),!t&&n&&ts.jsxs(Hg,{variant:"outline",size:"sm",borderRadius:"4px",px:3,height:"auto",lineHeight:"1.5",border:"none",color:"text",bgColor:"lightBackground",_hover:{bgColor:"veryLightBackground"},padding:"5px 9px",onClick:()=>n?.(),fontFamily:"system-ui, sans-serif",children:[ts.jsx(av,{boxSize:"16px",color:"text"}),s(r?"minimize":"showFullScreen")]}),i&&ts.jsx(Vg,{size:"sm",variant:"ghost","aria-label":s("reload"),onClick:i,color:"text",_hover:{bgColor:"mutedText"},children:ts.jsx(pv,{boxSize:t?"16px":"24px",color:"text"})}),ts.jsx(Vg,{size:"sm",variant:"ghost","aria-label":s("close"),onClick:()=>{r&&n?.(),e()},color:"text",_hover:{bgColor:"mutedText"},children:ts.jsx(iv,{boxSize:t?"16px":"24px",color:"text"})})]})]})};class yv{static async getUploadCredentials(e){const t={file_extension:e,expires_in:3600,content_length_range:{min_bytes:1024,max_bytes:10485760}},r=await fetch(am.getUploadUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:t})});if(!r.ok)throw new Error(`Failed to get upload credentials: ${r.status} ${r.statusText}`);return await r.json()}static async compressImage(e,t=1024,r=.8){return new Promise(n=>{const i=document.createElement("canvas"),a=i.getContext("2d"),o=new Image;o.onload=()=>{const{width:s,height:l}=this.calculateDimensions(o.width,o.height,t);i.width=s,i.height=l,a.drawImage(o,0,0,s,l),i.toBlob(t=>{const a=new File([t],e.name,{type:"image/jpeg",lastModified:Date.now()});n({file:a,preview:i.toDataURL("image/jpeg",r),format:"jpeg"})},"image/jpeg",r)},o.src=URL.createObjectURL(e)})}static getFileExtension(e){const t=e.name.split(".").pop()?.toLowerCase();switch(t){case"jpg":case"jpeg":default:return"jpeg";case"webp":return"webp";case"png":return"png";case"heic":return"heic"}}static calculateDimensions(e,t,r){if(e<=r)return{width:e,height:t};const n=t/e;return{width:r,height:Math.round(r*n)}}static async uploadImage(e,t){const r=new FormData;Object.entries(e.fields).forEach(([e,t])=>{r.append(e,t)}),r.append("file",t);const n=await fetch(e.url,{method:"POST",body:r});if(!n.ok&&204!==n.status)throw new Error("Error uploading image");return e.public_url}}const xv=()=>{const[e,t]=os.useState(null),[r,n]=os.useState(!1);return{uploadedImage:e,isUploading:r,handleFileSelect:()=>{const e=document.createElement("input");e.type="file",e.accept="image/jpeg,image/jpg,image/webp,image/png,image/heic",e.onchange=e=>{const r=e.target.files?.[0];r&&(async e=>{try{n(!0);const r=await yv.compressImage(e),i=await yv.getUploadCredentials(r.format),a=await yv.uploadImage(i,r.file);t({url:a,preview:r.preview,name:e.name,size:r.file.size})}catch(r){console.error("Upload failed:",r),alert("Failed to upload image")}finally{n(!1)}})(r)},e.click()},removeImage:()=>{e?.preview&&URL.revokeObjectURL(e.preview),t(null)}}};var kv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_v=ss.createContext&&ss.createContext(kv),wv=["attr","size","title"];function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sv.apply(this,arguments)}function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i),i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zv(e){return e&&e.map((e,t)=>ss.createElement(e.tag,Pv({key:t},e.attr),zv(e.child)))}function Ev(e){return t=>ss.createElement(Tv,Sv({attr:Pv({},e.attr)},t),zv(e.child))}function Tv(e){var t=t=>{var r,{attr:n,size:i,title:a}=e,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,wv),s=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),ss.createElement("svg",Sv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:r,style:Pv(Pv({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&ss.createElement("title",null,a),e.children)};return void 0!==_v?ss.createElement(_v.Consumer,null,e=>t(e)):t(kv)}function jv(e){return Ev({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"},child:[]}]})(e)}const Rv=({imageUrl:e,onRemove:t})=>ts.jsxs("div",{style:{position:"relative",display:"inline-block",background:"transparent"},children:[ts.jsx(Kg,{src:e,alt:"Uploaded image",w:"80px",h:"80px",borderRadius:"12px",objectFit:"cover",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.11)"}),ts.jsx(Vg,{position:"absolute",top:"6px",right:"6px",bg:"primary","aria-label":"Remove image",onClick:t,size:"sm",borderRadius:"50%",minW:"24px",h:"24px",children:ts.jsx(iv,{boxSize:"14px",filter:"brightness(0) invert(1) drop-shadow(0 0 1px white)"})})]}),Ov=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n,isMobileView:i})=>{const{chatState:{repliedProduct:a},setRepliedProduct:o}=Xm(),[s,l]=os.useState(t),{uploadedImage:c,isUploading:u,handleFileSelect:d,removeImage:p}=xv();os.useEffect(()=>{l(h(t))},[t]);const f=e=>{(s.trim()||e||c)&&(n?.({message:e??s.trim(),imageUrl:c?.url},a?.product),o?.(null),l(""),p())},h=e=>e.trimStart();return ts.jsxs(tm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:[c&&ts.jsx(eu,{position:"absolute",bottom:a?i?"300px":"190px":"90px",left:"12px",zIndex:1e6,bg:"transparent",pointerEvents:"auto",children:ts.jsx(Rv,{imageUrl:c.preview,onRemove:p})}),ts.jsx(eu,{bgColor:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:a?i?"300px":"190px":"90px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ts.jsxs(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[a&&ts.jsxs(tm,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",borderColor:"borderColor",bgColor:"lightBackground",children:[ts.jsxs(em,{justify:"space-between",align:"center",w:"full",children:[ts.jsx(Kg,{src:a?.product?.image,alt:"product",w:"40px",h:"40px"}),ts.jsx(Cu,{fontSize:"12px",fontWeight:400,color:"text",children:a?.product?.name}),ts.jsx(Vg,{bg:"transparent","aria-label":"Remove product",onClick:()=>o?.(null),children:ts.jsx(iv,{boxSize:"24px",color:"text"})})]}),a?.suggestions&&a.suggestions.length>0&&ts.jsxs(ts.Fragment,{children:[ts.jsx(eu,{display:{base:"none",md:"block"},w:"full",children:ts.jsx(em,{w:"full",justify:"flex-start",align:"center",gap:2,children:a.suggestions.map(e=>ts.jsx(Hg,{variant:"outline",bg:"transparent",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),h:"32px",px:3,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:ts.jsx(eu,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),ts.jsx(eu,{display:{base:"block",md:"none"},w:"full",children:ts.jsx(tm,{w:"full",align:"stretch",gap:"8px",children:a.suggestions.map(e=>ts.jsx(Hg,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"14px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),children:e},e))})})]})]}),ts.jsx(nm,{value:s,onChange:e=>(e=>{const t=h(e);l(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),f())},placeholder:e,fontSize:"16px",color:"text",fontWeight:300,resize:"none",rows:1,lineHeight:"1.5",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),ts.jsx(Vg,{position:"absolute",bottom:"8px",left:"12px",size:"xs",borderRadius:"full",bg:"background","aria-label":"Upload image",onClick:d,_hover:{bg:"background"},disabled:u,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",color:"text",children:u?ts.jsx(Ng,{size:"sm",color:"text"}):ts.jsx(jv,{size:"full",color:"text"})}),ts.jsx(Vg,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Send",onClick:()=>f(),_hover:{bg:"veryLightBackground"},disabled:!s.trim()&&!c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"background",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ts.jsx(uv,{boxSize:"30px",color:"primary"})})]})})]})},Iv=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:r}=Xm();return ts.jsx(tm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ts.jsx(eu,{bg:"lightBackground",borderRadius:"32px",position:"relative",p:3,w:"full",h:"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:3,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:ts.jsxs(em,{justify:"space-between",align:"center",h:"full",children:[ts.jsx(Cu,{color:"mutedText",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),ts.jsx(Vg,{size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Stop",onClick:()=>{r?.(),t?.()},_hover:{bg:"veryLightBackground"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:ts.jsx(cv,{boxSize:"30px",color:"primary"})})]})})})})},Av=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n})=>{const[i,a]=os.useState(t),[o,s]=os.useState(!1),{uploadedImage:l,isUploading:c,handleFileSelect:u,removeImage:d}=xv(),p=os.useRef(null);os.useEffect(()=>{a(g(t))},[t]);const f=()=>{(i.trim()||l)&&(n?.({message:i.trim(),imageUrl:l?.url}),a(""),d())},h=e=>` ${e}`,g=e=>e.trimStart();return ts.jsxs(tm,{gap:2,align:"stretch",children:[l&&ts.jsx(eu,{mb:2,alignSelf:"flex-start",bg:"transparent",children:ts.jsx(Rv,{imageUrl:l.preview,onRemove:d})}),ts.jsxs(eu,{bg:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:o?"80px":"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:()=>{s(!0),setTimeout(()=>{if(p.current){p.current.focus();const e=p.current.value.length;p.current.setSelectionRange(e,e)}},100)},children:[ts.jsx(eu,{position:"absolute",top:"8px",left:"8px",zIndex:2,children:ts.jsx(mv,{w:"24px",h:"24px",transform:"rotate(2700deg)",color:"primary"})}),ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:o?0:1,transform:o?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:o?"none":"auto",children:ts.jsx(em,{justify:"space-between",align:"center",h:"full",children:ts.jsx(Cu,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),ts.jsx(Vg,{position:"absolute",bottom:"7.5px",right:"52px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Upload image",onClick:e=>{e.stopPropagation(),u()},_hover:{bg:"veryLightBackground"},disabled:c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",children:c?ts.jsx(Ng,{size:"sm"}):ts.jsx(jv,{size:"24px"})}),ts.jsx(Vg,{position:"absolute",bottom:"8px",right:"12px",size:"xs",borderRadius:"full",bg:"primary","aria-label":"Send",onClick:e=>{e.stopPropagation(),f()},_hover:{bg:"darkPrimary"},disabled:!i.trim()&&!l,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"lightPrimary",cursor:"not-allowed"},transform:"scale(1) rotate(180deg)",zIndex:2,children:ts.jsx(dv,{boxSize:"30px",color:"text"})}),ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:o?1:0,transform:o?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:o?"auto":"none",children:ts.jsx(nm,{ref:p,value:h(i),onChange:e=>(e=>{const t=g(e);a(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),f())},placeholder:h(e),fontSize:"16px",color:"text",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",cursor:"text",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2,lineHeight:"1.5"})})]})]})},Dv=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:r="",onChange:n,onSend:i,onStop:a})=>{const[o,s]=os.useState(!1);return os.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?ts.jsx(Ov,{placeholder:t,value:r,onChange:n,onSend:i,isMobileView:o}):"generating"===e?ts.jsx(Iv,{placeholder:t,onStop:a,isMobileView:o}):ts.jsx(Av,{placeholder:t,value:r,onChange:n,onSend:i})},Mv=(e,t)=>{const r=e.includes("?")?"&":"?";return`${e}${r}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},Lv=()=>{const{botData:e}=Xm(),{isMobile:t}=im(),{t:r}=Zm();return ts.jsxs(em,{gapX:2,justifyContent:t?"start":"center",align:"center",alignContent:"center",alignItems:"center",w:"full",wrap:t?"wrap":"nowrap",children:[ts.jsx(Zg,{href:Mv("https://dori.tech/",e?.sharing_id||""),target:"_blank",rel:"noopener noreferrer",display:"inline-flex",alignItems:"center",children:ts.jsx(Kg,{src:vv,alt:"Dori AI",boxSize:{base:"20px",md:"24px"}})}),ts.jsx(eu,{fontSize:"10px",color:"mutedText",px:0,py:0,bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1,children:ts.jsx(eu,{as:"span",children:r("aiCanMakeMistakes")})})]})};function Fv(e){return Ev({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Nv(e){return Ev({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}const Wv=(e={})=>{const{enableTwinkling:t=!0,enableFloating:r=!0,enableRotation:n=!0,enableScaling:i=!0,twinklingSpeed:a=1e3,floatingSpeed:o=3e3,rotationSpeed:s=8e3,scalingSpeed:l=4e3,floatingRange:c=2.5,rotationRange:u=90,scalingRange:d=1.2}=e,[p,f]=os.useState(1),[h,g]=os.useState(0),[m,v]=os.useState(0),[b,y]=os.useState(1);return os.useEffect(()=>{if(!t)return;const e=setInterval(()=>{f(e=>1===e?.2:1)},a);return()=>clearInterval(e)},[t,a]),os.useEffect(()=>{if(!r)return;const e=setInterval(()=>{g(e=>0===e?c:0)},o);return()=>clearInterval(e)},[r,o,c]),os.useEffect(()=>{if(!n)return;const e=setInterval(()=>{v(e=>0===e?u:0)},s);return()=>clearInterval(e)},[n,s,u]),os.useEffect(()=>{if(!i)return;const e=setInterval(()=>{y(e=>1===e?d:1)},l);return()=>clearInterval(e)},[i,l,d]),{getStarfieldTransform:(e,t)=>[].filter(Boolean).join(" "),getIconStyle:()=>({opacity:p,transition:"transform 0.8s ease-in-out, opacity 1s ease-in-out"}),twinkleOpacity:p,floatingOffset:h,rotationAngle:m,scaleFactor:b}},$v=(e,t)=>t?(e=>e?.customization?.mobile?.position?{align:e.customization?.mobile?.position?.align??"right",sideSpacing:e.customization?.mobile?.position?.side_spacing??8,bottomSpacing:e.customization?.mobile?.position?.bottom_spacing??0}:{align:"right",sideSpacing:8,bottomSpacing:20})(e):(e=>e?.customization?.position?{align:e.customization?.position?.align??"right",sideSpacing:e.customization?.position?.side_spacing??16,bottomSpacing:e.customization?.position?.bottom_spacing??0}:{align:"right",sideSpacing:16,bottomSpacing:60})(e);function Bv(){return"undefined"!=typeof window&&!!window.$crisp}function Hv(){Bv()&&window.$crisp.push(["do","chat:hide"])}function Vv(){console.log("trying to open"),Bv()&&(console.log("trying to open2"),window.$crisp.push(["do","chat:show"]),window.$crisp.push(["do","chat:open"]))}const Uv=15e3,qv="chatra";let Yv=!1,Gv=!1,Qv=null,Kv=0,Xv=null,Zv=0,Jv=!1;function eb(...e){console.log("[Dori-Chatra]",...e)}function tb(){return"undefined"!=typeof window&&"function"==typeof window.Chatra}function rb(){return!!tb()&&!!document.getElementById(qv)}function nb(e){if(tb())try{window.Chatra("hide"),eb("called Chatra('hide') —",e)}catch(t){eb("error calling hide:",t)}}function ib(){null!==Qv&&(clearInterval(Qv),Qv=null,eb("stopped maintain loop"))}function ab(){Gv||Date.now()-Kv>3e4?ib():Yv&&tb()&&nb("maintain loop")}function ob(){if(!Gv)return;const e=document.getElementById(qv);if(!e)return;const t=e.className||"",r=-1!==t.indexOf("chatra--visible");-1!==t.indexOf("chatra--expanded")?Jv=!0:Jv&&(Date.now()-Zv<1500||r&&nb("user closed chat"))}function sb(){eb("openChatraChat invoked"),Gv=!0,Jv=!1,ib(),function(){if(Xv||"undefined"==typeof document)return;const e=()=>{const e=document.getElementById(qv);return!!e&&(Xv=new MutationObserver(ob),Xv.observe(e,{attributes:!0,attributeFilter:["class","style"]}),eb("attached close observer to #chatra"),!0)};if(e())return;const t=Date.now(),r=setInterval(()=>{(e()||Date.now()-t>Uv)&&clearInterval(r)},200)}(),function(e){if(rb())return void e();const t=Date.now(),r=setInterval(()=>{rb()?(clearInterval(r),e()):Date.now()-t>Uv&&(clearInterval(r),eb("Chatra never fully loaded within",Uv,"ms"))},200)}(()=>{Zv=Date.now();try{window.Chatra("show"),eb("called Chatra('show')"),setTimeout(()=>{try{window.Chatra("openChat"),eb("called Chatra('openChat')")}catch(e){eb("error calling openChat:",e)}},50)}catch(e){eb("error calling show:",e)}})}const lb=(e,t,r)=>{switch(e){case"whatsapp":const e=t.phoneNumber?.replace(/\s/g,""),n=t.welcomeMessage?`?text=${encodeURIComponent(t.welcomeMessage)}`:"";window.open(`https://wa.me/${e}${n}`,"_blank");break;case"telegram":window.open(`https://t.me/${t.username}`,"_blank");break;case"customLink":window.open(t.linkUrl,"_blank");break;case"crisp":Vv(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":sb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"dori":r&&r()}},cb=({channels:e,isOpen:t,onToggle:r,isMobile:n,onMouseEnter:i,onChatClick:a})=>{const{botData:o}=Xm(),s=Pu({base:!0,md:!1})??!1,l=$v(o,s),c=!0!==o?.customization?.disable_idle_animation,{getStarfieldTransform:u,getIconStyle:d}=Wv({enableTwinkling:c,enableFloating:c,enableRotation:c,enableScaling:c}),p=(e=>{if(!e)return[];const t=[];return e.crisp?.enabled&&t.push({type:"crisp",icon:e.crisp.icon,name:e.crisp.name,data:e.crisp}),e.chatra?.enabled&&t.push({type:"chatra",icon:e.chatra.icon,name:e.chatra.name,data:e.chatra}),e.customLink?.enabled&&t.push({type:"customLink",icon:e.customLink.icon,name:e.customLink.name,data:e.customLink}),e.telegram?.enabled&&t.push({type:"telegram",icon:e.telegram.icon,name:e.telegram.name,data:e.telegram}),e.whatsapp?.enabled&&t.push({type:"whatsapp",icon:e.whatsapp.icon,name:e.whatsapp.name,data:e.whatsapp}),t})(e);return 0===p.length?null:ts.jsxs(tm,{gap:2,align:"flex-end",alignItems:"center",position:"absolute",bottom:"100%",right:0,children:[n&&t&&ts.jsx(Vg,{"aria-label":"Toggle support channels",size:"2xs",borderRadius:"full",bg:"primary",color:"background",boxShadow:"md",mb:2,opacity:t||n?1:0,transition:"all 0.2s ease",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},onClick:r,display:n||!t?"flex":"none",children:ts.jsx(Fv,{size:20})}),ts.jsx(eu,{mb:3,opacity:t?1:0,transform:t?"translateY(0)":"translateY(10px)",transition:"all 0.2s ease",pointerEvents:t?"auto":"none",onMouseEnter:i,children:ts.jsxs(tm,{gap:2,align:"flex-end",children:[ts.jsx(eu,{borderRadius:"full",cursor:"pointer",onClick:()=>lb("dori",{},a),bg:"primary",boxSize:{base:"36px",md:"48px"},display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"md",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},transition:"all 0.2s ease",children:ts.jsx(gv,{boxSize:{base:"24px",md:"32px"},color:"background",transform:u("expanded",l),...d()})}),p.map((e,t)=>ts.jsx(eu,{borderRadius:"full",cursor:"pointer",onClick:()=>lb(e.type,e.data,a),_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)"}},transition:"all 0.2s ease",children:ts.jsx(Kg,{src:e.icon,alt:e.name,boxSize:{base:"36px",md:"48px"},borderRadius:"full",objectFit:"fill"})},`${e.type}-${t}`))]})}),n&&!t&&ts.jsx(Vg,{"aria-label":"Toggle support channels",size:"2xs",borderRadius:"full",bg:"primary",color:"background",boxShadow:"md",mb:2,opacity:t||n?1:0,transition:"all 0.2s ease",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},onClick:r,display:n||!t?"flex":"none",children:ts.jsx(Nv,{size:20})})]})},ub=({channels:e})=>{const t=(e=>{if(!e)return[];const t=[];return e.crisp?.enabled&&t.push({type:"crisp",icon:e.crisp.icon,name:e.crisp.name,data:e.crisp}),e.chatra?.enabled&&t.push({type:"chatra",icon:e.chatra.icon,name:e.chatra.name,data:e.chatra}),e.customLink?.enabled&&t.push({type:"customLink",icon:e.customLink.icon,name:e.customLink.name,data:e.customLink}),e.telegram?.enabled&&t.push({type:"telegram",icon:e.telegram.icon,name:e.telegram.name,data:e.telegram}),e.whatsapp?.enabled&&t.push({type:"whatsapp",icon:e.whatsapp.icon,name:e.whatsapp.name,data:e.whatsapp}),t})(e);return 0===t.length?null:ts.jsx(em,{gap:3,w:"full",alignItems:"center",justifyContent:"start",wrap:"wrap",children:t.map((e,t)=>ts.jsxs(eu,{display:"flex",alignItems:"center",gap:3,cursor:"pointer",borderRadius:"16px",padding:"6px 8px",bg:"lightBackground",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"veryLightBackground",transform:"scale(1.05)"}},transition:"all 0.2s ease",onClick:()=>((e,t)=>{switch(e){case"whatsapp":const e=t.phoneNumber?.replace(/\s/g,""),r=t.welcomeMessage?`?text=${encodeURIComponent(t.welcomeMessage)}`:"";window.open(`https://wa.me/${e}${r}`,"_blank");break;case"telegram":window.open(`https://t.me/${t.username}`,"_blank");break;case"customLink":window.open(t.linkUrl,"_blank");break;case"crisp":Vv(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":sb(),window.dispatchEvent(new Event("dori:close-widget"))}})(e.type,e.data),flexShrink:0,children:[ts.jsx(Kg,{src:e.icon,alt:e.name,boxSize:{base:"22px",md:"24px"},borderRadius:"full",objectFit:"cover"}),ts.jsx(Cu,{fontSize:{base:"12px",md:"14px"},fontWeight:"400",color:"text",whiteSpace:"nowrap",children:e.name})]},`${e.type}-${t}`))})},db=({flow:e,onComplete:t})=>{const[r,n]=os.useState(0),[i,a]=os.useState([]),[o,s]=os.useState("active"),[l,c]=os.useState(!1),[u,d]=os.useState(!1),[p,f]=os.useState(!1),h=os.useRef(null),g=os.useRef(null),m=os.useRef(null),v=os.useRef(null),b=Ag("colors","primary"),y=nv(b);os.useEffect(()=>{if("active"!==o)return;c(!1);const e=requestAnimationFrame(()=>{c(!0)});return()=>cancelAnimationFrame(e)},[r,o]),os.useEffect(()=>()=>{h.current&&clearTimeout(h.current),g.current&&clearTimeout(g.current),m.current&&clearTimeout(m.current),v.current&&clearTimeout(v.current)},[]);const x=os.useCallback(o=>{if(p)return;f(!0);const l=[...i,{stepIndex:r,option:o}];a(l),r<e.steps.length-1?(c(!1),h.current=setTimeout(()=>{n(e=>e+1),f(!1)},280)):(d(!0),v.current=setTimeout(()=>{s("analyzing"),d(!1);const r=800+700*Math.random();m.current=setTimeout(()=>{const r=l.map(e=>e.option.label).join(" · ");let n=e.result_prompt;l.forEach((e,t)=>{const r=`{step${t+1}}`;n=n.split(r).join(e.option.value)});const i=mm(),a=l.map(e=>e.option.label).join(", ");t(r,`${i}[Quiz selections: ${a}] ${n}`)},r)},300))},[p,i,r,e,t]),k=os.useCallback(()=>{r<=0||u||(c(!1),g.current=setTimeout(()=>{a(e=>e.slice(0,-1)),n(e=>e-1),f(!1)},250))},[r,u]),_=e.steps[r];return"analyzing"===o?ts.jsxs(tm,{gap:3,align:"center",flex:1,justify:"center",transition:"opacity 0.3s ease",children:[ts.jsx(em,{gap:2,flexWrap:"wrap",justify:"center",children:i.map((e,t)=>ts.jsx(pb,{label:e.option.label},t))}),ts.jsxs(tm,{gap:2,align:"center",py:4,children:[ts.jsx(lv,{boxSize:"20px",color:"primary",opacity:.6}),ts.jsx(Cu,{fontSize:"14px",fontWeight:500,fontFamily:"system-ui, sans-serif",css:{background:`linear-gradient(90deg, ${b}44, ${b}, ${b}44)`,backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",animation:"dori-shimmer 1.5s ease-in-out infinite"},children:e.analyzing_text})]}),ts.jsx("style",{children:"\n @keyframes dori-shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n }\n "})]}):ts.jsxs(tm,{gap:4,align:"stretch",flex:1,justify:"start",opacity:u?0:1,transform:u?"translateY(-8px)":"translateY(0)",transition:"opacity 0.3s ease, transform 0.3s ease",children:[i.length>0&&ts.jsxs(em,{gap:2,flexWrap:"wrap",align:"center",children:[ts.jsx(eu,{as:"button",onClick:k,"aria-label":"Back",cursor:"pointer",px:2,py:1,borderRadius:"12px",fontSize:"11px",color:"primary",opacity:.8,_hover:{opacity:1,bg:"veryLightBackground"},transition:"all 0.15s ease",fontFamily:"system-ui, sans-serif",flexShrink:0,children:"←"}),i.map((e,t)=>ts.jsx(pb,{label:e.option.label},t))]}),ts.jsxs(eu,{opacity:l?1:0,transform:l?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[ts.jsxs(tm,{align:"stretch",gap:3,mb:3,children:[ts.jsxs(em,{justify:"space-between",align:"center",gap:3,children:[ts.jsxs(em,{gap:2,align:"center",minW:0,children:[ts.jsx(eu,{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"24px",borderRadius:"12px",bg:"background",border:"1px solid",borderColor:"primary",flexShrink:0,children:ts.jsx(lv,{boxSize:"12px",color:"primary"})}),ts.jsx(Cu,{fontSize:"11px",fontWeight:600,fontFamily:"system-ui, sans-serif",lineHeight:"1.4",css:{background:y,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:e.entry_label})]}),ts.jsxs(eu,{px:2.5,py:1,borderRadius:"999px",bg:"background",border:"1px solid",borderColor:"primary",fontSize:"10px",fontWeight:700,color:"primary",fontFamily:"system-ui, sans-serif",lineHeight:"1",flexShrink:0,children:[r+1,"/",e.steps.length]})]}),ts.jsx(Cu,{fontSize:"17px",fontWeight:700,color:"text",lineHeight:"1.45",fontFamily:"system-ui, sans-serif",children:_.question}),ts.jsx(eu,{bg:"background",border:"1px solid",borderColor:"borderColor",borderRadius:"16px",px:3,py:2.5,children:ts.jsxs(em,{gap:2,align:"start",children:[ts.jsx(eu,{boxSize:"7px",borderRadius:"full",bg:"primary",mt:"7px",flexShrink:0}),ts.jsx(Cu,{fontSize:"12px",color:"textSecondary",fontWeight:500,lineHeight:"1.65",fontFamily:"system-ui, sans-serif",opacity:.9,children:_.reason})]})})]}),ts.jsx(eu,{display:"grid",gridTemplateColumns:{base:"1fr 1fr"},gap:2,children:_.options.map((e,t)=>ts.jsx(eu,{as:"button",px:3,py:"8px",borderRadius:"24px",border:"1px solid",borderColor:"primary",bg:"veryLightBackground",cursor:"pointer",textAlign:"start",display:"flex",alignItems:"center",gap:2,opacity:l?1:0,transform:l?"translateY(0)":"translateY(6px)",transition:`opacity 0.25s ease ${40*t}ms, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) ${40*t}ms, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease`,_hover:{bg:"lightBackground",boxShadow:`0 0 0 1px ${b}33`},_active:{bg:"lightBackground",transform:"translateY(0) scale(0.97)"},onClick:()=>x(e),fontFamily:"system-ui, sans-serif",children:ts.jsxs(eu,{flex:"1",minW:0,children:[ts.jsx(Cu,{fontSize:"13px",fontWeight:500,color:"text",lineHeight:"1.4",whiteSpace:"normal",wordBreak:"break-word",children:e.label}),e.subtitle&&ts.jsx(Cu,{fontSize:"10px",color:"textSecondary",opacity:.6,lineHeight:"1.2",children:e.subtitle})]})},e.value))})]})]})},pb=({label:e})=>ts.jsxs(eu,{px:3,py:1,borderRadius:"16px",bg:"veryLightBackground",border:"1px solid",borderColor:"primary",fontSize:"11px",fontWeight:500,color:"primary",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",children:["✓ ",e]}),fb=({chips:e,onChipClick:t,onDismiss:r})=>{const[n,i]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]),0===e.length?null:ts.jsx(eu,{flexShrink:0,opacity:n?1:0,transform:n?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)","data-dori-nudge":"chip-row",children:ts.jsxs(em,{gap:2,wrap:"wrap",align:"center",children:[e.map((e,r)=>ts.jsx(Hg,{size:"sm",variant:"outline",borderRadius:"20px",borderWidth:"1.5px",borderColor:"primary",bg:"veryLightBackground",color:"text",fontSize:"13px",fontWeight:500,px:3,py:1.5,height:"auto",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"lightBackground"}},onClick:()=>t(e),fontFamily:"system-ui, sans-serif",children:e},`${r}-${e}`)),ts.jsx(Vg,{size:"xs",borderRadius:"full",bg:"transparent","aria-label":"Dismiss nudge",color:"textSecondary",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"lightBackground"}},minW:"22px",w:"22px",h:"22px",p:0,flexShrink:0,onClick:r,opacity:.6,children:ts.jsx(iv,{boxSize:"11px"})})]})})},hb=({onStartChat:e,isMobile:t,isExpanded:r=!1,onToggleExpand:n,onClose:i})=>{const{inputValue:a,handleInputChange:o}=((e="")=>{const[t,r]=os.useState(e),n=os.useCallback(e=>{r(e)},[]),i=os.useCallback(e=>{t.trim()&&e&&(e(t.trim()),r(""))},[t]),a=os.useCallback((e,t)=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(t))},[i]),o=os.useCallback(()=>{r("")},[]),s=os.useCallback(e=>{r(e)},[]);return{inputValue:t,setInputValue:r,handleInputChange:n,handleSubmit:i,handleKeyPress:a,clearInput:o,setInput:s}})(),{botData:s,dynamicWelcomeMessage:l,effectiveSuggestedReplies:c,proactiveChips:u,proactiveChipsPosition:d,dismissProactiveChips:p,suppressProactiveForSession:f}=Xm(),{t:h,translations:g}=Zm(),m=s?.white_label?.is_white_labeled??!1,v=nv(Ag("colors","primary")),b=c,y=!1,x=!!(u&&u.length>0),_=os.useMemo(()=>{const e=[];return l&&e.push({text:l,isDynamic:!0}),x||b.forEach(t=>e.push({text:t,isDynamic:!1})),e},[l,b,x]);os.useMemo(()=>b.slice(0,2).map(e=>({text:e,isDynamic:!1})),[b]);const w=({message:t,imageUrl:r})=>{(t.trim()||r)&&e(t.trim(),r)};return ts.jsxs(ts.Fragment,{children:[ts.jsx(bv,{onClose:i,isMobile:t,isExpanded:r,onToggleExpand:n}),ts.jsxs(tm,{h:"full",minH:0,justify:"flex-start",align:"stretch",gap:4,children:[ts.jsx(tm,{gap:3,w:"full",align:"start",mb:"16px",flexShrink:0,children:ts.jsx(Cu,{fontWeight:r?600:500,fontStyle:"normal",fontSize:"24px",letterSpacing:"0",textAlign:r?"center":"right",fontFamily:"system-ui, sans-serif",css:{background:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:k(s?.agent_name,g)})}),ts.jsx(eu,{flex:1,minH:0,overflowY:"auto",overflowX:"hidden","data-scroll-container":"chat-messages",overscrollBehavior:"contain",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ts.jsxs(tm,{gap:4,align:"stretch",justify:"start",pb:3,children:[ts.jsx(eu,{children:ts.jsx(Dv,{state:"minimized",placeholder:h("askAnything"),value:a,onChange:o,onSend:w})}),u&&u.length>0&&ts.jsx(fb,{chips:u,onChipClick:t=>{Wo("post_answer"===d?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:t}),e(t),p()},onDismiss:()=>{Wo("post_answer"===d?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),p(),f()}}),y,y,_.length>0&&ts.jsx(eu,{w:"full",children:ts.jsx(eu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:3,w:"full",children:_.map((t,r)=>ts.jsxs(Hg,{variant:"outline",borderRadius:"24px",border:"1px solid",borderColor:t.isDynamic?"primary":"borderColor",bg:t.isDynamic?"veryLightBackground":"lightBackground",color:"text",fontSize:"14px",fontWeight:t.isDynamic?500:400,padding:"8px 12px",_hover:{bg:t.isDynamic?"lightBackground":"veryLightBackground",borderColor:t.isDynamic?"primary":"borderColor"},onClick:()=>((t,r,n)=>{if(r){const r=`${mm()}[SYSTEM: The user engaged with your proactive greeting about this page. Help them now. Jump straight into being useful — do not acknowledge this prompt or repeat any previous text.]`;e(t.trim(),n,r)}else w({message:t,imageUrl:n})})(t.text,t.isDynamic),justifyContent:"start",w:"full",height:"auto",lineHeight:"1.5",whiteSpace:"pre-wrap",...t.isDynamic?{gridColumn:{md:"span 2"}}:{},children:[ts.jsx(lv,{boxSize:"16px",color:t.isDynamic?"primary":"text"}),ts.jsx(eu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"system-ui, sans-serif",children:t.text})]},t.isDynamic?"dynamic":r))})})]})}),ts.jsx(eu,{w:"full",flexShrink:0,children:ts.jsx(ub,{channels:s?.merchant_support_channels})}),!m&&ts.jsx(eu,{flexShrink:0,transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ts.jsx(Lv,{variant:"default"})})]})]})},gb=({message:e,type:t="default"})=>{const r="loading"===t,{botData:n}=Xm(),i=e.replace(/\\([!?.,'":;\-\[\](){}#*_~`>+])/g,"$1"),a=r?i.replace(/[.\u2026]{1,3}\s*$/u,"").trim():i;return ts.jsxs(eu,{position:"relative",width:"full",children:[ts.jsx(eu,{opacity:"0",bg:"lightBackground",borderRadius:"24px",padding:"16px",children:ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",fontFamily:"system-ui, sans-serif",children:i})}),ts.jsx(eu,{h:"50px"}),ts.jsx(eu,{position:"absolute",left:0,bottom:0,children:ts.jsx(Kg,{src:n?.agent_image||vv,alt:"",role:"presentation",w:"24px",h:"24px",borderRadius:"50%"})}),ts.jsx(eu,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),ts.jsx(eu,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),ts.jsx(eu,{position:"absolute",left:"35px",bottom:"35px",bg:"lightBackground",borderRadius:"24px",padding:"16px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:r?ts.jsxs(em,{gap:"8px",align:"center",children:[a&&ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:a}),ts.jsx(em,{gap:"3px",align:"center","aria-hidden":"true",children:[0,1,2].map(e=>ts.jsx(eu,{w:"4px",h:"4px",borderRadius:"full",bg:"mutedText",css:{animation:`dori-typing-dot 1.2s ease-in-out ${.15*e}s infinite`}},e))}),ts.jsx("style",{children:"\n @keyframes dori-typing-dot {\n 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n }\n "})]}):ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"text",fontFamily:"system-ui, sans-serif",children:i})})]})},mb={AED:"د.إ",ARS:"$",AUD:"$",BDT:"৳",BHD:"ب.د",BRL:"R$",CAD:"$",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DZD:"دج",EGP:"E£",EUR:"€",GBP:"£",HKD:"$",HUF:"Ft",IDR:"Rp",INR:"₹",IQD:"ع.د",IRT:"تومان",JOD:"د.أ",JPY:"¥",KES:"KSh",KMF:"CF",KRW:"₩",KWD:"د.ك",LBP:"ل.ل",LKR:"Rs",LYD:"ل.د",MAD:"د.م.",MRU:"UM",MXN:"$",MYR:"RM",NGN:"₦",NOK:"kr",NZD:"$",OMR:"ر.ع.",PHP:"₱",PKR:"₨",PLN:"zł",QAR:"ر.ق",RON:"lei",RUB:"₽",SAR:"ر.س",SDG:"ج.س.",SEK:"kr",SGD:"$",SOS:"Sh",SYP:"ل.س",THB:"฿",TND:"د.ت",TRY:"₺",UAH:"₴",USD:"$",VND:"₫",YER:"﷼",ZAR:"R"},vb={black:"#222222",white:"#ffffff",offwhite:"#f3efe7","off-white":"#f3efe7",ivory:"#f4f0e1",cream:"#f3ead3",natural:"#e8ded0",beige:"#d9c7a8",tan:"#cba36b",taupe:"#9b8978",camel:"#bd9a6a",khaki:"#a39a6a",sand:"#d8c19a",stone:"#cabfa9",nude:"#e3c4a8",gray:"#808080",grey:"#808080",charcoal:"#3a3d40",slate:"#5a6470",graphite:"#4a4a4a",silver:"#c4c4c4",ash:"#b2b2b2",smoke:"#8c8c8c",pewter:"#9a9a94",gunmetal:"#53565a",red:"#c8302b",crimson:"#a31f34",scarlet:"#c4302a",cherry:"#a31330",ruby:"#9b1b30",wine:"#5e1f2b",burgundy:"#5b1a26",bordeaux:"#4e1822",maroon:"#6b1f2a",brick:"#9c4a3a",terracotta:"#c46a4a",rust:"#9e4a2e",coral:"#e36a52",salmon:"#e69079",punch:"#d83a5e",pink:"#e58aab",rose:"#d98ca0",blush:"#e8c0c4",magenta:"#b8336a",fuchsia:"#c2407e",orange:"#e08234",pumpkin:"#e07b39",apricot:"#e7a473",peach:"#f0b48f",amber:"#c98a2b",mustard:"#c9962f",gold:"#c9a227",honey:"#d7a13a",sunshine:"#f4c842",yellow:"#e8c63a",lemon:"#e7d44a",canary:"#e6d24a",brown:"#6b4a2e",chocolate:"#4f3422",coffee:"#5a4334",mocha:"#7a5a44",caramel:"#a9743f",chestnut:"#6e3f2a",walnut:"#5a4031",espresso:"#3a2a21",bronze:"#7d5a33",copper:"#a35d3a",clay:"#a86a4f",green:"#3f7a3f",forest:"#2c4a2c",olive:"#6b6a35",sage:"#9aa583",moss:"#5e6b3a",mint:"#8fd0b0",emerald:"#1f8a5a",jade:"#3a9b78",lime:"#9bc24a","olive green":"#6b6a35",leaf:"#5a8a3a",blue:"#2f5fa8",navy:"#27314f",cobalt:"#2a4d9b",azure:"#3a8fd0",sky:"#86b8e0",denim:"#46688f",sapphire:"#1f4e8c",marine:"#27506b",ocean:"#1f6e8c",teal:"#1d8a85",turquoise:"#3fb7b0",aqua:"#5fc7c0",cyan:"#3bb6c4",periwinkle:"#8a9cd8",indigo:"#3a3a7a",purple:"#6f4a8e",violet:"#7a4ba0",plum:"#6e3a5e",grape:"#6f4a8e",eggplant:"#4b2e57",aubergine:"#4b2e57",amethyst:"#8a6aa0",lavender:"#b9a7d6",lilac:"#c4a8d6",mauve:"#a07a8a",seafoam:"#8fcab0",sangria:"#7a1f2b",midnight:"#1f2540",onyx:"#2a2a2a",ebony:"#2b2622",jet:"#2a2a2a",pearl:"#f0ead9",snow:"#fafafa",heather:"#9a8fa0",oat:"#dcceb4",fog:"#cfd2cf",berry:"#8a2f4a",rosso:"#c8302b",rojo:"#c8302b",rouge:"#c8302b",rot:"#c8302b",vermelho:"#c8302b",blu:"#2f5fa8",azul:"#2f5fa8",bleu:"#2f5fa8",blau:"#2f5fa8",azzurro:"#3a8fd0",verde:"#3f7a3f",vert:"#3f7a3f","grün":"#3f7a3f",gruen:"#3f7a3f",nero:"#222222",negro:"#222222",noir:"#222222",schwarz:"#222222",preto:"#222222",bianco:"#ffffff",blanco:"#ffffff",blanc:"#ffffff","weiß":"#ffffff",weiss:"#ffffff",branco:"#ffffff",giallo:"#e8c63a",amarillo:"#e8c63a",jaune:"#e8c63a",gelb:"#e8c63a",grigio:"#808080",gris:"#808080",grau:"#808080",marrone:"#6b4a2e","marrón":"#6b4a2e",marron:"#6b4a2e",braun:"#6b4a2e",viola:"#7a4ba0",morado:"#7a4ba0",lila:"#c4a8d6",arancione:"#e08234",naranja:"#e08234"};function bb(e){if(!e)return null;const t=e.trim().toLowerCase();if(vb[t])return vb[t];for(const r of t.split(/[\s/_,&+().-]+/))if(r&&vb[r])return vb[r];return null}const yb=/colo|couleur|farbe|màu|colore|kleur/i,xb=({variantSummary:e})=>{if(!e?.options?.length)return null;const{options:t}=e,r=t.find(e=>yb.test(e.name||"")),n=r?(()=>{const e=new Set(r.values.map(e=>e.image).filter(Boolean)).size>1,t=r.values.slice(0,6),n=r.values.length-t.length;return ts.jsxs(em,{gap:1,align:"center",wrap:"wrap",children:[t.map((t,r)=>{const n=!1===t.available,i=bb(t.value);return e&&t.image?ts.jsx(eu,{position:"relative",title:t.value,w:"16px",h:"16px",borderRadius:"4px",backgroundImage:`url(${t.image})`,backgroundSize:"cover",backgroundPosition:"center",border:"0.5px solid rgba(0,0,0,0.15)",opacity:n?.35:1,flexShrink:0,children:n&&ts.jsx(eu,{position:"absolute",top:"7px",left:"-2px",w:"20px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},r):i?ts.jsx(eu,{position:"relative",title:t.value,w:"15px",h:"15px",borderRadius:"full",bg:i,border:"0.5px solid rgba(0,0,0,0.2)",opacity:n?.35:1,flexShrink:0,children:n&&ts.jsx(eu,{position:"absolute",top:"7px",left:"-1px",w:"17px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},r):ts.jsx(Cu,{fontSize:"10px",px:1.5,py:.5,borderRadius:"6px",border:"0.5px solid",borderColor:"borderColor",color:"mutedText",opacity:n?.5:1,textDecoration:n?"line-through":"none",whiteSpace:"nowrap",title:t.value,fontFamily:"system-ui, sans-serif",children:t.value},r)}),n>0&&ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:["+",n]})]})})():null,i=(r?t.filter(e=>e!==r):t).map(e=>{const t=e.values.slice(0,4),r=e.values.length-t.length;return ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",fontFamily:"system-ui, sans-serif",children:[e.name,":"," ",t.map((e,r)=>ts.jsxs(Cu,{as:"span",textDecoration:!1===e.available?"line-through":"none",opacity:!1===e.available?.6:1,children:[e.value,r<t.length-1?", ":""]},r)),r>0?`, +${r}`:""]},e.name)});return n||0!==i.length?ts.jsxs(tm,{align:"start",gap:.5,w:"full",children:[n,i]}):null},kb=/colo|couleur|farbe|màu|colore|kleur/i,_b=({product:e,selectedColor:t=null,onColorChange:r})=>{const{addToCartDirect:n,botData:i}=Xm(),{t:a}=Zm(),o=e.variant_summary,[s,l]=os.useState(null),[c,u]=os.useState(!1),[d,p]=os.useState({}),[f,h]=os.useState("idle"),[g,m]=os.useState(null);os.useEffect(()=>{let t=!1;const r=zm(e.url);if(r)return Em(r).then(e=>{!t&&e&&e.variants?.length&&(l(e),u(!0))}).catch(()=>{}),()=>{t=!0}},[e.url]);const v=(e.currency||i?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",b=mb[v]||v,y=os.useMemo(()=>s?Tm(s):[],[s]),x=os.useMemo(()=>c&&s?y.map((e,t)=>{const r=kb.test(e.name),n=e.values.map(e=>{let n=null;if(r){const r=s.variants.find(r=>jm(r,t+1)===e&&r.featured_image?.src);n=r?.featured_image?.src??null}return{value:e,image:n}}),i=r&&new Set(n.map(e=>e.image).filter(Boolean)).size>1;return{name:e.name,isColor:r,useImages:i,values:n}}).filter(e=>e.values.length>1):(o?.options??[]).map(e=>{const t=kb.test(e.name),r=e.values.map(e=>({value:e.value,image:e.image})),n=t&&new Set(r.map(e=>e.image).filter(Boolean)).size>1;return{name:e.name,isColor:t,useImages:n,values:r}}),[c,s,y,o]),k=x.findIndex(e=>e.isColor),_=os.useRef(null);os.useEffect(()=>{if(t===_.current)return;if(_.current=t??null,null==t||k<0)return;const e=x[k]?.name;e&&p(r=>{if(r[e]===t)return r;const n={};for(let e=0;e<k;e++){const t=x[e].name;r[t]&&(n[t]=r[t])}return n[e]=t,n})},[t,k,x]);const w=x.length>0&&x.every(e=>d[e.name]),S=os.useMemo(()=>c&&s&&w?Om(s,d).find(e=>!1!==e.available)??null:null,[c,s,w,d]),C=x.map(e=>d[e.name]).filter(Boolean).join(" · "),P=null!=S?.price?` · ${b}${(S.price/100).toLocaleString()}`:"";return ts.jsxs(tm,{align:"stretch",gap:2,w:"full",pt:1,children:[x.map((e,t)=>ts.jsxs(eu,{children:[ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",mb:1,fontFamily:"system-ui, sans-serif",children:[e.name,d[e.name]?` · ${d[e.name]}`:""]}),ts.jsx(em,{gap:1.5,wrap:"wrap",children:e.values.map(n=>((e,t,n)=>{const i=((e,t)=>{const r=x[e];if(c&&s){const n={[r.name]:t};for(let t=0;t<e;t++){const e=d[x[t].name];e&&(n[x[t].name]=e)}return Om(s,n).some(e=>!1!==e.available)}const n=o?.options.find(e=>e.name===r.name)?.values.find(e=>e.value===t);return!n||!1!==n.available})(e,n.value),a=d[t.name]===n.value,l=t.isColor?bb(n.value):null,u={as:"button",type:"button",disabled:!i,"aria-pressed":a,"aria-label":n.value,title:n.value,onClick:()=>i&&((e,t)=>{const n=x[e].name;p(r=>{const i={};for(let t=0;t<e;t++){const e=x[t].name;r[e]&&(i[e]=r[e])}return i[n]=t,i}),x[e]?.isColor&&r?.(t),"added"!==f&&"error"!==f||(h("idle"),m(null))})(e,n.value),cursor:i?"pointer":"not-allowed",opacity:i?1:.35,style:{appearance:"none",WebkitAppearance:"none"}};return t.useImages&&n.image?ts.jsx(eu,{...u,position:"relative",p:0,w:"40px",h:"40px",borderRadius:"8px",overflow:"hidden",border:"2px solid",borderColor:a?"primary":"borderColor",backgroundImage:`url(${n.image})`,backgroundSize:"cover",backgroundPosition:"center",flexShrink:0,children:!i&&ts.jsx(eu,{position:"absolute",top:"19px",left:"-3px",w:"46px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},n.value):l?ts.jsx(eu,{...u,position:"relative",p:0,w:"26px",h:"26px",borderRadius:"full",bg:l,border:"2px solid",borderColor:a?"primary":"transparent",boxShadow:a?void 0:"inset 0 0 0 0.5px rgba(0,0,0,0.2)",flexShrink:0,children:!i&&ts.jsx(eu,{position:"absolute",top:"11px",left:"-1px",w:"28px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},n.value):ts.jsx(eu,{...u,px:2.5,py:1,borderRadius:"6px",border:"1px solid",borderColor:a?"primary":"borderColor",bg:a?"veryLightBackground":"background",children:ts.jsx(Cu,{fontSize:"12px",color:"text",textDecoration:i?"none":"line-through",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",children:n.value})},n.value)})(t,e,n))})]},e.name)),ts.jsxs(Hg,{size:"sm",h:"34px",borderRadius:"8px",fontSize:"12px",fontWeight:500,bg:"primary",color:"white",gap:1.5,w:"full",disabled:!w||"adding"===f,loading:"adding"===f,onClick:async()=>{if(!w||"adding"===f)return;if(c&&s&&!S)return h("error"),void m(null);h("adding"),m(null);const t=S?{variant_id:String(S.id),product_name:e.name,quantity:1}:{product_name:e.name,product_url:e.url,selected_options:d,quantity:1},r=await n(t);"success"===r.type?h("added"):(h("error"),m(r.message||null))},_hover:{opacity:.92},fontFamily:"system-ui, sans-serif",children:[ts.jsx(fv,{boxSize:"14px"}),"added"===f?`✓ ${C}`:a("addToCartButton")+(C?` · ${C}`:"")+P]}),"error"===f&&g&&ts.jsx(Cu,{fontSize:"11px",color:"error",fontFamily:"system-ui, sans-serif",children:g})]})},wb=({slides:e,activeValue:t,onActiveChange:r,height:n,bgColor:i,alt:a,onImageClick:o})=>{const s=os.useRef(null),l=os.useRef(!1),c=os.useRef(!1),u=os.useRef(null),d=os.useRef(t);d.current=t;const p=os.useRef(e);p.current=e;const f=os.useRef(r);f.current=r;const h=Math.max(0,e.findIndex(e=>e.value===t));return os.useEffect(()=>{const e=s.current;if(!e||c.current)return;const t=h*e.clientWidth;0===e.clientWidth||Math.abs(e.scrollLeft-t)<4||(l.current=!0,e.scrollTo({left:t,behavior:"smooth"}),u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{l.current=!1},450))},[h]),os.useEffect(()=>{const e=s.current;if(!e)return;let t;const r=()=>{if(l.current||0===e.clientWidth)return;const t=Math.round(e.scrollLeft/e.clientWidth),r=p.current[t];r&&r.value!==d.current&&f.current(r.value)},n=()=>{l.current||(c.current=!0,t&&window.clearTimeout(t),t=window.setTimeout(()=>{c.current=!1,r()},160))},i=()=>{t&&window.clearTimeout(t),c.current=!1,r()};return e.addEventListener("scroll",n,{passive:!0}),e.addEventListener("scrollend",i),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",i),t&&window.clearTimeout(t)}},[]),os.useEffect(()=>()=>{u.current&&window.clearTimeout(u.current)},[]),ts.jsxs(eu,{position:"relative",w:"full",children:[ts.jsx(em,{ref:s,gap:0,w:"full",css:{overflowX:"auto",scrollSnapType:"x mandatory",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},WebkitOverflowScrolling:"touch"},children:e.map((e,t)=>ts.jsx(eu,{css:{flex:"0 0 100%",scrollSnapAlign:"center"},bg:i,borderRadius:"md",cursor:o?"pointer":"default",onClick:o,children:ts.jsx(Kg,{src:e.src,alt:a,w:"full",h:n,objectFit:"contain",borderRadius:"md"})},`${e.value}-${t}`))}),e.length>1&&ts.jsx(em,{position:"absolute",bottom:"6px",left:"0",right:"0",justify:"center",gap:1,pointerEvents:"none",children:e.map((e,t)=>ts.jsx(eu,{w:"5px",h:"5px",borderRadius:"full",bg:t===h?"primary":"rgba(0,0,0,0.25)",transition:"background 0.2s"},`dot-${e.value}-${t}`))})]})},Sb=/colo|couleur|farbe|màu|colore|kleur/i,Cb=({product:e,isDesktop:t=!1,variant:r="default",badgeLabel:n})=>{const i="hero"===r,a="compact"===r,o=a?80:130,s=i?"160px":a?"80px":"124px",{sendMessage:l,setRepliedProduct:c,botData:u,chatState:d,addToCartDirect:p}=Xm(),{t:f}=Zm(),h=(u?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",g=mb[h]||h,{name:m,price:v,originalPrice:b,discount:y,image:x,id:k,url:_}=e,w=bm(u),S=Boolean(e.is_on_sale&&null!=e.sale_price&&e.sale_price>0&&null!=v&&e.sale_price<v),C=S&&e.sale_price?e.sale_price:v,P=S?v:b,z=S&&null!=e.sale_percent_off&&e.sale_percent_off>0?e.sale_percent_off:y,E=S&&null!=e.sale_amount_off&&e.sale_amount_off>0?e.sale_amount_off:void 0,T=!!P&&!!C&&P>C,j=S?e.sale_label:void 0,[R,O]=os.useState(!1),[I,A]=os.useState(!1),[D,M]=os.useState(!1),L=!!e.variant_summary?.options?.length,F=Ag("colors","background"),N=Array.isArray(F)?F[0]:F,[W,$]=os.useState(N),B=os.useRef(null),[H,V]=os.useState(null),U=os.useMemo(()=>{const t=e.variant_summary?.options?.find(e=>Sb.test(e.name||""));return!a&&t&&x&&t.values.some(e=>e.image)?t.values.map(e=>({value:e.value,src:e.image||x})):[]},[e.variant_summary,x,a]),q=U.length>1,Y=e.description?.length&&e.description?.length>o;os.useEffect(()=>{(()=>{if(!B.current)return;const e=B.current,t=()=>{try{const t=document.createElement("canvas"),r=t.getContext("2d");if(!r)return;t.width=e.naturalWidth||e.width,t.height=e.naturalHeight||e.height,r.drawImage(e,0,0);const n=[{x:0,y:0},{x:t.width-1,y:0},{x:0,y:t.height-1},{x:t.width-1,y:t.height-1}],i=[];let a=!1;if(n.forEach(({x:e,y:t})=>{const n=r.getImageData(e,t,1,1).data,[o,s,l,c]=n;if(c<128)a=!0;else{const e=`rgb(${o}, ${s}, ${l})`;i.push(e)}}),a&&0===i.length)return void $(N);if(0===i.length)return void $(N);const o={};i.forEach(e=>{o[e]=(o[e]||0)+1});const s=Object.keys(o).reduce((e,t)=>o[e]>o[t]?e:t);$(s)}catch(t){console.error("Error extracting corner colors:",t),$(N)}};if(!(e.complete&&e.naturalWidth>0))return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)};t()})()},[x,N]);const G=async()=>{if(!_||!u)return;const t=(e=>{const t=e.includes("?")?"&":"?";return`${e}${t}utm_source=dori&utm_medium=dori_widget&utm_campaign=dori_product_recommendation`})(_);window.open(t,"_blank","noopener,noreferrer"),sm(e,u,d.threadId)},Q=I||d.isRequestInProgress,K=L&&D;return ts.jsxs(tm,{gap:1,children:[ts.jsx(eu,{bg:"background",borderRadius:a?"12px":"16px",border:"1px solid",borderColor:i?"primary":"borderColor",borderWidth:i?"1.5px":"1px",p:a?1.5:2,w:"full",transition:"all 0.2s ease",_hover:{borderColor:"primary",transform:"translateY(-1px)"},children:ts.jsxs(tm,{gap:a?1.5:2,align:"stretch",children:[ts.jsxs(eu,{position:"relative",borderRadius:"md",children:[i&&n&&ts.jsx(eu,{position:"absolute",top:"6px",left:"6px",zIndex:1,bg:"primary",color:"white",fontSize:"10px",fontWeight:"600",px:2,py:.5,borderRadius:"6px",fontFamily:"system-ui, sans-serif",boxShadow:"0 1px 3px rgba(0,0,0,0.15)",children:n}),q?ts.jsx(wb,{slides:U,activeValue:H,onActiveChange:V,height:s,bgColor:W,alt:m,onImageClick:G}):ts.jsx(eu,{cursor:"pointer",onClick:G,_hover:{opacity:.9},transition:"all 0.3s ease",bg:W,borderRadius:"md",children:ts.jsx(Kg,{ref:B,src:x,alt:m,w:"full",h:s,objectFit:"contain",borderRadius:"md",crossOrigin:"anonymous"})})]}),ts.jsx(Cu,{fontWeight:600,fontSize:a?"11px":"12px",lineHeight:a?"18px":"24px",color:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:m,fontFamily:"system-ui, sans-serif",cursor:"pointer",onClick:G,_hover:{color:"primary"},transition:"color 0.2s",children:m}),!a&&e.description&&ts.jsx(eu,{borderRadius:"8px",borderLeft:"2px solid",borderLeftColor:"primary",padding:"6px 10px",w:"full",bg:"lightBackground",cursor:R?"default":"pointer",onClick:R?void 0:()=>{O(!0)},_hover:R?{}:{bg:"veryLightBackground"},transition:"background-color 0.2s",children:ts.jsxs(Cu,{fontSize:"12px",fontWeight:400,color:"text",lineHeight:"20px",overflow:"hidden",title:e.description,fontFamily:"system-ui, sans-serif",children:[Y&&!R?e.description?.substring(0,o)+"... ":e.description,Y&&!R&&ts.jsx(Cu,{as:"span",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"system-ui, sans-serif",children:f("more")})]})}),!a&&e.variant_summary&&!D&&ts.jsx(xb,{variantSummary:e.variant_summary}),ts.jsx(em,{justify:"space-between",align:"end",children:ts.jsxs(tm,{gap:1,align:"start",children:[(T||z||E)&&ts.jsxs(em,{gap:1,children:[T&&ts.jsxs(Cu,{fontSize:"xs",color:"mutedText",textDecoration:"line-through",fontFamily:"system-ui, sans-serif",children:[g,P?.toLocaleString()]}),(z||E)&&ts.jsx(Lg,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"24px",title:j||void 0,children:z?`${z}%`:`-${g}${E?.toLocaleString()}`})]}),!!C&&C>0&&ts.jsxs(Cu,{fontSize:"12px",fontWeight:"700",color:"text",fontFamily:"system-ui, sans-serif",children:[g,C?.toLocaleString()||0]})]})})]})}),ts.jsxs(tm,{gap:1,w:"full",align:"stretch",children:[ts.jsxs(em,{gap:.5,children:[ts.jsx(Vg,{variant:"outline",size:"xs",h:a?"26px":"30px",fontSize:"12px",color:"primary",borderColor:"borderColor",borderRadius:"4px",_hover:{bg:"veryLightBackground"},borderWidth:"1px",onClick:()=>{c({product:e,suggestions:[f("doesProductHaveDiscount"),f("whatFeaturesSpecial"),f("otherColorsAvailable")]})},"aria-label":"Reply to product",children:ts.jsx(ov,{boxSize:a?"14px":"16px"})}),!a&&ts.jsxs(Hg,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:"4px",flex:1,fontWeight:400,onClick:()=>{const e=`${f("doYouHaveSimilar")} ${m}`;l({message:e,apiMessage:`${e} (product id: ${k})`})},_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",minW:0,overflow:"hidden",textOverflow:"ellipsis",children:[ts.jsx(sv,{boxSize:"16px"}),f("similar")]}),!a&&w&&ts.jsxs(Hg,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:t?"4px":"6px",flex:1,minW:0,fontWeight:400,onClick:L?()=>M(e=>!e):async()=>{if(I||d.isRequestInProgress)return;A(!0);const e=zm(_);try{if("success"!==(await p({product_name:m,product_url:_||void 0,product_handle:e||void 0,quantity:1})).type){const t=f("addToCartMessage").replace("{product}",m),r=`DORI_INTERNAL_EVENT:add_to_cart_request:${JSON.stringify({product_name:m,product_url:_||null,product_handle:e||null,quantity:1})}`;await l({message:t,apiMessage:r})}}finally{A(!1)}},disabled:!L&&Q,loading:!L&&Q,_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:[K?ts.jsx(iv,{boxSize:"11px"}):ts.jsx(fv,{boxSize:"16px"}),f(K?"close":Q?"addToCartAdding":"addToCartButton")]})]}),D&&L&&ts.jsx(_b,{product:e,selectedColor:H,onColorChange:V})]})]})},Pb=({index:e,delay:t=70,children:r})=>{const[n,i]=os.useState(!1);return os.useEffect(()=>{const r=setTimeout(()=>i(!0),e*t);return()=>clearTimeout(r)},[e,t]),ts.jsx(eu,{opacity:n?1:0,transform:n?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:r})},zb=({products:e,isDesktop:t})=>ts.jsx(Jg,{dir:"ltr",columns:t?2:1,gapX:t?2:1,gapY:t?4:2,w:"full",children:e.map((e,r)=>ts.jsx(Pb,{index:r,children:ts.jsx(Cb,{product:e,isDesktop:t})},e.id))}),Eb=({product:e,index:t,isLast:r,isDesktop:n,delay:i})=>{const[a,o]=os.useState(!1);os.useEffect(()=>{const e=setTimeout(()=>o(!0),i);return()=>clearTimeout(e)},[i]);const s=e.step_label?e.step_label.replace(/^\S+\s*\d+\s*[:.\-]\s*/i,"").trim()||e.step_label:null;return ts.jsx(eu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(10px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:ts.jsxs(em,{align:"stretch",gap:0,children:[ts.jsxs(tm,{align:"center",gap:0,w:"28px",flexShrink:0,children:[ts.jsx(eu,{w:"28px",h:"28px",borderRadius:"full",bg:"primary",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:ts.jsx(Cu,{fontSize:"12px",fontWeight:"700",color:"white",lineHeight:"1",children:t+1})}),!r&&ts.jsx(eu,{flex:1,w:"2px",bg:"borderColor",minH:"8px",opacity:a?1:0,transition:"opacity 0.3s ease-out 0.2s"})]}),ts.jsxs(tm,{align:"stretch",gap:1.5,flex:1,minW:0,pl:2.5,pb:r?0:3,children:[s&&ts.jsx(Cu,{fontSize:"13px",fontWeight:"600",color:"text",fontFamily:"system-ui, sans-serif",pt:.5,children:s}),ts.jsx(Cb,{product:e,isDesktop:n})]})]})})},Tb={single_pick:({products:e,isDesktop:t})=>{const r=e[0],n=e.slice(1,3),{t:i}=Zm(),[a,o]=os.useState(!1),[s,l]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>o(!0)),t=n.length>0?setTimeout(()=>l(!0),300):void 0;return()=>{cancelAnimationFrame(e),t&&clearTimeout(t)}},[n.length]),r?ts.jsxs(tm,{gap:3,w:"full",align:"stretch",children:[ts.jsx(eu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(8px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:ts.jsx(Cb,{product:r,isDesktop:t,variant:"hero",badgeLabel:i("topPick")})}),n.length>0&&ts.jsxs(eu,{opacity:s?1:0,transform:s?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:[ts.jsx(Cu,{fontSize:"11px",fontWeight:500,color:"mutedText",fontFamily:"system-ui, sans-serif",mb:2,px:1,children:i("alsoConsider")}),ts.jsx(Jg,{dir:"ltr",columns:1===n.length?1:2,gapX:2,gapY:2,w:"full",children:n.map(e=>ts.jsx(eu,{children:ts.jsx(Cb,{product:e,isDesktop:t,variant:1===n.length?"default":"compact"})},e.id))})]})]}):null},shortlist:({products:e,isDesktop:t})=>{const{t:r}=Zm();return ts.jsx(tm,{gap:3,w:"full",align:"stretch",children:e.map((e,n)=>ts.jsx(Pb,{index:n,delay:120,children:ts.jsx(Cb,{product:e,isDesktop:t,variant:0===n?"hero":"default",badgeLabel:0===n?r("topPick"):void 0})},e.id))})},routine:({products:e,isDesktop:t})=>ts.jsx(tm,{gap:0,w:"full",align:"stretch",children:e.map((r,n)=>ts.jsx(Eb,{product:r,index:n,isLast:n===e.length-1,isDesktop:t,delay:200*n},r.id))}),explore:zb},jb=({products:e,shape:t="explore"})=>{const{chatState:r,botData:n}=Xm(),i=os.useRef(new Set),a=os.useRef(null),[o,s]=os.useState(!1),l=os.useCallback(()=>{a.current&&s(a.current.offsetWidth>=600)},[]);os.useEffect(()=>{l();const e=new ResizeObserver(l);return a.current&&e.observe(a.current),()=>e.disconnect()},[l]),os.useEffect(()=>{const t=pm.SHOPIFY;if(console.log("[Dori ProductGrid] track-view effect run",{platform:t,threadId:r.threadId,productCount:e.length,botDataSharingId:n?.sharing_id??null}),!r.threadId)return void console.log("[Dori ProductGrid] bail: no chatState.threadId yet");const a=n?.sharing_id||f();if(!a)return void console.log("[Dori ProductGrid] bail: no sharingId (botData.sharing_id + getWidgetSharingId() both empty)");const o=b();let s=0,l=0;const c=[];if(e.forEach(e=>{const t=e.external_product_id;t?i.current.has(t)?l++:(i.current.add(t),c.push(t)):s++}),console.log("[Dori ProductGrid] product partition",{total:e.length,newToTrack:c.length,newProductIds:c,skippedNoExternalId:s,skippedAlreadyTracked:l,sharingId:a}),c.length>0){const e=window.DORI_CUSTOMER_ID,n=null!=e?String(e):void 0,i=km();console.log("[Dori ProductGrid] → calling trackProductViewsBatch",{count:c.length,threadId:r.threadId,sessionKey:o,platform:t,sharingId:a,customerId:n,endUserId:i}),cm(c,r.threadId||"",o,t,a,void 0,n,i)}else console.log("[Dori ProductGrid] no new product ids to track → no track-view call this render")},[e,r.threadId,n?.sharing_id]);const c=Tb[t]||zb;return ts.jsx(tm,{ref:a,align:"stretch",gap:2,w:"full",children:ts.jsx(eu,{px:1,w:"full",children:ts.jsx(c,{products:e,isDesktop:o})})})},Rb=({index:e,children:t})=>{const[r,n]=os.useState(!1);return os.useEffect(()=>{const t=setTimeout(()=>n(!0),70*e);return()=>clearTimeout(t)},[e]),ts.jsx(eu,{opacity:r?1:0,transform:r?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:t})},Ob=({suggestions:e})=>{const{sendMessage:t}=Xm(),r=e.length>0&&e.every(e=>e.length<=18);return ts.jsx(Qg,{direction:r?"row":"column",wrap:r?"wrap":"nowrap",gap:2,maxW:{base:"260px",md:"70%"},alignSelf:"flex-start",alignItems:r?"flex-start":"stretch",children:e.map((e,n)=>ts.jsx(Rb,{index:n,children:ts.jsx(Hg,{bg:n%2==0?"background":"lightBackground",border:"1px solid",borderColor:"borderColor",borderRadius:"24px",px:4,h:"auto",lineHeight:"1.5",py:2,onClick:()=>(e=>{t({message:e})})(e),_hover:{bg:"lightBackground",borderColor:"primary"},_active:{bg:"veryLightBackground"},textAlign:"center",justifyContent:"center",w:r?"auto":"full",children:ts.jsx(Cu,{fontSize:{base:"14px",md:"12px"},fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",lineClamp:r?1:2,children:e})})},n))})},Ib=()=>{const{t:e}=Zm();return ts.jsxs(em,{mt:3,gap:2,justify:"flex-start",children:[ts.jsxs(Hg,{size:"xs",variant:"outline",borderColor:"borderColor",color:"textSecondary",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.open(`${ym()}cart`,"_blank","noopener,noreferrer")},_hover:{borderColor:"primary"},children:[ts.jsx(fv,{boxSize:"14px"}),e("cartViewCart")]}),ts.jsxs(Hg,{size:"xs",variant:"solid",bg:"primary",color:"buttonText",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.location.href=`${ym()}checkout`},_hover:{opacity:.85},children:[e("cartCheckout"),ts.jsx(hv,{boxSize:"14px"})]})]})},Ab=({onSubmit:e,onClose:t,existingText:r})=>{const[n,i]=os.useState(r||""),[a,o]=os.useState(!1);return os.useEffect(()=>{i(r||"")},[r]),ts.jsx(eu,{mt:2,bg:"background",borderRadius:"10px",p:3,borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:ts.jsxs(tm,{gap:3,align:"stretch",children:[ts.jsxs(tm,{gap:.5,align:"start",children:[ts.jsx(Cu,{fontSize:"13px",fontWeight:"600",color:"text",lineHeight:"1.4",children:"Tell us what was wrong"}),ts.jsx(Cu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:"Your comment is optional and helps us improve responses."})]}),ts.jsx(nm,{value:n,onChange:e=>i(e.target.value),placeholder:"Describe what you expected...",rows:3,fontSize:"12px",resize:"none",borderColor:"borderColor",borderRadius:"8px",p:2,bg:"lightBackground",color:"text",autoFocus:!0,_placeholder:{color:"mutedText"},_focus:{outline:"none",borderColor:"primary",boxShadow:"none"}}),ts.jsxs(em,{gap:2,justify:"flex-end",children:[ts.jsx(Hg,{size:"sm",variant:"ghost",onClick:t,disabled:a,fontSize:"12px",color:"mutedText",px:3,h:"30px",_hover:{bg:"lightBackground"},children:"Cancel"}),ts.jsx(Hg,{size:"sm",variant:"outline",onClick:async()=>{o(!0),await e(void 0),o(!1)},disabled:a,fontSize:"12px",color:"text",borderColor:"borderColor",px:3,h:"30px",children:"No Comment"}),ts.jsx(Hg,{size:"sm",onClick:async()=>{o(!0),await e(n.trim()||void 0),o(!1)},disabled:a,fontSize:"12px",bg:"primary",color:"white",px:3,h:"30px",borderRadius:"8px",_hover:{opacity:.85},children:a?"Submitting...":"Submit"})]})]})})},Db=({messageIndex:e,feedback:t})=>{const{submitFeedback:r}=Xm(),[n,i]=os.useState(!1),a="like"===t?.rating,o="dislike"===t?.rating;return ts.jsxs(eu,{mt:1,children:[ts.jsxs(em,{gap:1,align:"center",children:[ts.jsx(eu,{as:"button",onClick:async()=>{a||(await r(e,"like"),i(!1))},display:"flex",alignItems:"center",justifyContent:"center",w:"28px",h:"28px",borderRadius:"6px",bg:a?"primary":"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:a?"primary":"borderColor",cursor:"pointer",title:"This response was helpful",_hover:{opacity:.8},transition:"all 0.15s",children:ts.jsx(Cu,{fontSize:"12px",lineHeight:"1",children:"👍"})}),ts.jsx(eu,{as:"button",onClick:()=>{i(!0)},display:"flex",alignItems:"center",justifyContent:"center",w:"28px",h:"28px",borderRadius:"6px",bg:o?"red.500":"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:o?"red.500":"borderColor",cursor:"pointer",title:"This response wasn't helpful",_hover:{opacity:.8},transition:"all 0.15s",children:ts.jsx(Cu,{fontSize:"12px",lineHeight:"1",children:"👎"})})]}),t?.feedbackText&&ts.jsxs(eu,{mt:1,px:2.5,py:2,bg:"lightBackground",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:[ts.jsx(Cu,{fontSize:"10px",color:"mutedText",lineHeight:"1.2",fontWeight:"600",textTransform:"uppercase",mb:1,children:"Submitted Feedback"}),ts.jsx(Cu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:t.feedbackText})]}),n&&ts.jsx(eu,{maxW:"280px",children:ts.jsx(Ab,{onSubmit:async t=>{await r(e,"dislike",t),i(!1)},onClose:()=>{i(!1)},existingText:t?.feedbackText})})]})},Mb=ss.lazy(()=>_(()=>import("./MarkdownContent-c0__FK7Y.js"),__vite__mapDeps([0,1]),import.meta.url)),Lb=({message:e,isStreaming:t=!1,doriMessageIndex:r,isAfterProducts:n=!1})=>{const{isTestMode:i}=Xm(),a=nv(Ag("colors","primary")),o=function(e){const t=Date.now()-new Date(e).getTime()<2e3,[r,n]=os.useState(!t);return os.useEffect(()=>{if(!t)return;const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[t]),r}(e.timestamp),s=function(e,t){const r=os.useRef(e),n=os.useRef(t?0:e.length),[i,a]=os.useState(t?"":e),o=os.useRef(null),s=os.useRef(t);r.current=e,s.current=t;const l=os.useCallback(()=>{const e=r.current,t=e.length-n.current;if(t<=0||!s.current)return void(o.current=null);const i=Math.max(1,Math.ceil(.12*t));n.current=Math.min(e.length,n.current+i),a(e.slice(0,n.current)),n.current<e.length?o.current=requestAnimationFrame(l):o.current=null},[]),c=os.useCallback(()=>{null===o.current&&(o.current=requestAnimationFrame(l))},[l]),u=os.useCallback(()=>{null!==o.current&&(cancelAnimationFrame(o.current),o.current=null)},[]);return os.useEffect(()=>(t?n.current<e.length&&c():(u(),n.current=e.length,a(e)),u),[t]),os.useEffect(()=>{t&&n.current<e.length&&c()},[e,t,c]),i}(e.content,t);if("welcome"===e.type)return ts.jsx(gb,{message:e.content});if("loading"===e.type)return e.content&&ts.jsx(gb,{message:e.content,type:"loading"});if("user"===e.type)return ts.jsxs(eu,{maxW:"220px",alignSelf:"flex-end",mb:2,children:[e.imageUrl&&ts.jsx(eu,{w:"120px",h:"120px",mb:2,borderRadius:"12px",background:a,children:ts.jsx(Kg,{src:e.imageUrl,alt:"Uploaded image",w:"100%",h:"100%",borderRadius:"12px",objectFit:"cover"})}),(e.content.length>0||e.repliedProduct)&&ts.jsxs(tm,{bg:"lightBackground",borderRadius:"24px",px:3,py:2,gap:2,alignItems:"start",w:"full",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:[e.repliedProduct&&ts.jsxs(em,{bg:"background",borderRadius:"12px",p:2,gap:2,w:"full",children:[ts.jsx(Kg,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),ts.jsx(Cu,{fontSize:"12px",fontWeight:"400",color:"text",children:e.repliedProduct.name})]}),ts.jsx(os.Suspense,{fallback:ts.jsx(Cu,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"text",fontFamily:"system-ui, sans-serif",whiteSpace:"pre-wrap",children:e.content}),children:ts.jsx(Mb,{variant:"user",children:e.content})})]})]});if("products"===e.type)return ts.jsx(eu,{maxW:"100%",alignSelf:"flex-start",mb:4,w:"full",opacity:o?1:0,transform:o?"translateY(0)":"translateY(4px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:ts.jsx(jb,{products:e.products||[],shape:e.shape})});if("suggestions"===e.type)return ts.jsx(Ob,{suggestions:e.suggestions||[]});if("dori"===e.type&&!e.content?.trim()&&!t)return null;const l=i&&"dori"===e.type&&!t,c=n&&!t?{base:"13px",md:"12px"}:{base:"15px",md:"13px"};return ts.jsxs(tm,{align:"stretch",gap:2,opacity:o?1:0,transform:o?"translateY(0)":"translateY(4px)",transition:"opacity 0.25s ease-out, transform 0.25s ease-out",children:[ts.jsx(eu,{w:"full",alignSelf:"flex-start",children:ts.jsx(os.Suspense,{fallback:ts.jsx(Cu,{fontSize:c,fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.6",whiteSpace:"pre-wrap",children:s}),children:ts.jsx(Mb,{variant:"dori",textSize:c,children:s})})}),e.showCartActions&&ts.jsx(Ib,{}),l&&void 0!==r&&ts.jsx(Db,{messageIndex:r,feedback:e.feedback})]})},Fb=({chat:e,t:t})=>{const[r,n]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[]),ts.jsxs(em,{role:"status","aria-live":"polite",flexShrink:0,justify:"space-between",align:"center",px:3,py:2,bg:"backgroundMuted",borderRadius:"8px",borderLeft:"3px solid",borderLeftColor:"primary",fontSize:"13px",opacity:r?1:0,transform:r?"translateY(0)":"translateY(8px)",transition:"opacity 0.25s ease-out, transform 0.25s ease-out",children:[ts.jsx(Cu,{color:"textSecondary",fontSize:"13px",lineClamp:1,flex:1,children:"remove"===e.cartUndoState.operation?t("cartUndoRemoved").replace("{product}",e.cartUndoState.productName):t("cartUndoQuantityChanged").replace("{product}",e.cartUndoState.productName)}),ts.jsxs(em,{gap:1,children:[ts.jsx(Hg,{size:"xs",variant:"ghost",color:"primary",fontWeight:"600",fontSize:"13px",onClick:e.handleCartUndo,_hover:{bg:"transparent",opacity:.7},px:2,minW:"auto",children:t("cartUndoButton")}),ts.jsx(Vg,{size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:e.dismissCartUndo,color:"textSecondary",_hover:{bg:"transparent",opacity:.7},minW:"auto",h:"auto",p:.5,children:ts.jsx(iv,{boxSize:"12px"})})]})]})},Nb=({header:e})=>{const t=Xm(),{botData:r,pendingBubbleSuggestion:n,setPendingBubbleSuggestion:i,proactiveChips:a,proactiveChipsPosition:o,dismissProactiveChips:s,suppressProactiveForSession:l}=t,{t:c,translations:u}=Zm(),d=os.useRef(null),p=os.useCallback(()=>{const e=d.current;if(!e)return;const r=e.scrollHeight-e.scrollTop-e.clientHeight<80;t.setAutoScrollEnabled(r)},[t.setAutoScrollEnabled]),[f,h]=os.useState(!1),g=os.useRef(null);os.useEffect(()=>{if(n&&n!==g.current){g.current=n;const e=requestAnimationFrame(()=>h(!0));return()=>cancelAnimationFrame(e)}n||(h(!1),g.current=null)},[n]);const m=nv(Ag("colors","primary")),v=os.useMemo(()=>{if(!t.chatState.isRequestInProgress)return null;if(t.messages.some(e=>"loading"===e.type))return null;for(let e=t.messages.length-1;e>=0;e--)if("dori"===t.messages[e].type)return t.messages[e].id;return null},[t.chatState.isRequestInProgress,t.messages]);return ts.jsxs(ts.Fragment,{children:[e,ts.jsx(Cu,{fontWeight:"600",fontStyle:"normal",fontSize:"24px",letterSpacing:"0",w:"fit-content",transition:"opacity 0.5s ease",fontFamily:"system-ui, sans-serif",css:{background:m,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:k(r?.agent_name,u)}),ts.jsxs(tm,{flex:1,justify:"center",align:"stretch",gap:4,minH:0,transition:"opacity 0.5s ease",opacity:1,children:[ts.jsx(eu,{ref:d,flex:1,overflowY:"scroll",overflowX:"hidden","data-scroll-container":"chat-messages",overscrollBehavior:"contain",onScroll:p,css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ts.jsxs(tm,{overscrollBehavior:"contain",gap:2,align:"stretch",pb:2,children:[t.messages.reduce((e,t)=>{const r="dori"===t.type,n=r?e.doriCount:void 0,i=r&&"products"===e.prevType;return e.elements.push(ts.jsx(Lb,{message:t,isStreaming:t.id===v,doriMessageIndex:n,isAfterProducts:i},t.id)),r&&e.doriCount++,e.prevType=t.type,e},{elements:[],doriCount:0,prevType:""}).elements,ts.jsx("div",{ref:t.messagesEndRef,style:{height:"1px"}})]})}),t.cartUndoState&&ts.jsx(Fb,{chat:t,t:c}),n&&ts.jsxs(eu,{flexShrink:0,position:"relative",opacity:f?1:0,transform:f?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[ts.jsxs(Hg,{variant:"outline",borderRadius:"24px",border:"1.5px solid",borderColor:"primary",bg:"veryLightBackground",color:"text",fontSize:{base:"15px",md:"13px"},fontWeight:500,px:3,py:2,w:"full",height:"auto",lineHeight:"1.5",whiteSpace:"pre-wrap",justifyContent:"start",gap:2,_hover:{bg:"lightBackground"},onClick:()=>{const e=`${mm()}[SYSTEM: The user engaged with your proactive greeting about this page. Help them now. Jump straight into being useful — do not acknowledge this prompt or repeat any previous text.]`;t.sendMessage({message:n,apiMessage:e}),i(null)},children:[ts.jsx(lv,{boxSize:"15px",color:"primary",flexShrink:0}),ts.jsx(eu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",fontFamily:"system-ui, sans-serif",children:n})]}),ts.jsx(Vg,{position:"absolute",top:"-6px",right:"-6px",size:"xs",borderRadius:"full",bg:"backgroundMuted",border:"1px solid",borderColor:"borderColor","aria-label":"Dismiss",color:"textSecondary",_hover:{bg:"lightBackground"},minW:"18px",w:"18px",h:"18px",p:0,onClick:()=>i(null),children:ts.jsx(iv,{boxSize:"9px"})})]}),a&&a.length>0&&ts.jsx(fb,{chips:a,onChipClick:e=>{Wo("post_answer"===o?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:e}),t.sendMessage({message:e}),s()},onDismiss:()=>{Wo("post_answer"===o?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),s(),l()}}),ts.jsx(eu,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:ts.jsx(Dv,{state:t.inputState,placeholder:"generating"===t.inputState?c("processing"):c("whatsYourQuestion"),onSend:t.isInputDisabled?void 0:t.sendMessage,onStop:t.stopCurrentRequest})})]})]})},Wb=({containerRef:e,isOpen:t,showSuggestionScreen:r,scrollableSelector:n='[data-scroll-container="chat-messages"]'})=>{os.useEffect(()=>{if(!t||!e.current)return;const r=e.current,i=()=>r.querySelector(n),a=e=>{const t=i();e.preventDefault(),e.stopPropagation(),t&&(t.scrollTop+=e.deltaY)};let o=0,s=0,l=0,c=null,u=null,d=0;const p=()=>{null!==u&&(cancelAnimationFrame(u),u=null)},f=e=>{p(),o=e.touches[0].clientY,s=e.touches[0].clientX},h=e=>{const t=i(),r=e.touches[0].clientY,n=e.touches[0].clientX,a=o-r,u=s-n;var p;e.preventDefault(),e.stopPropagation(),Math.abs(a)>Math.abs(u)&&(t&&(l+=1.2*a,p=t,null===c&&(c=requestAnimationFrame(()=>(e=>{e.scrollTop+=l,l=0,c=null})(p)))),d=a,o=r)},g=()=>{const e=i();e&&Math.abs(d)>.5?(e=>{const t=()=>{d*=.92,Math.abs(d)<.4?u=null:(e.scrollTop+=d,u=requestAnimationFrame(t))};u=requestAnimationFrame(t)})(e):d=0};return r.addEventListener("wheel",a,{passive:!1}),r.addEventListener("touchstart",f,{passive:!1}),r.addEventListener("touchmove",h,{passive:!1}),r.addEventListener("touchend",g,{passive:!1}),r.addEventListener("touchcancel",g,{passive:!1}),()=>{r.removeEventListener("wheel",a),r.removeEventListener("touchstart",f),r.removeEventListener("touchmove",h),r.removeEventListener("touchend",g),r.removeEventListener("touchcancel",g),p(),null!==c&&cancelAnimationFrame(c)}},[t,r,n])},$b=({children:e,showSuggestionScreen:t,isOpen:r,isExpanded:n=!1})=>{const{isMobile:i}=im(),{botData:a}=Xm(),o=os.useRef(null),s=a?.white_label?.is_white_labeled??!1,l=a?.customization?.position?.align??"right",c=Ag("colors","borderColor"),u={bgColor:"background",zIndex:1e6,overflow:"hidden",willChange:"transform",pointerEvents:r?"auto":"none",overscrollBehavior:"contain"},d={position:"fixed",top:"0",left:"0",right:"0",bottom:"0",transform:r?"translateY(0)":"translateY(100vh)",transition:"all 0.5s ease",visibility:r?"visible":"hidden",opacity:r?1:0,...u},p={position:"fixed",[l]:n?"50%":"20px",top:"50%",visibility:r?"visible":"hidden",opacity:r?1:0,transform:r?n?"right"===l?"translate(50%, -50%)":"translate(-50%, -50%)":"translateY(-50%)":n?"right"===l?"translate(50%, -50%) translateX(120%)":"translate(-50%, -50%) translateX(-120%)":"right"===l?"translateY(-50%) translateX(120%)":"translateY(-50%) translateX(-120%)",width:n?"max(600px, 90vh)":"600px",height:n?"max(600px, 90vh)":"600px",transition:"all 0.5s ease",border:`1px solid ${c}`,borderRadius:"24px",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)",...u},f=i?d:p;return Wb({containerRef:o,isOpen:r,showSuggestionScreen:t}),ts.jsx(eu,{ref:o,...f,children:ts.jsxs(tm,{p:6,pb:2,h:"full",justify:"flex-start",align:"stretch",gap:2,children:[e,!t&&!s&&ts.jsx(eu,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ts.jsx(Lv,{variant:"default"})})]})})},Bb=({isOpen:r,onClose:n,isExpanded:i=!1,onToggleExpand:a,pendingChat:o,onPendingChatConsumed:s})=>{const{sendMessage:l,addWelcomeMessage:c,resetBot:u}=Xm(),{showSuggestionScreen:d,goToChat:p,goToSuggestion:f}=(r=>{const[n,i]=os.useState(!0),a=os.useRef(!1),o=os.useRef(!1);return os.useEffect(()=>{if(!o.current){const r=e();t()&&r.length>0&&(a.current=!0,i(!1),console.log("Skipping welcome screen - existing messages found:",r.length)),o.current=!0}},[]),os.useEffect(()=>{r&&!a.current?i(!0):r&&a.current&&i(!1)},[r]),{showSuggestionScreen:n,goToChat:os.useCallback(()=>{a.current=!0,i(!1)},[]),goToSuggestion:os.useCallback(()=>{a.current=!1,i(!0)},[])}})(r),{isMobile:h}=im(),g=os.useRef(!1);os.useEffect(()=>{r&&!g.current&&(No(),g.current=!0)},[r]);const m=h,v=(e,t,r)=>{p(),c(),l({message:e,imageUrl:t,apiMessage:r})};os.useEffect(()=>{if(r&&o){const e=setTimeout(()=>{v(o.message,o.imageUrl,o.apiMessage),s?.()},100);return()=>clearTimeout(e)}},[r,o]);return ts.jsx($b,{showSuggestionScreen:d,isOpen:r,isExpanded:i,children:d?ts.jsx(hb,{onStartChat:v,isMobile:m,isExpanded:i,onToggleExpand:a,onClose:n}):ts.jsx(Nb,{header:ts.jsx(bv,{onClose:n,isMobile:m,isExpanded:i,onToggleExpand:a,onReload:()=>{u(),f()}})})})},Hb=({onClick:e,suppressBubble:t=!1})=>{const{botData:r,dynamicWelcomeMessage:n,dynamicFollowupNudgeMessage:i,diagnosticFlow:a,diagnosticShown:o,setPendingBubbleSuggestion:s}=Xm(),{t:l}=Zm(),c=Ag("colors","primary"),u=Ag("colors","background"),d=Ag("colors","lightBackground"),p=nv(c),f=function(e,t){const r=Array.isArray(e)?e[0]:e,n=Array.isArray(t)?t[0]:t;return`linear-gradient(223deg, ${r} 0%, ${n} 25%, ${ev(n,3)} 50%, ${n} 76%, ${r} 100%)`}(u,d),[h,g]=os.useState("expanded"),[m,v]=os.useState(!1),[b,y]=os.useState(!0),[x,k]=os.useState(!1),[_,C]=os.useState(!1),[P,z]=os.useState(!1),E=os.useRef(null),T=()=>{E.current&&(clearTimeout(E.current),E.current=null)},j=()=>{T(),L||(k(!0),C(!0))};os.useEffect(()=>()=>T(),[]);const R=!0!==r?.customization?.disable_idle_animation,{getStarfieldTransform:O,getIconStyle:I}=Wv({enableTwinkling:R,enableFloating:R,enableRotation:R,enableScaling:R}),A=os.useRef(!1),D=os.useRef(0),M=os.useRef(null),L=Pu({base:!0,md:!1})??!1,F=$v(r,L),N=!(!r?.customization?.enable_avatar_in_fab||!r?.bot_image),W=r?.customization?.avatar_fab_scale,$=N&&"number"==typeof W&&Number.isFinite(W)?Math.min(1.5,Math.max(.4,W)):1,B=(e,t)=>({base:`${Math.round(e*$)}px`,md:`${Math.round(t*$)}px`}),H=r?.agent_name?l("askAgent").replace("{name}",r.agent_name):l("askDori"),V=!1!==r?.customization?.enable_proactive_engagement,U=!0===r?.customization?.enable_standalone_quiz&&a&&!o?a.welcome_hook:null,q=i||U||n,Y=V&&!t?q||r?.wellcomeMessage||l("imHereToHelp"):null,G=()=>{S();const e=++D.current;g("expanded"),y(!1),z(!1);const t=setTimeout(()=>{if(D.current===e&&(v(!0),!r?.customization?.disable_welcome_popup)){const t=setTimeout(()=>{if(D.current!==e)return;y(!0);const t=setTimeout(()=>{D.current===e&&(y(!1),setTimeout(()=>{D.current===e&&g("minimized")},300))},3e3);return()=>clearTimeout(t)},100);return()=>clearTimeout(t)}},100);return()=>clearTimeout(t)};os.useEffect(()=>{A.current||(A.current=!0,q&&!r?.customization?.disable_welcome_popup||!w()?(()=>{g("minimized"),y(!1);const e=setTimeout(()=>{v(!0)},0)})():G())},[]),os.useEffect(()=>{const e=setInterval(()=>{w()&&G()},1e3);return()=>clearInterval(e)},[]),os.useEffect(()=>{if(!q)return;if(r?.customization?.disable_welcome_popup)return;D.current++,M.current&&(clearTimeout(M.current),M.current=null),z(!0),g("expanded");const e=setTimeout(()=>{y(!0)},400),t=setTimeout(()=>{y(!1),M.current=setTimeout(()=>{g("minimized"),M.current=null},350)},i?8400:6400);return()=>{clearTimeout(e),clearTimeout(t),M.current&&(clearTimeout(M.current),M.current=null)}},[q]);const Q=()=>{const t=i||n;t&&s(t),i&&Wo("nudge.page_followup.clicked"),e&&(e(),"minimized"===h&&(y(!1),setTimeout(()=>{g("expanded"),setTimeout(()=>{r?.customization?.disable_welcome_popup||setTimeout(()=>{y(!0)},50)},100)},0)))},K=Q,X="minimized"===h||N,Z=N&&L,J="right"===F.align?"32px 0px 32px 32px":"0px 32px 32px 32px";return ts.jsxs(eu,{position:"relative",transform:m?Z?"translateY(0) scale(1)":`translateY(calc(-50% + ${F.bottomSpacing}px)) scale(1)`:Z?"translateY(100px) scale(0.9)":`translateY(calc(-50% + ${F.bottomSpacing}px + 100px)) scale(0.9)`,opacity:m?1:0,onMouseLeave:()=>{L||(T(),E.current=setTimeout(()=>{k(!1),C(!1)},100))},children:[ts.jsx(cb,{channels:r?.merchant_support_channels,isOpen:x,onToggle:()=>k(!x),isMobile:L,onMouseEnter:j,onChatClick:e}),"expanded"===h&&Y&&!r?.customization?.disable_welcome_popup&&ts.jsx(eu,{position:"absolute",bottom:"100%",[F.align]:"0",mb:2,w:{base:"90vw",md:"25vw"},maxW:{base:"90vw",md:"300px"},bg:f,borderRadius:"16px",p:2,pe:3,boxShadow:P?"0 8px 32px rgba(0,0,0,0.16), 0 0 0 1.5px rgba(120,120,200,0.13)":"lg",opacity:b?1:0,transform:b?"translateY(0) scale(1)":P?"translateY(20px) scale(0.88)":"translateY(10px) scale(0.95)",transition:b?P?"opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1.61, 0.36, 1), box-shadow 0.4s ease":"opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1)":"opacity 0.25s ease, transform 0.25s ease",cursor:"pointer",onClick:K,children:ts.jsxs(em,{gap:1,align:"center",width:"100%",justifyContent:"flex-start",children:[ts.jsx(Vg,{size:"xs",variant:"ghost","aria-label":"Close",onClick:e=>{e.stopPropagation(),i&&Wo("nudge.page_followup.dismissed"),y(!1),setTimeout(()=>g("minimized"),300)},color:"text",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"rgba(0,0,0,0.1)"}},h:"auto",p:1,children:ts.jsx(iv,{boxSize:"16px"})}),ts.jsx(Cu,{fontSize:"12px",fontWeight:"400",color:"text",lineHeight:"1.75",flex:1,width:"100%",fontFamily:"system-ui, sans-serif",children:Y})]})}),ts.jsx(Hg,{borderRadius:X?"50%":J,borderWidth:0,bg:p,color:"text",border:"none !important",w:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(230,270):{base:"120px",md:"150px"},minW:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(230,270):{base:"120px",md:"150px"},h:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(96,112):"auto",p:X?"0":{base:2,md:3},overflow:"hidden",transition:"width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), min-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.4s ease, padding 0.3s ease, transform 0.2s ease",onClick:Q,className:"fab-glass",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.05)"}},style:{borderRadius:X?"50%":J,cursor:"pointer",touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},onMouseEnter:j,justifyContent:"center",children:ts.jsxs(em,{gap:X?0:2,position:"relative",w:"full",justify:X?"center":"space-between",overflow:"hidden",children:[ts.jsx(Cu,{fontSize:{base:"14px",md:"16px"},fontWeight:{base:"500",md:"600"},lineHeight:"1.5",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",color:"background",opacity:X?0:1,maxW:X?"0px":"200px",transition:"opacity 0.2s ease, max-width 0.35s ease",overflow:"hidden",children:H}),!x&&(r?.customization?.enable_avatar_in_fab&&r?.bot_image?ts.jsx(Kg,{src:r.bot_image,alt:"",role:"presentation",boxSize:X?B(100,116):B(80,92),borderRadius:"full",objectFit:"cover",flexShrink:0}):ts.jsx(gv,{boxSize:{base:"20px",md:"24px"},color:"background",transform:O(h,F),...I(),flexShrink:0}))]})})]})},Vb={English:{subtitle:e=>`Answer ${e} quick question${e>1?"s":""} for personalized recommendations`,cta:"Start →",skip:"Or open chat instead"},Czech:{subtitle:e=>`Odpovězte na ${e} ${1===e?"otázku":"otázky"} pro personalizovaná doporučení`,cta:"Začít →",skip:"Nebo otevřít chat"},German:{subtitle:e=>`Beantworten Sie ${e} kurze Frage${e>1?"n":""} für persönliche Empfehlungen`,cta:"Starten →",skip:"Oder Chat öffnen"},Hungarian:{subtitle:e=>`Válaszolj ${e} gyors kérdésre személyre szabott ajánlásokért`,cta:"Indítás →",skip:"Vagy nyisd meg a chatet"},Persian:{subtitle:e=>`به ${e} سوال کوتاه پاسخ بدید تا پیشنهادات شخصی دریافت کنید`,cta:"شروع →",skip:"یا چت را باز کنید"},French:{subtitle:e=>`Répondez à ${e} question${e>1?"s":""} rapide${e>1?"s":""} pour des recommandations personnalisées`,cta:"Commencer →",skip:"Ou ouvrir le chat"},Spanish:{subtitle:e=>`Responde ${e} pregunta${e>1?"s":""} rápida${e>1?"s":""} para recomendaciones personalizadas`,cta:"Empezar →",skip:"O abrir el chat"},Arabic:{subtitle:e=>`أجب عن ${e} ${e>1?"أسئلة":"سؤال"} سريع للحصول على توصيات مخصصة`,cta:"ابدأ →",skip:"أو افتح المحادثة"},Turkish:{subtitle:e=>`Kişiselleştirilmiş öneriler için ${e} hızlı soruyu yanıtlayın`,cta:"Başla →",skip:"Veya sohbeti aç"},Portuguese:{subtitle:e=>`Responda ${e} pergunta${e>1?"s":""} rápida${e>1?"s":""} para recomendações personalizadas`,cta:"Começar →",skip:"Ou abrir o chat"},Italian:{subtitle:e=>`Rispondi a ${e} domanda${e>1?"e":""} veloce${e>1?"i":""} per raccomandazioni personalizzate`,cta:"Inizia →",skip:"Oppure apri la chat"}},Ub=({hookText:e,stepCount:t,language:r,onStart:n,onSkipToChat:i,onDismiss:a})=>{const o=function(e){return Vb[e]||Vb.English}(r);return ts.jsxs(tm,{gap:3,align:"stretch",w:"full",children:[ts.jsxs(em,{justify:"space-between",align:"start",children:[ts.jsxs(em,{gap:2,align:"center",children:[ts.jsx(lv,{boxSize:"18px",color:"primary"}),ts.jsx(Cu,{fontSize:"16px",fontWeight:600,color:"text",lineHeight:"1.3",fontFamily:"system-ui, sans-serif",children:e})]}),ts.jsx(eu,{as:"button",onClick:a,cursor:"pointer",p:1,borderRadius:"full",opacity:.5,_hover:{opacity:1,bg:"lightBackground"},transition:"all 0.15s ease",flexShrink:0,"aria-label":"Close",children:ts.jsx(Cu,{fontSize:"16px",color:"text",lineHeight:"1",children:"×"})})]}),ts.jsx(Cu,{fontSize:"13px",color:"mutedText",lineHeight:"1.5",fontFamily:"system-ui, sans-serif",children:o.subtitle(t)}),ts.jsx(Hg,{onClick:n,bg:"primary",color:"white",borderRadius:"12px",h:"40px",fontSize:"14px",fontWeight:500,fontFamily:"system-ui, sans-serif",_hover:{opacity:.9},_active:{transform:"scale(0.98)"},w:"full",children:o.cta}),ts.jsx(eu,{as:"button",onClick:i,cursor:"pointer",alignSelf:"center",children:ts.jsx(Cu,{fontSize:"12px",color:"mutedText",fontFamily:"system-ui, sans-serif",_hover:{color:"text"},transition:"color 0.15s ease",children:o.skip})})]})},qb="dori-quiz-dismissed";function Yb(){try{return"true"===sessionStorage.getItem(qb)}catch{return!1}}function Gb(){try{sessionStorage.setItem(qb,"true")}catch{}}const Qb=({onOpenWidget:e,onStartChat:t,onDismissed:r})=>{const{diagnosticFlow:n,diagnosticShown:i,markDiagnosticShown:a,effectiveLanguage:o}=Xm(),s=o||"English",[l,c]=os.useState("hidden"),[u,d]=os.useState(!1),p=os.useRef(null),f=os.useRef(!1),h=!!n&&!i&&!Yb();return os.useEffect(()=>(h&&"hidden"===l&&(p.current=setTimeout(()=>{c("teaser"),requestAnimationFrame(()=>{requestAnimationFrame(()=>d(!0))}),f.current||(f.current=!0,No()?.capture("quiz_card_impression"))},800)),h||"hidden"===l||(c("hidden"),d(!1)),()=>{p.current&&clearTimeout(p.current)}),[h]),"hidden"!==l&&n?ts.jsx(eu,{position:"fixed",left:{base:"12px",md:"24px"},bottom:{base:"12px",md:"24px"},right:{base:"12px",md:"auto"},width:{base:"auto",md:"expanded"===l?"400px":"320px"},maxW:{base:"calc(100vw - 24px)",md:"400px"},zIndex:999999,opacity:u?1:0,transform:u?"translateY(0)":"translateY(16px)",transition:"all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)",children:ts.jsxs(eu,{bg:"background",borderRadius:"20px",border:"1px solid",borderColor:"borderColor",boxShadow:"0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)",p:4,overflow:"hidden",transition:"all 0.3s ease",children:["teaser"===l&&ts.jsx(Ub,{hookText:n.welcome_hook,stepCount:n.steps.length,language:s,onStart:()=>{c("expanded"),No()?.capture("quiz_card_started")},onSkipToChat:()=>{d(!1),Gb(),a(),No()?.capture("quiz_card_skip_to_chat"),setTimeout(()=>{c("hidden"),r?.(),e()},300)},onDismiss:()=>{d(!1),Gb(),No()?.capture("quiz_card_dismiss"),setTimeout(()=>{c("hidden"),r?.()},300)}}),"expanded"===l&&ts.jsx(db,{flow:n,onComplete:(e,r)=>{a(),No()?.capture("quiz_card_completed"),d(!1),setTimeout(()=>{c("hidden"),t(e,void 0,r),No()?.capture("quiz_card_widget_opened")},350)}})]})}):null},Kb="dori-session-context-v1";function Xb(e){const t=(r=e.pageContext.page_type,n=e.session.product_pages_viewed,"cart"===r?"cart_help":"search"===r?"search_refine":"product"===r?n>=2?"compare":"next_step":"category"===r?"filter":"homepage"===r?"gift_help":"next_step");var r,n;return{business_description:e.businessDescription,lang:e.lang,page_type:e.pageContext.page_type,h1:e.pageContext.h1||"",page_link:e.pageContext.page_link||"",dwell_sec:e.dwellSec,scroll_percent:e.scrollPercent,idle_sec:e.idleSec,trigger_signal:e.triggerSignal,previous_page_type:e.session.previous_page_type,product_pages_viewed:e.session.product_pages_viewed,last_search_term:e.session.last_search_term,cart_visited:e.session.cart_visited,suggested_intent:t}}function Zb(){const[e,t]=os.useState(()=>gm()),[r,n]=os.useState(()=>function(){try{const e=sessionStorage.getItem(Kb);if(!e)return{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null};const t=JSON.parse(e);return 1!==t?.v?{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null}:t}catch{return{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null}}}()),i=os.useRef(null),a=os.useCallback(e=>{t(e),n(t=>{if(i.current===e.page_link)return t;i.current=e.page_link;const r=function(e,t){if(e.last_url===t.page_link)return e;const r={...e,previous_page_type:e.current_page_type??e.previous_page_type,current_page_type:t.page_type,last_url:t.page_link};if("product"===t.page_type&&(r.product_pages_viewed=e.product_pages_viewed+1),"cart"===t.page_type&&(r.cart_visited=!0),"search"===t.page_type)try{const n=new URL(t.page_link);r.last_search_term=n.searchParams.get("q")||n.searchParams.get("s")||n.searchParams.get("search")||e.last_search_term}catch{}return r}(t,e);return function(e){try{sessionStorage.setItem(Kb,JSON.stringify(e))}catch{}}(r),r})},[]);return os.useEffect(()=>{a(gm())},[a]),os.useEffect(()=>{let e=window.location.href;const t=()=>{const t=window.location.href;t!==e&&(e=t,a(gm()))};window.addEventListener("popstate",t);const r=history.pushState.bind(history);history.pushState=(...e)=>{r(...e),t()};const n=history.replaceState.bind(history);return history.replaceState=(...e)=>{n(...e),t()},()=>{window.removeEventListener("popstate",t),history.pushState=r,history.replaceState=n}},[a]),{pageContext:e,session:r,refreshPageContext:os.useCallback(()=>a(gm()),[a])}}function Jb(e){const t=e.is_on_sale&&null!=e.sale_price?e.sale_price:e.price;if(null==t)return;const r=e.sale_currency||e.currency||"";return r?`${r} ${t}`:String(t)}function ey(e){const t=e.metadata||{},r="string"==typeof t.brand?t.brand:void 0,n="string"==typeof t.vendor?t.vendor:void 0;return r||n}function ty(e){return{title:e.name,brand:ey(e),price:Jb(e),category:e.category||e.sub_category}}const ry="dori-page-followup-fired-count";function ny(){try{return parseInt(sessionStorage.getItem(ry)||"0",10)||0}catch{return 0}}function iy(){return"undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches}function ay(){if("undefined"==typeof document)return 0;const e=document.documentElement,t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.min(100,Math.max(0,Math.round(e.scrollTop/t*100)))}const oy=({isWidgetOpen:e})=>(function({isWidgetOpen:e}){const t=Xm(),{session:r,pageContext:n}=Zb(),{botData:i,messages:a,chatState:o,isInputDisabled:s,setProactiveChips:l,proactiveChips:c,proactiveSuppressedThisSession:u,effectiveLanguage:d}=t,p=os.useRef(0),f=os.useRef(null),h=os.useRef(null),g=os.useRef(null),m=os.useRef(!1),v=os.useRef(null),b=os.useRef(null),y=os.useRef(null);os.useEffect(()=>{e?(v.current=Date.now(),m.current=!1):(p.current=0,f.current=null,m.current=!1,v.current=null,null!==h.current&&(window.clearTimeout(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null),null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null))},[e]);const x=os.useCallback(()=>{null!==h.current&&(window.clearTimeout(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null)},[]),k=os.useCallback(()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null)},[]);os.useEffect(()=>()=>{x(),k()},[x,k]),os.useEffect(()=>{o.isRequestInProgress&&(x(),k())},[o.isRequestInProgress,x,k]);const _=!!i&&!!i.is_widget_enabled&&!1!==i.customization?.enable_proactive_engagement&&!u,w=function(e){if(0===e.length)return null;let t=-1;for(let c=e.length-1;c>=0;c--)if("user"===e[c].type){t=c;break}const r=-1===t?e:e.slice(t+1);if(0===r.length)return null;if(r.some(e=>"typing"===e.type||"loading"===e.type))return null;const n=r.some(e=>"products"===e.type),i=[];let a=0;for(const c of r)if("products"===c.type&&c.products?.length){a+=c.products.length;for(const e of c.products)i.length<5&&i.push(ty(e))}const o=r.some(e=>"suggestions"===e.type),s=r.some(e=>"dori"===e.type),l=r[r.length-1];return{hasProductCards:n,productCount:a,hasSuggestions:o,hasPlainAnswer:s,finished:!0,turnFinishedAt:l.timestamp instanceof Date?l.timestamp.getTime():Date.now(),products:i,lastUserMessage:-1===t?null:(e[t].content||"").trim()||null}}(a),S=w?`${w.turnFinishedAt}:${w.hasProductCards}:${w.productCount}:${w.hasSuggestions}:${w.hasPlainAnswer}`:null;os.useEffect(()=>{e&&_&&i&&(p.current>=3||o.isRequestInProgress||s||c||w&&w.finished&&function(e,t){if(e.hasProductCards||e.hasSuggestions)return!0;if(!e.hasPlainAnswer)return!1;const r=[...t].reverse().find(e=>"dori"===e.type);if(!r)return!1;const n=(r.content||"").trim().toLowerCase();return!!n&&!["error","rate limit","exceeded","try again","couldn't","could not"].some(e=>n.startsWith(e))}(w,a)&&S&&f.current!==S&&(f.current=S,x(),h.current=window.setTimeout(async()=>{if(h.current=null,!e||u||p.current>=3||!i.business_description)return;const t=new AbortController;g.current=t;const a=Xb({businessDescription:i.business_description,lang:String(d??"English"),pageContext:n,session:r,dwellSec:0,scrollPercent:0,idleSec:Math.floor(25),triggerSignal:"post_answer"}),o=function(e){return e.hasProductCards&&e.productCount>=2?`I showed ${e.productCount} product cards.`:e.hasProductCards?"I showed 1 product card.":e.hasSuggestions?"I offered clickable suggestions.":"I answered with a text reply."}(w),{chips:s,bannedToken:c}=await dm(a,"post_answer",o,t.signal,{lastUserMessage:w.lastUserMessage,lastAnswerProducts:w.products.length>0?w.products:null});g.current=null,c&&Wo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:a.suggested_intent,nudge_position:"post_answer"}),s&&(p.current+=1,l(s,"post_answer"),Wo("nudge.in_chat.post_answer.fired",{last_answer_shape:o,chip_count:s.length,suggested_intent:a.suggested_intent}))},25e3)))},[S,e,o.isRequestInProgress,s,u,_]),os.useEffect(()=>{if(!e)return;if(!_)return;if(!i)return;if(m.current)return;if(c)return;if(a.some(e=>"user"===e.type))return;const t=v.current??Date.now(),o=Date.now()-t,s=Math.max(0,25e3-o);return null!==b.current&&window.clearTimeout(b.current),b.current=window.setTimeout(async()=>{if(b.current=null,!e)return;if(m.current)return;if(u)return;if(a.some(e=>"user"===e.type))return;if(!i.business_description)return;if(function(){if("undefined"==typeof document)return!1;const e=document.querySelector("#dori-react-widget-host");if(!e)return!1;const t=(e.shadowRoot||e).querySelectorAll("input, textarea");for(const r of Array.from(t)){const e=r.value;if(e&&e.trim().length>0)return!0}return!1}())return;const t=new AbortController;y.current=t;const o=Xb({businessDescription:i.business_description,lang:String(d??"English"),pageContext:n,session:r,dwellSec:0,scrollPercent:0,idleSec:Math.floor(20),triggerSignal:"pre_message"}),{chips:s,bannedToken:c}=await dm(o,"pre_message",null,t.signal);y.current=null,c&&Wo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:o.suggested_intent,nudge_position:"pre_message"}),s&&(m.current=!0,l(s,"pre_message"),Wo("nudge.in_chat.pre_message.fired",{page_type:o.page_type,suggested_intent:o.suggested_intent,chip_count:s.length}))},s),()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null)}},[e,a.length,u,_])}({isWidgetOpen:e}),function({isWidgetOpen:e}){const t=Xm(),{session:r,pageContext:n}=Zb(),{botData:i,dynamicWelcomeMessage:a,setDynamicFollowupNudgeMessage:o,proactiveSuppressedThisSession:s,effectiveLanguage:l,diagnosticFlow:c,diagnosticShown:u}=t,d=os.useRef(!1),p=os.useRef(Date.now()),f=os.useRef(Date.now()),h=os.useRef(null),g=os.useRef(null),m=os.useCallback(()=>{null!==h.current&&(window.clearInterval(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null)},[]);os.useEffect(()=>{d.current=!1,p.current=Date.now(),f.current=Date.now()},[n.page_link]);const v=os.useCallback(async t=>{if(d.current)return;if(!i)return;if(!i.is_widget_enabled)return;if(!1===i.customization?.enable_proactive_engagement)return;if(s)return;if(ny()>=2)return;if(e)return;if(c&&!u)return;if(i.banned_paths?.length){const e=window.location.pathname.toLowerCase();if(i.banned_paths.some(t=>e.includes(t.toLowerCase())))return}if(!i.business_description)return;d.current=!0,m();const h=Math.floor((Date.now()-p.current)/1e3),v=Math.floor((Date.now()-f.current)/1e3),b=Xb({businessDescription:i.business_description,lang:String(l??"English"),pageContext:n,session:r,dwellSec:h,scrollPercent:ay(),idleSec:v,triggerSignal:t}),y=new AbortController;g.current=y;const x=await async function(e,t,r){try{const n=new AbortController,i=setTimeout(()=>n.abort(),1e4),a=r?AbortSignal.any([r,n.signal]):n.signal,o=await fetch(am.generateFollowupNudge,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,prior_welcome_text:t}),signal:a});if(clearTimeout(i),!o.ok)return console.warn("[Dori Widget] fetchFollowupNudge failed:",o.status),null;const s=await o.json();return s?.message??null}catch(n){return"AbortError"!==n?.name&&console.warn("[Dori Widget] fetchFollowupNudge error:",n),null}}(b,a,y.signal);g.current=null,x&&(o(x),function(){const e=ny()+1;try{sessionStorage.setItem(ry,String(e))}catch{}}(),Wo("nudge.page_followup.fired",{page_type:b.page_type,suggested_intent:b.suggested_intent,trigger_signal:t,dwell_sec:h}))},[i,e,s,n,r,a,o,l,m,c,u]),b=os.useRef(v);os.useEffect(()=>{b.current=v},[v]),os.useEffect(()=>{if(i){if(!e)return h.current=window.setInterval(()=>{if(d.current)return void m();const e=Date.now()-p.current,t=ay();if(e>=2e4)b.current("dwell");else if(e>=8e3&&t>=60)b.current("scroll");else if(!iy()&&Date.now()-f.current>=1e4)return void b.current("idle")},500),()=>{null!==h.current&&(window.clearInterval(h.current),h.current=null)};m()}},[i,e,n.page_link,m]),os.useEffect(()=>{if(iy())return;const e=()=>{f.current=Date.now()},t=e=>{const t=Date.now()-p.current;e.clientY<=8&&t>=5e3&&v("exit")};return document.addEventListener("mousemove",e),document.addEventListener("mouseleave",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseleave",t)}},[v]),os.useEffect(()=>m,[m])}({isWidgetOpen:e}),null);function sy(){const[e,r]=os.useState(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")}),[n,i]=os.useState(!1),[a,o]=os.useState(""),{botData:s,updateBotData:l,diagnosticFlow:c,diagnosticShown:u}=Xm(),[d,p]=os.useState(null),[f,h]=os.useState(!1),g=!0===s?.customization?.disable_welcome_popup,m=!(!0!==s?.customization?.enable_standalone_quiz||!c||u||f||e||Yb()||g),{isCurrentPathBanned:v}=(e=>{const[t,r]=os.useState("");return os.useEffect(()=>{const e=()=>{r("undefined"==typeof window?"":window.location.pathname)};e();const t=()=>{e()};window.addEventListener("popstate",t);const n=history.pushState,i=history.replaceState;return history.pushState=function(...t){n.apply(history,t),e()},history.replaceState=function(...t){i.apply(history,t),e()},()=>{window.removeEventListener("popstate",t),history.pushState=n,history.replaceState=i}},[]),{isCurrentPathBanned:()=>((e,t=[])=>{if(!t||0===t.length)return!1;const r=e.replace(/^\/+/,"").toLowerCase();return t.some(e=>{const t=e.replace(/^\/+/,"").toLowerCase();return r.includes(t)})})(t,e)}})(s?.banned_paths||[]);os.useEffect(()=>{s?.merchant_support_channels?.crisp?.enabled&&(Hv(),Bv()&&window.$crisp.push(["on","chat:closed",()=>{Hv()}]))},[s?.merchant_support_channels?.crisp?.enabled]),os.useEffect(()=>{s?.merchant_support_channels?.chatra?.enabled&&(eb("hideChatraWidget invoked"),Yv=!0,function(e){if(tb())return void e();const t=Date.now(),r=setInterval(()=>{tb()?(clearInterval(r),e()):Date.now()-t>Uv&&(clearInterval(r),eb("Chatra never became ready within",Uv,"ms"))},200)}(()=>{Gv||nb("initial hide")}),null!==Qv||"undefined"==typeof window||Gv||(Kv=Date.now(),Qv=setInterval(ab,1e3)))},[s?.merchant_support_channels?.chatra?.enabled]),function({sharingId:e}){const{initializeBot:r,resetBot:n}=Xm(),i=os.useRef(void 0);os.useEffect(()=>{i.current&&e&&i.current!==e&&n?.(),i.current=e,e&&!t()&&r(e)},[e,r,n])}({sharingId:a});const b=Pu({base:!0,md:!1})??!1,y=((e,t=!1)=>{const{align:r,sideSpacing:n}=e;return t?{bottom:"90px",[r]:`${n}px`}:{top:"50%",[r]:`${n}px`}})($v(s,b),!(!s?.customization?.enable_avatar_in_fab||!s?.bot_image)&&b);os.useEffect(()=>{window.chatbotData?o(window.chatbotData.sharingID):Bo("useEffect sharing ID",()=>{o((()=>{const e=document.querySelector("script#dori-side-widget");return e?.getAttribute("data-sharing-id")||""})());const e=document.querySelector("script#dori-side-widget");if(!e)return;const t=new MutationObserver(t=>{for(const r of t)if("attributes"===r.type&&"data-sharing-id"===r.attributeName){const t=e.getAttribute("data-sharing-id")||"";o(t),console.log("data-sharing-id changed:",t)}});return t.observe(e,{attributes:!0,attributeFilter:["data-sharing-id"]}),()=>{t.disconnect()}})()},[]),os.useEffect(()=>{const e=e=>{r(!0),e?.expand&&i(!0)},t=()=>r(!1),n=()=>r(e=>!e),a=e=>{l(e)},o=window;o.doriWidget={...o.doriWidget,open:e,close:t,toggle:n,updateConfig:a};const s=t=>{const r=t.detail;e(r)};return window.addEventListener("dori:open-widget",s),window.addEventListener("dori:close-widget",t),window.addEventListener("dori:toggle-widget",n),()=>{o.doriWidget&&(o.doriWidget.open===e&&delete o.doriWidget.open,o.doriWidget.close===t&&delete o.doriWidget.close,o.doriWidget.toggle===n&&delete o.doriWidget.toggle,o.doriWidget.updateConfig===a&&delete o.doriWidget.updateConfig),window.removeEventListener("dori:open-widget",s),window.removeEventListener("dori:close-widget",t),window.removeEventListener("dori:toggle-widget",n)}},[l]);const x=os.useCallback(()=>{const e=(()=>{if(console.log("[Dori Widget] botData:",s),null===s)return console.log("[Dori Widget] botData is null, defaulting widget enabled to true"),!0;const e=!0===s.is_widget_enabled||null===s.is_widget_enabled;return console.log("[Dori Widget] botData.is_widget_enabled:",s.is_widget_enabled,"-> widget enabled:",e),e})(),t=v(),r=!e||t;return console.log("shouldHideWidget",e,t,"-> shouldHide:",r),r},[s,v])();console.log("App render - shouldHide:",x,"isOpen:",e);const k=os.useCallback((e,t,n)=>{h(!0),p({message:e,imageUrl:t,apiMessage:n}),r(!0)},[]),_=os.useCallback(()=>{p(null)},[]);return ts.jsx(eu,{fontFamily:"system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:!x&&ts.jsxs(ts.Fragment,{children:[ts.jsx(oy,{isWidgetOpen:e}),ts.jsx(Bb,{isOpen:e,onClose:()=>r(!1),isExpanded:n,onToggleExpand:e=>i(void 0===e?!n:e),pendingChat:d,onPendingChatConsumed:_}),m&&ts.jsx(Qb,{onOpenWidget:()=>r(!0),onStartChat:k,onDismissed:()=>h(!0)}),!e&&ts.jsx(eu,{position:"fixed",zIndex:"1000000",...y,children:ts.jsx(Hb,{onClick:()=>{r(!e)},suppressBubble:m})})]})})}function ly(){return ts.jsx(sy,{})}console.log("isDevelopment",!1);var cy={};const uy=qo(Pc),dy=qo(Il);function py(){throw new Error("[Dori Widget] react-dom/server is excluded from this build (see react-dom-server-stub.ts)")}const fy=py,hy=py,gy={renderToString:fy,renderToStaticMarkup:hy},my=qo(Object.freeze(Object.defineProperty({__proto__:null,default:gy,renderToStaticMarkup:hy,renderToString:fy},Symbol.toStringTag,{value:"Module"})));var vy,by,yy,xy,ky,_y,wy={exports:{}};function Sy(){return by?vy:(by=1,vy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Cy(){if(xy)return yy;xy=1;var e=Sy();function t(){}function r(){}return r.resetWarningCache=t,yy=function(){function n(t,r,n,i,a,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a}}function Py(){return ky||(ky=1,wy.exports=Cy()()),wy.exports}function zy(){if(_y)return cy;_y=1,Object.defineProperty(cy,"__esModule",{value:!0});var e=as(),t=uy,r=dy,n=Ss(),i=my,a=Py();function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),l=o(r),c=o(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Vo?Vo:"undefined"!=typeof self?self:{};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p=d(function(e){var t,r,n,i,a,o,s,l,c,d,p,f,h,g,m;t=u,r=function(e,t,n){if(!l(t)||d(t)||p(t)||f(t)||s(t))return t;var i,a=0,o=0;if(c(t))for(i=[],o=t.length;a<o;a++)i.push(r(e,t[a],n));else for(var u in i={},t)Object.prototype.hasOwnProperty.call(t,u)&&(i[e(u,n)]=r(e,t[u],n));return i},n=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},i=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return(r=e,n=t,i=(n=n||{}).separator||"_",a=n.split||/(?=[A-Z])/,r.split(a).join(i)).toLowerCase();var r,n,i,a},o=Object.prototype.toString,s=function(e){return"function"==typeof e},l=function(e){return e===Object(e)},c=function(e){return"[object Array]"==o.call(e)},d=function(e){return"[object Date]"==o.call(e)},p=function(e){return"[object RegExp]"==o.call(e)},f=function(e){return"[object Boolean]"==o.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},m={camelize:n,decamelize:a,pascalize:i,depascalize:a,camelizeKeys:function(e,t){return r(g(n,t),e)},decamelizeKeys:function(e,t){return r(g(a,t),e,t)},pascalizeKeys:function(e,t){return r(g(i,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}).decamelize,f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},h=d(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}),g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},m=e.createContext(null);function v(e){var t=e.children,r=void 0===t?"":t,n=g(e,["children"]);return"string"!=typeof r&&(r=i.renderToString(r)),s.default.createElement("template",h({},n,{dangerouslySetInnerHTML:{__html:r}}))}function b(e){var t=e.root,r=e.children,i=void 0===r?null:r;return n.createPortal(i,t)}v.propTypes={children:c.default.oneOfType([c.default.string,c.default.node])},b.propTypes={root:c.default.object.isRequired,children:c.default.node};var y=new Map;function x(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(n,i){var a=p(i,{separator:"-"}),o="".concat(t,"-").concat(a);return y.has(o)||y.set(o,function(t){var r=e.forwardRef(function(r,i){var a,o,l=r.mode,c=void 0===l?"open":l,u=r.delegatesFocus,d=void 0!==u&&u,p=r.styleSheets,y=void 0===p?[]:p,x=r.ssr,k=void 0!==x&&x,_=r.children,w=g(r,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(a=i,o=e.useRef(a&&a.current),e.useEffect(function(){a&&(a.current=o.current)},[a]),o),C=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],i=!0,a=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(r.push(s.value),r.length!==t);i=!0);}catch(n){a=!0,o=n}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.useState(null),2),P=C[0],z=C[1],E="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(S.current)try{if("function"==typeof i&&i(S.current),k){var e=S.current.shadowRoot;return void z(e)}var t=S.current.attachShadow({mode:c,delegatesFocus:d});y.length>0&&(t.adoptedStyleSheets=y),z(t)}catch(n){!function(e){var t=e.error,r=e.styleSheets,n=e.root;if("NotSupportedError"!==t.name)throw t;r.length>0&&(n.adoptedStyleSheets=r)}({error:n,styleSheets:y,root:P})}},[i,S,y]),s.default.createElement(s.default.Fragment,null,s.default.createElement(t.tag,h({key:E,ref:S},w),(P||k)&&s.default.createElement(m.Provider,{value:P},k?s.default.createElement(v,{shadowroot:c,shadowrootmode:c},t.render({root:P,ssr:k,children:_})):s.default.createElement(b,{root:P},t.render({root:P,ssr:k,children:_})))))});return r.propTypes={mode:c.default.oneOf(["open","closed"]),delegatesFocus:c.default.bool,styleSheets:c.default.arrayOf(c.default.instanceOf(globalThis.CSSStyleSheet)),ssr:c.default.bool,children:c.default.node},r}({tag:a,render:r})),y.get(o)}})}x();var k=new WeakMap,_=x({},"emotion",function(e){var r,n=e.root,i=e.children,a=k.get(n)||(r=l.default({container:n,key:"react-shadow"}),k.set(n,r),r);return s.default.createElement(t.CacheProvider,{value:a},s.default.createElement(s.default.Fragment,null,i))});return cy.default=_,cy}const Ey=Uo(zy()),Ty=":host",jy=(e,t,r)=>e?.[t]||r,Ry=e=>{const t={cssVarsRoot:Ty,conditions:{light:`${Ty} &, .light &`},preflight:{scope:Ty},globalCss:{[Ty]:Ig.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"system-ui, sans-serif"},body:{value:"system-ui, sans-serif"}},colors:(()=>{const{primary:t,background:r,text:n,accent:i}=(e=>({primary:jy(e,"primary","#0070f3"),background:jy(e,"background","#f7fafc"),text:jy(e,"textPrimary","#1a202c"),accent:jy(e,"error","#ff383c")}))(e),a=rv(r,n,.05),o=Jm(n,.6),s=rv(r,n,.1),l=tv(t,10),c=tv(t,15);return{primary:{value:t},background:{value:r},text:{value:n},error:{value:i},errorBackground:{value:Jm(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:a},veryLightBackground:{value:ev(a,15)},mutedText:{value:o},borderColor:{value:s}}})(),fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}},spacing:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},28:{value:"112px"},32:{value:"128px"},36:{value:"144px"},40:{value:"160px"},44:{value:"176px"},48:{value:"192px"},52:{value:"208px"},56:{value:"224px"},60:{value:"240px"},64:{value:"256px"},72:{value:"288px"},80:{value:"320px"},96:{value:"384px"}},fontSizes:{"2xs":{value:"10px"},xs:{value:"12px"},sm:{value:"14px"},md:{value:"16px"},lg:{value:"18px"},xl:{value:"20px"},"2xl":{value:"24px"},"3xl":{value:"30px"},"4xl":{value:"36px"},"5xl":{value:"48px"},"6xl":{value:"60px"},"7xl":{value:"72px"},"8xl":{value:"96px"},"9xl":{value:"128px"}},borderWidths:{0:{value:"0px"},1:{value:"1px"},2:{value:"2px"},4:{value:"4px"},8:{value:"8px"}},radii:{none:{value:"0px"},sm:{value:"2px"},md:{value:"4px"},lg:{value:"8px"},xl:{value:"12px"},"2xl":{value:"16px"},"3xl":{value:"24px"},"4xl":{value:"32px"},full:{value:"9999px"}},lineHeights:{3:{value:"12px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},none:{value:"1"},tight:{value:"1.25"},snug:{value:"1.375"},normal:{value:"1.5"},relaxed:{value:"1.625"},loose:{value:"2"}},sizes:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},full:{value:"100%"},"3xs":{value:"224px"},"2xs":{value:"256px"},xs:{value:"320px"},sm:{value:"384px"},md:{value:"448px"},lg:{value:"512px"},xl:{value:"576px"},"2xl":{value:"672px"},"3xl":{value:"768px"},"4xl":{value:"896px"},"5xl":{value:"1024px"},"6xl":{value:"1152px"},"7xl":{value:"1280px"},"8xl":{value:"1440px"}}}}};return sf(Ig,t)};Ry();const Oy={primary:"#0070f3",background:"#ffffff",textPrimary:"#1a202c",error:"#ff383c"};function Iy({children:e}){const{botData:t}=Xm(),r=os.useMemo(()=>Ry(t?.theme??Oy),[t?.theme]);return ts.jsx(Wc,{value:r,children:e})}function Ay({children:e}){const[t,r]=os.useState(null),[n,i]=os.useState(null);return os.useEffect(()=>{if(!t?.shadowRoot||n)return;const e=Ol({key:"root",container:t.shadowRoot});i(e)},[t,n]),ts.jsx(Ey.div,{ref:r,style:{backgroundColor:"transparent",display:"block"},"data-nosnippet":"",children:t&&n&&ts.jsx(Qu,{value:()=>t.shadowRoot??document,children:ts.jsx(dc,{value:n,children:ts.jsx(Km,{children:ts.jsx(Iy,{children:e})})})})})}class Dy extends os.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),$o(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}let My=!1;const Ly=Object.freeze(Object.defineProperty({__proto__:null,initializeDoriWidget:function(){if(My)return console.log("[Dori Widget] Already initialized, skipping"),()=>{};My=!0;const e=[];let t=document.getElementById("dori-react-widget-host");t||(t=document.createElement("div"),t.id="dori-react-widget-host",t.setAttribute("data-nosnippet",""),document.body.appendChild(t));const r=zs.createRoot(t);r.render(ts.jsx(ss.StrictMode,{children:ts.jsx(Dy,{children:ts.jsx(Ay,{children:ts.jsx(ly,{})})})})),e.push(r);const n=()=>{_(()=>import("./MarkdownContent-c0__FK7Y.js"),__vite__mapDeps([0,1]),import.meta.url).catch(()=>{})};return"function"==typeof window.requestIdleCallback?window.requestIdleCallback(n,{timeout:3e3}):window.setTimeout(n,1500),()=>{e.forEach(e=>e.unmount()),My=!1}}},Symbol.toStringTag,{value:"Module"}));export{eu as B,ru as E,Kg as I,Zg as L,Cu as T,Zc as a,Oc as b,Lc as c,Ag as d,Ly as e,Uo as g,ts as j,jc as m,os as r,Nc as u};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MarkdownContent-Cnu8VPfl.js","../widget.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{l as e,h as t,A as r,S as n,u as i,s as a,a as o,b as s,c as l,d as c,g as u,m as d,e as p,f,i as h,j as g,k as m,n as v,o as b,p as y,q as x,r as k,_,t as w,v as S}from"../widget.js";function C(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var P="undefined"!=typeof window?window:void 0,z="undefined"!=typeof globalThis?globalThis:P,E=Array.prototype,T=E.forEach,j=E.indexOf,R=null==z?void 0:z.navigator,O=null==z?void 0:z.document,I=null==z?void 0:z.location,A=null==z?void 0:z.fetch,D=null!=z&&z.XMLHttpRequest&&"withCredentials"in new z.XMLHttpRequest?z.XMLHttpRequest:void 0,M=null==z?void 0:z.AbortController,L=null==R?void 0:R.userAgent,F=null!=P?P:{},N={DEBUG:!1,LIB_VERSION:"1.283.0"};function W(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,i)}function $(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){W(a,n,i,o,s,"next",e)}function s(e){W(a,n,i,o,s,"throw",e)}o(void 0)})}}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(null,arguments)}function H(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var V=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],U=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return V.concat(t).some(e=>{var t=e.toLowerCase();return-1!==r.indexOf(t)})},q=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Y(e,t){return-1!==e.indexOf(t)}var G=function(e){return e.trim()},Q=function(e){return e.replace(/^\$/,"")},K=Array.isArray,X=Object.prototype,Z=X.hasOwnProperty,J=X.toString,ee=K||function(e){return"[object Array]"===J.call(e)},te=e=>"function"==typeof e,re=e=>e===Object(e)&&!ee(e),ne=e=>{if(re(e)){for(var t in e)if(Z.call(e,t))return!1;return!0}return!1},ie=e=>void 0===e,ae=e=>"[object String]"==J.call(e),oe=e=>ae(e)&&0===e.trim().length,se=e=>null===e,le=e=>ie(e)||se(e),ce=e=>"[object Number]"==J.call(e),ue=e=>"[object Boolean]"===J.call(e),de=e=>Y(q,e);function pe(e){return null===e||"object"!=typeof e}function fe(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function he(e){return!ie(Event)&&function(e,t){try{return e instanceof t}catch(r){return!1}}(e,Event)}var ge=[!0,"true",1,"1","yes"],me=e=>Y(ge,e),ve=[!1,"false",0,"0","no"];function be(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),ce(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),be(i||r,t,r,n))}class ye{constructor(e){this.t={},this.i=e.i,this.o=be(e.bucketSize,0,100,e.h),this.m=be(e.refillRate,0,this.o,e.h),this.S=be(e.refillInterval,0,864e5,e.h)}$(e,t){var r=t-e.lastAccess,n=Math.floor(r/this.S);if(n>0){var i=n*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+n*this.S}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.$(i,r):(i={tokens:this.o,lastAccess:r},this.t[n]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var xe,ke,_e,we=e=>e instanceof Error;function Se(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return _e&&r.length===ke||(ke=r.length,_e=r.reduce((r,n)=>{xe||(xe={});var i=xe[n];if(i)r[i[0]]=i[1];else for(var a=e(n),o=a.length-1;o>=0;o--){var s=a[o],l=null==s?void 0:s.filename,c=t[n];if(l&&c){r[l]=c,xe[n]=[l,c];break}}return r},{})),_e}}var Ce="?";function Pe(e,t,r,n){var i={platform:"web:javascript",filename:e,function:"<anonymous>"===t?Ce:t,in_app:!0};return ie(r)||(i.lineno=r),ie(n)||(i.colno=n),i}var ze=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Ce,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Ee=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Te=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,je=/\((\S*)(?::(\d+))(?::(\d+))\)/,Re=e=>{var t=Ee.exec(e);if(t){var[,r,n,i]=t;return Pe(r,Ce,+n,+i)}var a=Te.exec(e);if(a){if(a[2]&&0===a[2].indexOf("eval")){var o=je.exec(a[2]);o&&(a[2]=o[1],a[3]=o[2],a[4]=o[3])}var[s,l]=ze(a[1]||Ce,a[2]);return Pe(l,s,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},Oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ae=e=>{var t=Oe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=Ie.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],i=t[1]||Ce;return[i,n]=ze(i,n),Pe(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},De=/\(error: (.*)\)/;class Me{constructor(e,t,r){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===r&&(r=[]),this.coercers=e,this.modifiers=r,this.stackParser=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){void 0===r&&(r=0);for(var n=[],i=e.split("\n"),a=r;a<i.length;a++){var o=i[a];if(!(o.length>1024)){var s=De.test(o)?o.replace(De,"$1"):o;if(!s.match(/\S*Error: /)){for(var l of t){var c=l(s);if(c){n.push(c);break}}if(n.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return B({},e,{filename:e.filename||(r=t,r[r.length-1]||{}).filename,function:e.function||Ce});var r})}(n)}}(...t)}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(),a=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(a,r),$exception_level:"error"}}modifyFrames(e){var t=this;return $(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&ee(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?1:0),t.chunkIdMap)),B({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return $(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,a={type:e.type,value:e.value,mechanism:{type:null!==(r=t.type)&&void 0!==r?r:"generic",handled:null===(n=t.handled)||void 0===n||n,synthetic:null!==(i=e.synthetic)&&void 0!==i&&i}};e.stack&&(a.stacktrace={type:"raw",frames:e.stack});var o=[a];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,B({},t,{handled:!0}))),o}buildParsingContext(){return{chunkIdMap:Se(this.stackParser)}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(n<=4){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return B({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}class Le{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=ae(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return fe(e,"DOMException")}isDOMError(e){return fe(e,"DOMError")}}class Fe{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var r=e.message;return r.error&&"string"==typeof r.error.message?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class Ne{constructor(){}match(e){return fe(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var r;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}var We=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class $e{match(e){return"string"==typeof e}coerce(e,t){var r,[n,i]=this.getInfos(e);return{type:null!=n?n:"Error",value:null!=i?i:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(We);return n&&(t=n[1],r=n[2]),[t,r]}}var Be=["fatal","error","warning","log","info","debug"];function He(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class Ve{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null==(r=t.syntheticException)?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return he(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+He(e)}isSeverityLevel(e){return ae(e)&&!oe(e)&&Be.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(we(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(r){return}}}class Ue{match(e){return he(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+He(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class qe{match(e){return pe(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Ye{match(e){return fe(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return pe(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){if(pe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}}var Ge=e=>{var t={k:function(t){if(P&&(N.DEBUG||F.POSTHOG_DEBUG)&&!ie(P.console)&&P.console){for(var r=("__rrweb_original__"in P.console[t]?P.console[t].__rrweb_original__:P.console[t]),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];r(e,...i)}},info:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("log",...r)},warn:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("warn",...r)},error:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.k("error",...r)},critical:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning:e=>{t.error("You must initialize PostHog before calling "+e)},createLogger:t=>Ge(e+" "+t)};return t},Qe=Ge("[PostHog.js]"),Ke=Qe.createLogger,Xe=Ke("[ExternalScriptsLoader]"),Ze=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Xe.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==O?void 0:O.querySelectorAll("script");if(n)for(var i,a=function(){if(n[o].src===t){var e=n[o];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}},o=0;o<n.length;o++)if(i=a())return i.v;var s=()=>{if(!O)return r("document not found");var n=O.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");var i,a=O.querySelectorAll("body > script");a.length>0?null==(i=a[0].parentNode)||i.insertBefore(n,a[0]):O.body.appendChild(n)};null!=O&&O.body?s():null==O||O.addEventListener("DOMContentLoaded",s)};F.__PosthogExtensions__=F.__PosthogExtensions__||{},F.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;if("remote-config"===t&&(n="/array/"+e.config.token+"/config.js"),"toolbar"===t){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var a=e.requestRouter.endpointFor("assets",n);Ze(e,a,r)},F.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Ze(e,n,r)};var Je={};function et(e,t,r){if(ee(e))if(T&&e.forEach===T)e.forEach(t,r);else if("length"in e&&e.length===+e.length)for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===Je)return}function tt(e,t,r){if(!le(e)){if(ee(e))return et(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Je)return}else for(var i in e)if(Z.call(e,i)&&t.call(r,e[i],i)===Je)return}}var rt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return et(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},nt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return et(r,function(t){et(t,function(t){e.push(t)})}),e};function it(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var at=function(e){try{return e()}catch(t){return}},ot=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(i){Qe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Qe.critical(i)}}},st=function(e){var t={};return tt(e,function(e,r){(ae(e)&&e.length>0||ce(e))&&(t[r]=e)}),t},lt=["herokuapp.com","vercel.app","netlify.app"];function ct(e){var t=null==e?void 0:e.hostname;if(!ae(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of lt)if(r===n)return!1;return!0}function ut(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function dt(e,t,r,n){var{capture:i=!1,passive:a=!0}=null!=n?n:{};null==e||e.addEventListener(t,r,{capture:i,passive:a})}var pt="$people_distinct_id",ft="__alias",ht="__timers",gt="$autocapture_disabled_server_side",mt="$heatmaps_enabled_server_side",vt="$exception_capture_enabled_server_side",bt="$error_tracking_suppression_rules",yt="$error_tracking_capture_extension_exceptions",xt="$web_vitals_enabled_server_side",kt="$dead_clicks_enabled_server_side",_t="$web_vitals_allowed_metrics",wt="$session_recording_remote_config",St="$sesid",Ct="$session_is_sampled",Pt="$enabled_feature_flags",zt="$early_access_features",Et="$feature_flag_details",Tt="$stored_person_properties",jt="$stored_group_properties",Rt="$surveys",Ot="$surveys_activated",It="$flag_call_reported",At="$user_state",Dt="$client_session_props",Mt="$capture_rate_limit",Lt="$initial_campaign_params",Ft="$initial_referrer_info",Nt="$initial_person_info",Wt="$epp",$t="__POSTHOG_TOOLBAR__",Bt="$posthog_cookieless",Ht=[pt,ft,"__cmpns",ht,"$session_recording_enabled_server_side",mt,St,Pt,bt,At,zt,Et,jt,Tt,Rt,It,Dt,Mt,Lt,Ft,Wt,Nt];function Vt(e){return e instanceof Element&&(e.id===$t||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function Ut(e){return!!e&&1===e.nodeType}function qt(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Yt(e){return!!e&&3===e.nodeType}function Gt(e){return!!e&&11===e.nodeType}function Qt(e){return e?G(e).split(/\s+/):[]}function Kt(e){var t=null==P?void 0:P.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Xt(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Qt(t)}function Zt(e){return le(e)?null:G(e).split(/(\s+)/).filter(e=>gr(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Jt(e){var t="";return sr(e)&&!lr(e)&&e.childNodes&&e.childNodes.length&&tt(e.childNodes,function(e){var r;Yt(e)&&e.textContent&&(t+=null!==(r=Zt(e.textContent))&&void 0!==r?r:"")}),G(t)}function er(e){return ie(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var tr=["a","button","form","input","select","textarea","label"];function rr(e,t){if(ie(t))return!0;var r,n=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function nr(e){var t=e.parentNode;return!(!t||!Ut(t))&&t}var ir=[".ph-no-rageclick",".ph-no-capture"],ar=e=>!e||qt(e,"html")||!Ut(e),or=(e,t)=>{if(!P||ar(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!qt(i,"body");)if(Gt(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var a=nr(i);if(!a)break;if(t||tr.indexOf(a.tagName.toLowerCase())>-1)r=!0;else{var o=P.getComputedStyle(a);o&&"pointer"===o.getPropertyValue("cursor")&&(r=!0)}n.push(a),i=a}return{parentIsUsefulElement:r,targetElementList:n}};function sr(e){for(var t=e;t.parentNode&&!qt(t,"body");t=t.parentNode){var r=Xt(t);if(Y(r,"ph-sensitive")||Y(r,"ph-no-capture"))return!1}if(Y(Xt(e),"ph-include"))return!0;var n=e.type||"";if(ae(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!ae(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function lr(e){return!!(qt(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||qt(e,"select")||qt(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var cr="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ur=new RegExp("^(?:"+cr+")$"),dr=new RegExp(cr),pr="\\d{3}-?\\d{2}-?\\d{4}",fr=new RegExp("^("+pr+")$"),hr=new RegExp("("+pr+")");function gr(e,t){if(void 0===t&&(t=!0),le(e))return!1;if(ae(e)){if(e=G(e),(t?ur:dr).test((e||"").replace(/[- ]/g,"")))return!1;if((t?fr:hr).test(e))return!1}return!0}function mr(e){var t=Jt(e);return gr(t=(t+" "+vr(e)).trim())?t:""}function vr(e){var t="";return e&&e.childNodes&&e.childNodes.length&&tt(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Jt(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+vr(e)).trim())}catch(i){Qe.error("[AutoCapture]",i)}}),t}function br(e){return e.map(e=>{var t,r,n={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:xr(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return it(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return n.attributes[t]=r}),n}).map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var a=B({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(r=e.nth_of_type)&&void 0!==r?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return it(a).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[yr(t.toString())]=yr(r.toString())}),(n+=":")+it(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";")}function yr(e){return e.replace(/"|\\"/g,'\\"')}function xr(e){var t=e.attr__class;return t?ee(t)?t:Qt(t):void 0}class kr{constructor(){this.clicks=[]}isRageClick(e,t,r){var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<30&&r-n.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:r}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var _r,wr="$copy_autocapture",Sr=((_r={}).GZipJS="gzip-js",_r.Base64="base64",_r),Cr=e=>{var t=null==O?void 0:O.createElement("a");return ie(t)?null:(t.href=e,t)},Pr=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<n.length;i++){var a=n[i].split("=");if(a[0]===t){r=a;break}}if(!ee(r)||r.length<2)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){Qe.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},zr=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[0]||"",a=n[1],o=i.split("?"),s=o[1],l=o[0],c=(s||"").split("&"),u=[],d=0;d<c.length;d++){var p=c[d].split("=");ee(p)&&(t.includes(p[0])?u.push(p[0]+"="+r):u.push(c[d]))}var f=l;return null!=s&&(f+="?"+u.join("&")),null!=a&&(f+="#"+a),f},Er=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},Tr=Ke("[AutoCapture]");function jr(e,t){return t.length>e?t.slice(0,e)+"...":t}function Rr(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Ut(t));return t}class Or{constructor(e){this.P=!1,this.T=null,this.rageclicks=new kr,this.R=!1,this.instance=e,this.I=null}get C(){var e,t,r=re(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}O(){if(this.isBrowserSupported()){if(P&&O){var e=e=>{e=e||(null==P?void 0:P.event);try{this.F(e)}catch(_r){Tr.error("Failed to capture event",_r)}};if(dt(O,"submit",e,{capture:!0}),dt(O,"change",e,{capture:!0}),dt(O,"click",e,{capture:!0}),this.C.capture_copied_text){var t=e=>{e=e||(null==P?void 0:P.event),this.F(e,wr)};dt(O,"copy",t,{capture:!0}),dt(O,"cut",t,{capture:!0})}}}else Tr.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.O(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.R=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[gt]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.I=e}getElementSelectors(e){var t,r=[];return null==(t=this.I)||t.forEach(t=>{var n=null==O?void 0:O.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[gt],n=this.T;if(se(n)&&!ue(r)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!r;return!!this.instance.config.autocapture&&!i}F(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=er(e);Yt(n)&&(n=n.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&function(e,t){if(!P||ar(e))return!1;var r,n;if(!1===(r=ue(t)?!!t&&ir:null!==(n=null==t?void 0:t.css_selector_ignorelist)&&void 0!==n?n:ir))return!1;var{targetElementList:i}=or(e,!1);return!rr(i,r)}(n,this.instance.config.rageclick)&&this.F(e,"$rageclick");var i=t===wr;if(n&&function(e,t,r,n,i){var a,o,s,l;if(void 0===r&&(r=void 0),!P||ar(e))return!1;if(null!=(a=r)&&a.url_allowlist&&!Kt(r.url_allowlist))return!1;if(null!=(o=r)&&o.url_ignorelist&&Kt(r.url_ignorelist))return!1;if(null!=(s=r)&&s.dom_event_allowlist){var c=r.dom_event_allowlist;if(c&&!c.some(e=>t.type===e))return!1}var{parentIsUsefulElement:u,targetElementList:d}=or(e,n);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(ie(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var a of e)if(n=i(a))return n.v;return!1}(d,r))return!1;if(!rr(d,null==(l=r)?void 0:l.css_selector_allowlist))return!1;var p=P.getComputedStyle(e);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return u?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(tr.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.C,i,i?["copy","cut"]:void 0)){var{props:a,explicitNoCapture:o}=function(e,t){for(var r,n,{e:i,maskAllElementAttributes:a,maskAllText:o,elementAttributeIgnoreList:s,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!qt(u,"body");)Gt(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p=[],f={},h=!1,g=!1;if(tt(c,e=>{var t=sr(e);"a"===e.tagName.toLowerCase()&&(h=e.getAttribute("href"),h=t&&h&&gr(h)&&h),Y(Xt(e),"ph-no-capture")&&(g=!0),p.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),a={tag_name:i};tr.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?a.$el_text=jr(1024,mr(e)):a.$el_text=jr(1024,Jt(e)));var o=Xt(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),tt(e.attributes,function(r){var i;if((!lr(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&gr(r.value)&&(i=r.name,!ae(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var o=r.value;"class"===r.name&&(o=Qt(o).join(" ")),a["attr__"+r.name]=jr(1024,o)}});for(var s=1,l=1,c=e;c=Rr(c);)s++,c.tagName===e.tagName&&l++;return a.nth_child=s,a.nth_of_type=l,a}(e,a,o,s));var r=function(e){if(!sr(e))return{};var t={};return tt(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&gr(n)&&(t[r]=n)}}),t}(e);rt(f,r)}),g)return{props:{},explicitNoCapture:g};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?p[0].$el_text=mr(e):p[0].$el_text=Jt(e)),h){var m,v;p[0].attr__href=h;var b=null==(m=Cr(h))?void 0:m.host,y=null==P||null==(v=P.location)?void 0:v.host;b&&y&&b!==y&&(d=h)}return{props:rt({$event_type:i.type,$ce_version:1},l?{}:{$elements:p},{$elements_chain:br(p)},null!=(r=p[0])&&r.$el_text?{$el_text:null==(n=p[0])?void 0:n.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},f)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.C.element_attribute_ignorelist,elementsChainAsString:this.R});if(o)return!1;var s=this.getElementSelectors(n);if(s&&s.length>0&&(a.$element_selectors=s),t===wr){var l,c=Zt(null==P||null==(l=P.getSelection())?void 0:l.toString()),u=e.type||"clipboard";if(!c)return!1;a.$selected_content=c,a.$copy_type=u}return this.instance.capture(t,a),!0}}}isBrowserSupported(){return te(null==O?void 0:O.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return ce(e)&&isFinite(e)&&Math.floor(e)===e});var Ir="0123456789abcdef";class Ar{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||e<0||t<0||r<0||n<0||e>0xffffffffffff||t>4095||r>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new Ar(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+Ir.charAt(this.bytes[t]>>>4)+Ir.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Ar(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class Dr{constructor(){this.A=0,this.D=0,this.j=new Fr}generate(){var e=this.generateOrAbort();if(ie(e)){this.A=0;var t=this.generateOrAbort();if(ie(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return Ar.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var Mr,Lr=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};P&&!ie(P.crypto)&&crypto.getRandomValues&&(Lr=e=>crypto.getRandomValues(e));class Fr{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(Lr(this.N),this.U=0),this.N[this.U++]}}var Nr=()=>Wr().toString(),Wr=()=>(Mr||(Mr=new Dr)).generate(),$r="",Br=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Hr={H:()=>!!O,B:function(e){Qe.error("cookieStore error: "+e)},q:function(e){if(O){try{for(var t=e+"=",r=O.cookie.split(";").filter(e=>e.length),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(a){}return null}},W:function(e){var t;try{t=JSON.parse(Hr.q(e))||{}}catch(r){}return t},G:function(e,t,r,n,i){if(O)try{var a="",o="",s=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=O),$r)return $r;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+Nr();!$r&&n--;){var a=r.slice(n).join("."),o=i+"=1;domain=."+a+";path=/";t.cookie=o+";max-age=3",t.cookie.includes(i)&&(t.cookie=o+";max-age=0",$r=a)}return $r}(e);if(!r){var n=(i=e.match(Br))?i[0]:"";n!==r&&Qe.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}var i;return""}(O.location.hostname,n);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),a="; expires="+l.toUTCString()}i&&(o="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+a+"; SameSite=Lax; path=/"+s+o;return c.length>3686.4&&Qe.warn("cookieStore warning: large cookie, len="+c.length),O.cookie=c,c}catch(u){return}},V:function(e,t){if(null!=O&&O.cookie)try{Hr.G(e,"",-1,t)}catch(r){return}}},Vr=null,Ur={H:function(){if(!se(Vr))return Vr;var e=!0;if(ie(P))e=!1;else try{var t="__mplssupport__";Ur.G(t,"xyz"),'"xyz"'!==Ur.q(t)&&(e=!1),Ur.V(t)}catch(_r){e=!1}return e||Qe.error("localStorage unsupported; falling back to cookie store"),Vr=e,e},B:function(e){Qe.error("localStorage error: "+e)},q:function(e){try{return null==P?void 0:P.localStorage.getItem(e)}catch(_r){Ur.B(_r)}return null},W:function(e){try{return JSON.parse(Ur.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==P||P.localStorage.setItem(e,JSON.stringify(t))}catch(_r){Ur.B(_r)}},V:function(e){try{null==P||P.localStorage.removeItem(e)}catch(_r){Ur.B(_r)}}},qr=["distinct_id",St,Ct,Wt,Nt],Yr=B({},Ur,{W:function(e){try{var t={};try{t=Hr.W(e)||{}}catch(n){}var r=rt(t,JSON.parse(Ur.q(e)||"{}"));return Ur.G(e,r),r}catch(n){}return null},G:function(e,t,r,n,i,a){try{Ur.G(e,t,void 0,void 0,a);var o={};qr.forEach(e=>{t[e]&&(o[e]=t[e])}),Object.keys(o).length&&Hr.G(e,o,r,n,i,a)}catch(s){Ur.B(s)}},V:function(e,t){try{null==P||P.localStorage.removeItem(e),Hr.V(e,t)}catch(_r){Ur.B(_r)}}}),Gr={},Qr={H:function(){return!0},B:function(e){Qe.error("memoryStorage error: "+e)},q:function(e){return Gr[e]||null},W:function(e){return Gr[e]||null},G:function(e,t){Gr[e]=t},V:function(e){delete Gr[e]}},Kr=null,Xr={H:function(){if(!se(Kr))return Kr;if(Kr=!0,ie(P))Kr=!1;else try{var e="__support__";Xr.G(e,"xyz"),'"xyz"'!==Xr.q(e)&&(Kr=!1),Xr.V(e)}catch(_r){Kr=!1}return Kr},B:function(e){Qe.error("sessionStorage error: ",e)},q:function(e){try{return null==P?void 0:P.sessionStorage.getItem(e)}catch(_r){Xr.B(_r)}return null},W:function(e){try{return JSON.parse(Xr.q(e))||null}catch(t){}return null},G:function(e,t){try{null==P||P.sessionStorage.setItem(e,JSON.stringify(t))}catch(_r){Xr.B(_r)}},V:function(e){try{null==P||P.sessionStorage.removeItem(e)}catch(_r){Xr.B(_r)}}},Zr=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Jr{constructor(e){this._instance=e}get C(){return this._instance.config}get consent(){return this.J()?Zr.DENIED:this.K}isOptedOut(){return"always"===this.C.cookieless_mode||this.consent===Zr.DENIED||this.consent===Zr.PENDING&&(this.C.opt_out_capturing_by_default||"on_reject"===this.C.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Zr.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.C.cookie_expiration,this.C.cross_subdomain_cookie,this.C.secure_cookie)}reset(){this.Y.V(this.X,this.C.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:r}=this._instance.config;return r||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return me(e)?Zr.GRANTED:Y(ve,e)?Zr.DENIED:Zr.PENDING}get Y(){if(!this.Z){var e=this.C.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Ur:Hr;var t="localStorage"===e?Hr:Ur;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(me(t.q(this.X))),t.V(this.X,this.C.cross_subdomain_cookie))}return this.Z}J(){return!!this.C.respect_dnt&&!!ut([null==R?void 0:R.doNotTrack,null==R?void 0:R.msDoNotTrack,F.doNotTrack],e=>me(e))}}var en=Ke("[Dead Clicks]"),tn=()=>!0,rn=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(kt)),n=e.instance.config.capture_dead_clicks;return ue(n)?n:r};class nn{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[kt]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?en.error("failed to load script",t):e()})}et(){var e;if(O){if(!this.tt&&null!=(e=F.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=re(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=F.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(O),en.info("starting...")}}else en.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,en.info("stopping..."))}}var an=Ke("[ExceptionAutocapture]");class on{constructor(e){var t,r,n;this.rt=()=>{var e;if(P&&this.isEnabled&&null!=(e=F.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=F.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=F.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=F.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.C.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.C.capture_unhandled_rejections&&(this.nt=r(this.captureException.bind(this))),!this.ot&&this.C.capture_console_errors&&(this.ot=n(this.captureException.bind(this)))}catch(_r){an.error("failed to start",_r),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[vt]),this.C=this.ht(),this.dt=new ye({refillRate:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==r?r:1,bucketSize:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==n?n:10,refillInterval:1e4,h:an}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return re(e)?t=B({},t,e):(ie(e)?this.ut:e)&&(t=B({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.C.capture_console_errors||this.C.capture_unhandled_errors||this.C.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(an.info("enabled"),this.it(this.rt))}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return an.error("failed to load script",t);e()})}lt(){var e,t,r;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(r=this.ot)||r.call(this),this.ot=void 0}onRemoteConfig(e){var t=e.autocaptureExceptions;this.ut=!!t||!1,this.C=this.ht(),this._instance.persistence&&this._instance.persistence.register({[vt]:this.ut}),this.startIfEnabled()}captureException(e){var t,r,n=null!==(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)&&void 0!==t?t:"Exception";this.dt.consumeRateLimit(n)?an.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function sn(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return te(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch(a){return()=>{}}}class ln{constructor(e){var t;this._instance=e,this.vt=(null==P||null==(t=P.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Qe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Qe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(P&&P.history){var r=this;null!=(e=P.history.pushState)&&e.__posthog_wrapped__||sn(P.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("pushState")}),null!=(t=P.history.replaceState)&&t.__posthog_wrapped__||sn(P.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("replaceState")}),this.gt()}}ft(e){try{var t,r=null==P||null==(t=P.location)?void 0:t.pathname;if(!r)return;r!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.vt=r}catch(_r){Qe.error("Error capturing "+e+" pageview",_r)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};dt(P,"popstate",e),this.ct=()=>{P&&P.removeEventListener("popstate",e)}}}}var cn=Ke("[SegmentIntegration]"),un="posthog-js";function dn(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:a=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{var s,l,c,u,d;if("*"!==a&&!a.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var f=(null==(s=t.exception)?void 0:s.values)||[],h=f.map(e=>B({},e,{stacktrace:e.stacktrace?B({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>B({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(l=f[0])?void 0:l.value)||t.message,$exception_type:null==(c=f[0])?void 0:c.type,$exception_level:t.level,$exception_list:h,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=f[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=f[0])?void 0:d.type,$sentry_tags:t.tags};return r&&n&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+t.event_id),o&&e.exceptions.sendExceptionEvent(g),t}}class pn{constructor(e,t,r,n,i,a){this.name=un,this.setupOnce=function(o){o(dn(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==a||a}))}}}var fn=null!=P&&P.location?Er(P.location.hash,"__posthog")||Er(location.hash,"state"):null,hn="_postHogToolbarParams",gn=Ke("[Toolbar]"),mn=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(mn||{});class vn{constructor(e){this.instance=e}_t(e){F.ph_toolbar_state=e}yt(){var e;return null!==(e=F.ph_toolbar_state)&&void 0!==e?e:mn.UNINITIALIZED}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),!P||!O)return!1;e=null!=e?e:P.location,r=null!=r?r:P.history;try{if(!t){try{P.localStorage.setItem("test","test"),P.localStorage.removeItem("test")}catch(_r){return!1}t=null==P?void 0:P.localStorage}var n,i=fn||Er(e.hash,"__posthog")||Er(e.hash,"state"),a=i?at(()=>JSON.parse(atob(decodeURIComponent(i))))||at(()=>JSON.parse(decodeURIComponent(i))):null;return a&&"ph_authorize"===a.action?((n=a).source="url",n&&Object.keys(n).length>0&&(a.desiredHash?e.hash=a.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(hn)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(_r){return!1}}bt(e){var t=F.ph_load_toolbar||F.ph_load_editor;!le(t)&&te(t)?t(e,this.instance):gn.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==O||!O.getElementById($t));if(!P||t)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=B({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(P.localStorage.setItem(hn,JSON.stringify(B({},n,{source:void 0}))),this.yt()===mn.LOADED)this.bt(n);else if(this.yt()===mn.UNINITIALIZED){var i;this._t(mn.LOADING),null==(i=F.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return gn.error("[Toolbar] Failed to load",e),void this._t(mn.UNINITIALIZED);this._t(mn.LOADED),this.bt(n)}),dt(P,"turbolinks:load",()=>{this._t(mn.UNINITIALIZED),this.loadToolbar(n)})}return!0}wt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}var bn=Ke("[TracingHeaders]");class yn{constructor(e){this.xt=void 0,this.St=void 0,this.rt=()=>{var e,t;ie(this.xt)&&(null==(e=F.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),ie(this.St)&&(null==(t=F.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return bn.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.xt)||e.call(this),null==(t=this.St)||t.call(this),this.xt=void 0,this.St=void 0)}}var xn="Mobile",kn="iOS",_n="Android",wn="Tablet",Sn=_n+" "+wn,Cn="iPad",Pn="Apple",zn=Pn+" Watch",En="Safari",Tn="BlackBerry",jn="Samsung",Rn=jn+"Browser",On=jn+" Internet",In="Chrome",An=In+" OS",Dn=In+" "+kn,Mn="Internet Explorer",Ln=Mn+" "+xn,Fn="Opera",Nn=Fn+" Mini",Wn="Edge",$n="Microsoft "+Wn,Bn="Firefox",Hn=Bn+" "+kn,Vn="Nintendo",Un="PlayStation",qn="Xbox",Yn=_n+" "+xn,Gn=xn+" "+En,Qn="Windows",Kn=Qn+" Phone",Xn="Nokia",Zn="Ouya",Jn="Generic",ei=Jn+" "+xn.toLowerCase(),ti=Jn+" "+wn.toLowerCase(),ri="Konqueror",ni="(\\d+(\\.\\d+)?)",ii=new RegExp("Version/"+ni),ai=new RegExp(qn,"i"),oi=new RegExp(Un+" \\w+","i"),si=new RegExp(Vn+" \\w+","i"),li=new RegExp(Tn+"|PlayBook|BB10","i"),ci={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},ui=function(e,t){return t=t||"",Y(e," OPR/")&&Y(e,"Mini")?Nn:Y(e," OPR/")?Fn:li.test(e)?Tn:Y(e,"IE"+xn)||Y(e,"WPDesktop")?Ln:Y(e,Rn)?On:Y(e,Wn)||Y(e,"Edg/")?$n:Y(e,"FBIOS")?"Facebook "+xn:Y(e,"UCWEB")||Y(e,"UCBrowser")?"UC Browser":Y(e,"CriOS")?Dn:Y(e,"CrMo")||Y(e,In)?In:Y(e,_n)&&Y(e,En)?Yn:Y(e,"FxiOS")?Hn:Y(e.toLowerCase(),ri.toLowerCase())?ri:((e,t)=>{return t&&Y(t,Pn)||Y(r=e,En)&&!Y(r,In)&&!Y(r,_n);var r})(e,t)?Y(e,xn)?Gn:En:Y(e,Bn)?Bn:Y(e,"MSIE")||Y(e,"Trident/")?Mn:Y(e,"Gecko")?Bn:""},di={[Ln]:[new RegExp("rv:"+ni)],[$n]:[new RegExp(Wn+"?\\/"+ni)],[In]:[new RegExp("("+In+"|CrMo)\\/"+ni)],[Dn]:[new RegExp("CriOS\\/"+ni)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ni)],[En]:[ii],[Gn]:[ii],[Fn]:[new RegExp("(Opera|OPR)\\/"+ni)],[Bn]:[new RegExp(Bn+"\\/"+ni)],[Hn]:[new RegExp("FxiOS\\/"+ni)],[ri]:[new RegExp("Konqueror[:/]?"+ni,"i")],[Tn]:[new RegExp(Tn+" "+ni),ii],[Yn]:[new RegExp("android\\s"+ni,"i")],[On]:[new RegExp(Rn+"\\/"+ni)],[Mn]:[new RegExp("(rv:|MSIE )"+ni)],Mozilla:[new RegExp("rv:"+ni)]},pi=function(e,t){var r=ui(e,t),n=di[r];if(ie(n))return null;for(var i=0;i<n.length;i++){var a=n[i],o=e.match(a);if(o)return parseFloat(o[o.length-2])}return null},fi=[[new RegExp(qn+"; "+qn+" (.*?)[);]","i"),e=>[qn,e&&e[1]||""]],[new RegExp(Vn,"i"),[Vn,""]],[new RegExp(Un,"i"),[Un,""]],[li,[Tn,""]],[new RegExp(Qn,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Kn,""];if(new RegExp(xn).test(t)&&!/IEMobile\b/.test(t))return[Qn+" "+xn,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=ci[n]||"";return/arm/i.test(t)&&(i="RT"),[Qn,i]}return[Qn,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[kn,t.join(".")]}return[kn,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ie(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+_n+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+_n+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[_n,t.join(".")]}return[_n,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[An,""]],[/Linux|debian/i,["Linux",""]]],hi=function(e){return si.test(e)?Vn:oi.test(e)?Un:ai.test(e)?qn:new RegExp(Zn,"i").test(e)?Zn:new RegExp("("+Kn+"|WPDesktop)","i").test(e)?Kn:/iPad/.test(e)?Cn:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?zn:li.test(e)?Tn:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Xn,"i").test(e)?Xn:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(xn).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?_n:Sn:_n:new RegExp("(pda|"+xn+")","i").test(e)?ei:new RegExp(wn,"i").test(e)&&!new RegExp(wn+" pc","i").test(e)?ti:""},gi="https?://(.*)",mi=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],vi=nt(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],mi),bi="<masked>",yi=["li_fat_id"];function xi(e,t,r){if(!O)return{};var n,i=t?nt([],mi,r||[]):[],a=ki(zr(O.URL,i,bi),e),o=(n={},tt(yi,function(e){var t=Hr.q(e);n[e]=t||null}),n);return rt(o,a)}function ki(e,t){var r=vi.concat(t||[]),n={};return tt(r,function(t){var r=Pr(e,t);n[t]=r||null}),n}function _i(e){var t,r=(t=e)?0===t.search(gi+"google.([^/?]*)")?"google":0===t.search(gi+"bing.com")?"bing":0===t.search(gi+"yahoo.com")?"yahoo":0===t.search(gi+"duckduckgo.com")?"duckduckgo":null:null,n="yahoo"!=r?"q":"p",i={};if(!se(r)){i.$search_engine=r;var a=O?Pr(O.referrer,n):"";a.length&&(i.ph_keyword=a)}return i}function wi(){return navigator.language||navigator.userLanguage}function Si(){return(null==O?void 0:O.referrer)||"$direct"}function Ci(e,t){var r=e?nt([],mi,t||[]):[],n=null==I?void 0:I.href.substring(0,1e3);return{r:Si().substring(0,1e3),u:n?zr(n,r,bi):void 0}}function Pi(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=Cr(r))?void 0:t.host};if(n){i.$current_url=n;var a=Cr(n);i.$host=null==a?void 0:a.host,i.$pathname=null==a?void 0:a.pathname;var o=ki(n);rt(i,o)}if(r){var s=_i(r);rt(i,s)}return i}function zi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(_r){return}}function Ei(){try{return(new Date).getTimezoneOffset()}catch(_r){return}}var Ti=Ke("[Web Vitals]"),ji=9e5;class Ri{constructor(e){var t;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>B({},e,{["$web_vitals_"+t.name+"_event"]:B({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(ie(r))Ti.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Tt();ie(n)||(le(null==e?void 0:e.name)||le(null==e?void 0:e.value)?Ti.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?Ti.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),ie(this.N.url)&&(this.N.url=n),this.N.firstMetricTimestamp=ie(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(B({},e,{$current_url:n,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var e,t,r,n,i=F.__PosthogExtensions__;ie(i)||ie(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:r,onINP:n}=i.postHogWebVitalsCallbacks),e&&t&&r&&n?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.Pt.bind(this)),this.P=!0):Ti.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.Et=!(null==(t=this._instance.persistence)||!t.props[xt]),this.startIfEnabled()}get allowedMetrics(){var e,t,r=re(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return ie(r)?(null==(t=this._instance.persistence)?void 0:t.props[_t])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=re(this._instance.config.capture_performance)&&ce(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:ji;return 0<e&&e<=6e4?ji:e}get isEnabled(){var e=null==I?void 0:I.protocol;if("http:"!==e&&"https:"!==e)return Ti.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:ue(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return ue(t)?t:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(Ti.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=re(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=re(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[xt]:t}),this._instance.persistence.register({[_t]:r})),this.Et=t,this.startIfEnabled()}it(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"web-vitals",t=>{t?Ti.error("failed to load script",t):e()})}Tt(){var e=P?P.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,n=t?nt([],mi,r||[]):[];return zr(e,n,bi)}Ti.error("Could not determine current URL")}}var Oi=Ke("[Heatmaps]");function Ii(e){return re(e)&&"clientX"in e&&"clientY"in e&&ce(e.clientX)&&ce(e.clientY)}class Ai{constructor(e){var t;this.rageclicks=new kr,this.Et=!1,this.P=!1,this.It=null,this.instance=e,this.Et=!(null==(t=this.instance.persistence)||!t.props[mt])}get flushIntervalMilliseconds(){var e=5e3;return re(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return ie(this.instance.config.capture_heatmaps)?ie(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;Oi.info("starting..."),this.Ct(),this.Ot()}else{var e;clearInterval(null!==(e=this.It)&&void 0!==e?e:void 0),this.Ft(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[mt]:t}),this.Et=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}Mt(e){this.At(e.originalEvent,"deadclick")}Ot(){this.It&&clearInterval(this.It),this.It="visible"===(null==O?void 0:O.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ct(){P&&O&&(this.jt=this.Dt.bind(this),dt(P,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==P?void 0:P.event)),dt(O,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==P?void 0:P.event)),dt(O,"mousemove",this.Nt,{capture:!0}),this.zt=new nn(this.instance,tn,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ot.bind(this),dt(O,"visibilitychange",this.Ht),this.P=!0)}Ft(){var e;P&&O&&(this.jt&&P.removeEventListener("beforeunload",this.jt),this.Lt&&O.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&O.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&O.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),null==(e=this.zt)||e.stop(),this.P=!1)}qt(e,t){var r=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),a=function(e,t,r){for(var n=e;n&&Ut(n)&&!qt(n,"body");){if(n===r)return!1;if(Y(t,null==P?void 0:P.getComputedStyle(n).position))return!0;n=nr(n)}return!1}(er(e),["fixed","sticky"],i);return{x:e.clientX+(a?0:n),y:e.clientY+(a?0:r),target_fixed:a,type:t}}At(e,t){var r;if(void 0===t&&(t="click"),!Vt(e.target)&&Ii(e)){var n=this.qt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(B({},n,{type:"rageclick"})),this.Wt(n)}}Ut(e){!Vt(e.target)&&Ii(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(P){var t=P.location.href,r=this.instance.config.mask_personal_data_properties,n=this.instance.config.custom_personal_data_properties,i=r?nt([],mi,n||[]):[],a=zr(t,i,bi);this.N=this.N||{},this.N[a]||(this.N[a]=[]),this.N[a].push(e)}}Dt(){this.N&&!ne(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Di{constructor(e){this._instance=e}doPageView(e,t){var r,n=this.Gt(e,t);return this.Vt={pathname:null!==(r=null==P?void 0:P.location.pathname)&&void 0!==r?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.Gt(e,null==(t=this.Vt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Vt)?void 0:e.pageViewId}}Gt(e,t){var r=this.Vt;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:a,lastScrollY:o,maxScrollY:s,maxContentHeight:l,lastContentY:c,maxContentY:u}=i;if(!(ie(a)||ie(o)||ie(s)||ie(l)||ie(c)||ie(u))){a=Math.ceil(a),o=Math.ceil(o),s=Math.ceil(s),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=a<=1?1:be(o/a,0,1,Qe),p=a<=1?1:be(s/a,0,1,Qe),f=l<=1?1:be(c/l,0,1,Qe),h=l<=1?1:be(u/l,0,1,Qe);n=rt(n,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:f,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:h})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var Mi=Uint8Array,Li=Uint16Array,Fi=Uint32Array,Ni=new Mi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wi=new Mi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),$i=new Mi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bi=function(e,t){for(var r=new Li(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Fi(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Hi=Bi(Ni,2),Vi=Hi[0],Ui=Hi[1];Vi[28]=258,Ui[258]=28;for(var qi=Bi(Wi,0)[1],Yi=new Li(32768),Gi=0;Gi<32768;++Gi){var Qi=(43690&Gi)>>>1|(21845&Gi)<<1;Qi=(61680&(Qi=(52428&Qi)>>>2|(13107&Qi)<<2))>>>4|(3855&Qi)<<4,Yi[Gi]=((65280&Qi)>>>8|(255&Qi)<<8)>>>1}var Ki=function(e,t,r){for(var n=e.length,i=0,a=new Li(t);i<n;++i)++a[e[i]-1];var o,s=new Li(t);for(i=0;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;for(o=new Li(n),i=0;i<n;++i)o[i]=Yi[s[e[i]-1]++]>>>15-e[i];return o},Xi=new Mi(288);for(Gi=0;Gi<144;++Gi)Xi[Gi]=8;for(Gi=144;Gi<256;++Gi)Xi[Gi]=9;for(Gi=256;Gi<280;++Gi)Xi[Gi]=7;for(Gi=280;Gi<288;++Gi)Xi[Gi]=8;var Zi=new Mi(32);for(Gi=0;Gi<32;++Gi)Zi[Gi]=5;var Ji=Ki(Xi,9),ea=Ki(Zi,5),ta=function(e){return(e/8|0)+(7&e&&1)},ra=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof Li?Li:e instanceof Fi?Fi:Mi)(r-t);return n.set(e.subarray(t,r)),n},na=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},ia=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},aa=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return[new Mi(0),0];if(1==i){var o=new Mi(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,d=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[d].f?c++:d++],l=r[c!=u&&r[c].f<r[d].f?c++:d++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};var p=a[0].s;for(n=1;n<i;++n)a[n].s>p&&(p=a[n].s);var f=new Li(p+1),h=oa(r[u-1],f,0);if(h>t){n=0;var g=0,m=h-t,v=1<<m;for(a.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});n<i;++n){var b=a[n].s;if(!(f[b]>t))break;g+=v-(1<<h-f[b]),f[b]=t}for(g>>>=m;g>0;){var y=a[n].s;f[y]<t?g-=1<<t-f[y]++-1:++n}for(;n>=0&&g;--n){var x=a[n].s;f[x]==t&&(--f[x],++g)}h=t}return[new Mi(f),h]},oa=function(e,t,r){return-1==e.s?Math.max(oa(e.l,t,r+1),oa(e.r,t,r+1)):t[e.s]=r},sa=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Li(++t),n=0,i=e[0],a=1,o=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[r.subarray(0,n),t]},la=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},ca=function(e,t,r){var n=r.length,i=ta(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<n;++a)e[i+a+4]=r[a];return 8*(i+4+n)},ua=function(e,t,r,n,i,a,o,s,l,c,u){na(t,u++,r),++i[256];for(var d=aa(i,15),p=d[0],f=d[1],h=aa(a,15),g=h[0],m=h[1],v=sa(p),b=v[0],y=v[1],x=sa(g),k=x[0],_=x[1],w=new Li(19),S=0;S<b.length;++S)w[31&b[S]]++;for(S=0;S<k.length;++S)w[31&k[S]]++;for(var C=aa(w,7),P=C[0],z=C[1],E=19;E>4&&!P[$i[E-1]];--E);var T,j,R,O,I=c+5<<3,A=la(i,Xi)+la(a,Zi)+o,D=la(i,p)+la(a,g)+o+14+3*E+la(w,P)+(2*w[16]+3*w[17]+7*w[18]);if(I<=A&&I<=D)return ca(t,u,e.subarray(l,l+c));if(na(t,u,1+(D<A)),u+=2,D<A){T=Ki(p,f),j=p,R=Ki(g,m),O=g;var M=Ki(P,z);for(na(t,u,y-257),na(t,u+5,_-1),na(t,u+10,E-4),u+=14,S=0;S<E;++S)na(t,u+3*S,P[$i[S]]);u+=3*E;for(var L=[b,k],F=0;F<2;++F){var N=L[F];for(S=0;S<N.length;++S){var W=31&N[S];na(t,u,M[W]),u+=P[W],W>15&&(na(t,u,N[S]>>>5&127),u+=N[S]>>>12)}}}else T=Ji,j=Xi,R=ea,O=Zi;for(S=0;S<s;++S)if(n[S]>255){W=n[S]>>>18&31,ia(t,u,T[W+257]),u+=j[W+257],W>7&&(na(t,u,n[S]>>>23&31),u+=Ni[W]);var $=31&n[S];ia(t,u,R[$]),u+=O[$],$>3&&(ia(t,u,n[S]>>>5&8191),u+=Wi[$])}else ia(t,u,T[n[S]]),u+=j[n[S]];return ia(t,u,T[256]),u+j[256]},da=new Fi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pa=function(){for(var e=new Fi(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),fa=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};var ha=!!D||!!A,ga="text/plain",ma=function(e,t,r){var n;void 0===r&&(r=!0);var[i,a]=e.split("?"),o=B({},t),s=null!==(n=null==a?void 0:a.split("&").map(e=>{var t,[n,i]=e.split("="),a=r&&null!==(t=o[n])&&void 0!==t?t:i;return delete o[n],n+"="+a}))&&void 0!==n?n:[],l=function(e,t){var r,n;void 0===t&&(t="&");var i=[];return tt(e,function(e,t){ie(e)||ie(t)||"undefined"===t||(r=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r)}),i.join(t)}(o);return l&&s.push(l),i+"?"+s.join("&")},va=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),ba=e=>{var t,{data:r,compression:n}=e;if(r){if(n===Sr.GZipJS){var i=function(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=pa[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var i,a=function(e,t,r){return function(e,t,r,n){var i=e.length,a=new Mi(n+i+5*(1+Math.floor(i/7e3))+8),o=a.subarray(n,a.length-8),s=0;if(!t||i<8)for(var l=0;l<=i;l+=65535){var c=l+65535;c<i?s=ca(o,s,e.subarray(l,c)):(o[l]=!0,s=ca(o,s,e.subarray(l,i)))}else{for(var u=da[t-1],d=u>>>13,p=8191&u,f=(1<<r)-1,h=new Li(32768),g=new Li(f+1),m=Math.ceil(r/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&f},y=new Fi(25e3),x=new Li(288),k=new Li(32),_=0,w=0,S=(l=0,0),C=0,P=0;l<i;++l){var z=b(l),E=32767&l,T=g[z];if(h[E]=T,g[z]=E,C<=l){var j=i-l;if((_>7e3||S>24576)&&j>423){s=ua(e,o,0,y,x,k,w,S,P,l-P,s),S=_=w=0,P=l;for(var R=0;R<286;++R)x[R]=0;for(R=0;R<30;++R)k[R]=0}var O=2,I=0,A=p,D=E-T&32767;if(j>2&&z==b(l-D))for(var M=Math.min(d,j)-1,L=Math.min(32767,l),F=Math.min(258,j);D<=L&&--A&&E!=T;){if(e[l+O]==e[l+O-D]){for(var N=0;N<F&&e[l+N]==e[l+N-D];++N);if(N>O){if(O=N,I=D,N>M)break;var W=Math.min(D,N-2),$=0;for(R=0;R<W;++R){var B=l-D+R+32768&32767,H=B-h[B]+32768&32767;H>$&&($=H,T=B)}}}D+=(E=T)-(T=h[E])+32768&32767}if(I){y[S++]=268435456|Ui[O]<<18|qi[I];var V=31&Ui[O],U=31&qi[I];w+=Ni[V]+Wi[U],++x[257+V],++k[U],C=l+O,++_}else y[S++]=e[l],++x[e[l]]}}s=ua(e,o,!0,y,x,k,w,S,P,l-P,s)}return ra(a,0,n+ta(s)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r)}(e,t,10+((i=t).filename&&i.filename.length+1||0)),o=a.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&fa(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(a,t),fa(a,o-8,r.d()),fa(a,o-4,n),a}(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Mi(e.length+(e.length>>>1)),n=0,i=function(e){r[n++]=e},a=0;a<t;++a){if(n+5>r.length){var o=new Mi(n+8+(t-a<<1));o.set(r),r=o}var s=e.charCodeAt(a);s<128?i(s):s<2048?(i(192|s>>>6),i(128|63&s)):s>55295&&s<57344?(i(240|(s=65536+(1047552&s)|1023&e.charCodeAt(++a))>>>18),i(128|s>>>12&63),i(128|s>>>6&63),i(128|63&s)):(i(224|s>>>12),i(128|s>>>6&63),i(128|63&s))}return ra(r,0,n)}(va(r)),{mtime:0}),a=new Blob([i],{type:ga});return{contentType:ga,body:a,estimatedSize:a.size}}if(n===Sr.Base64){var o=function(e){var t,r,n,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,r,n,i,a="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var o=e.charCodeAt(i),s=null;o<128?r++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),se(s)||(r>t&&(a+=e.substring(t,r)),a+=s,t=r=i+1)}return r>t&&(a+=e.substring(t,e.length)),a}(e);do{t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=a>>12&63,n=a>>6&63,i=63&a,u[l++]=o.charAt(t)+o.charAt(r)+o.charAt(n)+o.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(va(r)),s=(t=o,"data="+encodeURIComponent("string"==typeof t?t:va(t)));return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=va(r);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},ya=[];A&&ya.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:a}=null!==(t=ba(e))&&void 0!==t?t:{},o=new Headers;tt(e.headers,function(e,t){o.append(t,e)}),n&&o.append("Content-Type",n);var s=e.url,l=null;if(M){var c=new M;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}A(s,B({method:(null==e?void 0:e.method)||"GET",headers:o,keepalive:"POST"===e.method&&(a||0)<52428.8,body:i,signal:null==(r=l)?void 0:r.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(i){Qe.error(i)}null==e.callback||e.callback(n)})).catch(t=>{Qe.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),D&&ya.push({transport:"XHR",method:e=>{var t,r=new D;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=null!==(t=ba(e))&&void 0!==t?t:{};tt(e.headers,function(e,t){r.setRequestHeader(t,e)}),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(n){}null==e.callback||e.callback(t)}},r.send(i)}}),null!=R&&R.sendBeacon&&ya.push({transport:"sendBeacon",method:e=>{var t=ma(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=null!==(r=ba(e))&&void 0!==r?r:{},a="string"==typeof i?new Blob([i],{type:n}):i;R.sendBeacon(t,a)}catch(o){}}});var xa=function(e,t){if(!function(){return!0}())return!1;try{return new RegExp(t).test(e)}catch(r){return!1}};function ka(e,t,r){return va({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var _a={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>xa(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!xa(t,e))),icontains:(e,t)=>t.map(wa).some(t=>e.map(wa).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(wa).every(t=>e.map(wa).every(e=>!t.includes(e)))},wa=e=>e.toLowerCase(),Sa=Ke("[Error tracking]");class Ca{constructor(e){var t,r;this.Jt=[],this.Kt=new Me([new Le,new Ye,new Ne,new Fe,new Ue,new Ve,new $e,new qe],[Re,Ae]),this._instance=e,this.Jt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(bt))&&void 0!==t?t:[]}onRemoteConfig(e){var t,r,n,i=null!==(t=null==(r=e.errorTracking)?void 0:r.suppressionRules)&&void 0!==t?t:[],a=null==(n=e.errorTracking)?void 0:n.captureExtensionExceptions;this.Jt=i,this._instance.persistence&&this._instance.persistence.register({[bt]:this.Jt,[yt]:a})}get Yt(){var e,t=!!this._instance.get_property(yt),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.Kt.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.Xt(t)){if(this.Qt(t))return void Sa.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void Sa.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void Sa.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:r,value:n}=t;return ae(r)&&r.length>0&&e.$exception_types.push(r),ae(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.Jt.some(e=>{var r=e.values.map(e=>{var r,n=_a[e.operator],i=ee(e.value)?e.value:[e.value],a=null!==(r=t[e.key])&&void 0!==r?r:[];return i.length>0&&n(i,a)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}Zt(e){return e.flatMap(e=>{var t,r;return null!==(t=null==(r=e.stacktrace)?void 0:r.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ti(e){if(e.length>0){var t,r,n,i,a=null!==(t=null==(r=e[0].stacktrace)?void 0:r.frames)&&void 0!==t?t:[],o=a[a.length-1];return null!==(n=null==o||null==(i=o.filename)?void 0:i.includes("posthog.com/static"))&&void 0!==n&&n}return!1}Xt(e){return!le(e)&&ee(e)}}var Pa=Ke("[FeatureFlags]"),za="$active_feature_flags",Ea="$override_feature_flags",Ta="$feature_flag_payloads",ja="$override_feature_flag_payloads",Ra="$feature_flag_request_id",Oa=e=>{var t={};for(var[r,n]of it(e||{}))n&&(t[r]=n);return t},Ia=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class Aa{constructor(e){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=e,this.featureFlagEventHandlers=[]}li(){var e=this._instance.config.evaluation_environments;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||Pa.error("Invalid evaluation environment found:",e,"Expected non-empty string"),t}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var e=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:e})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(Et),t=this._instance.get_property(Ea),r=this._instance.get_property(ja);if(!r&&!t)return e||{};var n=rt({},e||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])];for(var a of i){var o,s,l=n[a],c=null==t?void 0:t[a],u=ie(c)?null!==(o=null==l?void 0:l.enabled)&&void 0!==o&&o:!!c,d=ie(c)?l.variant:"string"==typeof c?c:void 0,p=null==r?void 0:r[a],f=B({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(f.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(f.original_variant=null==l?void 0:l.variant),p&&(f.metadata=B({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),n[a]=f}return this.ii||(Pa.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.ii=!0),n}getFlagVariants(){var e=this._instance.get_property(Pt),t=this._instance.get_property(Ea);if(!t)return e||{};for(var r=rt({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(Pa.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var e=this._instance.get_property(Ta),t=this._instance.get_property(ja);if(!t)return e||{};for(var r=rt({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(Pa.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.ii=!0),r}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.si=e}di(e){var t;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:B({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(Tt)||{}),group_properties:this._instance.get_property(jt)};(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.ui()&&(r.evaluation_environments=this.li());var n=this._instance.config.__preview_remote_config,i=n?"/flags/?v=2":"/flags/?v=2&config=true",a=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",o=this._instance.requestRouter.endpointFor("api",i+a);n&&(r.timezone=zi()),this.ri=!0,this._instance.ci({method:"POST",url:o,data:r,compression:this._instance.config.disable_compression?void 0:Sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,n,i=!0;if(200===e.statusCode&&(this.ni||(this.$anon_distinct_id=void 0),i=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi(null!==(n=e.json)&&void 0!==n?n:{})),!r.disable_flags||this.ni)if(this.ai=!i,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(Ia.FeatureFlags))Pa.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var a;r.disable_flags||this.receivedFeatureFlags(null!==(a=e.json)&&void 0!==a?a:{},i),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[e],n=""+r,i=this._instance.get_property(Ra)||void 0,a=this._instance.get_property(It)||{};if((t.send_event||!("send_event"in t))&&(!(e in a)||!a[e].includes(n))){var o,s,l,c,u,d,p,f,h;ee(a[e])?a[e].push(n):a[e]=[n],null==(o=this._instance.persistence)||o.register({[It]:a});var g=this.getFeatureFlagDetails(e),m={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(e)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:(null==(s=this._instance.config.bootstrap)||null==(s=s.featureFlags)?void 0:s[e])||null,$feature_flag_bootstrapped_payload:(null==(l=this._instance.config.bootstrap)||null==(l=l.featureFlagPayloads)?void 0:l[e])||null,$used_bootstrap_value:!this.ai};ie(null==g||null==(c=g.metadata)?void 0:c.version)||(m.$feature_flag_version=g.metadata.version);var v,b=null!==(u=null==g||null==(d=g.reason)?void 0:d.description)&&void 0!==u?u:null==g||null==(p=g.reason)?void 0:p.code;b&&(m.$feature_flag_reason=b),null!=g&&null!=(f=g.metadata)&&f.id&&(m.$feature_flag_id=g.metadata.id),ie(null==g?void 0:g.original_variant)&&ie(null==g?void 0:g.original_enabled)||(m.$feature_flag_original_response=ie(g.original_variant)?g.original_enabled:g.original_variant),null!=g&&null!=(h=g.metadata)&&h.original_payload&&(m.$feature_flag_original_payload=null==g||null==(v=g.metadata)?void 0:v.original_payload),this._instance.capture("$feature_flag_called",m)}return r}Pa.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.ui()&&(n.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:n,compression:this._instance.config.disable_compression?void 0:Sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:r=>{var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return ie(r)?void 0:!!r}Pa.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ei=!0;var r=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,r,n,i){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var a=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(e=>{var r;return[e,null!==(r=t[e].variant)&&void 0!==r?r:t[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(e=>t[e].enabled).filter(e=>{var r;return null==(r=t[e].metadata)?void 0:r.payload}).map(e=>{var r;return[e,null==(r=t[e].metadata)?void 0:r.payload]}))):Pa.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e})(e),o=a.flags,s=a.featureFlags,l=a.featureFlagPayloads;if(s){var c=e.requestId;if(ee(s)){Pa.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var u={};if(s)for(var d=0;d<s.length;d++)u[s[d]]=!0;t&&t.register({[za]:s,[Pt]:u})}else{var p=s,f=l,h=o;e.errorsWhileComputingFlags&&(p=B({},r,p),f=B({},n,f),h=B({},i,h)),t&&t.register(B({[za]:Object.keys(Oa(p)),[Pt]:p||{},[Ta]:f||{},[Et]:h||{}},c?{[Ra]:c}:{}))}}}(e,this._instance.persistence,r,n,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),Pa.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return Pa.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(Ea),this._instance.persistence.unregister(ja),void this.pi();if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;if(this.ii=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t),"flags"in r)if(!1===r.flags)this._instance.persistence.unregister(Ea);else if(r.flags)if(ee(r.flags)){for(var n={},i=0;i<r.flags.length;i++)n[r.flags[i]]=!0;this._instance.persistence.register({[Ea]:n})}else this._instance.persistence.register({[Ea]:r.flags});return"payloads"in r&&(!1===r.payloads?this._instance.persistence.unregister(ja):r.payloads&&this._instance.persistence.register({[ja]:r.payloads})),void this.pi()}this.pi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ei){var{flags:t,flagVariants:r}=this.gi();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(zt)||[]).find(t=>t.flagKey===e),a={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:a};i&&(o.$early_access_feature_name=i.name),r&&(o.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(a,!1);var s=B({},this.getFlagVariants(),{[e]:t});null==(n=this._instance.persistence)||n.register({[za]:Object.keys(Oa(s)),[Pt]:s}),this.pi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(zt),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this._instance.persistence)||r.unregister(zt),null==(n=this._instance.persistence)||n.register({[zt]:i}),e(i)}}})}gi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}pi(e){var{flags:t,flagVariants:r}=this.gi();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Tt)||{};this._instance.register({[Tt]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Tt)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(jt)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=B({},r[t],e[t]),delete e[t]}),this._instance.register({[jt]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(jt)||{};this._instance.register({[jt]:B({},t,{[e]:{}})})}else this._instance.unregister(jt)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var Da=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Ma{constructor(e,t){var r,n;this.C=e,this.props={},this.mi=!1,this.yi=(n="",(r=e).token&&(n=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+n+"_posthog"),this.Y=this.bi(e),this.load(),e.debug&&Qe.info("Persistence loaded",e.persistence,B({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===Da.indexOf(e.persistence.toLowerCase())&&(Qe.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Ur.H()?Ur:"localstorage+cookie"===t&&Yr.H()?Yr:"sessionstorage"===t&&Xr.H()?Xr:"memory"===t?Qr:"cookie"===t?Hr:Yr.H()?Yr:Hr}properties(){var e={};return tt(this.props,function(t,r){if(r===Pt&&re(t))for(var n=Object.keys(t),i=0;i<n.length;i++)e["$feature/"+n[i]]=t[n[i]];else o=r,s=!1,(se(a=Ht)?s:j&&a.indexOf===j?-1!=a.indexOf(o):(tt(a,function(e){if(s||(s=e===o))return Je}),s))||(e[r]=t);var a,o,s}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=rt({},e))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.C.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(re(e)){ie(t)&&(t="None"),this.xi=ie(r)?this.$i:r;var n=!1;if(tt(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e,n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(re(e)){this.xi=ie(t)?this.$i:t;var r=!1;if(tt(e,(t,n)=>{e.hasOwnProperty(n)&&this.props[n]!==t&&(this.props[n]=t,r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.mi){var e=xi(this.C.custom_campaign_params,this.C.mask_personal_data_properties,this.C.custom_personal_data_properties);ne(st(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==O?void 0:O.referrer)?_i(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Si(),$referring_domain:null!=O&&O.referrer&&(null==(e=Cr(O.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Lt]||this.props[Ft]||this.register_once({[Nt]:Ci(this.C.mask_personal_data_properties,this.C.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};tt([Ft,Lt],t=>{var r=this.props[t];r&&tt(r,function(t,r){e["$initial_"+Q(r)]=t})});var t,r,n=this.props[Nt];if(n){var i=(t=Pi(n),r={},tt(t,function(e,t){r["$initial_"+Q(t)]=e}),r);rt(e,i)}return e}safe_merge(e){return tt(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.$i=this.xi=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.bi(e),i=this.props;this.clear(),this.Y=n,this.props=i,this.save()}}set_disabled(e){this.wi=e,this.wi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Si&&(this.Si=e,this.remove(),this.save())}set_secure(e){e!==this.Ei&&(this.Ei=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[ht]||{};r[e]=t,this.props[ht]=r,this.save()}remove_event_timer(e){var t=(this.props[ht]||{})[e];return ie(t)||(delete this.props[ht][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}!function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({});var La=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});!function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({});var Fa=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),Na=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),Wa=function(e){return e.Popover="popover",e.Inline="inline",e}({});class $a{constructor(){this.ki={},this.ki={}}on(e,t){return this.ki[e]||(this.ki[e]=[]),this.ki[e].push(t),()=>{this.ki[e]=this.ki[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.ki[e]||[])r(t);for(var n of this.ki["*"]||[])n(e,t)}}class Ba{constructor(e){this.Pi=new $a,this.Ti=(e,t)=>this.Ri(e,t)&&this.Ii(e,t)&&this.Ci(e,t),this.Ri=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Oi=new Set,this.Fi=new Set}init(){var e,t;ie(null==(e=this._instance)?void 0:e.Mi)||null==(t=this._instance)||t.Mi((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!ie(null==(t=this._instance)?void 0:t.Mi)&&(e.forEach(e=>{var t,r;null==(t=this.Fi)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Oi)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.Oi.has(e)||this.Oi.has(null==t?void 0:t.event))&&this.Fi&&(null==(r=this.Fi)?void 0:r.size)>0&&this.Fi.forEach(e=>{this.Ai(t,e)&&this.Pi.emit("actionCaptured",e.name)})}Di(e){this.onAction("actionCaptured",t=>e(t))}Ai(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Ti(e,r))return!0;return!1}onAction(e,t){return this.Pi.on(e,t)}Ii(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!Ba.ji(n,null==t?void 0:t.url,(null==t?void 0:t.url_matching)||"contains"))return!1}return!0}static ji(e,t,r){switch(r){case"regex":return!!P&&xa(e,t);case"exact":return t===e;case"contains":var n=Ba.Li(t).replace(/_/g,".").replace(/%/g,".*");return xa(e,n);default:return!1}}static Li(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ci(e,t){if((null!=t&&t.href||null!=t&&t.tag_name||null!=t&&t.text)&&!this.Ni(e).some(e=>!(null!=t&&t.href&&!Ba.ji(e.href||"",null==t?void 0:t.href,(null==t?void 0:t.href_matching)||"exact")||null!=t&&t.tag_name&&e.tag_name!==(null==t?void 0:t.tag_name)||null!=t&&t.text&&!Ba.ji(e.text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact")&&!Ba.ji(e.$el_text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact"))))return!1;if(null!=t&&t.selector){var r,n=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(!n)return!1;if(!n.includes(null==t?void 0:t.selector))return!1}return!0}Ni(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}var Ha=Ke("[Surveys]"),Va="seenSurvey_",Ua=(e,t)=>{var r="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(r="$survey_"+t+"/"+e.id+"/"+e.current_iteration),r},qa=e=>{var t=""+Va+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Va+e.id+"_"+e.current_iteration),t},Ya=[La.Popover,La.Widget,La.API],Ga={ignoreConditions:!1,ignoreDelay:!1,displayType:Wa.Popover};class Qa{constructor(e){this._instance=e,this.Ui=new Map,this.zi=new Map}register(e){var t;ie(null==(t=this._instance)?void 0:t.Mi)||(this.Hi(e),this.Bi(e))}Bi(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.qi&&(this.qi=new Ba(this._instance),this.qi.init(),this.qi.Di(e=>{this.onAction(e)})),t.forEach(e=>{var t,r,n,i,a;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.qi)||i.register(e.conditions.actions.values),null==(a=e.conditions)||null==(a=a.actions)||null==(a=a.values)||a.forEach(t=>{if(t&&t.name){var r=this.zi.get(t.name);r&&r.push(e.id),this.zi.set(t.name,r||[e.id])}}))}))}Hi(e){var t;0!==e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}).length&&(null==(t=this._instance)||t.Mi((e,t)=>{this.onEvent(e,t)}),e.forEach(e=>{var t;null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||t.forEach(t=>{if(t&&t.name){var r=this.Ui.get(t.name);r&&r.push(e.id),this.Ui.set(t.name,r||[e.id])}})}))}onEvent(e,t){var r,n,i=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[Ot])||[];if(Fa.SHOWN===e&&t&&i.length>0){var a;Ha.info("survey event matched, removing survey from activated surveys",{event:e,eventPayload:t,existingActivatedSurveys:i});var o=null==t||null==(a=t.properties)?void 0:a.$survey_id;if(o){var s=i.indexOf(o);s>=0&&(i.splice(s,1),this.Wi(i))}}else if(this.Ui.has(e)){Ha.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Ui.get(e)});var l=[];null==(n=this._instance)||n.getSurveys(t=>{l=t.filter(t=>{var r;return null==(r=this.Ui.get(e))?void 0:r.includes(t.id)})});var c=l.filter(r=>{var n,i=null==(n=r.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.find(t=>t.name===e);return!!i&&(!i.propertyFilters||Object.entries(i.propertyFilters).every(e=>{var r,[n,i]=e,a=null==t||null==(r=t.properties)?void 0:r[n];if(ie(a)||se(a))return!1;var o=[String(a)],s=_a[i.operator];return s?s(i.values,o):(Ha.warn("Unknown property comparison operator: "+i.operator),!1)}))});this.Wi(i.concat(c.map(e=>e.id)||[]))}}onAction(e){var t,r=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[Ot])||[];this.zi.has(e)&&this.Wi(r.concat(this.zi.get(e)||[]))}Wi(e){var t;Ha.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[Ot]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[Ot])||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class Ka{constructor(e){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(le(t))return Ha.warn("Flags not loaded yet. Not loading surveys.");var r=ee(t);this.Vi=r?t.length>0:t,Ha.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(Va)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)Ha.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ha.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Ha.info("Not loading surveys in cookieless mode without consent.");else{var e=null==F?void 0:F.__PosthogExtensions__;if(e){if(!ie(this.Vi)||this._instance.config.advanced_enable_surveys){var t=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var r=e.generateSurveys;if(r)return void this.Xi(r,t);var n=e.loadExternalDependency;if(!n)return void this.Qi("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.Qi("Could not load surveys script",r):this.Xi(e.generateSurveys,t)})}catch(i){throw this.Qi("Error initializing surveys",i),i}finally{this.Ki=!1}}}else Ha.error("PostHog Extensions not found.")}}Xi(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Qa(this._instance),Ha.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(e,t){Ha.error(e,t),this.Zi({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Yi.push(e),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Ha.info("Disabled. Not loading surveys."),e([]);var r=this._instance.get_property(Rt);if(r&&!t)return e(r,{isLoaded:!0});if(this.Ji)return e([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var r;this.Ji=!1;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;return Ha.error(i),e([],{isLoaded:!1,error:i})}var a,o=t.json.surveys||[],s=o.filter(e=>{return!(!(t=e).start_date||t.end_date)&&(function(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e));var t});return s.length>0&&(null==(a=this._surveyEventReceiver)||a.register(s)),null==(r=this._instance.persistence)||r.register({[Rt]:o}),e(o,{isLoaded:!0})}})}catch(n){throw this.Ji=!1,n}}Zi(e){for(var t of this.Yi)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(r){Ha.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!le(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Ha.warn("init was not called")}te(e){var t=null;return this.getSurveys(r=>{var n;t=null!==(n=r.find(t=>t.id===e))&&void 0!==n?n:null}),t}ie(e){if(le(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.te(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(le(this._surveyManager))return Ha.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.ie(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return le(this._surveyManager)?(Ha.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!==(n=t.find(t=>t.id===e))&&void 0!==n?n:null;if(i){var a=this.ie(i);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t){var r;if(le(this._surveyManager))Ha.warn("init was not called");else{var n="string"==typeof e?this.te(e):e;if(null!=n&&n.id)if(Ya.includes(n.type)){var i=null==O?void 0:O.querySelector(t);if(i)return null!=(r=n.appearance)&&r.surveyPopupDelaySeconds?(Ha.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Ha.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,i),Ha.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i);Ha.warn("Survey element not found")}else Ha.warn("Surveys of type "+n.type+" cannot be rendered in the app");else Ha.warn("Survey not found")}}displaySurvey(e,t){var r;if(le(this._surveyManager))Ha.warn("init was not called");else{var n=this.te(e);if(n){var i=n;if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=B({},n,{appearance:B({},n.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var a=this.canRenderSurvey(n);if(!a.visible)return void Ha.warn("Survey is not eligible to be displayed: ",a.disabledReason)}t.displayType!==Wa.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else Ha.warn("Survey not found")}}}var Xa=Ke("[RateLimiter]");class Za{constructor(e){var t,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{Xa.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(r){return void Xa.warn('could not rate limit - continuing. Error: "'+(null==r?void 0:r.message)+'"',{text:t})}},this.instance=e,this.captureEventsPerSecond=(null==(t=e.config.rate_limiting)?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(r=e.config.rate_limiting)?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(e){var t,r,n;void 0===e&&(e=!1);var i=(new Date).getTime(),a=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property(Mt))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:i};a.tokens+=(i-a.last)/1e3*this.captureEventsPerSecond,a.last=i,a.tokens>this.captureEventsBurstLimit&&(a.tokens=this.captureEventsBurstLimit);var o=a.tokens<1;return o||e||(a.tokens=Math.max(0,a.tokens-1)),!o||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,null==(n=this.instance.persistence)||n.set_property(Mt,a),{isRateLimited:o,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var Ja=Ke("[RemoteConfig]");class eo{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=F._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ee(e){var t,r;null!=(t=F.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(Ja.error("PostHog Extensions not found. Cannot load remote config."),e())}re(e){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return Ja.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void Ja.warn("Remote config is disabled. Falling back to local config.");this.ee(e=>{if(!e)return Ja.info("No config found after loading remote JS config. Falling back to JSON."),void this.re(e=>{this.fi(e)});this.fi(e)})}catch(_r){Ja.error("Error loading remote config",_r)}}fi(e){e?this._instance.config.__preview_remote_config?(this._instance.fi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):Ja.info("__preview_remote_config is disabled. Logging config instead",e):Ja.error("Failed to fetch remote config from PostHog.")}}var to=3e3;class ro{constructor(e,t){this.se=!0,this.ne=[],this.oe=be((null==t?void 0:t.flush_interval_ms)||to,250,5e3,Qe.createLogger("flush interval"),to),this.ae=e}enqueue(e){this.ne.push(e),this.le||this.ue()}unload(){this.he();var e=this.ne.length>0?this.de():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ae(B({},e,{transport:"sendBeacon"}))})}enable(){this.se=!1,this.ue()}ue(){var e=this;this.se||(this.le=setTimeout(()=>{if(this.he(),this.ne.length>0){var t=this.de(),r=function(){var r=t[n],i=(new Date).getTime();r.data&&ee(r.data)&&tt(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.ae(r)};for(var n in t)r()}},this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var e={};return tt(this.ne,t=>{var r,n=t,i=(n?n.batchKey:null)||n.url;ie(e[i])&&(e[i]=B({},n,{data:[]})),null==(r=e[i].data)||r.push(n.data)}),this.ne=[],e}}var no=["retriesPerformedSoFar"];class io{constructor(e){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=e,this.ne=[],this.fe=!0,!ie(P)&&"onLine"in P.navigator&&(this.fe=P.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},dt(P,"online",this.pe),dt(P,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=H(e,no);ce(t)&&t>0&&(r.url=ma(r.url,{retry_count:t})),this._instance.ci(B({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this._e(B({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}_e(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var r,n,i,a,o,s=(r=t,i=(n=3e3*Math.pow(2,r))/2,a=Math.min(18e5,n),o=(Math.random()-.5)*(a-i),Math.ceil(a+o)),l=Date.now()+s;this.ne.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),Qe.warn(c),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),0===this.ne.length)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout(()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()},this.ce)}Dt(){var e=Date.now(),t=[],r=this.ne.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.ne=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,ie(P)||(this.pe&&(P.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(P.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(B({},e,{transport:"sendBeacon"}))}catch(_r){Qe.error(_r)}this.ne=[]}}class ao{constructor(e){this.be=()=>{var e,t,r,n;this.we||(this.we={});var i=this.scrollElement(),a=this.scrollY(),o=i?Math.max(0,i.scrollHeight-i.clientHeight):0,s=a+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.we.lastScrollY=Math.ceil(a),this.we.maxScrollY=Math.max(a,null!==(e=this.we.maxScrollY)&&void 0!==e?e:0),this.we.maxScrollHeight=Math.max(o,null!==(t=this.we.maxScrollHeight)&&void 0!==t?t:0),this.we.lastContentY=s,this.we.maxContentY=Math.max(s,null!==(r=this.we.maxContentY)&&void 0!==r?r:0),this.we.maxContentHeight=Math.max(l,null!==(n=this.we.maxContentHeight)&&void 0!==n?n:0)},this._instance=e}getContext(){return this.we}resetContext(){var e=this.we;return setTimeout(this.be,0),e}startMeasuringScrollPosition(){dt(P,"scroll",this.be,{capture:!0}),dt(P,"scrollend",this.be,{capture:!0}),dt(P,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==P?void 0:P.document.documentElement;var e=ee(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var t of e){var r=null==P?void 0:P.document.querySelector(t);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return P&&(P.scrollY||P.pageYOffset||P.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return P&&(P.scrollX||P.pageXOffset||P.document.documentElement.scrollLeft)||0}}var oo=e=>Ci(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class so{constructor(e,t,r,n){this.xe=e=>{var t=this.Se();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Ee(this._instance)};this.$e.register({[Dt]:r})}},this._instance=e,this.ke=t,this.$e=r,this.Ee=n||oo,this.ke.onSessionId(this.xe)}Se(){return this.$e.props[Dt]}getSetOnceProps(){var e,t=null==(e=this.Se())?void 0:e.props;return t?"r"in t?Pi(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return tt(st(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+Q(r)]=t}),e}}var lo=Ke("[SessionId]");class co{on(e,t){return this.Pe.on(e,t)}constructor(e,t,r){var n;if(this.Te=[],this.Re=void 0,this.Pe=new $a,this.Ie=(e,t)=>Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.C=e.config,this.$e=e.persistence,this.Ce=void 0,this.Oe=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fe=t||Nr,this.Me=r||Nr;var i=this.C.persistence_name||this.C.token,a=this.C.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*be(a,60,36e3,lo.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+i+"_window_id",this.je="ph_"+i+"_primary_window_exists",this.Le()){var o=Xr.W(this.De),s=Xr.W(this.je);o&&!s?this.Ce=o:Xr.V(this.De),Xr.G(this.je,!0)}if(null!=(n=this.C.bootstrap)&&n.sessionID)try{var l=(()=>{var e=this.C.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Ne(this.C.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){lo.error("Invalid sessionID in bootstrap",c)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ie(this.Te)&&(this.Te=[]),this.Te.push(e),this.Oe&&e(this.Oe,this.Ce),()=>{this.Te=this.Te.filter(t=>t!==e)}}Le(){return"memory"!==this.C.persistence&&!this.$e.wi&&Xr.H()}ze(e){e!==this.Ce&&(this.Ce=e,this.Le()&&Xr.G(this.De,e))}He(){return this.Ce?this.Ce:this.Le()?Xr.W(this.De):null}Ne(e,t,r){e===this.Oe&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.Oe=e,this.$e.register({[St]:[t,e,r]}))}Be(){if(this.Oe&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Oe,this._sessionStartTimestamp];var e=this.$e.props[St];return ee(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Re&&P&&(P.removeEventListener("beforeunload",this.Re,{capture:!1}),this.Re=void 0),this.Te=[]}Ue(){this.Re=()=>{this.Le()&&Xr.V(this.je)},dt(P,"beforeunload",this.Re,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.C.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,a]=this.Be(),o=this.He(),s=ce(a)&&a>0&&Math.abs(r-a)>864e5,l=!1,c=!i,u=!e&&this.Ie(r,n);c||u||s?(i=this.Fe(),o=this.Me(),lo.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),a=r,l=!0):o||(o=this.Me(),l=!0);var d=0===n||!e||s?r:n,p=0===a?(new Date).getTime():a;return this.ze(o),this.Ne(i,d,p),e||this.Ae(),l&&this.Te.forEach(e=>e(i,o,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0)),{sessionId:i,windowId:o,sessionStartTimestamp:p,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:n}}Ae(){clearTimeout(this.qe),this.qe=setTimeout(()=>{var[e]=this.Be();if(this.Ie((new Date).getTime(),e)){var t=this.Oe;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var uo=["$set_once","$set"],po=Ke("[SiteApps]");class fo{constructor(e){this._instance=e,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(e,t){if(t){var r=this.globalsForEvent(t);this.We.push(r),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var e;return null==(e=F._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{e(),this.We=[],this.Ve=void 0}}}globalsForEvent(e){var t,r,n,i,a,o,s;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,p]of Object.entries(u))l[d]={id:c[d],type:d,properties:p};var{$set_once:f,$set:h}=e;return{event:B({},H(e,uo),{properties:B({},e.properties,h?{$set:B({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},h)}:{},f?{$set_once:B({},null!==(n=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==n?n:{},f)}:{}),elements_chain:null!==(a=null==(o=e.properties)?void 0:o.$elements_chain)&&void 0!==a?a:"",distinct_id:null==(s=e.properties)?void 0:s.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this.We.length&&(po.info("Processing "+this.We.length+" events for site app with id "+e.id),this.We.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.Ve)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,po.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var{processEvent:a}=e.init({posthog:this._instance,callback:e=>{i(e)}});a&&(t.processEvent=a),n=!0}catch(o){po.error("Error while initializing PostHog app with config id "+e.id,o),i(!1)}if(n&&t.loaded)try{r()}catch(s){po.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}Je(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}Ke(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var r of Object.values(this.apps))try{null==r.processEvent||r.processEvent(t)}catch(n){po.error("Error while processing event "+e.event+" for site app "+r.id,n)}}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",e=>this.Ke(e))):void po.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.Ve)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var a=function(e){var t;F["__$$ph_site_app_"+e]=i._instance,null==(t=F.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return po.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:s}of e.siteApps)a(o)}else po.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var ho=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&U(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>U(null==e?void 0:e.brand,t)))return!0}catch(i){}return!!e.webdriver},go=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),mo="i.posthog.com";class vo{constructor(e){this.Ye={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+mo,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=go.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=go.EU:this.Ye[this.apiHost]=go.CUSTOM),this.Ye[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if(this.region===go.CUSTOM)return this.apiHost+t;var r=mo+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var bo={icontains:(e,t)=>!!P&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!P&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!P&&xa(t.href,e),not_regex:(e,t)=>!!P&&!xa(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class yo{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{yo.Xe("retrieved web experiments from the server"),t.Qe=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.Qe&&(yo.Xe("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Qe)||r.set(e.feature_flag_key,e));var n=t._instance.getFeatureFlag(e.feature_flag_key);ae(n)&&e.variants[n]&&t.Ze(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var a=e.variants[i];yo.tr(a)&&t.Ze(e.name,i,a.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())yo.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(le(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();yo.Xe("applying feature flags",e),e.forEach(e=>{var t;if(this.Qe&&null!=(t=this.Qe)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.Qe)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Ze(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=yo.getWindowLocation();if(null!=e&&e.search){var t=Pr(null==e?void 0:e.search,"__experiment_id"),r=Pr(null==e?void 0:e.search,"__experiment_variant");t&&r&&(yo.Xe("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.ir(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>{if(200!==t.statusCode||!t.json)return e([]);var r=t.json.experiments||[];return e(r)}})}ir(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(yo.Xe("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Ze(n[0].name,t,n[0].variants[t].transforms))}static tr(e){return!le(e.conditions)&&yo.er(e)&&yo.rr(e)}static er(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,a=yo.getWindowLocation();return!!a&&(null==(r=e.conditions)||!r.url||bo[null!==(n=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url,a))}static getWindowLocation(){return null==P?void 0:P.location}static rr(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.utm))return!0;var r=xi();if(r.utm_source){var n,i,a,o,s,l,c,u,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==r.utm_campaign,p=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==r.utm_source,f=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==r.utm_medium,h=null==(c=e.conditions)||null==(c=c.utm)||!c.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==r.utm_term;return d&&f&&h&&p}return!1}static Xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Qe.info("[WebExperiments] "+e,r)}Ze(e,t,r){this._is_bot()?yo.Xe("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;yo.Xe("applying transform of variant "+t+" for experiment "+e+" ",r);var i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute("style",r.css)})}}):yo.Xe("Control variants leave the page unmodified.")}_is_bot(){return R&&this._instance?ho(R,this._instance.config.custom_blocked_useragents):void 0}}var xo=Ke("[PostHog ExternalIntegrations]"),ko={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class _o{constructor(e){this._instance=e}it(e,t){var r;null==(r=F.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return xo.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,a;!n||null!=(r=F.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(ko[t],()=>{var r;null==(r=F.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=F.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(a=F.__PosthogExtensions__)||null==(a=a.integrations)||null==(a=a[t])||a.stop())};for(var[r,n]of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t(r)}}}var wo="[SessionRecording]",So=Ke(wo);class Co{get started(){var e;return!(null==(e=this.sr)||!e.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=e,!this._instance.sessionManager)throw So.error("started without valid sessionManager"),new Error(wo+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(wo+' cannot be used with cookieless_mode="always"')}get ar(){var e,t=!(null==(e=this._instance.get_property(wt))||!e.enabled),r=!this._instance.config.disable_session_recording,n=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return P&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!this.ar||null==(t=this.sr)||!t.isStarted){var r=!ie(Object.assign)&&!ie(Array.from);this.ar&&r?(this.ur(e),So.info("starting")):this.stopRecording()}}ur(e){var t,r,n;this.ar&&(null!=F&&null!=(t=F.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=F.__PosthogExtensions__)&&r.initSessionRecording?this.hr(e):null==(n=F.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.dr,t=>{if(t)return So.error("could not load recorder",t);this.hr(e)}))}stopRecording(){var e,t;null==(e=this.lr)||e.call(this),this.lr=void 0,null==(t=this.sr)||t.stop()}vr(){var e;null==(e=this._instance.persistence)||e.unregister(Ct)}cr(e){if(this._instance.persistence){var t,r,n=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=null==t?void 0:t.sampleRate,i=le(r)?null:parseFloat(r);le(i)&&this.vr();var a=null==t?void 0:t.minimumDurationMilliseconds;n.register({[wt]:B({enabled:!!t},t,{networkPayloadCapture:B({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:ie(a)?null:a,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.lr)||t.call(this),this.lr=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.cr(e),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:So.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.sr)&&r.log?this.sr.log(e,t):So.warn("log called before recorder was ready")}get dr(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(wt);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}hr(e){var t,r;if(null==(t=F.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=null==(r=F.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(e)}onRRwebEmit(e){var t;null==(t=this.sr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e;null==(e=this.sr)||e.overrideLinkedFlag()}overrideSampling(){var e;null==(e=this.sr)||e.overrideSampling()}overrideTrigger(e){var t;null==(t=this.sr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.sr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.sr)||!r.tryAddCustomEvent(e,t))}}var Po={},zo=()=>{},Eo="posthog",To=!ha&&-1===(null==L?void 0:L.indexOf("MSIE"))&&-1===(null==L?void 0:L.indexOf("Mozilla")),jo=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:ct(null==O?void 0:O.location),persistence:"localStorage+cookie",persistence_name:"",loaded:zo,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:"2025-05-24"!==e||"history_change",capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",debug:I&&ae(null==I?void 0:I.search)&&-1!==I.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==P||null==(t=P.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;Qe.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:to},error_tracking:{},_onCapture:zo,__preview_eager_load_replay:!1}},Ro=e=>{var t={};ie(e.process_person)||(t.person_profiles=e.process_person),ie(e.xhr_headers)||(t.request_headers=e.xhr_headers),ie(e.cookie_name)||(t.persistence_name=e.cookie_name),ie(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),ie(e.store_google)||(t.save_campaign_params=e.store_google),ie(e.verbose)||(t.debug=e.verbose);var r=rt({},t,e);return ee(e.property_blacklist)&&(ie(e.property_denylist)?r.property_denylist=e.property_blacklist:ee(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Qe.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class Oo{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(e){Qe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Io{get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){this.webPerformance=new Oo,this.gr=!1,this.version=N.LIB_VERSION,this._r=new $a,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=jo(),this.SentryIntegration=pn,this.sentryIntegration=e=>{return t=dn(this,e),{name:un,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new Aa(this),this.toolbar=new vn(this),this.scrollManager=new ao(this),this.pageViewManager=new Di(this),this.surveys=new Ka(this),this.experiments=new yo(this),this.exceptions=new Ca(this),this.rateLimiter=new Za(this),this.requestRouter=new vo(this),this.consent=new Jr(this),this.externalIntegrations=new _o(this),this.people={set:(e,t,r)=>{var n=ae(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=ae(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>Qe.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Eo){var n,i=null!==(n=Po[r])&&void 0!==n?n:new Io;return i._init(e,t,r),Po[r]=i,Po[Eo][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n,i;if(void 0===t&&(t={}),ie(e)||oe(e))return Qe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Sr(t.debug),this.Er=t,this.$r=[],t.person_profiles&&(this.br=t.person_profiles),this.set_config(rt({},jo(t.defaults),Ro(t),{name:r,token:e})),this.config.on_xhr_error&&Qe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:Sr.GZipJS;var a=this.kr();this.persistence=new Ma(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ma(B({},this.config,{persistence:"sessionStorage"}),a);var o=B({},this.persistence.props),s=B({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Pr=new ro(e=>this.Tr(e),this.config.request_queue_config),this.Rr=new io(this),this.__request_queue=[];var l="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new co(this),this.sessionPropsManager=new so(this,this.sessionManager,this.persistence)),new yn(this).startIfEnabledOrStop(),this.siteApps=new fo(this),null==(n=this.siteApps)||n.init(),l||(this.sessionRecording=new Co(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Or(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Ai(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new Ri(this),this.exceptionObserver=new on(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new nn(this,rn),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new ln(this),this.historyAutocapture.startIfEnabled(),N.DEBUG=N.DEBUG||this.config.debug,N.DEBUG&&Qe.info("Starting in debug mode",{this:this,config:t,thisC:B({},this.config),p:o,s:s}),void 0!==(null==(i=t.bootstrap)?void 0:i.distinctID)){var c,u,d=this.config.get_device_id(Nr()),p=null!=(c=t.bootstrap)&&c.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(At,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:p})}if(this.Ir()){var f,h,g=Object.keys((null==(f=t.bootstrap)?void 0:f.featureFlags)||{}).filter(e=>{var r;return!(null==(r=t.bootstrap)||null==(r=r.featureFlags)||!r[e])}).reduce((e,r)=>{var n;return e[r]=(null==(n=t.bootstrap)||null==(n=n.featureFlags)?void 0:n[r])||!1,e},{}),m=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>g[e]).reduce((e,r)=>{var n,i;return null!=(n=t.bootstrap)&&null!=(n=n.featureFlagPayloads)&&n[r]&&(e[r]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[r]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:m})}if(l)this.register_once({distinct_id:Bt,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(Nr());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(At,"anonymous")}return dt(P,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||Nr();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(At,"identified")),t()},i=r.user();"then"in i&&te(i.then)?i.then(e=>n(e)):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||cn.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(cn.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(cn.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Cr()):this.Cr(),te(this.config._onCapture)&&this.config._onCapture!==zo&&(Qe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Qe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}fi(e){var t,r,n,i,a,o,s,l;if(!O||!O.body)return Qe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(e)},500);this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Y(e.supportedCompression,Sr.GZipJS)?Sr.GZipJS:Y(e.supportedCompression,Sr.Base64)?Sr.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),null==(r=this.siteApps)||r.onRemoteConfig(e),null==(n=this.sessionRecording)||n.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(a=this.heatmaps)||a.onRemoteConfig(e),this.surveys.onRemoteConfig(e),null==(o=this.webVitalsAutocapture)||o.onRemoteConfig(e),null==(s=this.exceptionObserver)||s.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(l=this.deadClicksAutocapture)||l.onRemoteConfig(e)}Cr(){try{this.config.loaded(this)}catch(_r){Qe.critical("`loaded` function failed",_r)}this.Or(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Fr()},1),new eo(this).load(),this.featureFlags.flags()}Or(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Pr)||e.enable())}_dom_loaded(){this.is_capturing()&&et(this.__request_queue,e=>this.Tr(e)),this.__request_queue=[],this.Or()}_handle_unload(){var e,t;this.config.request_batching?(this.Mr()&&this.capture("$pageleave"),null==(e=this.Pr)||e.unload(),null==(t=this.Rr)||t.unload()):this.Mr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(e){this.__loaded&&(To?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ma(e.url,{ip:this.config.ip?1:0}),e.headers=B({},this.config.request_headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,r,n,i=B({},e);i.timeout=i.timeout||6e4,i.url=ma(i.url,{_:(new Date).getTime().toString(),ver:N.LIB_VERSION,compression:i.compression});var a=null!==(t=i.transport)&&void 0!==t?t:"fetch",o=ya.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),s=null!==(r=null==(n=ut(o,e=>e.transport===a))?void 0:n.method)&&void 0!==r?r:o[0].method;if(!s)throw new Error("No available transport method");s(i)})(B({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(r=(n=this.config).on_request_error)||r.call(n,t)),null==e.callback||e.callback(t)}}))))}Tr(e){this.Rr?this.Rr.retriableRequest(e):this.ci(e)}_execute_array(e){var t,r=[],n=[],i=[];et(e,e=>{e&&(t=e[0],ee(t)?i.push(e):te(e)?e.call(this):ee(e)&&"alias"===t?r.push(e):ee(e)&&-1!==t.indexOf("capture")&&te(this[t])?i.push(e):n.push(e))});var a=function(e,t){et(e,function(e){if(ee(e[0])){var r=t;tt(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(r,this),a(n,this),a(i,this)}Ir(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,r){var n;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!ie(e)&&ae(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!i||this.config.__preview_capture_bot_pageviews){var a=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==a||!a.isRateLimited){null!=t&&t.$current_url&&!ae(null==t?void 0:t.$current_url)&&(Qe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,s=(null==r?void 0:r.timestamp)||o,l=Nr(),c={uuid:l,event:e,properties:this.calculateEventProperties(e,t||{},s,l)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),a&&(c.properties.$lib_rate_limit_remaining_tokens=a.remainingTokens),(null==r?void 0:r.$set)&&(c.$set=null==r?void 0:r.$set);var u,d=this.Ar(null==r?void 0:r.$set_once);if(d&&(c.$set_once=d),(c=function(e,t){return r=e,n=e=>ae(e)&&!se(t)?e.slice(0,t):e,i=new Set,function e(t,r){return t!==Object(t)?n?n(t):t:i.has(t)?void 0:(i.add(t),ee(t)?(a=[],et(t,t=>{a.push(e(t))})):(a={},tt(t,(t,r)=>{i.has(t)||(a[r]=e(t))})),a);var a}(r);var r,n,i}(c,null!=r&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=s,ie(null==r?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=o),e===Fa.DISMISSED||e===Fa.SENT){var p=null==t?void 0:t[Na.SURVEY_ID],f=null==t?void 0:t[Na.SURVEY_ITERATION];u={id:p,current_iteration:f},localStorage.getItem(qa(u))||localStorage.setItem(qa(u),"true"),c.$set=B({},c.$set,{[Ua({id:p,current_iteration:f},e===Fa.SENT?"responded":"dismissed")]:!0})}var h=B({},c.properties.$set,c.$set);if(ne(h)||this.setPersonPropertiesForFlags(h),!le(this.config.before_send)){var g=this.Dr(c);if(!g)return;c=g}this._r.emit("eventCaptured",c);var m={method:"POST",url:null!==(n=null==r?void 0:r._url)&&void 0!==n?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==r?void 0:r._batchKey};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Tr(m):this.Pr.enqueue(m),c}Qe.critical("This capture call is ignored due to client rate limiting.")}}else Qe.error("No event name provided to posthog.capture")}else Qe.uninitializedWarning("posthog.capture")}Mi(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,r,n,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var a=i?void 0:this.persistence.remove_event_timer(e),o=B({},t);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(o.$cookieless_mode=!0),"$snapshot"===e){var s=B({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,(!ae(o.distinct_id)&&!ce(o.distinct_id)||oe(o.distinct_id))&&Qe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var l,c=function(e,t){if(!L)return{};var r,n,i,a=e?nt([],mi,t||[]):[],[o,s]=function(e){for(var t=0;t<fi.length;t++){var[r,n]=fi[t],i=r.exec(e),a=i&&(te(n)?n(i,e):n);if(a)return a}return["",""]}(L);return rt(st({$os:o,$os_version:s,$browser:ui(L,navigator.vendor),$device:hi(L),$device_type:(n=L,i=hi(n),i===Cn||i===Sn||"Kobo"===i||"Kindle Fire"===i||i===ti?wn:i===Vn||i===qn||i===Un||i===Zn?"Console":i===zn?"Wearable":i?xn:"Desktop"),$timezone:zi(),$timezone_offset:Ei()}),{$current_url:zr(null==I?void 0:I.href,a,bi),$host:null==I?void 0:I.host,$pathname:null==I?void 0:I.pathname,$raw_user_agent:L.length>1e3?L.substring(0,997)+"...":L,$browser_version:pi(L,navigator.vendor),$browser_language:wi(),$browser_language_prefix:(r=wi(),"string"==typeof r?r.split("-")[0]:void 0),$screen_height:null==P?void 0:P.screen.height,$screen_width:null==P?void 0:P.screen.width,$viewport_height:null==P?void 0:P.innerHeight,$viewport_width:null==P?void 0:P.innerWidth,$lib:"web",$lib_version:N.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());o.$session_id=u,o.$window_id=d}this.sessionPropsManager&&rt(o,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&rt(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=null==(p=this.Rr)?void 0:p.length}catch(m){o.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===go.CUSTOM&&(o.$lib_custom_api_host=this.config.api_host),l="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,n),o=rt(o,l),"$pageview"===e&&O&&(o.title=O.title),!ie(a)){var f=r.getTime()-a;o.$duration=parseFloat((f/1e3).toFixed(3))}L&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=rt({},c,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),ee(this.config.property_denylist)?tt(this.config.property_denylist,function(e){delete o[e]}):Qe.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var h=this.config.sanitize_properties;h&&(Qe.error("sanitize_properties is deprecated. Use before_send instead"),o=h(o,e));var g=this.jr();return o.$process_person_profile=g,g&&!i&&this.Lr("_calculate_event_properties"),o}Ar(e){var t;if(!this.persistence||!this.jr())return e;if(this.gr)return e;var r=this.persistence.get_initial_props(),n=null==(t=this.sessionPropsManager)?void 0:t.getSetOnceProps(),i=rt({},r,n||{},e||{}),a=this.config.sanitize_properties;return a&&(Qe.error("sanitize_properties is deprecated. Use before_send instead"),i=a(i,"$set_once")),this.gr=!0,ne(i)?void 0:i}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Nr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(r){return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,r)}on(e,t){return this._r.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,r;return null!==(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=Ga),this.surveys.displaySurvey(e,t)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,r){if(!this.__loaded||!this.persistence)return Qe.uninitializedWarning("posthog.identify");if(ce(e)&&(e=e.toString(),Qe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))Qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==Bt){if(this.Lr("posthog.identify")){var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==n&&e!==this.get_property(ft)&&(this.unregister(ft),this.register({distinct_id:e}));var a="anonymous"===(this.persistence.get_property(At)||"anonymous");e!==n&&a?(this.persistence.set_property(At,"identified"),this.setPersonPropertiesForFlags(B({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.wr=ka(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(It))}}else Qe.critical('The string "'+Bt+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Qe.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Lr("posthog.setPersonProperties")){var r=ka(this.get_distinct_id(),e,t);this.wr!==r?(this.setPersonPropertiesForFlags(B({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.wr=r):Qe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){if(this.Lr("posthog.group")){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:B({},n,{[e]:t})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),n[e]===t||r||this.reloadFeatureFlags()}}else Qe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Lr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,r,n,i;if(Qe.info("reset"),!this.__loaded)return Qe.uninitializedWarning("posthog.reset");var a=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),this.surveys.reset(),this.featureFlags.reset(),null==(n=this.persistence)||n.set_property(At,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.wr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Bt,$device_id:null},"");else{var o=this.config.get_device_id(Nr());this.register_once({distinct_id:o,$device_id:e?o:a},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&r){var i,a=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-a,0)}return n}alias(e,t){return e===this.get_property(pt)?(Qe.critical("Attempting to create alias for existing People user - aborting."),-2):this.Lr("posthog.alias")?(ie(t)&&(t=this.get_distinct_id()),e!==t?(this.Nr(ft,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Qe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=B({},this.config);if(re(e)){var r,n,i,a,o;rt(this.config,Ro(e));var s=this.kr();null==(r=this.persistence)||r.update_config(this.config,t,s),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Ma(B({},this.config,{persistence:"sessionStorage"}),s);var l=this.Sr(this.config.debug);ue(l)&&(this.config.debug=l),ue(this.config.debug)&&(this.config.debug?(N.DEBUG=!0,Ur.H()&&Ur.G("ph_debug","true"),Qe.info("set_config",{config:e,oldConfig:t,newConfig:B({},this.config)})):(N.DEBUG=!1,Ur.H()&&Ur.V("ph_debug"))),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(i=this.autocapture)||i.startIfEnabled(),null==(a=this.heatmaps)||a.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ur(),null==(o=this.externalIntegrations)||o.startIfEnabledOrStop()}}startSessionRecording(e){var t,r,n,i,a,o=!0===e,s={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(s).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),s.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),s.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),s.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),s.event_trigger&&(null==(a=this.sessionRecording)||a.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var r=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(B({},n,t))}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:Eo;return t!==Eo&&(t=Eo+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(At))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(At))}jr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&ne(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[ft])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Wt]))}Mr(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.jr()||this.Lr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Lr(e){return"never"===this.config.person_profiles?(Qe.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Nr(Wt,!0),!0)}kr(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}Ur(){var e,t,r,n,i=this.kr();return(null==(e=this.persistence)?void 0:e.wi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.wi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t,r;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(t=this.sessionManager)||t.destroy(),this.sessionManager=new co(this),this.persistence&&(this.sessionPropsManager=new so(this,this.sessionManager,this.persistence)),this.sessionRecording=new Co(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Ur(),this.Or(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(ie(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(r=null==e?void 0:e.captureEventName)&&void 0!==r?r:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fr()):Qe.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ur(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Bt,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(t=this.sessionRecording)||t.stopRecording(),this.sessionRecording=void 0,this.Fr())):Qe.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===Zr.GRANTED?"granted":e===Zr.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ur()}_is_bot(){return R?ho(R,this.config.custom_blocked_useragents):void 0}Fr(){O&&("visible"===O.visibilityState?this.mr||(this.mr=!0,this.capture("$pageview",{title:O.title},{send_instantly:!0}),this.yr&&(O.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Fr.bind(this),dt(O,"visibilitychange",this.yr)))}debug(e){!1===e?(null==P||P.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==P||P.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var e,t,r,n,i,a,o=this.Er||{};return"advanced_disable_flags"in o?!!o.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(Qe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",n=Qe,i=(t="advanced_disable_flags")in(e=o)&&!ie(e[t]),a=r in e&&!ie(e[r]),i?e[t]:!!a&&(n&&n.warn("Config field '"+r+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[r]))}Dr(e){if(le(this.config.before_send))return e;var t=ee(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of t){if(r=n(r),le(r)){var i="Event '"+e.event+"' was rejected in beforeSend function";return de(e.event)?Qe.warn(i+". This can cause unexpected behavior."):Qe.info(i),null}r.properties&&!ne(r.properties)||Qe.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return null==(e=this.pageViewManager.Vt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}Sr(e){var t=ue(e)&&!e,r=Ur.H()&&"true"===Ur.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=ot(e.prototype[t[r]])}(Io,["identify"]);var Ao,Do=(Ao=Po[Eo]=new Io,function(){function e(){e.done||(e.done=!0,To=!1,tt(Po,function(e){e._dom_loaded()}))}null!=O&&O.addEventListener?"complete"===O.readyState?e():dt(O,"DOMContentLoaded",e,{capture:!1}):P&&Qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Ao);let Mo=null,Lo=!1,Fo=null;const No=()=>(Mo||Lo||(Mo=(()=>{if(Do.__loaded)return Do;if(Lo)return null;Lo=!0;try{return Do.init("phc_Q0yKPwlYDSkhDCTq1U1K4oP5ne5xFMfso0cCkDbm4VI",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",before_send:e=>e&&"$exception"===e.event&&!(e=>{const t=e?.properties??{};if("manual"===t.dori_capture)return!0;const r=(()=>{if(Fo)return Fo;const e=[];try{const t=document.querySelector("script#dori-side-widget"),r=t?.src;if(r){e.push(r);const t=r.slice(0,r.lastIndexOf("/")+1);t&&t!==r&&e.push(t)}}catch{}return Fo=e,e})();if(0===r.length)return!0;const n=t.$exception_list;if(!Array.isArray(n)||0===n.length)return!0;for(const i of n){const e=i?.stacktrace?.frames;if(Array.isArray(e))for(const t of e){const e=t?.filename;if("string"==typeof e&&r.some(t=>e.startsWith(t)))return!0}}return!1})(e)?null:e,loaded:e=>{try{const t=(()=>{const e={},t=(()=>{try{const e=document.querySelector("script#dori-side-widget");return e?.getAttribute("data-sharing-id")||null}catch{return null}})();return t&&(e.sharing_id=t),"undefined"!=typeof window&&window.location&&window.location.hostname&&(e.shop_domain=window.location.hostname),e})();Object.keys(t).length>0&&e.register(t)}catch(t){}}}),Mo=Do,Do}catch(e){return console.error("[PostHog] Failed to initialize:",e),null}finally{Lo=!1}})()),Mo),Wo=(e,t)=>{const r=No();if(r)try{r.capture(e,t)}catch(n){}},$o=(e,t)=>{const r=No();if(r)try{console.error("Error captured:",e,t),r.capture("$exception",{$exception_message:e.message,$exception_type:e.name,$exception_stack_trace:e.stack,dori_capture:"manual",...t})}catch(n){console.error("[PostHog] Failed to capture exception:",n)}},Bo=(e,t)=>(...r)=>{try{return console.log("withErrorHandling",e),t(...r)}catch(n){throw console.error("Error in withErrorHandling:",n),$o(n,{context:e}),n}},Ho=(e,t)=>(...r)=>{try{return t(...r).catch(t=>{throw"AbortError"!==t.name&&$o(t,{context:e}),t})}catch(n){throw"AbortError"!==n.name&&$o(n,{context:e}),n}};var Vo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Uo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Yo,Go,Qo={exports:{}},Ko={};function Xo(){if(Yo)return Ko;Yo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var a in n={},r)"key"!==a&&(n[a]=r[a]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==r?r:null,props:n}}return Ko.Fragment=t,Ko.jsx=r,Ko.jsxs=r,Ko}function Zo(){return Go||(Go=1,Qo.exports=Xo()),Qo.exports}var Jo,es,ts=Zo(),rs={exports:{}},ns={};function is(){if(Jo)return ns;Jo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var b=v.prototype=new m;b.constructor=v,f(b,g.prototype),b.isPureReactComponent=!0;var y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function _(t,r,n,i,a,o){return n=o.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:o}}function w(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var S=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function P(){}function z(r,n,i,a,o){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var l,c,p=!1;if(null===r)p=!0;else switch(s){case"bigint":case"string":case"number":p=!0;break;case"object":switch(r.$$typeof){case e:case t:p=!0;break;case u:return z((p=r._init)(r._payload),n,i,a,o)}}if(p)return o=o(r),p=""===a?"."+C(r,0):a,y(o)?(i="",null!=p&&(i=p.replace(S,"$&/")+"/"),z(o,n,i,"",function(e){return e})):null!=o&&(w(o)&&(l=o,c=i+(null==o.key||r&&r.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+p,o=_(l.type,c,void 0,0,0,l.props)),n.push(o)),1;p=0;var f,h=""===a?".":a+":";if(y(r))for(var g=0;g<r.length;g++)p+=z(a=r[g],n,i,s=h+C(a,g),o);else if("function"==typeof(g=null===(f=r)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(r=g.call(r),g=0;!(a=r.next()).done;)p+=z(a=a.value,n,i,s=h+C(a,g++),o);else if("object"===s){if("function"==typeof r.then)return z(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(P,P):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(r),n,i,a,o);throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return p}function E(e,t,r){if(null==e)return e;var n=[],i=0;return z(e,n,"","",function(e){return t.call(r,e,i++)}),n}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function R(){}return ns.Children={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ns.Component=g,ns.Fragment=r,ns.Profiler=i,ns.PureComponent=v,ns.StrictMode=n,ns.Suspense=l,ns.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ns.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},ns.cache=function(e){return function(){return e.apply(null,arguments)}},ns.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=f({},e.props),i=e.key;if(null!=t)for(a in t.ref,void 0!==t.key&&(i=""+t.key),t)!k.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(n[a]=t[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];n.children=o}return _(e.type,i,void 0,0,0,n)},ns.createContext=function(e){return(e={$$typeof:o,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},ns.createElement=function(e,t,r){var n,i={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=""+t.key),t)k.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(i[n]=t[n]);var o=arguments.length-2;if(1===o)i.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps)void 0===i[n]&&(i[n]=o[n]);return _(e,a,void 0,0,0,i)},ns.createRef=function(){return{current:null}},ns.forwardRef=function(e){return{$$typeof:s,render:e}},ns.isValidElement=w,ns.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},ns.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},ns.startTransition=function(e){var t=x.T,r={};x.T=r;try{var n=e(),i=x.S;null!==i&&i(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(R,j)}catch(a){j(a)}finally{x.T=t}},ns.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},ns.use=function(e){return x.H.use(e)},ns.useActionState=function(e,t,r){return x.H.useActionState(e,t,r)},ns.useCallback=function(e,t){return x.H.useCallback(e,t)},ns.useContext=function(e){return x.H.useContext(e)},ns.useDebugValue=function(){},ns.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},ns.useEffect=function(e,t,r){var n=x.H;if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},ns.useId=function(){return x.H.useId()},ns.useImperativeHandle=function(e,t,r){return x.H.useImperativeHandle(e,t,r)},ns.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},ns.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},ns.useMemo=function(e,t){return x.H.useMemo(e,t)},ns.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},ns.useReducer=function(e,t,r){return x.H.useReducer(e,t,r)},ns.useRef=function(e){return x.H.useRef(e)},ns.useState=function(e){return x.H.useState(e)},ns.useSyncExternalStore=function(e,t,r){return x.H.useSyncExternalStore(e,t,r)},ns.useTransition=function(){return x.H.useTransition()},ns.version="19.1.1",ns}function as(){return es||(es=1,rs.exports=is()),rs.exports}var os=as();const ss=Uo(os),ls=C({__proto__:null,default:ss},[os]);var cs,us,ds={exports:{}},ps={},fs={exports:{}},hs={};function gs(){return cs||(cs=1,function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(!(0<i(a,t)))break e;e[n]=t,e[r]=a,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,r))c<a&&0>i(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<a&&0>i(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,p=3,f=!1,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=r(c);null!==i;){if(null===i.callback)n(c);else{if(!(i.startTime<=e))break;n(c),i.sortIndex=i.expirationTime,t(l,i)}i=r(c)}}function k(e){if(g=!1,x(e),!h)if(null!==r(l))h=!0,w||(w=!0,_());else{var t=r(c);null!==t&&R(k,t.startTime-e)}}var _,w=!1,S=-1,C=5,P=-1;function z(){return!(!m&&e.unstable_now()-P<C)}function E(){if(m=!1,w){var t=e.unstable_now();P=t;var i=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),f=!0;var a=p;try{t:{for(x(t),d=r(l);null!==d&&!(d.expirationTime>t&&z());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,x(t),i=!0;break t}d===r(l)&&n(l),x(t)}else n(l);d=r(l)}if(null!==d)i=!0;else{var u=r(c);null!==u&&R(k,u.startTime-t),i=!1}}break e}finally{d=null,p=a,f=!1}i=void 0}}finally{i?_():w=!1}}}if("function"==typeof y)_=function(){y(E)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,j=T.port2;T.port1.onmessage=E,_=function(){j.postMessage(null)}}else _=function(){v(E,0)};function R(t,r){S=v(function(){t(e.unstable_now())},r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},e.unstable_scheduleCallback=function(n,i,a){var o=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:i,priorityLevel:n,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(n.sortIndex=a,t(c,n),null===r(l)&&n===r(c)&&(g?(b(S),S=-1):g=!0,R(k,a-o))):(n.sortIndex=s,t(l,n),h||f||(h=!0,w||(w=!0,_()))),n},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}}(hs)),hs}function ms(){return us||(us=1,fs.exports=gs()),fs.exports}var vs,bs,ys,xs,ks={exports:{}},_s={};function ws(){if(vs)return _s;vs=1;var e=as();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return _s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,_s.createPortal=function(e,r){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!r||1!==r.nodeType&&9!==r.nodeType&&11!==r.nodeType)throw Error(t(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,r,null,n)},_s.flushSync=function(e){var t=a.T,r=n.p;try{if(a.T=null,n.p=2,e)return e()}finally{a.T=t,n.p=r,n.d.f()}},_s.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,n.d.C(e,t))},_s.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},_s.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=o(r,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?n.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:s}):"script"===r&&n.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},_s.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=o(t.as,t.crossOrigin);n.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&n.d.M(e)},_s.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=o(r,t.crossOrigin);n.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},_s.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=o(t.as,t.crossOrigin);n.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else n.d.m(e)},_s.requestFormReset=function(e){n.d.r(e)},_s.unstable_batchedUpdates=function(e,t){return e(t)},_s.useFormState=function(e,t,r){return a.H.useFormState(e,t,r)},_s.useFormStatus=function(){return a.H.useHostTransitionStatus()},_s.version="19.1.1",_s}function Ss(){return bs||(bs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ks.exports=ws()),ks.exports}function Cs(){if(ys)return ps;ys=1;var e=ms(),t=as(),r=Ss();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function o(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(a(e)!==e)throw Error(n(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var E=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case k:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return T(e(t))}catch(r){}}return null}var j=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},A=[],D=-1;function M(e){return{current:e}}function L(e){0>D||(e.current=A[D],A[D]=null,D--)}function F(e,t){D++,A[D]=e.current,e.current=t}var N=M(null),W=M(null),$=M(null),B=M(null);function H(e,t){switch(F($,t),F(W,e),F(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(N),F(N,e)}function V(){L(N),L(W),L($)}function U(e){null!==e.memoizedState&&F(B,e);var t=N.current,r=sd(t,e.type);t!==r&&(F(W,e),F(N,r))}function q(e){W.current===e&&(L(N),L(W)),B.current===e&&(L(B),Kd._currentValue=I)}var Y=Object.prototype.hasOwnProperty,G=e.unstable_scheduleCallback,Q=e.unstable_cancelCallback,K=e.unstable_shouldYield,X=e.unstable_requestPaint,Z=e.unstable_now,J=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,te=e.unstable_UserBlockingPriority,re=e.unstable_NormalPriority,ne=e.unstable_LowPriority,ie=e.unstable_IdlePriority,ae=e.log,oe=e.unstable_setDisableYieldValue,se=null,le=null;function ce(e){if("function"==typeof ae&&oe(e),le&&"function"==typeof le.setStrictMode)try{le.setStrictMode(se,e)}catch(t){}}var ue=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(de(e)/pe|0)|0},de=Math.log,pe=Math.LN2,fe=256,he=4194304;function ge(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function me(e,t,r){var n=e.pendingLanes;if(0===n)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=134217727&n;return 0!==s?0!==(n=s&~a)?i=ge(n):0!==(o&=s)?i=ge(o):r||0!==(r=s&~e)&&(i=ge(r)):0!==(s=n&~a)?i=ge(s):0!==o?i=ge(o):r||0!==(r=n&~e)&&(i=ge(r)),0===i?0:0!==t&&t!==i&&0===(t&a)&&((a=i&-i)>=(r=t&-t)||32===a&&4194048&r)?t:i}function ve(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;default:return-1}}function ye(){var e=fe;return!(4194048&(fe<<=1))&&(fe=256),e}function xe(){var e=he;return!(62914560&(he<<=1))&&(he=4194304),e}function ke(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function we(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-ue(t);e.entangledLanes|=t,e.entanglements[n]=1073741824|e.entanglements[n]|4194090&r}function Se(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ue(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}function Ce(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var Ee=Math.random().toString(36).slice(2),Te="__reactFiber$"+Ee,je="__reactProps$"+Ee,Re="__reactContainer$"+Ee,Oe="__reactEvents$"+Ee,Ie="__reactListeners$"+Ee,Ae="__reactHandles$"+Ee,De="__reactResources$"+Ee,Me="__reactMarker$"+Ee;function Le(e){delete e[Te],delete e[je],delete e[Oe],delete e[Ie],delete e[Ae]}function Fe(e){var t=e[Te];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Re]||r[Te]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=kd(e);null!==e;){if(r=e[Te])return r;e=kd(e)}return t}r=(e=r).parentNode}return null}function Ne(e){if(e=e[Te]||e[Re]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(n(33))}function $e(e){var t=e[De];return t||(t=e[De]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[Me]=!0}var He=new Set,Ve={};function Ue(e,t){qe(e,t),qe(e+"Capture",t)}function qe(e,t){for(Ve[e]=t,e=0;e<t.length;e++)He.add(t[e])}var Ye,Ge,Qe=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]*$"),Ke={},Xe={};function Ze(e,t,r){if(i=t,Y.call(Xe,i)||!Y.call(Ke,i)&&(Qe.test(i)?Xe[i]=!0:(Ke[i]=!0,0)))if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var n=t.toLowerCase().slice(0,5);if("data-"!==n&&"aria-"!==n)return void e.removeAttribute(t)}e.setAttribute(t,""+r)}var i}function Je(e,t,r){if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+r)}}function et(e,t,r,n){if(null===n)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(r)}e.setAttributeNS(t,r,""+n)}}function tt(e){if(void 0===Ye)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Ge=-1<r.stack.indexOf("\n at")?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ye+e+Ge}var rt=!1;function nt(e,t){if(!e||rt)return"";rt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(r,[])}catch(i){var n=i}Reflect.construct(e,[],r)}else{try{r.call()}catch(a){n=a}e.call(r.prototype)}}else{try{throw Error()}catch(o){n=o}(r=e())&&"function"==typeof r.catch&&r.catch(function(){})}}catch(s){if(s&&n&&"string"==typeof s.stack)return[s.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=n.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split("\n"),c=s.split("\n");for(i=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(n===l.length||i===c.length)for(n=l.length-1,i=c.length-1;1<=n&&0<=i&&l[n]!==c[i];)i--;for(;1<=n&&0<=i;n--,i--)if(l[n]!==c[i]){if(1!==n||1!==i)do{if(n--,0>--i||l[n]!==c[i]){var u="\n"+l[n].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=n&&0<=i);break}}}finally{rt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?tt(r):""}function it(e){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return tt("Activity");default:return""}}function at(e){try{var t="";do{t+=it(e),e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function st(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function lt(e){e._valueTracker||(e._valueTracker=function(e){var t=st(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=st(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function ut(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var dt=/[\n"\\]/g;function pt(e){return e.replace(dt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ft(e,t,r,n,i,a,o,s){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?gt(e,o,ot(t)):null!=r?gt(e,o,ot(r)):null!=n&&e.removeAttribute("value"),null==i&&null!=a&&(e.defaultChecked=!!a),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ot(s):e.removeAttribute("name")}function ht(e,t,r,n,i,a,o,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=r){if(("submit"===a||"reset"===a)&&null==t)return;r=null!=r?""+ot(r):"",t=null!=t?""+ot(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n="function"!=typeof(n=null!=n?n:i)&&"symbol"!=typeof n&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function gt(e,t,r){"number"===t&&ut(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function mt(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ot(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function vt(e,t,r){null==t||((t=""+ot(t))!==e.value&&(e.value=t),null!=r)?e.defaultValue=null!=r?""+ot(r):"":e.defaultValue!==t&&(e.defaultValue=t)}function bt(e,t,r,i){if(null==t){if(null!=i){if(null!=r)throw Error(n(92));if(j(i)){if(1<i.length)throw Error(n(93));i=i[0]}r=i}null==r&&(r=""),t=r}r=ot(t),e.defaultValue=r,(i=e.textContent)===r&&""!==i&&null!==i&&(e.value=i)}function yt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var xt=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 kt(e,t,r){var n=0===t.indexOf("--");null==r||"boolean"==typeof r||""===r?n?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":n?e.setProperty(t,r):"number"!=typeof r||0===r||xt.has(t)?"float"===t?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function _t(e,t,r){if(null!=t&&"object"!=typeof t)throw Error(n(62));if(e=e.style,null!=r){for(var i in r)!r.hasOwnProperty(i)||null!=t&&t.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&r[a]!==i&&kt(e,a,i)}else for(var o in t)t.hasOwnProperty(o)&&kt(e,o,t[o])}function wt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var St=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"]]),Ct=/^[\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 Pt(e){return Ct.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var zt=null;function Et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Tt=null,jt=null;function Rt(e){var t=Ne(e);if(t&&(e=t.stateNode)){var r=e[je]||null;e:switch(e=t.stateNode,t.type){case"input":if(ft(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var a=i[je]||null;if(!a)throw Error(n(90));ft(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)(i=r[t]).form===e.form&&ct(i)}break e;case"textarea":vt(e,r.value,r.defaultValue);break e;case"select":null!=(t=r.value)&&mt(e,!!r.multiple,t,!1)}}}var Ot=!1;function It(e,t,r){if(Ot)return e(t,r);Ot=!0;try{return e(t)}finally{if(Ot=!1,(null!==Tt||null!==jt)&&(Hc(),Tt&&(t=Tt,e=jt,jt=Tt=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function At(e,t){var r=e.stateNode;if(null===r)return null;var i=r[je]||null;if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Dt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Mt=!1;if(Dt)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(Dp){Mt=!1}var Ft=null,Nt=null,Wt=null;function $t(){if(Wt)return Wt;var e,t,r=Nt,n=r.length,i="value"in Ft?Ft.value:Ft.textContent,a=i.length;for(e=0;e<n&&r[e]===i[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===i[a-t];t++);return Wt=i.slice(e,1<t?1-t:void 0)}function Bt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ht(){return!0}function Vt(){return!1}function Ut(e){function t(t,r,n,i,a){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Ht:Vt,this.isPropagationStopped=Vt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ht)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ht)},persist:function(){},isPersistent:Ht}),t}var qt,Yt,Gt,Qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kt=Ut(Qt),Xt=c({},Qt,{view:0,detail:0}),Zt=Ut(Xt),Jt=c({},Xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gt&&(Gt&&"mousemove"===e.type?(qt=e.screenX-Gt.screenX,Yt=e.screenY-Gt.screenY):Yt=qt=0,Gt=e),qt)},movementY:function(e){return"movementY"in e?e.movementY:Yt}}),er=Ut(Jt),tr=Ut(c({},Jt,{dataTransfer:0})),rr=Ut(c({},Xt,{relatedTarget:0})),nr=Ut(c({},Qt,{animationName:0,elapsedTime:0,pseudoElement:0})),ir=Ut(c({},Qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ar=Ut(c({},Qt,{data:0})),or={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sr={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"},lr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=lr[e])&&!!t[e]}function ur(){return cr}var dr=Ut(c({},Xt,{key:function(e){if(e.key){var t=or[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Bt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(e){return"keypress"===e.type?Bt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Bt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),pr=Ut(c({},Jt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),fr=Ut(c({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur})),hr=Ut(c({},Qt,{propertyName:0,elapsedTime:0,pseudoElement:0})),gr=Ut(c({},Jt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),mr=Ut(c({},Qt,{newState:0,oldState:0})),vr=[9,13,27,32],br=Dt&&"CompositionEvent"in window,yr=null;Dt&&"documentMode"in document&&(yr=document.documentMode);var xr=Dt&&"TextEvent"in window&&!yr,kr=Dt&&(!br||yr&&8<yr&&11>=yr),_r=String.fromCharCode(32),wr=!1;function Sr(e,t){switch(e){case"keyup":return-1!==vr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pr=!1,zr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Tr(e,t,r,n){Tt?jt?jt.push(n):jt=[n]:Tt=n,0<(t=qu(t,"onChange")).length&&(r=new Kt("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var jr=null,Rr=null;function Or(e){Fu(e,0)}function Ir(e){if(ct(We(e)))return e}function Ar(e,t){if("change"===e)return t}var Dr=!1;if(Dt){var Mr;if(Dt){var Lr="oninput"in document;if(!Lr){var Fr=document.createElement("div");Fr.setAttribute("oninput","return;"),Lr="function"==typeof Fr.oninput}Mr=Lr}else Mr=!1;Dr=Mr&&(!document.documentMode||9<document.documentMode)}function Nr(){jr&&(jr.detachEvent("onpropertychange",Wr),Rr=jr=null)}function Wr(e){if("value"===e.propertyName&&Ir(Rr)){var t=[];Tr(t,Rr,e,Et(e)),It(Or,t)}}function $r(e,t,r){"focusin"===e?(Nr(),Rr=r,(jr=t).attachEvent("onpropertychange",Wr)):"focusout"===e&&Nr()}function Br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ir(Rr)}function Hr(e,t){if("click"===e)return Ir(t)}function Vr(e,t){if("input"===e||"change"===e)return Ir(t)}var Ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function qr(e,t){if(Ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Y.call(t,i)||!Ur(e[i],t[i]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var r,n=Yr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yr(n)}}function Qr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Kr(e){for(var t=ut((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=ut((e=t.contentWindow).document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Zr=Dt&&"documentMode"in document&&11>=document.documentMode,Jr=null,en=null,tn=null,rn=!1;function nn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;rn||null==Jr||Jr!==ut(n)||(n="selectionStart"in(n=Jr)&&Xr(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},tn&&qr(tn,n)||(tn=n,0<(n=qu(en,"onSelect")).length&&(t=new Kt("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Jr)))}function an(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var on={animationend:an("Animation","AnimationEnd"),animationiteration:an("Animation","AnimationIteration"),animationstart:an("Animation","AnimationStart"),transitionrun:an("Transition","TransitionRun"),transitionstart:an("Transition","TransitionStart"),transitioncancel:an("Transition","TransitionCancel"),transitionend:an("Transition","TransitionEnd")},sn={},ln={};function cn(e){if(sn[e])return sn[e];if(!on[e])return e;var t,r=on[e];for(t in r)if(r.hasOwnProperty(t)&&t in ln)return sn[e]=r[t];return e}Dt&&(ln=document.createElement("div").style,"AnimationEvent"in window||(delete on.animationend.animation,delete on.animationiteration.animation,delete on.animationstart.animation),"TransitionEvent"in window||delete on.transitionend.transition);var un=cn("animationend"),dn=cn("animationiteration"),pn=cn("animationstart"),fn=cn("transitionrun"),hn=cn("transitionstart"),gn=cn("transitioncancel"),mn=cn("transitionend"),vn=new Map,bn="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(" ");function yn(e,t){vn.set(e,t),Ue(t,[e])}bn.push("scrollEnd");var xn=new WeakMap;function kn(e,t){if("object"==typeof e&&null!==e){var r=xn.get(e);return void 0!==r?r:(t={value:e,source:t,stack:at(t)},xn.set(e,t),t)}return{value:e,source:t,stack:at(t)}}var _n=[],wn=0,Sn=0;function Cn(){for(var e=wn,t=Sn=wn=0;t<e;){var r=_n[t];_n[t++]=null;var n=_n[t];_n[t++]=null;var i=_n[t];_n[t++]=null;var a=_n[t];if(_n[t++]=null,null!==n&&null!==i){var o=n.pending;null===o?i.next=i:(i.next=o.next,o.next=i),n.pending=i}0!==a&&Tn(r,i,a)}}function Pn(e,t,r,n){_n[wn++]=e,_n[wn++]=t,_n[wn++]=r,_n[wn++]=n,Sn|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function zn(e,t,r,n){return Pn(e,t,r,n),jn(e)}function En(e,t){return Pn(e,null,null,t),jn(e)}function Tn(e,t,r){e.lanes|=r;var n=e.alternate;null!==n&&(n.lanes|=r);for(var i=!1,a=e.return;null!==a;)a.childLanes|=r,null!==(n=a.alternate)&&(n.childLanes|=r),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(i=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,i&&null!==t&&(i=31-ue(r),null===(n=(e=a.hiddenUpdates)[i])?e[i]=[t]:n.push(t),t.lane=536870912|r),a):null}function jn(e){if(50<Ac)throw Ac=0,Dc=null,Error(n(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rn={};function On(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,r,n){return new On(e,t,r,n)}function An(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dn(e,t){var r=e.alternate;return null===r?((r=In(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=65011712&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Mn(e,t){e.flags&=65011714;var r=e.alternate;return null===r?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ln(e,t,r,i,a,o){var s=0;if(i=e,"function"==typeof e)An(e)&&(s=1);else if("string"==typeof e)s=function(e,t,r){if(1===r||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,r,N.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case S:return(e=In(31,r,t,a)).elementType=S,e.lanes=o,e;case f:return Fn(r.children,a,o,t);case h:s=8,a|=24;break;case g:return(e=In(12,r,t,2|a)).elementType=g,e.lanes=o,e;case x:return(e=In(13,r,t,a)).elementType=x,e.lanes=o,e;case k:return(e=In(19,r,t,a)).elementType=k,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case m:case b:s=10;break e;case v:s=9;break e;case y:s=11;break e;case _:s=14;break e;case w:s=16,i=null;break e}s=29,r=Error(n(130,null===e?"null":typeof e,"")),i=null}return(t=In(s,r,t,a)).elementType=e,t.type=i,t.lanes=o,t}function Fn(e,t,r,n){return(e=In(7,e,n,t)).lanes=r,e}function Nn(e,t,r){return(e=In(6,e,null,t)).lanes=r,e}function Wn(e,t,r){return(t=In(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $n=[],Bn=0,Hn=null,Vn=0,Un=[],qn=0,Yn=null,Gn=1,Qn="";function Kn(e,t){$n[Bn++]=Vn,$n[Bn++]=Hn,Hn=e,Vn=t}function Xn(e,t,r){Un[qn++]=Gn,Un[qn++]=Qn,Un[qn++]=Yn,Yn=e;var n=Gn;e=Qn;var i=32-ue(n)-1;n&=~(1<<i),r+=1;var a=32-ue(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Gn=1<<32-ue(t)+i|r<<i|n,Qn=a+e}else Gn=1<<a|r<<i|n,Qn=e}function Zn(e){null!==e.return&&(Kn(e,1),Xn(e,1,0))}function Jn(e){for(;e===Hn;)Hn=$n[--Bn],$n[Bn]=null,Vn=$n[--Bn],$n[Bn]=null;for(;e===Yn;)Yn=Un[--qn],Un[qn]=null,Qn=Un[--qn],Un[qn]=null,Gn=Un[--qn],Un[qn]=null}var ei=null,ti=null,ri=!1,ni=null,ii=!1,ai=Error(n(519));function oi(e){throw pi(kn(Error(n(418,"")),e)),ai}function si(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Te]=e,t[je]=n,r){case"dialog":Nu("cancel",t),Nu("close",t);break;case"iframe":case"object":case"embed":Nu("load",t);break;case"video":case"audio":for(r=0;r<Mu.length;r++)Nu(Mu[r],t);break;case"source":Nu("error",t);break;case"img":case"image":case"link":Nu("error",t),Nu("load",t);break;case"details":Nu("toggle",t);break;case"input":Nu("invalid",t),ht(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),lt(t);break;case"select":Nu("invalid",t);break;case"textarea":Nu("invalid",t),bt(t,n.value,n.defaultValue,n.children),lt(t)}"string"!=typeof(r=n.children)&&"number"!=typeof r&&"bigint"!=typeof r||t.textContent===""+r||!0===n.suppressHydrationWarning||Zu(t.textContent,r)?(null!=n.popover&&(Nu("beforetoggle",t),Nu("toggle",t)),null!=n.onScroll&&Nu("scroll",t),null!=n.onScrollEnd&&Nu("scrollend",t),null!=n.onClick&&(t.onclick=Ju),t=!0):t=!1,t||oi(e)}function li(e){for(ei=e.return;ei;)switch(ei.tag){case 5:case 13:return void(ii=!1);case 27:case 3:return void(ii=!0);default:ei=ei.return}}function ci(e){if(e!==ei)return!1;if(!ri)return li(e),ri=!0,!1;var t,r=e.tag;if((t=3!==r&&27!==r)&&((t=5===r)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&ti&&oi(e),li(e),13===r){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,r=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===r){ti=yd(e.nextSibling);break e}r--}else"$"!==t&&"$!"!==t&&"$?"!==t||r++;e=e.nextSibling}ti=null}}else 27===r?(r=ti,gd(e.type)?(e=xd,xd=null,ti=e):ti=r):ti=ei?yd(e.stateNode.nextSibling):null;return!0}function ui(){ti=ei=null,ri=!1}function di(){var e=ni;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),ni=null),e}function pi(e){null===ni?ni=[e]:ni.push(e)}var fi=M(null),hi=null,gi=null;function mi(e,t,r){F(fi,t._currentValue),t._currentValue=r}function vi(e){e._currentValue=fi.current,L(fi)}function bi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yi(e,t,r,i){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var s=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=r,null!==(l=o.alternate)&&(l.lanes|=r),bi(o.return,r,e),i||(s=null);break e}o=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(o=s.alternate)&&(o.lanes|=r),bi(s,r,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function xi(e,t,r,i){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(n(387));if(null!==(s=s.memoizedProps)){var l=a.type;Ur(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===B.current){if(null===(s=a.alternate))throw Error(n(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Kd):e=[Kd])}a=a.return}null!==e&&yi(t,e,r,i),t.flags|=262144}function ki(e){for(e=e.firstContext;null!==e;){if(!Ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _i(e){hi=e,gi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function wi(e){return Ci(hi,e)}function Si(e,t){return null===hi&&_i(e),Ci(e,t)}function Ci(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},null===gi){if(null===e)throw Error(n(308));gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gi=gi.next=t;return r}var Pi="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},zi=e.unstable_scheduleCallback,Ei=e.unstable_NormalPriority,Ti={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ji(){return{controller:new Pi,data:new Map,refCount:0}}function Ri(e){e.refCount--,0===e.refCount&&zi(Ei,function(){e.controller.abort()})}var Oi=null,Ii=0,Ai=0,Di=null;function Mi(){if(0===--Ii&&null!==Oi){null!==Di&&(Di.status="fulfilled");var e=Oi;Oi=null,Ai=0,Di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Li=R.S;R.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Oi){var r=Oi=[];Ii=0,Ai=Ru(),Di={status:"pending",value:void 0,then:function(e){r.push(e)}}}Ii++,t.then(Mi,Mi)}(0,t),null!==Li&&Li(e,t)};var Fi=M(null);function Ni(){var e=Fi.current;return null!==e?e:ac.pooledCache}function Wi(e,t){F(Fi,null===t?Fi.current:t.pool)}function $i(){var e=Ni();return null===e?null:{parent:Ti._currentValue,pool:e}}var Bi=Error(n(460)),Hi=Error(n(474)),Vi=Error(n(542)),Ui={then:function(){}};function qi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Yi(){}function Gi(e,t,r){switch(void 0===(r=e[r])?e.push(t):r!==t&&(t.then(Yi,Yi),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw Xi(e=t.reason),e;default:if("string"==typeof t.status)t.then(Yi,Yi);else{if(null!==(e=ac)&&100<e.shellSuspendCounter)throw Error(n(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var r=t;r.status="fulfilled",r.value=e}},function(e){if("pending"===t.status){var r=t;r.status="rejected",r.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Xi(e=t.reason),e}throw Qi=t,Bi}}var Qi=null;function Ki(){if(null===Qi)throw Error(n(459));var e=Qi;return Qi=null,e}function Xi(e){if(e===Bi||e===Vi)throw Error(n(483))}var Zi=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ea(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&ic){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=jn(e),Tn(e,null,r),t}return Pn(e,n,t,r),jn(e)}function na(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,Se(e,r)}}function ia(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};null===a?i=a=o:a=a.next=o,r=r.next}while(null!==r);null===a?i=a=t:a=a.next=t}else i=a=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,callbacks:n.callbacks},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var aa=!1;function oa(){if(aa&&null!==Di)throw Di}function sa(e,t,r,n){aa=!1;var i=e.updateQueue;Zi=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==o&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==a){var p=i.baseState;for(o=0,d=u=l=null,s=a;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(sc&f)===f:(n&f)===f){0!==f&&f===Ai&&(aa=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;f=t;var v=r;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){p=g.call(v,p,f);break e}p=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(v,p,f):g))break e;p=c({},p,f);break e;case 2:Zi=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=p):d=d.next=h,o|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===a&&(i.shared.lanes=0),gc|=o,e.lanes=o,e.memoizedState=p}}function la(e,t){if("function"!=typeof e)throw Error(n(191,e));e.call(t)}function ca(e,t){var r=e.callbacks;if(null!==r)for(e.callbacks=null,e=0;e<r.length;e++)la(r[e],t)}var ua=M(null),da=M(0);function pa(e,t){F(da,e=fc),F(ua,t),fc=e|t.baseLanes}function fa(){F(da,fc),F(ua,ua.current)}function ha(){fc=da.current,L(ua),L(da)}var ga=0,ma=null,va=null,ba=null,ya=!1,xa=!1,ka=!1,_a=0,wa=0,Sa=null,Ca=0;function Pa(){throw Error(n(321))}function za(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ur(e[r],t[r]))return!1;return!0}function Ea(e,t,r,n,i,a){return ga=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?Ho:Vo,ka=!1,a=r(n,i),ka=!1,xa&&(a=ja(t,r,n,i)),Ta(e),a}function Ta(e){R.H=Bo;var t=null!==va&&null!==va.next;if(ga=0,ba=va=ma=null,ya=!1,wa=0,Sa=null,t)throw Error(n(300));null===e||Ts||null!==(e=e.dependencies)&&ki(e)&&(Ts=!0)}function ja(e,t,r,i){ma=e;var a=0;do{if(xa&&(Sa=null),wa=0,xa=!1,25<=a)throw Error(n(301));if(a+=1,ba=va=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}R.H=Uo,o=t(r,i)}while(xa);return o}function Ra(){var e=R.H,t=e.useState()[0];return t="function"==typeof t.then?La(t):t,e=e.useState()[0],(null!==va?va.memoizedState:null)!==e&&(ma.flags|=1024),t}function Oa(){var e=0!==_a;return _a=0,e}function Ia(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Aa(e){if(ya){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ya=!1}ga=0,ba=va=ma=null,xa=!1,wa=_a=0,Sa=null}function Da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ba?ma.memoizedState=ba=e:ba=ba.next=e,ba}function Ma(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ba?ma.memoizedState:ba.next;if(null!==t)ba=t,va=e;else{if(null===e){if(null===ma.alternate)throw Error(n(467));throw Error(n(310))}e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ba?ma.memoizedState=ba=e:ba=ba.next=e}return ba}function La(e){var t=wa;return wa+=1,null===Sa&&(Sa=[]),e=Gi(Sa,e,t),t=ma,null===(null===ba?t.memoizedState:ba.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?Ho:Vo),e}function Fa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return La(e);if(e.$$typeof===b)return wi(e)}throw Error(n(438,String(e)))}function Na(e){var t=null,r=ma.updateQueue;if(null!==r&&(t=r.memoCache),null==t){var n=ma.alternate;null!==n&&null!==(n=n.updateQueue)&&null!=(n=n.memoCache)&&(t={data:n.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===r&&(r={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=r),r.memoCache=t,void 0===(r=t.data[t.index]))for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=C;return t.index++,r}function Wa(e,t){return"function"==typeof t?t(e):t}function $a(e){return Ba(Ma(),va,e)}function Ba(e,t,r){var i=e.queue;if(null===i)throw Error(n(311));i.lastRenderedReducer=r;var a=e.baseQueue,o=i.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=s=null,c=null,u=t=a.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(sc&p)===p:(ga&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Ai&&(d=!0);else{if((ga&f)===f){u=u.next,f===Ai&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=o):c=c.next=p,ma.lanes|=f,gc|=f}p=u.action,ka&&r(o,p),o=u.hasEagerState?u.eagerState:r(o,p)}else f={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=o):c=c.next=f,ma.lanes|=p,gc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=o:c.next=l,!Ur(o,e.memoizedState)&&(Ts=!0,d&&null!==(r=Di)))throw r;e.memoizedState=o,e.baseState=s,e.baseQueue=c,i.lastRenderedState=o}return null===a&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ha(e){var t=Ma(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,a=r.pending,o=t.memoizedState;if(null!==a){r.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);Ur(o,t.memoizedState)||(Ts=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,i]}function Va(e,t,r){var i=ma,a=Ma(),o=ri;if(o){if(void 0===r)throw Error(n(407));r=r()}else r=t();var s=!Ur((va||a).memoizedState,r);if(s&&(a.memoizedState=r,Ts=!0),a=a.queue,ho(2048,8,Ya.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||null!==ba&&1&ba.memoizedState.tag){if(i.flags|=2048,uo(9,{destroy:void 0,resource:void 0},qa.bind(null,i,a,r,t),null),null===ac)throw Error(n(349));o||124&ga||Ua(i,t,r)}return r}function Ua(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ma.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function qa(e,t,r,n){t.value=r,t.getSnapshot=n,Ga(t)&&Qa(e)}function Ya(e,t,r){return r(function(){Ga(t)&&Qa(e)})}function Ga(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ur(e,r)}catch(n){return!0}}function Qa(e){var t=En(e,2);null!==t&&Fc(t,0,2)}function Ka(e){var t=Da();if("function"==typeof e){var r=e;if(e=r(),ka){ce(!0);try{r()}finally{ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t}function Xa(e,t,r,n){return e.baseState=r,Ba(e,va,"function"==typeof n?n:Wa)}function Za(e,t,r,i,a){if(No(e))throw Error(n(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==R.T?r(!0):o.isTransition=!1,i(o),null===(r=t.pending)?(o.next=t.pending=o,Ja(t,o)):(o.next=r.next,t.pending=r.next=o)}}function Ja(e,t){var r=t.action,n=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};R.T=o;try{var s=r(i,n),l=R.S;null!==l&&l(o,s),eo(e,t,s)}catch(c){ro(e,t,c)}finally{R.T=a}}else try{eo(e,t,a=r(i,n))}catch(u){ro(e,t,u)}}function eo(e,t,r){null!==r&&"object"==typeof r&&"function"==typeof r.then?r.then(function(r){to(e,t,r)},function(r){return ro(e,t,r)}):to(e,t,r)}function to(e,t,r){t.status="fulfilled",t.value=r,no(t),e.state=r,null!==(t=e.pending)&&((r=t.next)===t?e.pending=null:(r=r.next,t.next=r,Ja(e,r)))}function ro(e,t,r){var n=e.pending;if(e.pending=null,null!==n){n=n.next;do{t.status="rejected",t.reason=r,no(t),t=t.next}while(t!==n)}e.action=null}function no(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function io(e,t){return t}function ao(e,t){if(ri){var r=ac.formState;if(null!==r){e:{var n=ma;if(ri){if(ti){t:{for(var i=ti,a=ii;8!==i.nodeType;){if(!a){i=null;break t}if(null===(i=yd(i.nextSibling))){i=null;break t}}i="F!"===(a=i.data)||"F"===a?i:null}if(i){ti=yd(i.nextSibling),n="F!"===i.data;break e}}oi(n)}n=!1}n&&(t=r[0])}}return(r=Da()).memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:io,lastRenderedState:t},r.queue=n,r=Mo.bind(null,ma,n),n.dispatch=r,n=Ka(!1),a=Fo.bind(null,ma,!1,n.queue),i={state:t,dispatch:null,action:e,pending:null},(n=Da()).queue=i,r=Za.bind(null,ma,i,a,r),i.dispatch=r,n.memoizedState=e,[t,r,!1]}function oo(e){return so(Ma(),va,e)}function so(e,t,r){if(t=Ba(e,t,io)[0],e=$a(Wa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var n=La(t)}catch(o){if(o===Bi)throw Vi;throw o}else n=t;var i=(t=Ma()).queue,a=i.dispatch;return r!==t.memoizedState&&(ma.flags|=2048,uo(9,{destroy:void 0,resource:void 0},lo.bind(null,i,r),null)),[n,a,e]}function lo(e,t){e.action=t}function co(e){var t=Ma(),r=va;if(null!==r)return so(t,r,e);Ma(),t=t.memoizedState;var n=(r=Ma()).queue.dispatch;return r.memoizedState=e,[t,n,!1]}function uo(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},null===(t=ma.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},ma.updateQueue=t),null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function po(){return Ma().memoizedState}function fo(e,t,r,n){var i=Da();n=void 0===n?null:n,ma.flags|=e,i.memoizedState=uo(1|t,{destroy:void 0,resource:void 0},r,n)}function ho(e,t,r,n){var i=Ma();n=void 0===n?null:n;var a=i.memoizedState.inst;null!==va&&null!==n&&za(n,va.memoizedState.deps)?i.memoizedState=uo(t,a,r,n):(ma.flags|=e,i.memoizedState=uo(1|t,a,r,n))}function go(e,t){fo(8390656,8,e,t)}function mo(e,t){ho(2048,8,e,t)}function vo(e,t){return ho(4,2,e,t)}function bo(e,t){return ho(4,4,e,t)}function yo(e,t){if("function"==typeof t){e=e();var r=t(e);return function(){"function"==typeof r?r():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function xo(e,t,r){r=null!=r?r.concat([e]):null,ho(4,4,yo.bind(null,t,e),r)}function ko(){}function _o(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;return null!==t&&za(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function wo(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;if(null!==t&&za(t,n[1]))return n[0];if(n=e(),ka){ce(!0);try{e()}finally{ce(!1)}}return r.memoizedState=[n,t],n}function So(e,t,r){return void 0===r||1073741824&ga?e.memoizedState=t:(e.memoizedState=r,e=Lc(),ma.lanes|=e,gc|=e,r)}function Co(e,t,r,n){return Ur(r,t)?r:null!==ua.current?(e=So(e,r,n),Ur(e,t)||(Ts=!0),e):42&ga?(e=Lc(),ma.lanes|=e,gc|=e,t):(Ts=!0,e.memoizedState=r)}function Po(e,t,r,n,i){var a=O.p;O.p=0!==a&&8>a?a:8;var o,s,l,c=R.T,u={};R.T=u,Fo(e,!1,t,r);try{var d=i(),p=R.S;null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Lo(e,t,(o=n,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=o;for(var e=0;e<s.length;e++)(0,s[e])(o)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Mc()):Lo(e,t,n,Mc())}catch(f){Lo(e,t,{then:function(){},status:"rejected",reason:f},Mc())}finally{O.p=a,R.T=c}}function zo(){}function Eo(e,t,r,i){if(5!==e.tag)throw Error(n(476));var a=To(e).queue;Po(e,a,t,I,null===r?zo:function(){return jo(e),r(i)})}function To(e){var t=e.memoizedState;if(null!==t)return t;var r={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:I},next:null}).next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:r},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function jo(e){Lo(e,To(e).next.queue,{},Mc())}function Ro(){return wi(Kd)}function Oo(){return Ma().memoizedState}function Io(){return Ma().memoizedState}function Ao(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var r=Mc(),n=ra(t,e=ta(r),r);return null!==n&&(Fc(n,0,r),na(n,t,r)),t={cache:ji()},void(e.payload=t)}t=t.return}}function Do(e,t,r){var n=Mc();r={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},No(e)?Wo(t,r):null!==(r=zn(e,t,r,n))&&(Fc(r,0,n),$o(r,t,n))}function Mo(e,t,r){Lo(e,t,r,Mc())}function Lo(e,t,r,n){var i={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(No(e))Wo(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ur(s,o))return Pn(e,t,i,0),null===ac&&Cn(),!1}catch(l){}if(null!==(r=zn(e,t,i,n)))return Fc(r,0,n),$o(r,t,n),!0}return!1}function Fo(e,t,r,i){if(i={lane:2,revertLane:Ru(),action:i,hasEagerState:!1,eagerState:null,next:null},No(e)){if(t)throw Error(n(479))}else null!==(t=zn(e,r,i,2))&&Fc(t,0,2)}function No(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function Wo(e,t){xa=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $o(e,t,r){if(4194048&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,Se(e,r)}}var Bo={readContext:wi,use:Fa,useCallback:Pa,useContext:Pa,useEffect:Pa,useImperativeHandle:Pa,useLayoutEffect:Pa,useInsertionEffect:Pa,useMemo:Pa,useReducer:Pa,useRef:Pa,useState:Pa,useDebugValue:Pa,useDeferredValue:Pa,useTransition:Pa,useSyncExternalStore:Pa,useId:Pa,useHostTransitionStatus:Pa,useFormState:Pa,useActionState:Pa,useOptimistic:Pa,useMemoCache:Pa,useCacheRefresh:Pa},Ho={readContext:wi,use:Fa,useCallback:function(e,t){return Da().memoizedState=[e,void 0===t?null:t],e},useContext:wi,useEffect:go,useImperativeHandle:function(e,t,r){r=null!=r?r.concat([e]):null,fo(4194308,4,yo.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var r=Da();t=void 0===t?null:t;var n=e();if(ka){ce(!0);try{e()}finally{ce(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=Da();if(void 0!==r){var i=r(t);if(ka){ce(!0);try{r(t)}finally{ce(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Do.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Da().memoizedState=e},useState:function(e){var t=(e=Ka(e)).queue,r=Mo.bind(null,ma,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:ko,useDeferredValue:function(e,t){return So(Da(),e,t)},useTransition:function(){var e=Ka(!1);return e=Po.bind(null,ma,e.queue,!0,!1),Da().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var i=ma,a=Da();if(ri){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===ac)throw Error(n(349));124&sc||Ua(i,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,go(Ya.bind(null,i,o,e),[e]),i.flags|=2048,uo(9,{destroy:void 0,resource:void 0},qa.bind(null,i,o,r,t),null),r},useId:function(){var e=Da(),t=ac.identifierPrefix;if(ri){var r=Qn;t="«"+t+"R"+(r=(Gn&~(1<<32-ue(Gn)-1)).toString(32)+r),0<(r=_a++)&&(t+="H"+r.toString(32)),t+="»"}else t="«"+t+"r"+(r=Ca++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ro,useFormState:ao,useActionState:ao,useOptimistic:function(e){var t=Da();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Fo.bind(null,ma,!0,r),r.dispatch=t,[e,t]},useMemoCache:Na,useCacheRefresh:function(){return Da().memoizedState=Ao.bind(null,ma)}},Vo={readContext:wi,use:Fa,useCallback:_o,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:$a,useRef:po,useState:function(){return $a(Wa)},useDebugValue:ko,useDeferredValue:function(e,t){return Co(Ma(),va.memoizedState,e,t)},useTransition:function(){var e=$a(Wa)[0],t=Ma().memoizedState;return["boolean"==typeof e?e:La(e),t]},useSyncExternalStore:Va,useId:Oo,useHostTransitionStatus:Ro,useFormState:oo,useActionState:oo,useOptimistic:function(e,t){return Xa(Ma(),0,e,t)},useMemoCache:Na,useCacheRefresh:Io},Uo={readContext:wi,use:Fa,useCallback:_o,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:Ha,useRef:po,useState:function(){return Ha(Wa)},useDebugValue:ko,useDeferredValue:function(e,t){var r=Ma();return null===va?So(r,e,t):Co(r,va.memoizedState,e,t)},useTransition:function(){var e=Ha(Wa)[0],t=Ma().memoizedState;return["boolean"==typeof e?e:La(e),t]},useSyncExternalStore:Va,useId:Oo,useHostTransitionStatus:Ro,useFormState:co,useActionState:co,useOptimistic:function(e,t){var r=Ma();return null!==va?Xa(r,0,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Na,useCacheRefresh:Io},qo=null,Yo=0;function Go(e){var t=Yo;return Yo+=1,null===qo&&(qo=[]),Gi(qo,e,t)}function Qo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Ko(e,t){if(t.$$typeof===u)throw Error(n(525));throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){return(0,e._init)(e._payload)}function Zo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function i(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Dn(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=67108866,r):n:(t.flags|=67108866,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Nn(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function c(e,t,r,n){var i=r.type;return i===f?h(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===w&&Xo(i)===t.type)?(Qo(t=a(t,r.props),r),t.return=e,t):(Qo(t=Ln(r.type,r.key,r.props,null,e.mode,n),r),t.return=e,t)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Wn(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function h(e,t,r,n,i){return null===t||7!==t.tag?((t=Fn(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function g(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Nn(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return Qo(r=Ln(t.type,t.key,t.props,null,e.mode,r),t),r.return=e,r;case p:return(t=Wn(t,e.mode,r)).return=e,t;case w:return g(e,t=(0,t._init)(t._payload),r)}if(j(t)||z(t))return(t=Fn(t,e.mode,r,null)).return=e,t;if("function"==typeof t.then)return g(e,Go(t),r);if(t.$$typeof===b)return g(e,Si(e,t),r);Ko(e,t)}return null}function m(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return r.key===i?c(e,t,r,n):null;case p:return r.key===i?u(e,t,r,n):null;case w:return m(e,t,r=(i=r._init)(r._payload),n)}if(j(r)||z(r))return null!==i?null:h(e,t,r,n,null);if("function"==typeof r.then)return m(e,t,Go(r),n);if(r.$$typeof===b)return m(e,t,Si(e,r),n);Ko(e,r)}return null}function v(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case p:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case w:return v(e,t,r,n=(0,n._init)(n._payload),i)}if(j(n)||z(n))return h(t,e=e.get(r)||null,n,i,null);if("function"==typeof n.then)return v(e,t,r,Go(n),i);if(n.$$typeof===b)return v(e,t,r,Si(t,n),i);Ko(t,n)}return null}function y(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===f&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case d:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===f){if(7===c.tag){r(l,c.sibling),(h=a(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===w&&Xo(x)===c.type){r(l,c.sibling),Qo(h=a(c,u.props),u),h.return=l,l=h;break e}r(l,c);break}t(l,c),c=c.sibling}u.type===f?((h=Fn(u.props.children,l.mode,h,u.key)).return=l,l=h):(Qo(h=Ln(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return s(l);case p:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){r(l,c.sibling),(h=a(c,u.children||[])).return=l,l=h;break e}r(l,c);break}t(l,c),c=c.sibling}(h=Wn(u,l.mode,h)).return=l,l=h}return s(l);case w:return y(l,c,u=(x=u._init)(u._payload),h)}if(j(u))return function(n,a,s,l){for(var c=null,u=null,d=a,p=a=0,f=null;null!==d&&p<s.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var h=m(n,d,s[p],l);if(null===h){null===d&&(d=f);break}e&&d&&null===h.alternate&&t(n,d),a=o(h,a,p),null===u?c=h:u.sibling=h,u=h,d=f}if(p===s.length)return r(n,d),ri&&Kn(n,p),c;if(null===d){for(;p<s.length;p++)null!==(d=g(n,s[p],l))&&(a=o(d,a,p),null===u?c=d:u.sibling=d,u=d);return ri&&Kn(n,p),c}for(d=i(d);p<s.length;p++)null!==(f=v(d,n,p,s[p],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),a=o(f,a,p),null===u?c=f:u.sibling=f,u=f);return e&&d.forEach(function(e){return t(n,e)}),ri&&Kn(n,p),c}(l,c,u,h);if(z(u)){if("function"!=typeof(x=z(u)))throw Error(n(150));return function(a,s,l,c){if(null==l)throw Error(n(151));for(var u=null,d=null,p=s,f=s=0,h=null,b=l.next();null!==p&&!b.done;f++,b=l.next()){p.index>f?(h=p,p=null):h=p.sibling;var y=m(a,p,b.value,c);if(null===y){null===p&&(p=h);break}e&&p&&null===y.alternate&&t(a,p),s=o(y,s,f),null===d?u=y:d.sibling=y,d=y,p=h}if(b.done)return r(a,p),ri&&Kn(a,f),u;if(null===p){for(;!b.done;f++,b=l.next())null!==(b=g(a,b.value,c))&&(s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return ri&&Kn(a,f),u}for(p=i(p);!b.done;f++,b=l.next())null!==(b=v(p,a,f,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?f:b.key),s=o(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(a,e)}),ri&&Kn(a,f),u}(l,c,u=x.call(u),h)}if("function"==typeof u.then)return y(l,c,Go(u),h);if(u.$$typeof===b)return y(l,c,Si(l,u),h);Ko(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(r(l,c.sibling),(h=a(c,u)).return=l,l=h):(r(l,c),(h=Nn(u,l.mode,h)).return=l,l=h),s(l)):r(l,c)}return function(e,t,r,n){try{Yo=0;var i=y(e,t,r,n);return qo=null,i}catch(o){if(o===Bi||o===Vi)throw o;var a=In(29,o,null,e.mode);return a.lanes=n,a.return=e,a}}}var Jo=Zo(!0),es=Zo(!1),ts=M(null),rs=null;function ns(e){var t=e.alternate;F(ls,1&ls.current),F(ts,e),null===rs&&(null===t||null!==ua.current||null!==t.memoizedState)&&(rs=e)}function is(e){if(22===e.tag){if(F(ls,ls.current),F(ts,e),null===rs){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rs=e)}}else os()}function os(){F(ls,ls.current),F(ts,ts.current)}function ss(e){L(ts),rs===e&&(rs=null),L(ls)}var ls=M(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||bd(r)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function us(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:c({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var ds={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Mc(),i=ta(n);i.payload=t,null!=r&&(i.callback=r),null!==(t=ra(e,i,n))&&(Fc(t,0,n),na(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Mc(),i=ta(n);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=ra(e,i,n))&&(Fc(t,0,n),na(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mc(),n=ta(r);n.tag=2,null!=t&&(n.callback=t),null!==(t=ra(e,n,r))&&(Fc(t,0,r),na(t,e,r))}};function fs(e,t,r,n,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&qr(r,n)&&qr(i,a))}function hs(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ds.enqueueReplaceState(t,t.state,null)}function gs(e,t){var r=t;if("ref"in t)for(var n in r={},t)"ref"!==n&&(r[n]=t[n]);if(e=e.defaultProps)for(var i in r===t&&(r=c({},r)),e)void 0===r[i]&&(r[i]=e[i]);return r}var vs="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function bs(e){vs(e)}function xs(e){console.error(e)}function ks(e){vs(e)}function _s(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function ws(e,t,r){try{(0,e.onCaughtError)(r.value,{componentStack:r.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Cs(e,t,r){return(r=ta(r)).tag=3,r.payload={element:null},r.callback=function(){_s(e,t)},r}function Ps(e){return(e=ta(e)).tag=3,e}function zs(e,t,r,n){var i=r.type.getDerivedStateFromError;if("function"==typeof i){var a=n.value;e.payload=function(){return i(a)},e.callback=function(){ws(t,r,n)}}var o=r.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){ws(t,r,n),"function"!=typeof i&&(null===Pc?Pc=new Set([this]):Pc.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})})}var Es=Error(n(461)),Ts=!1;function js(e,t,r,n){t.child=null===e?es(t,null,r,n):Jo(t,e.child,r,n)}function Rs(e,t,r,n,i){r=r.render;var a=t.ref;if("ref"in n){var o={};for(var s in n)"ref"!==s&&(o[s]=n[s])}else o=n;return _i(t),n=Ea(e,t,r,o,a,i),s=Oa(),null===e||Ts?(ri&&s&&Zn(t),t.flags|=1,js(e,t,n,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Os(e,t,r,n,i){if(null===e){var a=r.type;return"function"!=typeof a||An(a)||void 0!==a.defaultProps||null!==r.compare?((e=Ln(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Is(e,t,a,n,i))}if(a=e.child,!Zs(e,i)){var o=a.memoizedProps;if((r=null!==(r=r.compare)?r:qr)(o,n)&&e.ref===t.ref)return Xs(e,t,i)}return t.flags|=1,(e=Dn(a,n)).ref=t.ref,e.return=t,t.child=e}function Is(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(qr(a,n)&&e.ref===t.ref){if(Ts=!1,t.pendingProps=n=a,!Zs(e,i))return t.lanes=e.lanes,Xs(e,t,i);131072&e.flags&&(Ts=!0)}}return Ls(e,t,r,n,i)}function As(e,t,r){var n=t.pendingProps,i=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode){if(128&t.flags){if(n=null!==a?a.baseLanes|r:r,null!==e){for(i=t.child=e.child,a=0;null!==i;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~n}else t.childLanes=0,t.child=null;return Ds(e,t,n,r)}if(!(536870912&r))return t.lanes=t.childLanes=536870912,Ds(e,t,null!==a?a.baseLanes|r:r,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Wi(0,null!==a?a.cachePool:null),null!==a?pa(t,a):fa(),is(t)}else null!==a?(Wi(0,a.cachePool),pa(t,a),os(),t.memoizedState=null):(null!==e&&Wi(0,null),fa(),os());return js(e,t,i,r),t.child}function Ds(e,t,r,n){var i=Ni();return i=null===i?null:{parent:Ti._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},null!==e&&Wi(0,null),fa(),is(t),null!==e&&xi(e,t,n,!0),null}function Ms(e,t){var r=t.ref;if(null===r)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof r&&"object"!=typeof r)throw Error(n(284));null!==e&&e.ref===r||(t.flags|=4194816)}}function Ls(e,t,r,n,i){return _i(t),r=Ea(e,t,r,n,void 0,i),n=Oa(),null===e||Ts?(ri&&n&&Zn(t),t.flags|=1,js(e,t,r,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Fs(e,t,r,n,i,a){return _i(t),t.updateQueue=null,r=ja(t,n,r,i),Ta(e),n=Oa(),null===e||Ts?(ri&&n&&Zn(t),t.flags|=1,js(e,t,r,a),t.child):(Ia(e,t,a),Xs(e,t,a))}function Ns(e,t,r,n,i){if(_i(t),null===t.stateNode){var a=Rn,o=r.contextType;"object"==typeof o&&null!==o&&(a=wi(o)),a=new r(n,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ds,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=n,a.state=t.memoizedState,a.refs={},Ji(t),o=r.contextType,a.context="object"==typeof o&&null!==o?wi(o):Rn,a.state=t.memoizedState,"function"==typeof(o=r.getDerivedStateFromProps)&&(us(t,r,o,n),a.state=t.memoizedState),"function"==typeof r.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&ds.enqueueReplaceState(a,a.state,null),sa(t,n,a,i),oa(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=gs(r,s);a.props=l;var c=a.context,u=r.contextType;o=Rn,"object"==typeof u&&null!==u&&(o=wi(u));var d=r.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||c!==o)&&hs(t,a,n,o),Zi=!1;var p=t.memoizedState;a.state=p,sa(t,n,a,i),oa(),c=t.memoizedState,s||p!==c||Zi?("function"==typeof d&&(us(t,r,d,n),c=t.memoizedState),(l=Zi||fs(t,r,l,n,p,c,o))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=o,n=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,ea(e,t),u=gs(r,o=t.memoizedProps),a.props=u,d=t.pendingProps,p=a.context,c=r.contextType,l=Rn,"object"==typeof c&&null!==c&&(l=wi(c)),(c="function"==typeof(s=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==d||p!==l)&&hs(t,a,n,l),Zi=!1,p=t.memoizedState,a.state=p,sa(t,n,a,i),oa();var f=t.memoizedState;o!==d||p!==f||Zi||null!==e&&null!==e.dependencies&&ki(e.dependencies)?("function"==typeof s&&(us(t,r,s,n),f=t.memoizedState),(u=Zi||fs(t,r,u,n,p,f,l)||null!==e&&null!==e.dependencies&&ki(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return a=n,Ms(e,t),n=!!(128&t.flags),a||n?(a=t.stateNode,r=n&&"function"!=typeof r.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&n?(t.child=Jo(t,e.child,null,i),t.child=Jo(t,null,r,i)):js(e,t,r,i),t.memoizedState=a.state,e=t.child):e=Xs(e,t,i),e}function Ws(e,t,r,n){return ui(),t.flags|=256,js(e,t,r,n),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:$i()}}function Hs(e,t,r){return e=null!==e?e.childLanes&~r:0,t&&(e|=bc),e}function Vs(e,t,r){var i,a=t.pendingProps,o=!1,s=!!(128&t.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&ls.current)),i&&(o=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(ri){if(o?ns(t):os(),ri){var l,c=ti;if(l=c){e:{for(l=c,c=ii;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=yd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Yn?{id:Gn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},(l=In(18,null,null,0)).stateNode=c,l.return=t,t.child=l,ei=t,ti=null,l=!0):l=!1}l||oi(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return bd(c)?t.lanes=32:t.lanes=536870912,null;ss(t)}return c=a.children,a=a.fallback,o?(os(),c=qs({mode:"hidden",children:c},o=t.mode),a=Fn(a,o,r,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(o=t.child).memoizedState=Bs(r),o.childLanes=Hs(e,i,r),t.memoizedState=$s,a):(ns(t),Us(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(ns(t),t.flags&=-257,t=Ys(e,t,r)):null!==t.memoizedState?(os(),t.child=e.child,t.flags|=128,t=null):(os(),o=a.fallback,c=t.mode,a=qs({mode:"visible",children:a.children},c),(o=Fn(o,c,r,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Jo(t,e.child,null,r),(a=t.child).memoizedState=Bs(r),a.childLanes=Hs(e,i,r),t.memoizedState=$s,t=o);else if(ns(t),bd(c)){if(i=c.nextSibling&&c.nextSibling.dataset)var u=i.dgst;i=u,(a=Error(n(419))).stack="",a.digest=i,pi({value:a,source:null,stack:null}),t=Ys(e,t,r)}else if(Ts||xi(e,t,r,!1),i=0!==(r&e.childLanes),Ts||i){if(null!==(i=ac)&&0!==(a=0!==((a=42&(a=r&-r)?1:Ce(a))&(i.suspendedLanes|r))?0:a)&&a!==l.retryLane)throw l.retryLane=a,En(e,a),Fc(i,0,a),Es;"$?"===c.data||Qc(),t=Ys(e,t,r)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ti=yd(c.nextSibling),ei=t,ri=!0,ni=null,ii=!1,null!==e&&(Un[qn++]=Gn,Un[qn++]=Qn,Un[qn++]=Yn,Gn=e.id,Qn=e.overflow,Yn=t),(t=Us(t,a.children)).flags|=4096);return t}return o?(os(),o=a.fallback,c=t.mode,u=(l=e.child).sibling,(a=Dn(l,{mode:"hidden",children:a.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?o=Dn(u,o):(o=Fn(o,c,r,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,null===(c=e.child.memoizedState)?c=Bs(r):(null!==(l=c.cachePool)?(u=Ti._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=$i(),c={baseLanes:c.baseLanes|r,cachePool:l}),o.memoizedState=c,o.childLanes=Hs(e,i,r),t.memoizedState=$s,a):(ns(t),e=(r=e.child).sibling,(r=Dn(r,{mode:"visible",children:a.children})).return=t,r.sibling=null,null!==e&&(null===(i=t.deletions)?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=r,t.memoizedState=null,r)}function Us(e,t){return(t=qs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function qs(e,t){return(e=In(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ys(e,t,r){return Jo(t,e.child,null,r),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),bi(e.return,t,r)}function Qs(e,t,r,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function Ks(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(js(e,t,n.children,r),2&(n=ls.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,r,t);else if(19===e.tag)Gs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}switch(F(ls,n),i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===cs(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Qs(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===cs(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Qs(t,!0,r,null,a);break;case"together":Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),gc|=t.lanes,0===(r&t.childLanes)){if(null===e)return null;if(xi(e,t,r,!1),0===(r&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Dn(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Dn(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Zs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ki(e))}function Js(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ts=!0;else{if(!(Zs(e,r)||128&t.flags))return Ts=!1,function(e,t,r){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),mi(0,Ti,e.memoizedState.cache),ui();break;case 27:case 5:U(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:mi(0,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(null!==n)return null!==n.dehydrated?(ns(t),t.flags|=128,null):0!==(r&t.child.childLanes)?Vs(e,t,r):(ns(t),null!==(e=Xs(e,t,r))?e.sibling:null);ns(t);break;case 19:var i=!!(128&e.flags);if((n=0!==(r&t.childLanes))||(xi(e,t,r,!1),n=0!==(r&t.childLanes)),i){if(n)return Ks(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(ls,ls.current),n)break;return null;case 22:case 23:return t.lanes=0,As(e,t,r);case 24:mi(0,Ti,e.memoizedState.cache)}return Xs(e,t,r)}(e,t,r);Ts=!!(131072&e.flags)}else Ts=!1,ri&&1048576&t.flags&&Xn(t,Vn,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,a=i._init;if(i=a(i._payload),t.type=i,"function"!=typeof i){if(null!=i){if((a=i.$$typeof)===y){t.tag=11,t=Rs(null,t,i,e,r);break e}if(a===_){t.tag=14,t=Os(null,t,i,e,r);break e}}throw t=T(i)||i,Error(n(306,t,""))}An(i)?(e=gs(i,e),t.tag=1,t=Ns(null,t,i,e,r)):(t.tag=0,t=Ls(null,t,i,e,r))}return t;case 0:return Ls(e,t,t.type,t.pendingProps,r);case 1:return Ns(e,t,i=t.type,a=gs(i,t.pendingProps),r);case 3:e:{if(H(t,t.stateNode.containerInfo),null===e)throw Error(n(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,ea(e,t),sa(t,i,null,r);var s=t.memoizedState;if(i=s.cache,mi(0,Ti,i),i!==o.cache&&yi(t,[Ti],r,!0),oa(),i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ws(e,t,i,r);break e}if(i!==a){pi(a=kn(Error(n(424)),t)),t=Ws(e,t,i,r);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ti=yd(e.firstChild),ei=t,ri=!0,ni=null,ii=!0,r=es(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ui(),i===a){t=Xs(e,t,r);break e}js(e,t,i,r)}t=t.child}return t;case 26:return Ms(e,t),null===e?(r=jd(t.type,null,t.pendingProps,null))?t.memoizedState=r:ri||(r=t.type,e=t.pendingProps,(i=ad($.current).createElement(r))[Te]=t,i[je]=e,rd(i,r,e),Be(i),t.stateNode=i):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return U(t),null===e&&ri&&(i=t.stateNode=_d(t.type,t.pendingProps,$.current),ei=t,ii=!0,a=ti,gd(t.type)?(xd=a,ti=yd(i.firstChild)):ti=a),js(e,t,t.pendingProps.children,r),Ms(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ri&&((a=i=ti)&&(null!==(i=function(e,t,r,n){for(;1===e.nodeType;){var i=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(n){if(!e[Me])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===a)return e}if(null===(e=yd(e.nextSibling)))break}return null}(i,t.type,t.pendingProps,ii))?(t.stateNode=i,ei=t,ti=yd(i.firstChild),ii=!1,a=!0):a=!1),a||oi(t)),U(t),a=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,i=o.children,ld(a,o)?i=null:null!==s&&ld(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=Ea(e,t,Ra,null,null,r),Kd._currentValue=a),Ms(e,t),js(e,t,i,r),t.child;case 6:return null===e&&ri&&((e=r=ti)&&(null!==(r=function(e,t,r){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!r)return null;if(null===(e=yd(e.nextSibling)))return null}return e}(r,t.pendingProps,ii))?(t.stateNode=r,ei=t,ti=null,e=!0):e=!1),e||oi(t)),null;case 13:return Vs(e,t,r);case 4:return H(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Jo(t,null,i,r):js(e,t,i,r),t.child;case 11:return Rs(e,t,t.type,t.pendingProps,r);case 7:return js(e,t,t.pendingProps,r),t.child;case 8:case 12:return js(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,mi(0,t.type,i.value),js(e,t,i.children,r),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,_i(t),i=i(a=wi(a)),t.flags|=1,js(e,t,i,r),t.child;case 14:return Os(e,t,t.type,t.pendingProps,r);case 15:return Is(e,t,t.type,t.pendingProps,r);case 19:return Ks(e,t,r);case 31:return i=t.pendingProps,r=t.mode,i={mode:i.mode,children:i.children},null===e?((r=qs(i,r)).ref=t.ref,t.child=r,r.return=t,t=r):((r=Dn(e.child,i)).ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return As(e,t,r);case 24:return _i(t),i=wi(Ti),null===e?(null===(a=Ni())&&(a=ac,o=ji(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=r),a=o),t.memoizedState={parent:i,cache:a},Ji(t),mi(0,Ti,a)):(0!==(e.lanes&r)&&(ea(e,t),sa(t,null,null,r),oa()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),mi(0,Ti,i)):(i=o.cache,mi(0,Ti,i),i!==a.cache&&yi(t,[Ti],r,!0))),js(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(n(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Hd(t)){if(null!==(t=ts.current)&&((4194048&sc)===sc?null!==rs:(62914560&sc)!==sc&&!(536870912&sc)||t!==rs))throw Qi=Ui,Hi;e.flags|=8192}}function rl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?xe():536870912,e.lanes|=t,yc|=t)}function nl(e,t){if(!ri)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function il(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=65011712&i.subtreeFlags,n|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function al(e,t,r){var i=t.pendingProps;switch(Jn(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return il(t),null;case 3:return r=t.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vi(Ti),V(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ci(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,di())),il(t),null;case 26:return r=t.memoizedState,null===e?(el(t),null!==r?(il(t),tl(t,r)):(il(t),t.flags&=-16777217)):r?r!==e.memoizedState?(el(t),il(t),tl(t,r)):(il(t),t.flags&=-16777217):(e.memoizedProps!==i&&el(t),il(t),t.flags&=-16777217),null;case 27:q(t),r=$.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(n(166));return il(t),null}e=N.current,ci(t)?si(t):(e=_d(a,i,r),t.stateNode=e,el(t))}return il(t),null;case 5:if(q(t),r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(n(166));return il(t),null}if(e=N.current,ci(t))si(t);else{switch(a=ad($.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof i.is?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e="string"==typeof i.is?a.createElement(r,{is:i.is}):a.createElement(r)}}e[Te]=t,e[je]=i;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(rd(e,r,i),r){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return il(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(e=$.current,ci(t)){if(e=t.stateNode,r=t.memoizedProps,i=null,null!==(a=ei))switch(a.tag){case 27:case 5:i=a.memoizedProps}e[Te]=t,(e=!!(e.nodeValue===r||null!==i&&!0===i.suppressHydrationWarning||Zu(e.nodeValue,r)))||oi(t)}else(e=ad(e).createTextNode(i))[Te]=t,t.stateNode=e}return il(t),null;case 13:if(i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ci(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(n(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(n(317));a[Te]=t}else ui(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;il(t),a=!1}else a=di(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(ss(t),t):(ss(t),null)}if(ss(t),128&t.flags)return t.lanes=r,t;if(r=null!==i,e=null!==e&&null!==e.memoizedState,r){a=null,null!==(i=t.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(a=i.alternate.memoizedState.cachePool.pool);var o=null;null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),rl(t,t.updateQueue),il(t),null;case 4:return V(),null===e&&Bu(t.stateNode.containerInfo),il(t),null;case 10:return vi(t.type),il(t),null;case 19:if(L(ls),null===(a=t.memoizedState))return il(t),null;if(i=!!(128&t.flags),null===(o=a.rendering))if(i)nl(a,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=cs(e))){for(t.flags|=128,nl(a,!1),e=o.updateQueue,t.updateQueue=e,rl(t,e),t.subtreeFlags=0,e=r,r=t.child;null!==r;)Mn(r,e),r=r.sibling;return F(ls,1&ls.current|2),t.child}e=e.sibling}null!==a.tail&&Z()>Sc&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=cs(o))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,rl(t,e),nl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!ri)return il(t),null}else 2*Z()-a.renderingStartTime>Sc&&536870912!==r&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Z(),t.sibling=null,e=ls.current,F(ls,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return ss(t),ha(),i=null!==t.memoizedState,null!==e?null!==e.memoizedState!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?!!(536870912&r)&&!(128&t.flags)&&(il(t),6&t.subtreeFlags&&(t.flags|=8192)):il(t),null!==(r=t.updateQueue)&&rl(t,r.retryQueue),r=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),i=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(i=t.memoizedState.cachePool.pool),i!==r&&(t.flags|=2048),null!==e&&L(Fi),null;case 24:return r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),vi(Ti),il(t),null;case 25:case 30:return null}throw Error(n(156,t.tag))}function ol(e,t){switch(Jn(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Ti),V(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return q(t),null;case 13:if(ss(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ui()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return L(ls),null;case 4:return V(),null;case 10:return vi(t.type),null;case 22:case 23:return ss(t),ha(),null!==e&&L(Fi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Ti),null;default:return null}}function sl(e,t){switch(Jn(t),t.tag){case 3:vi(Ti),V();break;case 26:case 27:case 5:q(t);break;case 4:V();break;case 13:ss(t);break;case 19:L(ls);break;case 10:vi(t.type);break;case 22:case 23:ss(t),ha(),null!==e&&L(Fi);break;case 24:vi(Ti)}}function ll(e,t){try{var r=t.updateQueue,n=null!==r?r.lastEffect:null;if(null!==n){var i=n.next;r=i;do{if((r.tag&e)===e){n=void 0;var a=r.create,o=r.inst;n=a(),o.destroy=n}r=r.next}while(r!==i)}}catch(s){pu(t,t.return,s)}}function cl(e,t,r){try{var n=t.updateQueue,i=null!==n?n.lastEffect:null;if(null!==i){var a=i.next;n=a;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(void 0!==s){o.destroy=void 0,i=t;var l=r,c=s;try{c()}catch(u){pu(i,l,u)}}}n=n.next}while(n!==a)}}catch(u){pu(t,t.return,u)}}function ul(e){var t=e.updateQueue;if(null!==t){var r=e.stateNode;try{ca(t,r)}catch(n){pu(e,e.return,n)}}}function dl(e,t,r){r.props=gs(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){pu(e,t,n)}}function pl(e,t){try{var r=e.ref;if(null!==r){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}"function"==typeof r?e.refCleanup=r(n):r.current=n}}catch(i){pu(e,t,i)}}function fl(e,t){var r=e.ref,n=e.refCleanup;if(null!==r)if("function"==typeof n)try{n()}catch(i){pu(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof r)try{r(null)}catch(a){pu(e,t,a)}else r.current=null}function hl(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(i){pu(e,e.return,i)}}function gl(e,t,r){try{var i=e.stateNode;!function(e,t,r,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,s=null,l=null,c=null,u=null,d=null;for(h in r){var p=r[h];if(r.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":c=p;default:i.hasOwnProperty(h)||ed(e,t,h,null,i,p)}}for(var f in i){var h=i[f];if(p=r[f],i.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":o=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,t));break;default:h!==p&&ed(e,t,f,h,i,p)}}return void ft(e,s,l,c,u,d,o,a);case"select":for(o in h=s=l=f=null,r)if(c=r[o],r.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":h=c;default:i.hasOwnProperty(o)||ed(e,t,o,null,i,c)}for(a in i)if(o=i[a],c=r[a],i.hasOwnProperty(a)&&(null!=o||null!=c))switch(a){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==c&&ed(e,t,a,o,i,c)}return t=l,r=s,i=h,void(null!=f?mt(e,!!r,f,!1):!!i!=!!r&&(null!=t?mt(e,!!r,t,!0):mt(e,!!r,r?[]:"",!1)));case"textarea":for(l in h=f=null,r)if(a=r[l],r.hasOwnProperty(l)&&null!=a&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,i,a)}for(s in i)if(a=i[s],o=r[s],i.hasOwnProperty(s)&&(null!=a||null!=o))switch(s){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(n(91));break;default:a!==o&&ed(e,t,s,a,i,o)}return void vt(e,f,h);case"option":for(var g in r)f=r[g],r.hasOwnProperty(g)&&null!=f&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,f));for(c in i)f=i[c],h=r[c],!i.hasOwnProperty(c)||f===h||null==f&&null==h||("selected"===c?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:ed(e,t,c,f,i,h));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 m in r)f=r[m],r.hasOwnProperty(m)&&null!=f&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,f);for(u in i)if(f=i[u],h=r[u],i.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,t));break;default:ed(e,t,u,f,i,h)}return;default:if(wt(t)){for(var v in r)f=r[v],r.hasOwnProperty(v)&&void 0!==f&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,f);for(d in i)f=i[d],h=r[d],!i.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||td(e,t,d,f,i,h);return}}for(var b in r)f=r[b],r.hasOwnProperty(b)&&null!=f&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,f);for(p in i)f=i[p],h=r[p],!i.hasOwnProperty(p)||f===h||null==f&&null==h||ed(e,t,p,f,i,h)}(i,e.type,r,t),i[je]=t}catch(a){pu(e,e.return,a)}}function ml(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&gd(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&gd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(e,t):((t=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==n&&(27===n&&gd(e.type)&&(r=e.stateNode,t=null),null!==(e=e.child)))for(bl(e,t,r),e=e.sibling;null!==e;)bl(e,t,r),e=e.sibling}function yl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&(27===n&&gd(e.type)&&(r=e.stateNode),null!==(e=e.child)))for(yl(e,t,r),e=e.sibling;null!==e;)yl(e,t,r),e=e.sibling}function xl(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rd(t,n,r),t[Te]=e,t[je]=r}catch(a){pu(e,e.return,a)}}var kl=!1,_l=!1,wl=!1,Sl="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Pl(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Nl(e,r),4&n&&ll(5,r);break;case 1:if(Nl(e,r),4&n)if(e=r.stateNode,null===t)try{e.componentDidMount()}catch(o){pu(r,r.return,o)}else{var i=gs(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){pu(r,r.return,s)}}64&n&&ul(r),512&n&&pl(r,r.return);break;case 3:if(Nl(e,r),64&n&&null!==(e=r.updateQueue)){if(t=null,null!==r.child)switch(r.child.tag){case 27:case 5:case 1:t=r.child.stateNode}try{ca(e,t)}catch(o){pu(r,r.return,o)}}break;case 27:null===t&&4&n&&xl(r);case 26:case 5:Nl(e,r),null===t&&4&n&&hl(r),512&n&&pl(r,r.return);break;case 12:Nl(e,r);break;case 13:Nl(e,r),4&n&&Ol(e,r),64&n&&null!==(e=r.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var r=e.ownerDocument;if("$?"!==e.data||"complete"===r.readyState)t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}(e,r=mu.bind(null,r));break;case 22:if(!(n=null!==r.memoizedState||kl)){t=null!==t&&null!==t.memoizedState||_l,i=kl;var a=_l;kl=n,(_l=t)&&!a?$l(e,r,!!(8772&r.subtreeFlags)):Nl(e,r),kl=i,_l=a}break;case 30:break;default:Nl(e,r)}}function zl(e){var t=e.alternate;null!==t&&(e.alternate=null,zl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Le(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var El=null,Tl=!1;function jl(e,t,r){for(r=r.child;null!==r;)Rl(e,t,r),r=r.sibling}function Rl(e,t,r){if(le&&"function"==typeof le.onCommitFiberUnmount)try{le.onCommitFiberUnmount(se,r)}catch(a){}switch(r.tag){case 26:_l||fl(r,t),jl(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode).parentNode.removeChild(r);break;case 27:_l||fl(r,t);var n=El,i=Tl;gd(r.type)&&(El=r.stateNode,Tl=!1),jl(e,t,r),wd(r.stateNode),El=n,Tl=i;break;case 5:_l||fl(r,t);case 6:if(n=El,i=Tl,El=null,jl(e,t,r),Tl=i,null!==(El=n))if(Tl)try{(9===El.nodeType?El.body:"HTML"===El.nodeName?El.ownerDocument.body:El).removeChild(r.stateNode)}catch(o){pu(r,t,o)}else try{El.removeChild(r.stateNode)}catch(o){pu(r,t,o)}break;case 18:null!==El&&(Tl?(md(9===(e=El).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,r.stateNode),Tp(e)):md(El,r.stateNode));break;case 4:n=El,i=Tl,El=r.stateNode.containerInfo,Tl=!0,jl(e,t,r),El=n,Tl=i;break;case 0:case 11:case 14:case 15:_l||cl(2,r,t),_l||cl(4,r,t),jl(e,t,r);break;case 1:_l||(fl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount&&dl(r,t,n)),jl(e,t,r);break;case 21:jl(e,t,r);break;case 22:_l=(n=_l)||null!==r.memoizedState,jl(e,t,r),_l=n;break;default:jl(e,t,r)}}function Ol(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Tp(e)}catch(r){pu(t,t.return,r)}}function Il(e,t){var r=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Sl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Sl),t;default:throw Error(n(435,e.tag))}}(e);t.forEach(function(t){var n=vu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}function Al(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var a=r[i],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(gd(l.type)){El=l.stateNode,Tl=!1;break e}break;case 5:El=l.stateNode,Tl=!1;break e;case 3:case 4:El=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===El)throw Error(n(160));Rl(o,s,a),El=null,Tl=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ml(t,e),t=t.sibling}var Dl=null;function Ml(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Al(t,e),Ll(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),64&i&&kl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===r?i:r.concat(i));break;case 26:var a=Dl;if(Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),4&i){var o=null!==r?r.memoizedState:null;if(i=e.memoizedState,null===r)if(null===i)if(null===e.stateNode){e:{i=e.type,r=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":(!(o=a.getElementsByTagName("title")[0])||o[Me]||o[Te]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(i),a.head.insertBefore(o,a.querySelector("head > title"))),rd(o,i,r),o[Te]=e,Be(o),i=o;break e;case"link":var s=$d("link","href",a).get(i+(r.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==r.href||""===r.href?null:r.href)&&o.getAttribute("rel")===(null==r.rel?null:r.rel)&&o.getAttribute("title")===(null==r.title?null:r.title)&&o.getAttribute("crossorigin")===(null==r.crossOrigin?null:r.crossOrigin)){s.splice(l,1);break t}rd(o=a.createElement(i),i,r),a.head.appendChild(o);break;case"meta":if(s=$d("meta","content",a).get(i+(r.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==r.content?null:""+r.content)&&o.getAttribute("name")===(null==r.name?null:r.name)&&o.getAttribute("property")===(null==r.property?null:r.property)&&o.getAttribute("http-equiv")===(null==r.httpEquiv?null:r.httpEquiv)&&o.getAttribute("charset")===(null==r.charSet?null:r.charSet)){s.splice(l,1);break t}rd(o=a.createElement(i),i,r),a.head.appendChild(o);break;default:throw Error(n(468,i))}o[Te]=e,Be(o),i=o}e.stateNode=i}else Bd(a,e.type,e.stateNode);else e.stateNode=Md(a,i,e.memoizedProps);else o!==i?(null===o?null!==r.stateNode&&(r=r.stateNode).parentNode.removeChild(r):o.count--,null===i?Bd(a,e.type,e.stateNode):Md(a,i,e.memoizedProps)):null===i&&null!==e.stateNode&&gl(e,e.memoizedProps,r.memoizedProps)}break;case 27:Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),null!==r&&4&i&&gl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Al(t,e),Ll(e),512&i&&(_l||null===r||fl(r,r.return)),32&e.flags){a=e.stateNode;try{yt(a,"")}catch(h){pu(e,e.return,h)}}4&i&&null!=e.stateNode&&gl(e,a=e.memoizedProps,null!==r?r.memoizedProps:a),1024&i&&(wl=!0);break;case 6:if(Al(t,e),Ll(e),4&i){if(null===e.stateNode)throw Error(n(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(h){pu(e,e.return,h)}}break;case 3:if(Wd=null,a=Dl,Dl=Pd(t.containerInfo),Al(t,e),Dl=a,Ll(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Tp(t.containerInfo)}catch(h){pu(e,e.return,h)}wl&&(wl=!1,Fl(e));break;case 4:i=Dl,Dl=Pd(e.stateNode.containerInfo),Al(t,e),Ll(e),Dl=i;break;case 12:default:Al(t,e),Ll(e);break;case 13:Al(t,e),Ll(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==r&&null!==r.memoizedState)&&(wc=Z()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));break;case 22:a=null!==e.memoizedState;var c=null!==r&&null!==r.memoizedState,u=kl,d=_l;if(kl=u||a,_l=d||c,Al(t,e),_l=d,kl=u,Ll(e),8192&i)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===r||c||kl||_l||Wl(e)),r=null,t=e;;){if(5===t.tag||26===t.tag){if(null===r){c=r=t;try{if(o=c.stateNode,a)"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(h){pu(c,c.return,h)}}}else if(6===t.tag){if(null===r){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(h){pu(c,c.return,h)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(r=i.retryQueue)&&(i.retryQueue=null,Il(e,r));break;case 19:Al(t,e),Ll(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));case 30:case 21:}}function Ll(e){var t=e.flags;if(2&t){try{for(var r,i=e.return;null!==i;){if(ml(i)){r=i;break}i=i.return}if(null==r)throw Error(n(160));switch(r.tag){case 27:var a=r.stateNode;yl(e,vl(e),a);break;case 5:var o=r.stateNode;32&r.flags&&(yt(o,""),r.flags&=-33),yl(e,vl(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;bl(e,vl(e),s);break;default:throw Error(n(161))}}catch(l){pu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Fl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Fl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Pl(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),Wl(t);break;case 1:fl(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&dl(t,t.return,r),Wl(t);break;case 27:wd(t.stateNode);case 26:case 5:fl(t,t.return),Wl(t);break;case 22:null===t.memoizedState&&Wl(t);break;default:Wl(t)}e=e.sibling}}function $l(e,t,r){for(r=r&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var n=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:$l(i,a,r),ll(4,a);break;case 1:if($l(i,a,r),"function"==typeof(i=(n=a).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){pu(n,n.return,c)}if(null!==(i=(n=a).updateQueue)){var s=n.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)la(l[i],s)}catch(c){pu(n,n.return,c)}}r&&64&o&&ul(a),pl(a,a.return);break;case 27:xl(a);case 26:case 5:$l(i,a,r),r&&null===n&&4&o&&hl(a),pl(a,a.return);break;case 12:$l(i,a,r);break;case 13:$l(i,a,r),r&&4&o&&Ol(i,a);break;case 22:null===a.memoizedState&&$l(i,a,r),pl(a,a.return);break;case 30:break;default:$l(i,a,r)}t=t.sibling}}function Bl(e,t){var r=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==r&&(null!=e&&e.refCount++,null!=r&&Ri(r))}function Hl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ri(e))}function Vl(e,t,r,n){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Ul(e,t,r,n),t=t.sibling}function Ul(e,t,r,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Vl(e,t,r,n),2048&i&&ll(9,t);break;case 1:case 13:default:Vl(e,t,r,n);break;case 3:Vl(e,t,r,n),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ri(e)));break;case 12:if(2048&i){Vl(e,t,r,n),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;"function"==typeof s&&s(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){pu(t,t.return,l)}}else Vl(e,t,r,n);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,null!==t.memoizedState?2&a._visibility?Vl(e,t,r,n):Yl(e,t):2&a._visibility?Vl(e,t,r,n):(a._visibility|=2,ql(e,t,r,n,!!(10256&t.subtreeFlags))),2048&i&&Bl(o,t);break;case 24:Vl(e,t,r,n),2048&i&&Hl(t.alternate,t)}}function ql(e,t,r,n,i){for(i=i&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,o=t,s=r,l=n,c=o.flags;switch(o.tag){case 0:case 11:case 15:ql(a,o,s,l,i),ll(8,o);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?2&u._visibility?ql(a,o,s,l,i):Yl(a,o):(u._visibility|=2,ql(a,o,s,l,i)),i&&2048&c&&Bl(o.alternate,o);break;case 24:ql(a,o,s,l,i),i&&2048&c&&Hl(o.alternate,o);break;default:ql(a,o,s,l,i)}t=t.sibling}}function Yl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,n=t,i=n.flags;switch(n.tag){case 22:Yl(r,n),2048&i&&Bl(n.alternate,n);break;case 24:Yl(r,n),2048&i&&Hl(n.alternate,n);break;default:Yl(r,n)}t=t.sibling}}var Gl=8192;function Ql(e){if(e.subtreeFlags&Gl)for(e=e.child;null!==e;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 26:Ql(e),e.flags&Gl&&null!==e.memoizedState&&function(e,t,r){if(null===Vd)throw Error(n(475));var i=Vd;if(!("stylesheet"!==t.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&t.state.loading)){if(null===t.instance){var a=Rd(r.href),o=e.querySelector(Od(a));if(o)return null!==(e=o._p)&&"object"==typeof e&&"function"==typeof e.then&&(i.count++,i=qd.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=o,void Be(o);o=e.ownerDocument||e,r=Id(r),(a=Sd.get(a))&&Fd(r,a),Be(o=o.createElement("link"));var s=o;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rd(o,"link",r),t.instance=o}null===i.stylesheets&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(i.count++,t=qd.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}(Dl,e.memoizedState,e.memoizedProps);break;case 5:default:Ql(e);break;case 3:case 4:var t=Dl;Dl=Pd(e.stateNode.containerInfo),Ql(e),Dl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Gl,Gl=16777216,Ql(e),Gl=t):Ql(e))}}function Xl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var r=0;r<t.length;r++){var n=t[r];Cl=n,tc(n,e)}Xl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Zl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Zl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zl(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var r=0;r<t.length;r++){var n=t[r];Cl=n,tc(n,e)}Xl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cl(8,t,t.return),ec(t);break;case 22:2&(r=t.stateNode)._visibility&&(r._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Cl;){var r=Cl;switch(r.tag){case 0:case 11:case 15:cl(8,r,t);break;case 23:case 22:if(null!==r.memoizedState&&null!==r.memoizedState.cachePool){var n=r.memoizedState.cachePool.pool;null!=n&&n.refCount++}break;case 24:Ri(r.memoizedState.cache)}if(null!==(n=r.child))n.return=r,Cl=n;else e:for(r=e;null!==Cl;){var i=(n=Cl).sibling,a=n.return;if(zl(n),n===r){Cl=null;break e}if(null!==i){i.return=a,Cl=i;break e}Cl=a}}}var rc={getCacheForType:function(e){var t=wi(Ti),r=t.data.get(e);return void 0===r&&(r=e(),t.data.set(e,r)),r}},nc="function"==typeof WeakMap?WeakMap:Map,ic=0,ac=null,oc=null,sc=0,lc=0,cc=null,uc=!1,dc=!1,pc=!1,fc=0,hc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,kc=null,_c=!1,wc=0,Sc=1/0,Cc=null,Pc=null,zc=0,Ec=null,Tc=null,jc=0,Rc=0,Oc=null,Ic=null,Ac=0,Dc=null;function Mc(){return 2&ic&&0!==sc?sc&-sc:null!==R.T?0!==Ai?Ai:Ru():ze()}function Lc(){0===bc&&(bc=536870912&sc&&!ri?536870912:ye());var e=ts.current;return null!==e&&(e.flags|=32),bc}function Fc(e,t,r){(e!==ac||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Bc(e,sc,bc,!1)),_e(e,r),2&ic&&e===ac||(e===ac&&(!(2&ic)&&(mc|=r),4===hc&&Bc(e,sc,bc,!1)),Su(e))}function Nc(e,t,r){if(6&ic)throw Error(n(327));for(var i=!r&&!(124&t)&&0===(t&e.expiredLanes)||ve(e,t),a=i?function(e,t){var r=ic;ic|=2;var i=Yc(),a=Gc();ac!==e||sc!==t?(Cc=null,Sc=Z()+500,Uc(e,t)):dc=ve(e,t);e:for(;;)try{if(0!==lc&&null!==oc){t=oc;var o=cc;t:switch(lc){case 1:lc=0,cc=null,tu(e,t,o,1);break;case 2:case 9:if(qi(o)){lc=0,cc=null,eu(t);break}t=function(){2!==lc&&9!==lc||ac!==e||(lc=7),Su(e)},o.then(t,t);break e;case 3:lc=7;break e;case 4:lc=5;break e;case 7:qi(o)?(lc=0,cc=null,eu(t)):(lc=0,cc=null,tu(e,t,o,7));break;case 5:var s=null;switch(oc.tag){case 26:s=oc.memoizedState;case 5:case 27:var l=oc;if(!s||Hd(s)){lc=0,cc=null;var c=l.sibling;if(null!==c)oc=c;else{var u=l.return;null!==u?(oc=u,ru(u)):oc=null}break t}}lc=0,cc=null,tu(e,t,o,5);break;case 6:lc=0,cc=null,tu(e,t,o,6);break;case 8:Vc(),hc=6;break e;default:throw Error(n(462))}}Zc();break}catch(d){qc(e,d)}return gi=hi=null,R.H=i,R.A=a,ic=r,null!==oc?0:(ac=null,sc=0,Cn(),hc)}(e,t):Kc(e,t,!0),o=i;;){if(0===a){dc&&!i&&Bc(e,t,0,!1);break}if(r=e.current.alternate,!o||$c(r)){if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=xc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,s).flags|=256),2!==(s=Kc(l,s,!1))){if(pc&&!c){l.errorRecoveryDisabledLanes|=o,mc|=o,a=4;break e}o=kc,kc=a,null!==o&&(null===kc?kc=o:kc.push.apply(kc,o))}a=s}if(o=!1,2!==a)continue}}if(1===a){Uc(e,0),Bc(e,t,0,!0);break}e:{switch(i=e,o=a){case 0:case 1:throw Error(n(345));case 4:if((4194048&t)!==t)break;case 6:Bc(i,t,bc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&t)===t&&10<(a=wc+300-Z())){if(Bc(i,t,bc,!uc),0!==me(i,0,!0))break e;i.timeoutHandle=ud(Wc.bind(null,i,r,kc,Cc,_c,t,bc,mc,yc,uc,o,2,-0,0),a)}else Wc(i,r,kc,Cc,_c,t,bc,mc,yc,uc,o,0,-0,0)}break}a=Kc(e,t,!1),o=!1}Su(e)}function Wc(e,t,r,i,a,o,s,l,c,u,d,p,f,h){if(e.timeoutHandle=-1,(8192&(p=t.subtreeFlags)||!(16785408&~p))&&(Vd={stylesheets:null,count:0,unsuspend:Ud},Kl(t),null!==(p=function(){if(null===Vd)throw Error(n(475));var e=Vd;return e.stylesheets&&0===e.count&&Gd(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}())))return e.cancelPendingCommit=p(iu.bind(null,e,t,o,r,i,a,s,l,c,d,1,f,h)),void Bc(e,o,s,!u);iu(e,t,o,r,i,a,s,l,c)}function $c(e){for(var t=e;;){var r=t.tag;if((0===r||11===r||15===r)&&16384&t.flags&&null!==(r=t.updateQueue)&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ur(a(),i))return!1}catch(o){return!1}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bc(e,t,r,n){t&=~vc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var a=31-ue(i),o=1<<a;n[a]=-1,i&=~o}0!==r&&we(e,r,t)}function Hc(){return!!(6&ic)||(Cu(0),!1)}function Vc(){if(null!==oc){if(0===lc)var e=oc.return;else gi=hi=null,Aa(e=oc),qo=null,Yo=0,e=oc;for(;null!==e;)sl(e.alternate,e),e=e.return;oc=null}}function Uc(e,t){var r=e.timeoutHandle;-1!==r&&(e.timeoutHandle=-1,dd(r)),null!==(r=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,r()),Vc(),ac=e,oc=r=Dn(e.current,null),sc=t,lc=0,cc=null,uc=!1,dc=ve(e,t),pc=!1,yc=bc=vc=mc=gc=hc=0,kc=xc=null,_c=!1,8&t&&(t|=32&t);var n=e.entangledLanes;if(0!==n)for(e=e.entanglements,n&=t;0<n;){var i=31-ue(n),a=1<<i;t|=e[i],n&=~a}return fc=t,Cn(),r}function qc(e,t){ma=null,R.H=Bo,t===Bi||t===Vi?(t=Ki(),lc=3):t===Hi?(t=Ki(),lc=4):lc=t===Es?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===oc&&(hc=1,_s(e,kn(t,e.current)))}function Yc(){var e=R.H;return R.H=Bo,null===e?Bo:e}function Gc(){var e=R.A;return R.A=rc,e}function Qc(){hc=4,uc||(4194048&sc)!==sc&&null!==ts.current||(dc=!0),!(134217727&gc)&&!(134217727&mc)||null===ac||Bc(ac,sc,bc,!1)}function Kc(e,t,r){var n=ic;ic|=2;var i=Yc(),a=Gc();ac===e&&sc===t||(Cc=null,Uc(e,t)),t=!1;var o=hc;e:for(;;)try{if(0!==lc&&null!==oc){var s=oc,l=cc;switch(lc){case 8:Vc(),o=6;break e;case 3:case 2:case 9:case 6:null===ts.current&&(t=!0);var c=lc;if(lc=0,cc=null,tu(e,s,l,c),r&&dc){o=0;break e}break;default:c=lc,lc=0,cc=null,tu(e,s,l,c)}}Xc(),o=hc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,gi=hi=null,ic=n,R.H=i,R.A=a,null===oc&&(ac=null,sc=0,Cn()),o}function Xc(){for(;null!==oc;)Jc(oc)}function Zc(){for(;null!==oc&&!K();)Jc(oc)}function Jc(e){var t=Js(e.alternate,e,fc);e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function eu(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Fs(r,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=Fs(r,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:Aa(t);default:sl(r,t),t=Js(r,t=oc=Mn(t,fc),fc)}e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function tu(e,t,r,i){gi=hi=null,Aa(t),qo=null,Yo=0;var a=t.return;try{if(function(e,t,r,i,a){if(r.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(t=r.alternate)&&xi(t,r,a,!0),null!==(r=ts.current)){switch(r.tag){case 13:return null===rs?Qc():null===r.alternate&&0===hc&&(hc=3),r.flags&=-257,r.flags|=65536,r.lanes=a,i===Ui?r.flags|=16384:(null===(t=r.updateQueue)?r.updateQueue=new Set([i]):t.add(i),fu(e,i,a)),!1;case 22:return r.flags|=65536,i===Ui?r.flags|=16384:(null===(t=r.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=t):null===(r=t.retryQueue)?t.retryQueue=new Set([i]):r.add(i),fu(e,i,a)),!1}throw Error(n(435,r.tag))}return fu(e,i,a),Qc(),!1}if(ri)return null!==(t=ts.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==ai&&pi(kn(e=Error(n(422),{cause:i}),r))):(i!==ai&&pi(kn(t=Error(n(423),{cause:i}),r)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,i=kn(i,r),ia(e,a=Cs(e.stateNode,i,a)),4!==hc&&(hc=2)),!1;var o=Error(n(520),{cause:i});if(o=kn(o,r),null===xc?xc=[o]:xc.push(o),4!==hc&&(hc=2),null===t)return!0;i=kn(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,ia(r,e=Cs(r.stateNode,i,e)),!1;case 1:if(t=r.type,o=r.stateNode,!(128&r.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Pc&&Pc.has(o))))return r.flags|=65536,a&=-a,r.lanes|=a,zs(a=Ps(a),e,r,i),ia(r,a),!1}r=r.return}while(null!==r);return!1}(e,a,t,r,sc))return hc=1,_s(e,kn(r,e.current)),void(oc=null)}catch(o){if(null!==a)throw oc=a,o;return hc=1,_s(e,kn(r,e.current)),void(oc=null)}32768&t.flags?(ri||1===i?e=!0:dc||536870912&sc?e=!1:(uc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=ts.current)&&13===i.tag&&(i.flags|=16384)),nu(t,e)):ru(t)}function ru(e){var t=e;do{if(32768&t.flags)return void nu(t,uc);e=t.return;var r=al(t.alternate,t,fc);if(null!==r)return void(oc=r);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===hc&&(hc=5)}function nu(e,t){do{var r=ol(e.alternate,e);if(null!==r)return r.flags&=32767,void(oc=r);if(null!==(r=e.return)&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&null!==(e=e.sibling))return void(oc=e);oc=e=r}while(null!==e);hc=6,oc=null}function iu(e,t,r,i,a,o,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==zc);if(6&ic)throw Error(n(327));if(null!==t){if(t===e.current)throw Error(n(177));if(o=t.lanes|t.childLanes,function(e,t,r,n,i,a){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=o&~r;0<r;){var u=31-ue(r),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}r&=~d}0!==n&&we(e,n,0),0!==a&&0===i&&0!==e.tag&&(e.suspendedLanes|=a&~(o&~t))}(e,r,o|=Sn,s,l,c),e===ac&&(oc=ac=null,sc=0),Tc=t,Ec=e,jc=r,Rc=o,Oc=a,Ic=i,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,G(re,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&t.flags),13878&t.subtreeFlags||i){i=R.T,R.T=null,a=O.p,O.p=2,s=ic,ic|=4;try{!function(e,t){if(e=e.containerInfo,nd=ip,Xr(e=Kr(e))){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;e:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(l=s+a),p!==o||0!==i&&3!==p.nodeType||(c=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break e;if(f===r&&++u===a&&(l=s),f===o&&++d===i&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(id={focusedElem:e,selectionRange:r},ip=!1,Cl=t;null!==Cl;)if(e=(t=Cl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cl=e;else for(;null!==Cl;){switch(o=(t=Cl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,r=t,a=o.memoizedProps,o=o.memoizedState,i=r.stateNode;try{var g=gs(r.type,a);e=i.getSnapshotBeforeUpdate(g,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(m){pu(r,r.return,m)}}break;case 3:if(1024&e)if(9===(r=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===r)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(n(163))}if(null!==(e=t.sibling)){e.return=t.return,Cl=e;break}Cl=t.return}}(e,t)}finally{ic=s,O.p=a,R.T=i}}zc=1,au(),ou(),su()}}function au(){if(1===zc){zc=0;var e=Ec,t=Tc,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=R.T,R.T=null;var n=O.p;O.p=2;var i=ic;ic|=4;try{Ml(t,e);var a=id,o=Kr(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(null!==l&&Xr(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!f.extend&&g>m&&(o=m,m=g,g=o);var v=Gr(s,g),b=Gr(s,m);if(v&&b&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),f.removeAllRanges(),g>m?(f.addRange(y),f.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),f.addRange(y))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}ip=!!nd,id=nd=null}finally{ic=i,O.p=n,R.T=r}}e.current=t,zc=2}}function ou(){if(2===zc){zc=0;var e=Ec,t=Tc,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=R.T,R.T=null;var n=O.p;O.p=2;var i=ic;ic|=4;try{Pl(e,t.alternate,t)}finally{ic=i,O.p=n,R.T=r}}zc=3}}function su(){if(4===zc||3===zc){zc=0,X();var e=Ec,t=Tc,r=jc,n=Ic;10256&t.subtreeFlags||10256&t.flags?zc=5:(zc=0,Tc=Ec=null,lu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pc=null),Pe(r),t=t.stateNode,le&&"function"==typeof le.onCommitFiberRoot)try{le.onCommitFiberRoot(se,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==n){t=R.T,i=O.p,O.p=2,R.T=null;try{for(var a=e.onRecoverableError,o=0;o<n.length;o++){var s=n[o];a(s.value,{componentStack:s.stack})}}finally{R.T=t,O.p=i}}3&jc&&cu(),Su(e),i=e.pendingLanes,4194090&r&&42&i?e===Dc?Ac++:(Ac=0,Dc=e):Ac=0,Cu(0)}}function lu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ri(t))}function cu(e){return au(),ou(),su(),uu()}function uu(){if(5!==zc)return!1;var e=Ec,t=Rc;Rc=0;var r=Pe(jc),i=R.T,a=O.p;try{O.p=32>r?32:r,R.T=null,r=Oc,Oc=null;var o=Ec,s=jc;if(zc=0,Tc=Ec=null,jc=0,6&ic)throw Error(n(331));var l=ic;if(ic|=4,Jl(o.current),Ul(o,o.current,s,r),ic=l,Cu(0),le&&"function"==typeof le.onPostCommitFiberRoot)try{le.onPostCommitFiberRoot(se,o)}catch(c){}return!0}finally{O.p=a,R.T=i,lu(e,t)}}function du(e,t,r){t=kn(r,t),null!==(e=ra(e,t=Cs(e.stateNode,t,2),2))&&(_e(e,2),Su(e))}function pu(e,t,r){if(3===e.tag)du(e,e,r);else for(;null!==t;){if(3===t.tag){du(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Pc||!Pc.has(n))){e=kn(r,e),null!==(n=ra(t,r=Ps(2),2))&&(zs(r,n,t,e),_e(n,2),Su(n));break}}t=t.return}}function fu(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new nc;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(pc=!0,i.add(r),e=hu.bind(null,e,t,r),t.then(e,e))}function hu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ac===e&&(sc&r)===r&&(4===hc||3===hc&&(62914560&sc)===sc&&300>Z()-wc?!(2&ic)&&Uc(e,0):vc|=r,yc===sc&&(yc=0)),Su(e)}function gu(e,t){0===t&&(t=xe()),null!==(e=En(e,t))&&(_e(e,t),Su(e))}function mu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),gu(e,r)}function vu(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(n(314))}null!==i&&i.delete(t),gu(e,r)}var bu=null,yu=null,xu=!1,ku=!1,_u=!1,wu=0;function Su(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),ku=!0,xu||(xu=!0,fd(function(){6&ic?G(ee,Pu):zu()}))}function Cu(e,t){if(!_u&&ku){_u=!0;do{for(var r=!1,n=bu;null!==n;){if(0!==e){var i=n.pendingLanes;if(0===i)var a=0;else{var o=n.suspendedLanes,s=n.pingedLanes;a=(1<<31-ue(42|e)+1)-1,a=201326741&(a&=i&~(o&~s))?201326741&a|1:a?2|a:0}0!==a&&(r=!0,ju(n,a))}else a=sc,!(3&(a=me(n,n===ac?a:0,null!==n.cancelPendingCommit||-1!==n.timeoutHandle)))||ve(n,a)||(r=!0,ju(n,a));n=n.next}}while(r);_u=!1}}function Pu(){zu()}function zu(){ku=xu=!1;var e,t=0;0!==wu&&(((e=window.event)&&"popstate"===e.type?e!==cd&&(cd=e,!0):(cd=null,!1))&&(t=wu),wu=0);for(var r=Z(),n=null,i=bu;null!==i;){var a=i.next,o=Eu(i,r);0===o?(i.next=null,null===n?bu=a:n.next=a,null===a&&(yu=n)):(n=i,(0!==t||3&o)&&(ku=!0)),i=a}Cu(t)}function Eu(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ue(a),s=1<<o,l=i[o];-1===l?0!==(s&r)&&0===(s&n)||(i[o]=be(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(r=sc,r=me(e,e===(t=ac)?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),n=e.callbackNode,0===r||e===t&&(2===lc||9===lc)||null!==e.cancelPendingCommit)return null!==n&&null!==n&&Q(n),e.callbackNode=null,e.callbackPriority=0;if(!(3&r)||ve(e,r)){if((t=r&-r)===e.callbackPriority)return t;switch(null!==n&&Q(n),Pe(r)){case 2:case 8:r=te;break;case 32:default:r=re;break;case 268435456:r=ie}return n=Tu.bind(null,e),r=G(r,n),e.callbackPriority=t,e.callbackNode=r,t}return null!==n&&null!==n&&Q(n),e.callbackPriority=2,e.callbackNode=null,2}function Tu(e,t){if(0!==zc&&5!==zc)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(cu()&&e.callbackNode!==r)return null;var n=sc;return 0===(n=me(e,e===ac?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Nc(e,n,t),Eu(e,Z()),null!=e.callbackNode&&e.callbackNode===r?Tu.bind(null,e):null)}function ju(e,t){if(cu())return null;Nc(e,t,!0)}function Ru(){return 0===wu&&(wu=ye()),wu}function Ou(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Iu(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}for(var Au=0;Au<bn.length;Au++){var Du=bn[Au];yn(Du.toLowerCase(),"on"+(Du[0].toUpperCase()+Du.slice(1)))}yn(un,"onAnimationEnd"),yn(dn,"onAnimationIteration"),yn(pn,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(fn,"onTransitionRun"),yn(hn,"onTransitionStart"),yn(gn,"onTransitionCancel"),yn(mn,"onTransitionEnd"),qe("onMouseEnter",["mouseout","mouseover"]),qe("onMouseLeave",["mouseout","mouseover"]),qe("onPointerEnter",["pointerout","pointerover"]),qe("onPointerLeave",["pointerout","pointerover"]),Ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="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(" "),Lu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function Fu(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){vs(u)}i.currentTarget=null,a=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=c;try{a(i)}catch(u){vs(u)}i.currentTarget=null,a=l}}}}function Nu(e,t){var r=t[Oe];void 0===r&&(r=t[Oe]=new Set);var n=e+"__bubble";r.has(n)||(Hu(t,e,2,!1),r.add(n))}function Wu(e,t,r){var n=0;t&&(n|=4),Hu(r,e,n,t)}var $u="_reactListening"+Math.random().toString(36).slice(2);function Bu(e){if(!e[$u]){e[$u]=!0,He.forEach(function(t){"selectionchange"!==t&&(Lu.has(t)||Wu(t,!1,e),Wu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$u]||(t[$u]=!0,Wu("selectionchange",!1,t))}}function Hu(e,t,r,n){switch(dp(t)){case 2:var i=ap;break;case 8:i=op;break;default:i=sp}r=i.bind(null,t,r,e),i=void 0,!Mt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Vu(e,t,r,n,i){var o=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var l=n.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=n.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Fe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){n=o=s;continue e}l=l.parentNode}}n=n.return}It(function(){var n=o,i=Et(r),s=[];e:{var l=vn.get(e);if(void 0!==l){var c=Kt,u=e;switch(e){case"keypress":if(0===Bt(r))break e;case"keydown":case"keyup":c=dr;break;case"focusin":u="focus",c=rr;break;case"focusout":u="blur",c=rr;break;case"beforeblur":case"afterblur":c=rr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=er;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=tr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=fr;break;case un:case dn:case pn:c=nr;break;case mn:c=hr;break;case"scroll":case"scrollend":c=Zt;break;case"wheel":c=gr;break;case"copy":case"cut":case"paste":c=ir;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=pr;break;case"toggle":case"beforetoggle":c=mr}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=n;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===f||null!=(m=At(g,f))&&d.push(Uu(g,m,h)),p)break;g=g.return}0<d.length&&(l=new c(l,u,null,r,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||r===zt||!(u=r.relatedTarget||r.fromElement)||!Fe(u)&&!u[Re])&&(c||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=n,null!==(u=(u=r.relatedTarget||r.toElement)?Fe(u):null)&&(p=a(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=n),c!==u)){if(d=er,m="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=pr,m="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==c?l:We(c),h=null==u?l:We(u),(l=new d(m,g+"leave",c,r,i)).target=p,l.relatedTarget=h,m=null,Fe(i)===n&&((d=new d(f,g+"enter",u,r,i)).target=h,d.relatedTarget=p,m=d),p=m,c&&u)e:{for(f=u,g=0,h=d=c;h;h=Yu(h))g++;for(h=0,m=f;m;m=Yu(m))h++;for(;0<g-h;)d=Yu(d),g--;for(;0<h-g;)f=Yu(f),h--;for(;g--;){if(d===f||null!==f&&d===f.alternate)break e;d=Yu(d),f=Yu(f)}d=null}else d=null;null!==c&&Gu(s,l,c,d,!1),null!==u&&null!==p&&Gu(s,p,u,d,!0)}if("select"===(c=(l=n?We(n):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Ar;else if(Er(l))if(Dr)v=Vr;else{v=Br;var b=$r}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?n&&wt(n.elementType)&&(v=Ar):v=Hr;switch(v&&(v=v(e,n))?Tr(s,v,r,i):(b&&b(e,l,n),"focusout"===e&&n&&"number"===l.type&&null!=n.memoizedProps.value&>(l,"number",l.value)),b=n?We(n):window,e){case"focusin":(Er(b)||"true"===b.contentEditable)&&(Jr=b,en=n,tn=null);break;case"focusout":tn=en=Jr=null;break;case"mousedown":rn=!0;break;case"contextmenu":case"mouseup":case"dragend":rn=!1,nn(s,r,i);break;case"selectionchange":if(Zr)break;case"keydown":case"keyup":nn(s,r,i)}var y;if(br)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Pr?Sr(e,r)&&(x="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(x="onCompositionStart");x&&(kr&&"ko"!==r.locale&&(Pr||"onCompositionStart"!==x?"onCompositionEnd"===x&&Pr&&(y=$t()):(Nt="value"in(Ft=i)?Ft.value:Ft.textContent,Pr=!0)),0<(b=qu(n,x)).length&&(x=new ar(x,e,null,r,i),s.push({event:x,listeners:b}),(y||null!==(y=Cr(r)))&&(x.data=y))),(y=xr?function(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return 32!==t.which?null:(wr=!0,_r);case"textInput":return(e=t.data)===_r&&wr?null:e;default:return null}}(e,r):function(e,t){if(Pr)return"compositionend"===e||!br&&Sr(e,t)?(e=$t(),Wt=Nt=Ft=null,Pr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(x=qu(n,"onBeforeInput")).length&&(b=new ar("onBeforeInput","beforeinput",null,r,i),s.push({event:b,listeners:x}),b.data=y),function(e,t,r,n,i){if("submit"===t&&r&&r.stateNode===i){var a=Ou((i[je]||null).action),o=n.submitter;o&&null!==(t=(t=o[je]||null)?Ou(t.formAction):o.getAttribute("formAction"))&&(a=t,o=null);var s=new Kt("action","action",null,n,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==wu){var e=o?Iu(i,o):new FormData(i);Eo(r,{pending:!0,data:e,method:i.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=o?Iu(i,o):new FormData(i),Eo(r,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(s,e,n,r,i)}Fu(s,t)})}function Uu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function qu(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,a=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===a||(null!=(i=At(e,r))&&n.unshift(Uu(e,i,a)),null!=(i=At(e,t))&&n.push(Uu(e,i,a))),3===e.tag)return n;e=e.return}return[]}function Yu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Gu(e,t,r,n,i){for(var a=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===n)break;5!==s&&26!==s&&27!==s||null===c||(l=c,i?null!=(c=At(r,a))&&o.unshift(Uu(r,c,l)):i||null!=(c=At(r,a))&&o.push(Uu(r,c,l))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Qu=/\r\n?/g,Ku=/\u0000|\uFFFD/g;function Xu(e){return("string"==typeof e?e:""+e).replace(Qu,"\n").replace(Ku,"")}function Zu(e,t){return t=Xu(t),Xu(e)===t}function Ju(){}function ed(e,t,r,i,a,o){switch(r){case"children":"string"==typeof i?"body"===t||"textarea"===t&&""===i||yt(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==t&&yt(e,""+i);break;case"className":Je(e,"class",i);break;case"tabIndex":Je(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Je(e,r,i);break;case"style":_t(e,i,o);break;case"data":if("object"!==t){Je(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==t||"href"!==r)){e.removeAttribute(r);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(r);break}i=Pt(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(r,"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}if("function"==typeof o&&("formAction"===r?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(r);break}i=Pt(""+i),e.setAttribute(r,i);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(r=i.__html)){if(null!=a.children)throw Error(n(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}r=Pt(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,""+i):e.removeAttribute(r);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":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":!0===i?e.setAttribute(r,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":Nu("beforetoggle",e),Nu("toggle",e),Ze(e,"popover",i);break;case"xlinkActuate":et(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":et(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":et(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":et(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":et(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":et(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":et(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":et(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":et(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ze(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])&&Ze(e,r=St.get(r)||r,i)}}function td(e,t,r,i,a,o){switch(r){case"style":_t(e,i,o);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(r=i.__html)){if(null!=a.children)throw Error(n(60));e.innerHTML=r}}break;case"children":"string"==typeof i?yt(e,i):("number"==typeof i||"bigint"==typeof i)&&yt(e,""+i);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ve.hasOwnProperty(r)||("o"!==r[0]||"n"!==r[1]||(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),"function"==typeof(o=null!=(o=e[je]||null)?o[r]:null)&&e.removeEventListener(t,o,a),"function"!=typeof i)?r in e?e[r]=i:!0===i?e.setAttribute(r,""):Ze(e,r,i):("function"!=typeof o&&null!==o&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,i,a)))}}function rd(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nu("error",e),Nu("load",e);var i,a=!1,o=!1;for(i in r)if(r.hasOwnProperty(i)){var s=r[i];if(null!=s)switch(i){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,t));default:ed(e,t,i,s,r,null)}}return o&&ed(e,t,"srcSet",r.srcSet,r,null),void(a&&ed(e,t,"src",r.src,r,null));case"input":Nu("invalid",e);var l=i=s=o=null,c=null,u=null;for(a in r)if(r.hasOwnProperty(a)){var d=r[a];if(null!=d)switch(a){case"name":o=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(n(137,t));break;default:ed(e,t,a,d,r,null)}}return ht(e,i,l,c,u,s,o,!1),void lt(e);case"select":for(o in Nu("invalid",e),a=s=i=null,r)if(r.hasOwnProperty(o)&&null!=(l=r[o]))switch(o){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:ed(e,t,o,l,r,null)}return t=i,r=s,e.multiple=!!a,void(null!=t?mt(e,!!a,t,!1):null!=r&&mt(e,!!a,r,!0));case"textarea":for(s in Nu("invalid",e),i=o=a=null,r)if(r.hasOwnProperty(s)&&null!=(l=r[s]))switch(s){case"value":a=l;break;case"defaultValue":o=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(n(91));break;default:ed(e,t,s,l,r,null)}return bt(e,a,o,i),void lt(e);case"option":for(c in r)r.hasOwnProperty(c)&&null!=(a=r[c])&&("selected"===c?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:ed(e,t,c,a,r,null));return;case"dialog":Nu("beforetoggle",e),Nu("toggle",e),Nu("cancel",e),Nu("close",e);break;case"iframe":case"object":Nu("load",e);break;case"video":case"audio":for(a=0;a<Mu.length;a++)Nu(Mu[a],e);break;case"image":Nu("error",e),Nu("load",e);break;case"details":Nu("toggle",e);break;case"embed":case"source":case"link":Nu("error",e),Nu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&null!=(a=r[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,t));default:ed(e,t,u,a,r,null)}return;default:if(wt(t)){for(d in r)r.hasOwnProperty(d)&&void 0!==(a=r[d])&&td(e,t,d,a,r,void 0);return}}for(l in r)r.hasOwnProperty(l)&&null!=(a=r[l])&&ed(e,t,l,a,r,null)}var nd=null,id=null;function ad(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null,ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,pd="function"==typeof Promise?Promise:void 0,fd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(hd)}:ud;function hd(e){setTimeout(function(){throw e})}function gd(e){return"head"===e}function md(e,t){var r=t,n=0,i=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&8===a.nodeType)if("/$"===(r=a.data)){if(0<n&&8>n){r=n;var o=e.ownerDocument;if(1&r&&wd(o.documentElement),2&r&&wd(o.body),4&r)for(wd(r=o.head),o=r.firstChild;o;){var s=o.nextSibling,l=o.nodeName;o[Me]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===o.rel.toLowerCase()||r.removeChild(o),o=s}}if(0===i)return e.removeChild(a),void Tp(t);i--}else"$"===r||"$?"===r||"$!"===r?i++:n=r.charCodeAt(0)-48;else n=0;r=a}while(r);Tp(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":vd(r),Le(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===r.rel.toLowerCase())continue}e.removeChild(r)}}function bd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function yd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var xd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}function _d(e,t,r){switch(t=ad(r),e){case"html":if(!(e=t.documentElement))throw Error(n(452));return e;case"head":if(!(e=t.head))throw Error(n(453));return e;case"body":if(!(e=t.body))throw Error(n(454));return e;default:throw Error(n(451))}}function wd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Le(e)}var Sd=new Map,Cd=new Set;function Pd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var zd=O.d;O.d={f:function(){var e=zd.f(),t=Hc();return e||t},r:function(e){var t=Ne(e);null!==t&&5===t.tag&&"form"===t.type?jo(t):zd.r(e)},D:function(e){zd.D(e),Td("dns-prefetch",e,null)},C:function(e,t){zd.C(e,t),Td("preconnect",e,t)},L:function(e,t,r){zd.L(e,t,r);var n=Ed;if(n&&e&&t){var i='link[rel="preload"][as="'+pt(t)+'"]';"image"===t&&r&&r.imageSrcSet?(i+='[imagesrcset="'+pt(r.imageSrcSet)+'"]',"string"==typeof r.imageSizes&&(i+='[imagesizes="'+pt(r.imageSizes)+'"]')):i+='[href="'+pt(e)+'"]';var a=i;switch(t){case"style":a=Rd(e);break;case"script":a=Ad(e)}Sd.has(a)||(e=c({rel:"preload",href:"image"===t&&r&&r.imageSrcSet?void 0:e,as:t},r),Sd.set(a,e),null!==n.querySelector(i)||"style"===t&&n.querySelector(Od(a))||"script"===t&&n.querySelector(Dd(a))||(rd(t=n.createElement("link"),"link",e),Be(t),n.head.appendChild(t)))}},m:function(e,t){zd.m(e,t);var r=Ed;if(r&&e){var n=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+pt(n)+'"][href="'+pt(e)+'"]',a=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Ad(e)}if(!Sd.has(a)&&(e=c({rel:"modulepreload",href:e},t),Sd.set(a,e),null===r.querySelector(i))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Dd(a)))return}rd(n=r.createElement("link"),"link",e),Be(n),r.head.appendChild(n)}}},X:function(e,t){zd.X(e,t);var r=Ed;if(r&&e){var n=$e(r).hoistableScripts,i=Ad(e),a=n.get(i);a||((a=r.querySelector(Dd(i)))||(e=c({src:e,async:!0},t),(t=Sd.get(i))&&Nd(e,t),Be(a=r.createElement("script")),rd(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}},S:function(e,t,r){zd.S(e,t,r);var n=Ed;if(n&&e){var i=$e(n).hoistableStyles,a=Rd(e);t=t||"default";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(Od(a)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Sd.get(a))&&Fd(e,r);var l=o=n.createElement("link");Be(l),rd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Ld(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){zd.M(e,t);var r=Ed;if(r&&e){var n=$e(r).hoistableScripts,i=Ad(e),a=n.get(i);a||((a=r.querySelector(Dd(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=Sd.get(i))&&Nd(e,t),Be(a=r.createElement("script")),rd(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}}};var Ed="undefined"==typeof document?null:document;function Td(e,t,r){var n=Ed;if(n&&"string"==typeof t&&t){var i=pt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof r&&(i+='[crossorigin="'+r+'"]'),Cd.has(i)||(Cd.add(i),e={rel:e,crossOrigin:r,href:t},null===n.querySelector(i)&&(rd(t=n.createElement("link"),"link",e),Be(t),n.head.appendChild(t)))}}function jd(e,t,r,i){var a,o,s,l,c=(c=$.current)?Pd(c):null;if(!c)throw Error(n(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof r.precedence&&"string"==typeof r.href?(t=Rd(r.href),(i=(r=$e(c).hoistableStyles).get(t))||(i={type:"style",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===r.rel&&"string"==typeof r.href&&"string"==typeof r.precedence){e=Rd(r.href);var u=$e(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Od(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Sd.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Sd.set(e,r),u||(a=c,o=e,s=r,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=a.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),rd(o,"link",s),Be(o),a.head.appendChild(o))))),t&&null===i)throw Error(n(528,""));return d}if(t&&null!==i)throw Error(n(529,""));return null;case"script":return t=r.async,"string"==typeof(r=r.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(r),(i=(r=$e(c).hoistableScripts).get(t))||(i={type:"script",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,e))}}function Rd(e){return'href="'+pt(e)+'"'}function Od(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+pt(e)+'"]'}function Dd(e){return"script[async]"+e}function Md(e,t,r){if(t.count++,null===t.instance)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pt(r.href)+'"]');if(i)return t.instance=i,Be(i),i;var a=c({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return Be(i=(e.ownerDocument||e).createElement("style")),rd(i,"style",a),Ld(i,r.precedence,e),t.instance=i;case"stylesheet":a=Rd(r.href);var o=e.querySelector(Od(a));if(o)return t.state.loading|=4,t.instance=o,Be(o),o;i=Id(r),(a=Sd.get(a))&&Fd(i,a),Be(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rd(o,"link",i),t.state.loading|=4,Ld(o,r.precedence,e),t.instance=o;case"script":return o=Ad(r.src),(a=e.querySelector(Dd(o)))?(t.instance=a,Be(a),a):(i=r,(a=Sd.get(o))&&Nd(i=c({},r),a),Be(a=(e=e.ownerDocument||e).createElement("script")),rd(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(n(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(i=t.instance,t.state.loading|=4,Ld(i,r.precedence,e));return t.instance}function Ld(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,a=i,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===r.nodeType?r.head:r).insertBefore(e,t.firstChild)}function Fd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Nd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Wd=null;function $d(e,t,r){if(null===Wd){var n=new Map,i=Wd=new Map;i.set(r,n)}else(n=(i=Wd).get(r))||(n=new Map,i.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),i=0;i<r.length;i++){var a=r[i];if(!(a[Me]||a[Te]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(a):n.set(o,[a])}}return n}function Bd(e,t,r){(e=e.ownerDocument||e).head.insertBefore(r,"title"===t?e.querySelector("head > title"):null)}function Hd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Vd=null;function Ud(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Yd=null;function Gd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Yd=new Map,t.forEach(Qd,e),Yd=null,qd.call(e))}function Qd(e,t){if(!(4&t.state.loading)){var r=Yd.get(e);if(r)var n=r.get(null);else{r=new Map,Yd.set(e,r);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}o=(i=t.instance).getAttribute("data-precedence"),(a=r.get(o)||n)===n&&r.set(null,i),r.set(o,i),this.count++,n=qd.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),a?a.parentNode.insertBefore(i,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Kd={$$typeof:b,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Xd(e,t,r,n,i,a,o,s){this.tag=1,this.containerInfo=e,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=ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ke(0),this.hiddenUpdates=ke(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Zd(e,t,r,n,i,a,o,s,l,c,u,d){return e=new Xd(e,t,r,o,s,l,c,d),t=1,!0===a&&(t|=24),a=In(3,null,null,t),e.current=a,a.stateNode=e,(t=ji()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:n,isDehydrated:r,cache:t},Ji(a),e}function Jd(e){return e?e=Rn:Rn}function ep(e,t,r,n,i,a){i=Jd(i),null===n.context?n.context=i:n.pendingContext=i,(n=ta(t)).payload={element:r},null!==(a=void 0===a?null:a)&&(n.callback=a),null!==(r=ra(e,n,t))&&(Fc(r,0,t),na(r,e,t))}function tp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function rp(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function np(e){if(13===e.tag){var t=En(e,67108864);null!==t&&Fc(t,0,67108864),rp(e,67108864)}}var ip=!0;function ap(e,t,r,n){var i=R.T;R.T=null;var a=O.p;try{O.p=2,sp(e,t,r,n)}finally{O.p=a,R.T=i}}function op(e,t,r,n){var i=R.T;R.T=null;var a=O.p;try{O.p=8,sp(e,t,r,n)}finally{O.p=a,R.T=i}}function sp(e,t,r,n){if(ip){var i=lp(n);if(null===i)Vu(e,t,n,cp,r),xp(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return fp=kp(fp,e,t,r,n,i),!0;case"dragenter":return hp=kp(hp,e,t,r,n,i),!0;case"mouseover":return gp=kp(gp,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return mp.set(a,kp(mp.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,vp.set(a,kp(vp.get(a)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(xp(e,n),4&t&&-1<yp.indexOf(e)){for(;null!==i;){var a=Ne(i);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var o=ge(a.pendingLanes);if(0!==o){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-ue(o);s.entanglements[1]|=l,o&=~l}Su(a),!(6&ic)&&(Sc=Z()+500,Cu(0))}}break;case 13:null!==(s=En(a,2))&&Fc(s,0,2),Hc(),rp(a,2)}if(null===(a=lp(n))&&Vu(e,t,n,cp,r),a===i)break;i=a}null!==i&&n.stopPropagation()}else Vu(e,t,n,null,r)}}function lp(e){return up(e=Et(e))}var cp=null;function up(e){if(cp=null,null!==(e=Fe(e))){var t=a(e);if(null===t)e=null;else{var r=t.tag;if(13===r){if(null!==(e=o(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cp=e,null}function dp(e){switch(e){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(J()){case ee:return 2;case te:return 8;case re:case ne:return 32;case ie:return 268435456;default:return 32}default:return 32}}var pp=!1,fp=null,hp=null,gp=null,mp=new Map,vp=new Map,bp=[],yp="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 xp(e,t){switch(e){case"focusin":case"focusout":fp=null;break;case"dragenter":case"dragleave":hp=null;break;case"mouseover":case"mouseout":gp=null;break;case"pointerover":case"pointerout":mp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vp.delete(t.pointerId)}}function kp(e,t,r,n,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=Ne(t))&&np(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _p(e){var t=Fe(e.target);if(null!==t){var r=a(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=o(r)))return e.blockedOn=t,void function(e){var t=O.p;try{return O.p=e,function(){if(13===r.tag){var e=Mc();e=Ce(e);var t=En(r,e);null!==t&&Fc(t,0,e),rp(r,e)}}()}finally{O.p=t}}(e.priority)}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function wp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=lp(e.nativeEvent);if(null!==r)return null!==(t=Ne(r))&&np(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);zt=n,r.target.dispatchEvent(n),zt=null,t.shift()}return!0}function Sp(e,t,r){wp(e)&&r.delete(t)}function Cp(){pp=!1,null!==fp&&wp(fp)&&(fp=null),null!==hp&&wp(hp)&&(hp=null),null!==gp&&wp(gp)&&(gp=null),mp.forEach(Sp),vp.forEach(Sp)}function Pp(t,r){t.blockedOn===r&&(t.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Cp)))}var zp=null;function Ep(t){zp!==t&&(zp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){zp===t&&(zp=null);for(var e=0;e<t.length;e+=3){var r=t[e],n=t[e+1],i=t[e+2];if("function"!=typeof n){if(null===up(n||r))continue;break}var a=Ne(r);null!==a&&(t.splice(e,3),e-=3,Eo(a,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function Tp(e){function t(t){return Pp(t,e)}null!==fp&&Pp(fp,e),null!==hp&&Pp(hp,e),null!==gp&&Pp(gp,e),mp.forEach(t),vp.forEach(t);for(var r=0;r<bp.length;r++){var n=bp[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<bp.length&&null===(r=bp[0]).blockedOn;)_p(r),null===r.blockedOn&&bp.shift();if(null!=(r=(e.ownerDocument||e).$$reactFormReplay))for(n=0;n<r.length;n+=3){var i=r[n],a=r[n+1],o=i[je]||null;if("function"==typeof a)o||Ep(r);else if(o){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[je]||null)s=o.formAction;else if(null!==up(i))continue}else s=o.action;"function"==typeof s?r[n+1]=s:(r.splice(n,3),n-=3),Ep(r)}}}function jp(e){this._internalRoot=e}function Rp(e){this._internalRoot=e}Rp.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));ep(t.current,Mc(),e,t,null,null)},Rp.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Hc(),t[Re]=null}},Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var r=0;r<bp.length&&0!==t&&t<bp[r].priority;r++);bp.splice(r,0,e),0===r&&_p(e)}};var Op=t.version;if("19.1.1"!==Op)throw Error(n(527,Op,"19.1.1"));O.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var l=o.alternate;if(null===l){if(null!==(i=o.return)){r=i;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===r)return s(o),e;if(l===i)return s(o),t;l=l.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=l;else{for(var c=!1,u=o.child;u;){if(u===r){c=!0,r=o,i=l;break}if(u===i){c=!0,i=o,r=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===r){c=!0,r=l,i=o;break}if(u===i){c=!0,i=l,r=o;break}u=u.sibling}if(!c)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(t),null===(e=null!==e?l(e):null)?null:e.stateNode};var Ip={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ap=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ap.isDisabled&&Ap.supportsFiber)try{se=Ap.inject(Ip),le=Ap}catch(Mp){}}return ps.createRoot=function(e,t){if(!i(e))throw Error(n(299));var r=!1,a="",o=bs,s=xs,l=ks;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,r,a,o,s,l,0,null),e[Re]=t.current,Bu(e),new jp(t)},ps.hydrateRoot=function(e,t,r){if(!i(e))throw Error(n(299));var a=!1,o="",s=bs,l=xs,c=ks,u=null;return null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onUncaughtError&&(s=r.onUncaughtError),void 0!==r.onCaughtError&&(l=r.onCaughtError),void 0!==r.onRecoverableError&&(c=r.onRecoverableError),void 0!==r.unstable_transitionCallbacks&&r.unstable_transitionCallbacks,void 0!==r.formState&&(u=r.formState)),(t=Zd(e,1,!0,t,0,a,o,s,l,c,0,u)).context=Jd(null),r=t.current,(o=ta(a=Ce(a=Mc()))).callback=null,ra(r,o,a),r=a,t.current.lanes=r,_e(t,r),Su(t),e[Re]=t.current,Bu(e),new Rp(t)},ps.version="19.1.1",ps}function Ps(){return xs||(xs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ds.exports=Cs()),ds.exports}const zs=Uo(Ps());function Es(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Ts=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,js=Es(function(e){return Ts.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Rs=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Os="-ms-",Is="-moz-",As="-webkit-",Ds="comm",Ms="rule",Ls="decl",Fs="@keyframes",Ns=Math.abs,Ws=String.fromCharCode,$s=Object.assign;function Bs(e){return e.trim()}function Hs(e,t,r){return e.replace(t,r)}function Vs(e,t){return e.indexOf(t)}function Us(e,t){return 0|e.charCodeAt(t)}function qs(e,t,r){return e.slice(t,r)}function Ys(e){return e.length}function Gs(e){return e.length}function Qs(e,t){return t.push(e),e}var Ks=1,Xs=1,Zs=0,Js=0,el=0,tl="";function rl(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Ks,column:Xs,length:o,return:""}}function nl(e,t){return $s(rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function il(){return el=Js>0?Us(tl,--Js):0,Xs--,10===el&&(Xs=1,Ks--),el}function al(){return el=Js<Zs?Us(tl,Js++):0,Xs++,10===el&&(Xs=1,Ks++),el}function ol(){return Us(tl,Js)}function sl(){return Js}function ll(e,t){return qs(tl,e,t)}function cl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ul(e){return Ks=Xs=1,Zs=Ys(tl=e),Js=0,[]}function dl(e){return tl="",e}function pl(e){return Bs(ll(Js-1,gl(91===e?e+2:40===e?e+1:e)))}function fl(e){for(;(el=ol())&&el<33;)al();return cl(e)>2||cl(el)>3?"":" "}function hl(e,t){for(;--t&&al()&&!(el<48||el>102||el>57&&el<65||el>70&&el<97););return ll(e,sl()+(t<6&&32==ol()&&32==al()))}function gl(e){for(;al();)switch(el){case e:return Js;case 34:case 39:34!==e&&39!==e&&gl(el);break;case 40:41===e&&gl(e);break;case 92:al()}return Js}function ml(e,t){for(;al()&&e+el!==57&&(e+el!==84||47!==ol()););return"/*"+ll(t,Js-1)+"*"+Ws(47===e?e:al())}function vl(e){for(;!cl(ol());)al();return ll(e,Js)}function bl(e){return dl(yl("",null,null,null,[""],e=ul(e),0,[0],e))}function yl(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=i,k=a,_=n,w=y;m;)switch(h=b,b=al()){case 40:if(108!=h&&58==Us(w,d-1)){-1!=Vs(w+=Hs(pl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=pl(b);break;case 9:case 10:case 13:case 32:w+=fl(h);break;case 92:w+=hl(sl()-1,7);continue;case 47:switch(ol()){case 42:case 47:Qs(kl(ml(al(),sl()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=Ys(w)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(w=Hs(w,/\f/g,"")),f>0&&Ys(w)-d&&Qs(f>32?_l(w+";",n,r,d-1):_l(Hs(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(Qs(_=xl(w,t,r,c,u,i,s,y,x=[],k=[],d),a),123===b)if(0===u)yl(w,t,_,_,x,a,d,s,k);else switch(99===p&&110===Us(w,3)?100:p){case 100:case 108:case 109:case 115:yl(e,_,_,n&&Qs(xl(e,_,_,0,0,i,s,y,i,x=[],d),k),i,k,d,s,n?x:k);break;default:yl(w,_,_,_,[""],k,0,s,k)}}c=u=f=0,g=v=1,y=w="",d=o;break;case 58:d=1+Ys(w),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==il())continue;switch(w+=Ws(b),b*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Ys(w)-1)*v,v=1;break;case 64:45===ol()&&(w+=pl(al())),p=ol(),u=d=Ys(y=w+=vl(sl())),b++;break;case 45:45===h&&2==Ys(w)&&(g=0)}}return a}function xl(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],f=Gs(p),h=0,g=0,m=0;h<n;++h)for(var v=0,b=qs(e,d+1,d=Ns(g=o[h])),y=e;v<f;++v)(y=Bs(g>0?p[v]+" "+b:Hs(b,/&\f/g,p[v])))&&(l[m++]=y);return rl(e,t,r,0===i?Ms:s,l,c,u)}function kl(e,t,r){return rl(e,t,r,Ds,Ws(el),qs(e,2,-2),0)}function _l(e,t,r,n){return rl(e,t,r,Ls,qs(e,0,n),qs(e,n+1,-1),n)}function wl(e,t){for(var r="",n=Gs(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Sl(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ls:return e.return=e.return||e.value;case Ds:return"";case Fs:return e.return=e.value+"{"+wl(e.children,n)+"}";case Ms:e.value=e.props.join(",")}return Ys(r=wl(e.children,n))?e.return=e.value+"{"+r+"}":""}var Cl=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},Pl=function(e,t,r){for(var n=0,i=0;n=i,i=ol(),38===n&&12===i&&(t[r]=1),!cl(i);)al();return ll(e,Js)},zl=new WeakMap,El=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zl.get(r))&&!n){zl.set(e,!0);for(var i=[],a=function(e,t){return dl(function(e,t){var r=-1,n=44;do{switch(cl(n)){case 0:38===n&&12===ol()&&(t[r]=1),e[r]+=Pl(Js-1,t,r);break;case 2:e[r]+=pl(n);break;case 4:if(44===n){e[++r]=58===ol()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ws(n)}}while(n=al());return e}(ul(e),t))}(t,i),o=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},Tl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jl(e,t){switch(function(e,t){return 45^Us(e,0)?(((t<<2^Us(e,0))<<2^Us(e,1))<<2^Us(e,2))<<2^Us(e,3):0}(e,t)){case 5103:return As+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return As+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return As+e+Is+e+Os+e+e;case 6828:case 4268:return As+e+Os+e+e;case 6165:return As+e+Os+"flex-"+e+e;case 5187:return As+e+Hs(e,/(\w+).+(:[^]+)/,As+"box-$1$2"+Os+"flex-$1$2")+e;case 5443:return As+e+Os+"flex-item-"+Hs(e,/flex-|-self/,"")+e;case 4675:return As+e+Os+"flex-line-pack"+Hs(e,/align-content|flex-|-self/,"")+e;case 5548:return As+e+Os+Hs(e,"shrink","negative")+e;case 5292:return As+e+Os+Hs(e,"basis","preferred-size")+e;case 6060:return As+"box-"+Hs(e,"-grow","")+As+e+Os+Hs(e,"grow","positive")+e;case 4554:return As+Hs(e,/([^-])(transform)/g,"$1"+As+"$2")+e;case 6187:return Hs(Hs(Hs(e,/(zoom-|grab)/,As+"$1"),/(image-set)/,As+"$1"),e,"")+e;case 5495:case 3959:return Hs(e,/(image-set\([^]*)/,As+"$1$`$1");case 4968:return Hs(Hs(e,/(.+:)(flex-)?(.*)/,As+"box-pack:$3"+Os+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+As+e+e;case 4095:case 3583:case 4068:case 2532:return Hs(e,/(.+)-inline(.+)/,As+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ys(e)-1-t>6)switch(Us(e,t+1)){case 109:if(45!==Us(e,t+4))break;case 102:return Hs(e,/(.+:)(.+)-([^]+)/,"$1"+As+"$2-$3$1"+Is+(108==Us(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vs(e,"stretch")?jl(Hs(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Us(e,t+1))break;case 6444:switch(Us(e,Ys(e)-3-(~Vs(e,"!important")&&10))){case 107:return Hs(e,":",":"+As)+e;case 101:return Hs(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+As+(45===Us(e,14)?"inline-":"")+"box$3$1"+As+"$2$3$1"+Os+"$2box$3")+e}break;case 5936:switch(Us(e,t+11)){case 114:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return As+e+Os+Hs(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return As+e+Os+e+e}return e}var Rl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ls:e.return=jl(e.value,e.length);break;case Fs:return wl([nl(e,{value:Hs(e.value,"@","@"+As)})],n);case Ms:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return wl([nl(e,{props:[Hs(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return wl([nl(e,{props:[Hs(t,/:(plac\w+)/,":"+As+"input-$1")]}),nl(e,{props:[Hs(t,/:(plac\w+)/,":-moz-$1")]}),nl(e,{props:[Hs(t,/:(plac\w+)/,Os+"input-$1")]})],n)}return""})}}],Ol=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,i,a=e.stylisPlugins||Rl,o={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)o[t[r]]=!0;s.push(e)});var l,c,u,d,p=[Sl,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[El,Tl].concat(a,p),u=Gs(c),function(e,t,r,n){for(var i="",a=0;a<u;a++)i+=c[a](e,t,r,n)||"";return i});i=function(e,t,r,n){l=r,wl(bl(e?e+"{"+t.styles+"}":t.styles),f),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Rs({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return h.sheet.hydrate(s),h};const Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"}));function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(null,arguments)}var Dl,Ml,Ll,Fl,Nl={exports:{}},Wl={};function $l(){if(Dl)return Wl;Dl=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case a:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case o:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return Wl.AsyncMode=l,Wl.ConcurrentMode=c,Wl.ContextConsumer=s,Wl.ContextProvider=o,Wl.Element=t,Wl.ForwardRef=u,Wl.Fragment=n,Wl.Lazy=h,Wl.Memo=f,Wl.Portal=r,Wl.Profiler=a,Wl.StrictMode=i,Wl.Suspense=d,Wl.isAsyncMode=function(e){return x(e)||y(e)===l},Wl.isConcurrentMode=x,Wl.isContextConsumer=function(e){return y(e)===s},Wl.isContextProvider=function(e){return y(e)===o},Wl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wl.isForwardRef=function(e){return y(e)===u},Wl.isFragment=function(e){return y(e)===n},Wl.isLazy=function(e){return y(e)===h},Wl.isMemo=function(e){return y(e)===f},Wl.isPortal=function(e){return y(e)===r},Wl.isProfiler=function(e){return y(e)===a},Wl.isStrictMode=function(e){return y(e)===i},Wl.isSuspense=function(e){return y(e)===d},Wl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Wl.typeOf=y,Wl}function Bl(){return Ml||(Ml=1,Nl.exports=$l()),Nl.exports}function Hl(){if(Fl)return Ll;Fl=1;var e=Bl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var o=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Ll=function e(t,n,i){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,i)}var f=s(n);l&&(f=f.concat(l(n)));for(var h=a(t),g=a(n),m=0;m<f.length;++m){var v=f[m];if(!(r[v]||i&&i[v]||g&&g[v]||h&&h[v])){var b=c(n,v);try{o(t,v,b)}catch(y){}}}}return t}}const Vl=Uo(Hl());function Ul(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var ql=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Yl=function(e,t,r){ql(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Gl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ql=/[A-Z]|^ms/g,Kl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xl=function(e){return 45===e.charCodeAt(1)},Zl=function(e){return null!=e&&"boolean"!=typeof e},Jl=Es(function(e){return Xl(e)?e:e.replace(Ql,"-$&").toLowerCase()}),ec=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Kl,function(e,t,r){return rc={name:t,styles:r,next:rc},t})}return 1===Gl[e]||Xl(e)||"number"!=typeof t||0===t?t:t+"px"};function tc(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return rc={name:i.name,styles:i.styles,next:rc},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)rc={name:o.name,styles:o.styles,next:rc},o=o.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=tc(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Zl(s)&&(n+=Jl(a)+":"+ec(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=tc(e,t,o);switch(a){case"animation":case"animationName":n+=Jl(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Zl(o[c])&&(n+=Jl(a)+":"+ec(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=rc,l=r(e);return rc=s,tc(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var rc,nc=/label:\s*([^\s;{]+)\s*(;|$)/g;function ic(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";rc=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=tc(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=tc(r,t,e[o]),n&&(i+=a[o]);nc.lastIndex=0;for(var s,l="";null!==(s=nc.exec(i));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:rc}}var ac,oc,sc=!!ls.useInsertionEffect&&ls.useInsertionEffect,lc=sc||function(e){return e()},cc=sc||os.useLayoutEffect,uc=os.createContext("undefined"!=typeof HTMLElement?Ol({key:"css"}):null),dc=uc.Provider,pc=function(e){return os.forwardRef(function(t,r){var n=os.useContext(uc);return e(t,n,r)})},fc=os.createContext({}),hc=Cl(function(e){return Cl(function(t){return function(e,t){return"function"==typeof t?t(e):Al({},e,t)}(e,t)})}),gc={}.hasOwnProperty,mc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ql(t,r,n),lc(function(){return Yl(t,r,n)}),null},bc=pc(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[mc],a=[n],o="";"string"==typeof e.className?o=Ul(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=ic(a,void 0,os.useContext(fc));o+=t.key+"-"+s.name;var l={};for(var c in e)gc.call(e,c)&&"css"!==c&&c!==mc&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),os.createElement(os.Fragment,null,os.createElement(vc,{cache:t,serialized:s,isStringTag:"string"==typeof i}),os.createElement(i,l))}),yc=bc,xc=function(e,t){var r=arguments;if(null==t||!gc.call(t,"css"))return os.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=yc,i[1]=function(e,t){var r={};for(var n in t)gc.call(t,n)&&(r[n]=t[n]);return r[mc]=e,r}(e,t);for(var a=2;a<n;a++)i[a]=r[a];return os.createElement.apply(null,i)};ac=xc||(xc={}),oc||(oc=ac.JSX||(ac.JSX={}));var kc=pc(function(e,t){var r=ic([e.styles],void 0,os.useContext(fc)),n=os.useRef();return cc(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==o&&(a=!0,o.setAttribute("data-emotion",e),i.hydrate([o])),n.current=[i,a],function(){i.flush()}},[t]),cc(function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Yl(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)}},[t,r.name]),null});function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ic(t)}var wc=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var a=t[n];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var s in o="",a)a[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=a}o&&(i&&(i+=" "),i+=o)}}return i},Sc=function(e){var t=e.cache,r=e.serializedArr;return lc(function(){for(var e=0;e<r.length;e++)Yl(t,r[e],!1)}),null},Cc=pc(function(e,t){var r=[],n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=ic(n,t.registered);return r.push(a),ql(t,a,!1),t.key+"-"+a.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,r){var n=[],i=Ul(e,n,r);return n.length<2?r:i+t(n)}(t.registered,n,wc(r))},theme:os.useContext(fc)},a=e.children(i);return os.createElement(os.Fragment,null,os.createElement(Sc,{cache:t,serializedArr:r}),a)});const Pc=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:dc,ClassNames:Cc,Global:kc,ThemeContext:fc,ThemeProvider:function(e){var t=os.useContext(fc);return e.theme!==t&&(t=hc(t)(e.theme)),os.createElement(fc.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return os.useContext(uc)},get createElement(){return xc},css:_c,get jsx(){return xc},keyframes:function(){var e=_c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},useTheme:function(){return os.useContext(fc)},withEmotionCache:pc,withTheme:function(e){var t=e.displayName||e.name||"Component",r=os.forwardRef(function(t,r){var n=os.useContext(fc);return os.createElement(e,Al({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",Vl(r,e)}},Symbol.toStringTag,{value:"Module"}));function zc(...e){return function(...t){e.forEach(e=>e?.(...t))}}const Ec=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Tc=/^on[A-Z]/;function jc(...e){let t={};for(let r of e){for(let e in t)Tc.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=zc(t[e],r[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:Object.assign({},t[e]??{},r[e]??{}):Ec(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Rc(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}const Oc=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Ic=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),Ac=e=>"string"==typeof e,Dc=e=>"function"==typeof e,Mc=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function Lc(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=os.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=os.useContext(s);if(!t&&r){const t=new Error(a??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Fc,Nc]=Lc({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Wc(e){const{value:t,children:r}=e;return ts.jsxs(Fc,{value:t,children:[!t._config.disableLayers&&ts.jsx(kc,{styles:t.layers.atRule}),ts.jsx(kc,{styles:t._global}),r]})}const $c=(e,t)=>((e,t)=>{const r={},n={},i=Object.keys(e);for(const a of i)t(a)?n[a]=e[a]:r[a]=e[a];return[n,r]})(e,Dc(t)?t:e=>t.includes(e)),Bc=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Hc(e){return"string"==typeof e&&Bc.has(e)}var Vc;const Uc=(Vc=js).default||Vc,qc=e=>"theme"!==e;let Yc="undefined"!=typeof document;const Gc=({cache:e,serialized:t,isStringTag:r})=>{ql(e,t,r);const n=lc(()=>Yl(e,t,r));if(!Yc&&void 0!==n){let r=t.name,i=t.next;for(;void 0!==i;)r=Oc(r,i.name),i=i.next;return ts.jsx("style",{"data-emotion":Oc(e.key,r),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},Qc={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Kc=((e,t={},r={})=>{if(n=Qc,i=e,Object.prototype.hasOwnProperty.call(n,i)){r.forwardProps||(r.forwardProps=[]);const t=Qc[e];r.forwardProps=Mc([...r.forwardProps,...t])}var n,i;const a=e.__emotion_real===e,o=a&&e.__emotion_base||e;let s,l;void 0!==r&&(s=r.label,l=r.target);let c=[];const u=pc((n,i,s)=>{const{cva:u,isValidProperty:d}=Nc(),p=t.__cva__?t:u(t),f=Jc(e.__emotion_cva,p);var h;!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=(h=r.forwardProps,(e,t)=>!!h.includes(e)||!t?.includes(e)&&!d(e)));const g=((e,t,r)=>{let n;if(t){const r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?t=>e.__emotion_forwardProp(t)&&r(t):r}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n})(e,r,a)||((t,r)=>{const n="string"==typeof e&&e.charCodeAt(0)>96?Uc:qc,i=!r?.includes(t)&&!d(t);return n(t)&&i}),m=os.useMemo(()=>Object.assign({},r.defaultProps,Rc(n)),[n]),{props:v,styles:b}=function(e,t,r){const{css:n,isValidProperty:i}=Nc(),{children:a,...o}=e,s=os.useMemo(()=>{const[e,n]=$c(o,e=>r(e,t.variantKeys)),[a,s]=$c(n,t.variantKeys),[l,c]=$c(s,i);return{forwardedProps:e,variantProps:a,styleProps:l,elementProps:c}},[t.variantKeys,r,o,i]),{css:l,...c}=s.styleProps,u=os.useMemo(()=>{const e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=o.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=o.orientation),t(e)},[t,s.variantProps,o.colorPalette,o.orientation]);return{styles:os.useMemo(()=>{return n(u,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),c);var e},[n,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:a}}}(m,f,g);let y="",x=[b],k=v;if(null==v.theme){k={};for(let e in v)k[e]=v[e];k.theme=os.useContext(fc)}"string"==typeof v.className?y=Ul(i.registered,x,v.className):null!=v.className&&(y=Oc(y,v.className));const _=ic(c.concat(x),i.registered,k);_.styles&&(y=Oc(y,`${i.key}-${_.name}`)),void 0!==l&&(y=Oc(y,l));const w=!g("as");let S=w&&v.as||o,C={};for(let e in v)if(!w||"as"!==e){if(Hc(e)){C[e.replace("html","").toLowerCase()]=v[e];continue}g(e)&&(C[e]=v[e])}let P=y.trim();P?C.className=P:Reflect.deleteProperty(C,"className"),C.ref=s;const z=r.forwardAsChild||r.forwardProps?.includes("asChild");if(v.asChild&&!z){const e=os.isValidElement(v.children)?os.Children.only(v.children):os.Children.toArray(v.children).find(os.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");S=e.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=jc(C,e.props),C.ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}(s,function(e){const t=os.version;return Ac(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return C.as&&z?(C.as=void 0,ts.jsxs(os.Fragment,{children:[ts.jsx(Gc,{cache:i,serialized:_,isStringTag:"string"==typeof S}),ts.jsx(S,{asChild:!0,...C,children:ts.jsx(v.as,{children:C.children})})]})):ts.jsxs(os.Fragment,{children:[ts.jsx(Gc,{cache:i,serialized:_,isStringTag:"string"==typeof S}),ts.jsx(S,{...C})]})});return u.displayName=void 0!==s?s:`chakra(${"string"==typeof o?o:o.displayName||o.name||"Component"})`,u.__emotion_real=u,u.__emotion_base=o,u.__emotion_forwardProp=r.shouldForwardProp,u.__emotion_cva=t,Object.defineProperty(u,"toString",{value:()=>`.${l}`}),u}).bind(),Xc=new Map,Zc=new Proxy(Kc,{apply:(e,t,r)=>Kc(...r),get:(e,t)=>(Xc.has(t)||Xc.set(t,Kc(t)),Xc.get(t))}),Jc=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),eu=Zc("div");eu.displayName="Box";const tu=Object.freeze({}),ru=Object.freeze({});function nu(e){const{key:t,recipe:r}=e,n=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[a,o]=Lc({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(e){const{unstyled:n,...i}=e,a=function(e){const{key:t,recipe:r}=e,n=Nc();return os.useMemo(()=>{const e=r||(null!=t?n.getRecipe(t):{});return n.cva(structuredClone(e))},[t,r,n])}({key:t,recipe:i.recipe||r}),[o,s]=os.useMemo(()=>a.splitVariantProps(i),[a,i]);return{styles:n?tu:a(o),className:a.className,props:s}}return{withContext:(e,t)=>{const r=Zc(e,{},t),n=os.forwardRef((e,t)=>{const n=o(),i=os.useMemo(()=>jc(n,e),[e,n]),{styles:a,className:l,props:c}=s(i);return ts.jsx(r,{...c,ref:t,css:[a,i.css],className:Oc(l,i.className)})});return n.displayName=e.displayName||e.name,n},PropsProvider:a,withPropsProvider:function(){return a},usePropsContext:o,useRecipeResult:s}}const iu=os.forwardRef(function(e,t){const{templateAreas:r,column:n,row:i,autoFlow:a,autoRows:o,templateRows:s,autoColumns:l,templateColumns:c,inline:u,...d}=e;return ts.jsx(Zc.div,{...d,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:l,gridColumn:n,gridRow:i,gridAutoFlow:a,gridAutoRows:o,gridTemplateRows:s,gridTemplateColumns:c},e.css]})});var au=e=>"string"==typeof e;Function.prototype.toString.call(Object);var ou=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function su(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=os.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=os.useContext(s);if(!t&&r){const t=new Error(a??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[lu]=su({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var cu=e=>"object"==typeof e&&null!==e,uu=e=>cu(e)&&9===e.nodeType;function du(e){return uu(e)?e:(e=>cu(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function pu(e){return(e=>(e=>cu(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?pu(e.host):uu(e)?e.defaultView??window:(e=>cu(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var fu=new WeakMap,hu=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),gu=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,mu=e=>{const t={};let r;for(;r=gu.exec(e);)t[r[1]]=r[2];return t},vu=(e,t)=>{if(au(e)){if(au(t))return`${e};${t}`;e=mu(e)}else au(t)&&(t=mu(t));return Object.assign({},e??{},t??{})};function bu(...e){let t={};for(let r of e){if(!r)continue;for(let n in t)n.startsWith("on")&&"function"==typeof t[n]&&"function"==typeof r[n]?t[n]=ou(r[n],t[n]):t[n]="className"!==n&&"class"!==n?"style"!==n?void 0!==r[n]?r[n]:t[n]:vu(t[n],r[n]):hu(t[n],r[n]);for(let n in r)void 0===t[n]&&(t[n]=r[n]);const e=Object.getOwnPropertySymbols(r);for(let n of e)t[n]=r[n]}return t}function yu(...e){return t=>{const r=[];for(const n of e)if("function"==typeof n){const e=n(t);"function"==typeof e&&r.push(e)}else n&&(n.current=t);if(r.length)return()=>{for(const e of r)e()}}}const xu=e=>{const t=os.memo(os.forwardRef((t,r)=>{const{asChild:n,children:i,...a}=t;if(!n)return os.createElement(e,{...a,ref:r},i);if(!os.isValidElement(i))return null;const o=os.Children.only(i),s=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(o);return os.cloneElement(o,{...bu(a,o.props),ref:r?yu(r,s):s})}));return t.displayName=e.displayName||e.name,t},ku=(()=>{const e=new Map;return new Proxy(xu,{apply:(e,t,r)=>xu(r[0]),get(t,r){const n=r;return e.has(n)||e.set(n,xu(n)),e.get(n)}})})();var _u=()=>e=>Array.from(new Set(e));const wu=Zc("span"),{withContext:Su}=nu({key:"text"}),Cu=Su("p");function Pu(e,t){const r=Nc().normalizeValue(e),n=function(e={}){e.fallback||(e.fallback="base");const t=Nc();let r=!1;const n=t.breakpoints.values.map(({min:t,name:n})=>{const i={breakpoint:n,query:`(min-width: ${t})`,fallback:!r};return n===e.fallback&&(r=!0),i}).filter(({breakpoint:t})=>!!e.breakpoints?.includes(t)),i=n.map(({fallback:e})=>e),a=function(e,t={}){const{fallback:r=[],ssr:n=!0,getWindow:i}=t,a=function(e,t=[]){const r=os.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return os.useInsertionEffect(()=>{r.current=e}),os.useCallback((...e)=>r.current?.(...e),t)}(i),o=Array.isArray(e)?e:[e],s=r?.filter(e=>null!=e),[l,c]=os.useState(()=>o.map((e,t)=>{if(!n){const{media:t,matches:r}=(i?.()??window).matchMedia(e);return{media:t,matches:r}}return{media:e,matches:!!s[t]}}));return os.useEffect(()=>{const e=a()??window;c(t=>{const r=o.map(t=>{const{media:r,matches:n}=e.matchMedia(t);return{media:r,matches:n}});return t.every((e,t)=>e.matches===r[t].matches&&e.media===r[t].media)?t:r});const t=o.map(t=>e.matchMedia(t)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},n=t.map(e=>function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}}(e,r));return()=>n.forEach(e=>e())},[a]),l.map(e=>e.matches)}(n.map(e=>e.query),{fallback:i,ssr:e.ssr}).lastIndexOf(!0);return n[a]?.breakpoint??e.fallback}({breakpoints:Object.keys(r),...t});return r[n]}var zu=(e,t=[])=>({parts:(...r)=>{if(Tu(t))return zu(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>zu(e,[...t,...r]),omit:(...r)=>zu(e,t.filter(e=>!r.includes(e))),rename:e=>zu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:[`&[data-scope="${Eu(e)}"][data-part="${Eu(r)}"]`,`& [data-scope="${Eu(e)}"][data-part="${Eu(r)}"]`].join(", "),attrs:{"data-scope":Eu(e),"data-part":Eu(r)}}}),{})}),Eu=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Tu=e=>0===e.length,ju=zu("collapsible").parts("root","trigger","content","indicator");ju.build(),_u()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Ru=zu("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Ru.build(),_u()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),_u()(["xChannel","yChannel"]),_u()(["channel","orientation"]),_u()(["value","disabled"]),_u()(["value","respectAlpha"]),_u()(["size"]);var Ou=zu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Ou.build(),_u()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),_u()(["value","disabled"]);var Iu=zu("avatar").parts("root","image","fallback");Iu.build(),_u()(["dir","id","ids","onStatusChange","getRootNode"]);var Au=zu("checkbox").parts("root","label","control","indicator");Au.build(),_u()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Du=Au.extendWith("group"),[Mu,Lu]=su({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Fu=zu("clipboard").parts("root","control","trigger","indicator","input","label");Fu.build(),_u()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),_u()(["copied"]);const Nu=Ru.extendWith("view");var Wu=zu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Wu.build(),_u()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),_u()(["htmlFor"]),_u()(["id"]),_u()(["item","persistFocus"]);const $u=Wu.extendWith("empty");var Bu=zu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Bu.build(),_u()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var Hu=zu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Hu.build(),_u()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Vu=zu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Vu.build();var Uu=e=>{if(!e)return;const t=function(e){return fu.has(e)||fu.set(e,pu(e).getComputedStyle(e)),fu.get(e)}(e),r=pu(e),n=du(e),i=()=>{requestAnimationFrame(()=>{let r;e.style.height="auto",r="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&r>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),r=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${r}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);const a=Object.getPrototypeOf(e),o=Object.getOwnPropertyDescriptor(a,"value");Object.defineProperty(e,"value",{...o,set(){o?.set?.apply(this,arguments),i()}});const s=new r.ResizeObserver(()=>{requestAnimationFrame(()=>i())});s.observe(e);const l=new r.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),n.fonts?.removeEventListener("loadingdone",i),s.disconnect(),l.disconnect()}};const qu=os.forwardRef((e,t)=>{const{autoresize:r,...n}=e,i=os.useRef(null),a=Lu(),o=bu(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return os.useEffect(()=>{if(r)return Uu(i.current)},[r]),ts.jsx(ku.textarea,{...o,ref:yu(t,i)})});qu.displayName="FieldTextarea";const Yu=zu("fieldset").parts("root","errorText","helperText","legend");Yu.build();var Gu=zu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Gu.build(),_u()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),_u()(["file","type"]);const Qu=e=>{const{value:t,children:r}=e,[n,i]=os.useState(),a=os.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??n?.getRootNode()??document;var e},[t,n]),o=os.useMemo(()=>({getRootNode:a,getWindow:()=>pu(a()),getDocument:()=>du(a())}),[a]);return ts.jsxs(lu,{value:o,children:[r,!t&&ts.jsx("span",{hidden:!0,ref:i})]})};var Ku=zu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Ku.build(),_u()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Xu=zu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");Xu.build(),_u()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),_u()(["node","indexPath"]);var Zu=zu("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Zu.build(),_u()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),_u()(["item","highlightOnHover"]),_u()(["id"]),_u()(["htmlFor"]);const Ju=Zu.extendWith("empty");var ed=zu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ed.build(),_u()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),_u()(["closeOnSelect","disabled","value","valueText"]),_u()(["htmlFor"]),_u()(["id"]),_u()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var td=zu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");td.build(),_u()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var rd=zu("pinInput").parts("root","label","input","control");rd.build(),_u()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var nd=zu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");nd.build(),_u()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var id=zu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");id.build(),_u()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var ad=zu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");ad.build(),_u()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var od=zu("radio-group").parts("root","label","item","itemText","itemControl","indicator");od.build(),_u()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),_u()(["value","disabled","invalid"]);var sd=zu("rating-group").parts("root","label","item","control");sd.build(),_u()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),_u()(["index"]);var ld=zu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");ld.build(),_u()(["dir","getRootNode","ids","id"]);const cd=od.rename("segment-group");cd.build();var ud=zu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");ud.build(),_u()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),_u()(["item","persistFocus"]),_u()(["id"]),_u()(["htmlFor"]);var dd=zu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");dd.build(),_u()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),_u()(["index","name"]);var pd=zu("switch").parts("root","label","control","thumb");pd.build(),_u()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var fd=zu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function hd(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}fd.build(),_u()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const gd=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:n.value,[e]:`var(${i}, ${n.color})`}};function md(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>md(e));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=md(e[r]);return t}function vd(e,t){if(null==t)return e;for(const r of Object.keys(t))if(void 0!==t[r]&&"__proto__"!==r)if(!Ic(e[r])&&Ic(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Ic(t[r]))vd(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Ic(e[r][n])&&Ic(t[r][n])?vd(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function bd(e,...t){for(const r of t)vd(e,r);return e}const yd=e=>null!=e;function xd(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,a=[]){if(Ic(r)||Array.isArray(r)){const o={};for(const[s,l]of Object.entries(r)){const c=i?.(s,l)??s,u=[...a,c];if(n?.(r,u))return t(r,a);const d=e(l,u);yd(d)&&(o[c]=d)}return o}return t(r,a)}(e)}function kd(e,t){return Array.isArray(e)?e.map(e=>yd(e)?t(e):e):Ic(e)?xd(e,e=>t(e)):yd(e)?t(e):e}const _d=["value","type","description"],wd=(...e)=>{const t=bd({},...e.map(md));return t.theme?.tokens&&xd(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!_d.includes(e)).length>0,r=_d.some(t=>null!=e[t]);return t&&r&&(e.DEFAULT||(e.DEFAULT={}),_d.forEach(t=>{var r;null!=e[t]&&((r=e.DEFAULT)[t]||(r[t]=e[t]),delete e[t])})),e},{stop(e){return(t=e)&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(e).some(e=>_d.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function Sd(){const e=e=>e;return new Proxy(e,{get:()=>e})}const Cd=Sd(),Pd=Sd(),zd=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Ed=/[A-Z]/g;function Td(e,t={}){const{fallback:r="",prefix:n=""}=t,i=function(e){return e.replace(Ed,e=>`-${e.toLowerCase()}`)}(["-",n,(a=e,`${a}`.replace(zd,e=>`\\${e}`))].filter(Boolean).join("-"));var a;return{var:i,ref:`var(${i}${r?`, ${r}`:""})`}}const jd=(e,t)=>null!=t?`${e}(${t})`:t,Rd=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Od=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),Id=gd("borderColor"),Ad=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Dd=Td("bg-currentcolor"),Md=e=>e===Dd.ref||"currentBg"===e,Ld=e=>({...e("colors"),currentBg:Dd}),Fd={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:Ld,shorthand:["bg"],transform(e,t){if(Md(t.raw))return{background:Dd.ref};const r=gd("background")(e,t);return{...r,[Dd.var]:r?.background}}},backgroundColor:{values:Ld,shorthand:["bgColor"],transform(e,t){if(Md(t.raw))return{backgroundColor:Dd.ref};const r=gd("backgroundColor")(e,t);return{...r,[Dd.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:Ld,transform:gd("--gradient-from")},gradientTo:{values:Ld,transform:gd("--gradient-to")},gradientVia:{values:Ld,transform:(e,t)=>({...gd("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ld,transform:gd("borderColor")},borderTopColor:{values:Ld,transform:gd("borderTopColor")},borderBlockStartColor:{values:Ld,transform:gd("borderBlockStartColor")},borderBottomColor:{values:Ld,transform:gd("borderBottomColor")},borderBlockEndColor:{values:Ld,transform:gd("borderBlockEndColor")},borderLeftColor:{values:Ld,transform:gd("borderLeftColor")},borderInlineStartColor:{values:Ld,shorthand:["borderStartColor"],transform:gd("borderInlineStartColor")},borderRightColor:{values:Ld,transform:gd("borderRightColor")},borderInlineEndColor:{values:Ld,shorthand:["borderEndColor"],transform:gd("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ld,transform:gd("color")},fill:{values:Ld,transform:gd("fill")},stroke:{values:Ld,transform:gd("stroke")},accentColor:{values:Ld,transform:gd("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:Ld,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":Id(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ld,transform:gd("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":jd("blur",e)})},brightness:{transform:e=>({"--brightness":jd("brightness",e)})},contrast:{transform:e=>({"--contrast":jd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":jd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":jd("hue-rotate",Rd(e))})},invert:{transform:e=>({"--invert":jd("invert",e)})},saturate:{transform:e=>({"--saturate":jd("saturate",e)})},sepia:{transform:e=>({"--sepia":jd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":jd("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":jd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":jd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":jd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":jd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":jd("hue-rotate",Rd(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":jd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":jd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":jd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":jd("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ld,transform:gd("outlineColor")},focusRing:Od("&:is(:focus, [data-focus])"),focusVisibleRing:Od("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ld,transform:gd("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>{const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[n]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[n]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ld,transform:gd("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:Ld,transform:gd("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ld,transform:gd("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ld,transform:gd("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Rd(e)})},skewY:{transform:e=>({"--skew-y":Rd(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:Rd(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Rd(e)})},rotateY:{transform:e=>({"--rotate-y":Rd(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Ad("all");case"position":return Ad("left, right, top, bottom, inset-inline, inset-block");case"colors":return Ad("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Ad("opacity");case"shadow":return Ad("box-shadow");case"transform":return Ad("transform");case"size":return Ad("width, height");case"backgrounds":return Ad("background, background-color, background-image, background-position");case"common":return Ad("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>Nd[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:Ld,transform:gd("caretColor")},cursor:{values:"cursor"}}},Nd={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Wd="".split(","),$d="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(Wd),Bd=new Map($d.map(e=>[e,!0]));function Hd(e){const t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}var Vd,Ud,qd=/&|@/,Yd=Hd(e=>Bd.has(e)||e.startsWith("--")||qd.test(e));function Gd(e,t){const r={};return xd(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}function Qd(){if(Ud)return Vd;Ud=1,Vd=a,a.default=a,a.stable=c,a.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,a,o){var l;void 0===o&&(o=i()),s(e,"",0,[],void 0,0,o);try{l=0===n.length?JSON.stringify(e,t,a):JSON.stringify(e,d(t),a)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function o(e,t,i,a){var o=Object.getOwnPropertyDescriptor(a,i);void 0!==o.get?o.configurable?(Object.defineProperty(a,i,{value:e}),r.push([a,i,t,o])):n.push([t,i,e]):(a[i]=e,r.push([a,i,t]))}function s(r,n,i,a,l,c,u){var d;if(c+=1,"object"==typeof r&&null!==r){for(d=0;d<a.length;d++)if(a[d]===r)return void o(t,r,n,l);if(void 0!==u.depthLimit&&c>u.depthLimit)return void o(e,r,n,l);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void o(e,r,n,l);if(a.push(r),Array.isArray(r))for(d=0;d<r.length;d++)s(r[d],d,d,a,r,c,u);else{var p=Object.keys(r);for(d=0;d<p.length;d++){var f=p[d];s(r[f],f,d,a,r,c,u)}}a.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function c(e,t,a,o){void 0===o&&(o=i());var s,l=u(e,"",0,[],void 0,0,o)||e;try{s=0===n.length?JSON.stringify(l,t,a):JSON.stringify(l,d(t),a)}catch(p){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(n,i,a,s,c,d,p){var f;if(d+=1,"object"==typeof n&&null!==n){for(f=0;f<s.length;f++)if(s[f]===n)return void o(t,n,i,c);try{if("function"==typeof n.toJSON)return}catch(v){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void o(e,n,i,c);if(void 0!==p.edgesLimit&&a+1>p.edgesLimit)return void o(e,n,i,c);if(s.push(n),Array.isArray(n))for(f=0;f<n.length;f++)u(n[f],f,f,s,n,d,p);else{var h={},g=Object.keys(n).sort(l);for(f=0;f<g.length;f++){var m=g[f];u(n[m],m,f,s,n,d,p),h[m]=n[m]}if(void 0===c)return h;r.push([c,i,n]),c[i]=h}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var i=0;i<n.length;i++){var a=n[i];if(a[1]===t&&a[0]===r){r=a[2],n.splice(i,1);break}}return e.call(this,t,r)}}return Vd}const Kd=Uo(Qd()),Xd=e=>{const t=Object.create(null);return function(...r){const n=r.map(e=>Kd(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}},Zd="px",Jd="em",ep="rem";function tp(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Zd}|${Jd}|${ep}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n?.[1]}function rp(e=""){if("number"==typeof e)return`${e}px`;const t=tp(e);return t?t===Zd?e:t===Jd||t===ep?`${16*parseFloat(e)}${Zd}`:void 0:e}function np(e=""){const t=tp(e);return t?t===ep?e:t===Jd?`${parseFloat(e)}${ep}`:t===Zd?`${parseFloat(e)/16}${ep}`:void 0:e}function ip(e){return np(parseFloat(rp(e)??"")-.04+"px")}function ap({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const op=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),sp=op("width"),lp=op("height"),cp=e=>({isMin:kp(e.minMax,e.maxMin,e.min),isMax:kp(e.maxMin,e.minMax,e.max)}),{isMin:up,isMax:dp}=cp(sp),{isMin:pp,isMax:fp}=cp(lp),hp=/print/i,gp=/^print$/i,mp=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,vp=/(\d)/,bp=Number.MAX_VALUE,yp={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function xp(e){const t=mp.exec(e)||(up(e)||pp(e)?vp.exec(e):null);if(!t)return bp;if("0"===t[0])return 0;const r=parseFloat(t[1]),n=t[2];return r*(yp[n]||1)}function kp(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}const _p=Xd((e,t)=>{const r=function(e,t){const r=hp.test(e),n=gp.test(e),i=hp.test(t),a=gp.test(t);return r&&i?!n&&a?1:n&&!a?-1:e.localeCompare(t):r?1:i?-1:null}(e,t);if(null!==r)return r;const n=up(e)||pp(e),i=dp(e)||fp(e),a=up(t)||pp(t),o=dp(t)||fp(t);if(n&&o)return-1;if(i&&a)return 1;const s=xp(e),l=xp(t);return s===bp&&l===bp?e.localeCompare(t):s===bp?1:l===bp?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function wp(e){return e.sort(([e],[t])=>_p(e,t))}function Sp(e){const t=[],r=[],n={};for(const[o,s]of Object.entries(e))o.startsWith("@media")?t.push([o,s]):o.startsWith("@container")?r.push([o,s]):Ic(s)?n[o]=Sp(s):n[o]=s;const i=wp(t),a=wp(r);return{...n,...Object.fromEntries(i),...Object.fromEntries(a)}}const Cp=/\s*!(important)?/i;function Pp(e){const{transform:t,conditions:r,normalize:n}=e,i=(a=e,Xd(function(...e){return bd({},...function(e){const t=function(...e){return e.filter(e=>Ic(e)&&Object.keys(Rc(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>a.normalize(e))}(e))}));var a;return Xd(function(...e){const a=i(...e),o=n(a),s=Object.create(null);return xd(o,(e,n)=>{const i=!!Ac(a=e)&&Cp.test(a);var a;if(null==e)return;const[o,...l]=r.sort(n).map(r.resolve);i&&(e=(e=>Ac(e)?e.replace(Cp,"").trim():e)(e));let c=t(o,e)??Object.create(null);c=xd(c,e=>Ac(e)&&i?`${e} !important`:e,{getKey:e=>r.expandAtRule(e)}),function(e,t,r){let n=e;for(const i of t)i&&(n[i]||(n[i]=Object.create(null)),n=n[i]);bd(n,r)}(s,l.flat(),c)}),Sp(s)})}const zp=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const Ep={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Tp={reset:0,base:1,tokens:2,recipes:3};const jp=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Rp=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Op=e=>(e+"").replace(jp,Rp),Ip=(e,t)=>{let r="",n=0,i="char",a="",o="";const s=[];for(;n<e.length;){const l=e[n];if("{"===l){const i=e.indexOf("}",n);if(-1===i)break;const a=e.slice(n+1,i);r+=t(a)??a,n=i+1;continue}if("token"===i&&","===l){""===e[n]&&n++,i="fallback",s.push(i);const l=t(a);l?.endsWith(")")&&(r+=l.slice(0,-1)),a="",o="";continue}if("fallback"===i&&", var("===o+l){const t=Ap(e.slice(n+1))+n+1,a=e.slice(n+1,t);if(-1===t)break;r+=", var("+a+")",n=t+1,i=s.pop()??i,o="";continue}if("token"===i||"fallback"===i){if(n++,")"===l){i=s.pop()??i??"char",o+=l;const e=a?t(a)??Op(a):a;if(o)if(o=o.slice(1).trim(),!o.startsWith("token(")&&o.endsWith(")")&&(o=o.slice(0,-1)),o.includes("token(")){const e=Ip(o,t);e&&(o=e.slice(0,-1))}else if(o){const e=t(o);e&&(o=e)}const n=r.at(-1);o?n?.trim()?r+=e.slice(0,-1)+", "+o+")":r+=o:r+=e||")",a="",o="",i="char";continue}"token"===i&&(a+=l),"fallback"===i&&(o+=l);continue}const c=e.indexOf("token(",n);if(-1!==c){const t=c+6;r+=e.slice(n,c),n=t,i="token",s.push(i);continue}r+=l,n++}return r},Ap=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if("("===n)r.push(n);else if(")"===n&&(r.pop(),0===r.length))return t;t++}return t};function Dp(e){const t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}const Mp=/({([^}]*)})/g,Lp=/[{}]/g,Fp=/\w+\.\w+/,Np=e=>{if(!Ac(e))return[];const t=e.match(Mp);return t?t.map(e=>e.replace(Lp,"")).map(e=>e.trim()):[]};function Wp(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((e,r)=>{const n=t[r];if(n.extensions.conditions)return e;const i=Wp(n);return e.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function $p(e){return Ic(e)&&e.reference?e.reference:String(e)}const Bp=(e,...t)=>t.map($p).join(` ${e} `).replace(/calc/g,""),Hp=(...e)=>`calc(${Bp("+",...e)})`,Vp=(...e)=>`calc(${Bp("-",...e)})`,Up=(...e)=>`calc(${Bp("*",...e)})`,qp=(...e)=>`calc(${Bp("/",...e)})`,Yp=e=>{const t=$p(e);return null==t||Number.isNaN(parseFloat(t))?Up(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Gp=Object.assign(e=>({add:(...t)=>Gp(Hp(e,...t)),subtract:(...t)=>Gp(Vp(e,...t)),multiply:(...t)=>Gp(Up(e,...t)),divide:(...t)=>Gp(qp(e,...t)),negate:()=>Gp(Yp(e)),toString:()=>e.toString()}),{add:Hp,subtract:Vp,multiply:Up,divide:qp,negate:Yp}),Qp={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:i,registerToken:a}=e;r.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const r=e.path.slice(),o=n(r,t);if(Ac(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=Gp.negate(o.ref);const l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),a(s)})}},Kp=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Xp={enforce:"post",transform(e){e.allTokens.filter(e=>Kp.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:rp(e.value)})})}},Zp=[Qp,{enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,i=t.filter(({extensions:e})=>"colors"===e.category),a=new Map,o=new Map;i.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{a.set(n(e),e)}),t.roots.forEach(r=>{const i=n(r),s=o.get(i)||[];if(s.push(e),o.set(i,s),e.extensions.default&&1===r.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const i=r.concat(e);a.set(n(i),[])}}))}),a.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),i=n(t),a=n(t.slice(1));r({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:a,virtual:!0}},"pre")})}},Xp,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],Jp=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:i,originalPath:a}=e.extensions;return{cssVar:n((i?a:e.path).filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,i=Np(e.value);return i.length?(i.forEach(t=>{const i=n(t.split("."),r);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value):e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),0===r.length){const t=[...e.path];t.shift(),r=t}if(0===r.length)return{};const n=r.reduce((e,t,r,n)=>{const i=n.slice(0,r+1);return e.push(i),e},[]),i=r[0],a=t.formatTokenName(r),o=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,r,n)=>(e.push(n.slice(r)),e),[]);return 0===o.length&&o.push([""]),{colorPalette:{value:a,roots:n,keys:o}}}}],ef=e=>Ic(e)&&Object.prototype.hasOwnProperty.call(e,"value");function tf(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:i={}}=e,a=e=>e.join("."),o=[],s=new Map,l=new Map,c=new Map,u=new Map,d=new Map,p=new Map,f=new Map,h=new Map,g=[];function m(e,t){o.push(e),s.set(e.name,e),t&&h.forEach(r=>{r.enforce===t&&C(r,e)})}const v=function(e){return e?{breakpoints:kd(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=Rc({...r,breakpoints:v.breakpoints,sizes:{...r.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const k=Xd((e,t)=>d.get(e)??t),_=Xd(e=>x[e]||null),w=Xd(e=>Ip(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,r]=e.split("/");if(!t||!r)return{invalid:!0,value:t};const n=k(t),i=y(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:t};const a=n??t;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${i?100*Number(i)+"%":`${r}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return k(e)||(Fp.test(e)?Op(e):e)})),S={prefix:t,allTokens:o,tokenMap:s,registerToken:m,getByName:y,formatTokenName:a,formatCssVar:(e,t)=>Td(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:f,colorPaletteMap:u,getVar:k,getCategoryValues:_,expandReferenceInValue:w};function C(e,t){if(t.extensions.references)return;if(Dc(e.match)&&!e.match(t))return;const r=(n=t,e.transform(n,S));var n;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,r);break;case"value"===e.type:t.value=r;break;default:t[e.type]=r}}function P(e){g.forEach(t=>{t.enforce===e&&t.transform(S)})}function z(e){h.forEach(t=>{t.enforce===e&&o.forEach(e=>{C(t,e)})})}return xd(b,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=rf(t))[0],i=a(t),o=Ac(e)?{value:e}:e,s={value:o.value,originalValue:o.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:n,prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:ef}),xd(n,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=nf(rf(t)))[0],i=a(t),o=Ac(e.value)?{value:{base:e.value}}:e,s={value:o.value.base||"",originalValue:o.value.base||"",name:i,path:t,extensions:{originalPath:t,category:n,conditions:o.value,condition:"base",prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:ef}),function(...e){e.forEach(e=>{h.set(e.name,e)})}(...Jp),function(...e){g.push(...e)}(...Zp),P("pre"),z("pre"),o.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return xd(t,(t,n)=>{const i=nf(n);if(!i.length)return;const a=structuredClone(e);a.value=t,a.extensions.condition=i.join(":"),r.push(a)}),r}(e);t&&0!==t.length&&t.forEach(e=>{m(e)})}),o.forEach(e=>{if(t=e.value,!Mp.test(t))return;var t;const r=function(e){return Np(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),o.forEach(e=>{Wp(e)}),P("post"),z("post"),o.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:r}=e.extensions;t&&(f.has(t)||f.set(t,new Map),f.get(t).set(r,e))}(e),function(e){const{condition:t,negative:r,virtual:n,cssVar:i}=e.extensions;!r&&!n&&t&&i&&(c.has(t)||c.set(t,new Map),c.get(t).set(i.var,e.value))}(e),function(e){const{category:t,prop:r,cssVar:n,negative:i}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const a=i?e.extensions.conditions?e.originalValue:e.value:n.ref;p.get(t).set(r,a),d.set([t,r].join("."),a)}(e),function(e){const{colorPalette:t,virtual:r,default:n}=e.extensions;t&&!r&&t.roots.forEach(r=>{const i=a(r);u.has(i)||u.set(i,new Map);const o=function(e,t){const r=e.findIndex((r,n)=>t.every((t,r)=>e[n+r]===t));return-1===r||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}([...e.path],[...r]),s=y(a(o));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(u.get(i).set(l,e.extensions.cssVar.ref),n&&1===r.length){const n=y(a(["colors","colorPalette"]));if(!n)return;const i=y(a(e.path));if(!i)return;const o=t.keys[0]?.filter(Boolean);if(!o.length)return;const s=a(r.concat(o));u.has(s)||u.set(s,new Map),u.get(s).set(n.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),x=Dp(p),S}function rf(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function nf(e){return e.filter(e=>"base"!==e)}var af;af=["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"],Array.from(new Set(af));const of={};function sf(...e){const t=wd(...e),{theme:r={},utilities:n={},globalCss:i={},cssVarsRoot:a=":where(:root, :host)",cssVarsPrefix:o="chakra",preflight:s}=t,l=function(e){const t=e.layers??Ep,r=Object.values(t).sort((e,t)=>Tp[e]-Tp[t]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(r,n){if(e.disableLayers)return n;const i=t[r];return{[`@layer ${i}`]:n}}}}(t),c=tf({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:o}),u=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],r,n)=>{let i=null;return r<=n.length-1&&(i=n[r+1]?.[1]),null!=i&&(i=ip(i)),[e,{name:e,min:np(t),max:i}]})}(e),r=Object.fromEntries(t);function n(e){return r[e]}function i(e){return ap(n(e))}const a=function(){const e=function(){const e=Object.keys(r),t=function(e){const t=[];return e.forEach((r,n)=>{let i=n;i++;let a=e[i];for(;a;)t.push([r,a]),i++,a=e[i]}),t}(e),a=e.flatMap(e=>{const t=n(e),r=[`${e}Down`,ap({max:ip(t.min)})];return[[e,ap({min:t.min})],[`${e}Only`,i(e)],r]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const r=n(e),i=n(t);return[`${e}To${a=t,a.charAt(0).toUpperCase()+a.slice(1)}`,ap({min:r.min,max:ip(i.min)})];var a}));return Object.fromEntries(a)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(r),only:i,keys:function(){return["base",...Object.keys(r)]},conditions:a,getCondition:e=>a[e],up:function(e){return ap({min:n(e).min})},down:function(e){return ap({max:ip(n(e).min)})}}}(r.breakpoints??of),d=(e=>{const{breakpoints:t,conditions:r={}}=e,n=(i=r,a=(e,t)=>[`_${e}`,t],Object.fromEntries(Object.entries(i).map(([e,t])=>a(e,t))));var i,a;const o=Object.assign({},n,t.conditions);function s(){return Object.keys(o)}function l(e){return s().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:s,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{const r=l(e),n=l(t);return r&&!n?1:!r&&n?-1:0})},has:l,resolve:function(e){return Reflect.get(o,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??of,breakpoints:u}),p=function(e){const t=(r=e.config,Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t])));var r;const n=e.tokens,i=new Map,a=new Map;function o(e,r){t[e]=r,s(e,r)}const s=(e,t)=>{const r=u(t);r&&(a.set(e,r),c(e,t))},l=new Map,c=(e,t)=>{if(!t)return;const r=u(t,e=>`type:Tokens["${e}"]`);if("object"==typeof r&&r.type)return void l.set(e,new Set([`type:${r.type}`]));if(r){const t=new Set(Object.keys(r));l.set(e,t)}const n=l.get(e)??new Set;t.property&&l.set(e,n.add(`CssProperties["${t.property}"]`))},u=(e,t)=>{const{values:r}=e,i=e=>{const r=t?.(e);return r?{[r]:r}:void 0};return Ac(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):Dc(r)?r(t?i:n.getCategoryValues):r},d=Xd((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),p=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),f=Xd((e,r)=>{const i=g(e);Ac(r)&&!r.includes("_EMO_")&&(r=n.expandReferenceInValue(r));const o=t[i];if(!o)return d(i,r);const s=a.get(i)?.[r];return o.transform?o.transform(s??r,{raw:r,token:p,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||"currentBg"===r)return{invalid:!0,value:r};const i=t(`colors.${r}`),a=t.raw(`opacity.${n}`)?.value;if(!a&&isNaN(Number(n)))return{invalid:!0,value:r};const o=i??r;return{invalid:!1,color:o,value:`color-mix(in srgb, ${o} ${a?100*Number(a)+"%":`${n}%`}, transparent)`}})(e,p)}}):d(e,s??r)});(()=>{for(const[e,r]of Object.entries(t)){const{shorthand:t}=r??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>i.set(t,e))}})(),(()=>{const e=Dp(n.colorPaletteMap);o("colorPalette",{values:Object.keys(e),transform:Xd(t=>e[t])})})(),(()=>{for(const[e,r]of Object.entries(t))r&&s(e,r)})(),(()=>{for(const[e,r]of Object.entries(t))r&&c(e,r)})();const h=i.size>0,g=Xd(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:h,transform:f,shorthands:i,resolveShorthand:g,register:o,getTypes:()=>{const e=new Map;for(const[t,r]of l.entries()){if(0===r.size){e.set(t,["string"]);continue}const n=Array.from(r).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,n)}return e},addPropertyType:(e,t)=>{const r=l.get(e)??new Set;l.set(e,new Set([...r,...t]))}}}({config:n,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:n}=r,i=Rc({textStyle:e,layerStyle:t,animationStyle:n});for(const[r,a]of Object.entries(i)){const e=Gd(a??of,lf);p.register(r,{values:Object.keys(e),transform:t=>b(e[t])})}}(),p.addPropertyType("animationName",Object.keys(r.keyframes??of));const f=new Set(["css",...p.keys(),...d.keys()]),h=Xd(e=>f.has(e)||Yd(e)),g=e=>Array.isArray(e)?e.reduce((e,t,r)=>{const n=d.breakpoints[r];return null!=t&&(e[n]=t),e},{}):e,m=function(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:i}=t;return function(e){return xd(e,r,{stop:e=>Array.isArray(e),getKey:n?i:void 0})}}({utility:p,normalize:g}),v=function(e){const{conditions:t,isValidProperty:r}=e;return function(e){return xd(e,e=>e,{getKey:(e,n)=>Ic(n)?t.has(e)||r(e)?e:function(e){const t=[];let r=0,n="",i=!1;for(let a=0;a<e.length;a++){const o=e[a];"\\"!==o||i?i?(i=!1,n+=o):("("===o?r++:")"===o&&r--,","===o&&0===r?(t.push(n.trim()),n=""):n+=o):(i=!0,n+=o)}return n&&t.push(n.trim()),t}(e).map(e=>"&"+e).join(", "):e})}}({conditions:d,isValidProperty:h}),b=Pp({transform:p.transform,conditions:d,normalize:m}),y=function(e){const{css:t,conditions:r,normalize:n,layers:i}=e;return function a(o={}){const{base:s,variants:l,defaultVariants:c,compoundVariants:u}=zp(o),d=Pp({conditions:r,normalize:n,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const r=n({...c,...Rc(e)});let a={...s};bd(a,d(r));const o=function(e,r){let n={};return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>r[e]===t))&&(n=t(n,e.css))}),n}(u,r);return i.wrap("recipes",t(a,o))},f=Object.keys(l),h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(p(e)),{className:o.className,__cva__:!0,variantMap:h,variantKeys:f,raw:p,config:o,splitVariantProps:e=>{const t=hd(e,["recipe"]),[r,n]=$c(t,f);return f.includes("colorPalette")||(r.colorPalette=e.colorPalette||c.colorPalette),f.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return a(function(e){const{css:t}=e;return function(e,r){const n=zp(r.config),i=Mc(e.variantKeys,Object.keys(r.variants)),a=t(e.base,n.base),o=Object.fromEntries(i.map(r=>[r,t(e.config.variants[r],n.variants[r])])),s=bd(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:Oc(e.className,r.className),base:a,variants:o,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:d,normalize:m,layers:l}),x=function(e){const{cva:t}=e;return function(e={}){const r=Object.entries(((e={})=>{const t=t=>{return{base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(r=e.compoundVariants,n=t,r.filter(e=>e.css[n]).map(e=>({...e,css:e.css[n]}))):[]};var r,n},r=(e.slots??[]).map(e=>[e,t(e)]);for(const[n,i]of Object.entries(e.variants??{}))for(const[e,t]of Object.entries(i))r.forEach(([r,i])=>{var a;(a=i.variants)[n]??(a[n]={}),i.variants[n][e]=t[r]??{}});return Object.fromEntries(r)})(e)).map(([e,r])=>[e,t(r)]),n=e.variants??{},i=Object.keys(n),a=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,Object.keys(t)]));let o={};return e.className&&(o=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=r.map(([t,r])=>[t,r(e)]);return Object.fromEntries(t)},{variantMap:a,variantKeys:i,splitVariantProps:function(t){const r=hd(t,["recipe"]),[n,a]=$c(r,i);return i.includes("colorPalette")||(n.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(a.orientation=t.orientation),[n,a]},classNameMap:o})}}({cva:y});function k(){const e={};for(const[t,r]of c.cssVarMap.entries()){const n=Object.fromEntries(r);if(0===Object.keys(n).length)continue;const i="base"===t?a:d.resolve(t),o=i.startsWith("@");bd(e,b(v({[i]:o?{[a]:n}:n})))}return l.wrap("tokens",e)}function _(){const e=Object.fromEntries(Object.entries(r.keyframes??of).map(([e,t])=>[`@keyframes ${e}`,t])),t=Object.assign({},e,b(v(i)));return l.wrap("base",t)}function w(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Ic(t)?t:{};let i="";r&&"parent"===n?i=`${r} `:r&&"element"===n&&(i=`&${r}`);const a={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},o={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if("element"===n){const e=Object.entries(a).reduce((e,[t,r])=>(e[t]={[i]:r},e),{});Object.assign(o,e)}else i?o[i]=a:Object.assign(o,a);return o}({preflight:s});return l.wrap("reset",e)}const S=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:r,virtual:n,conditions:i}=e.extensions,a=i||n?r.ref:e.value;t.set(e.name,{value:a,variable:r.ref})}),t}(c),C=(e,t)=>S.get(e)?.value||t;function P(e){return Object.hasOwnProperty.call(r.recipes??of,e)}function z(e){return Object.hasOwnProperty.call(r.slotRecipes??of,e)}C.var=(e,t)=>S.get(e)?.variable||t;const E=[w(),_(),k()],T={layerStyles:cf(r.layerStyles??of),textStyles:cf(r.textStyles??of),animationStyles:cf(r.animationStyles??of),tokens:uf(c,Object.keys(r.tokens??of),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:uf(c,Object.keys(r.semanticTokens??of),e=>!!e.extensions.conditions),keyframes:df(r.keyframes??of),breakpoints:df(r.breakpoints??of)};return{$$chakra:!0,_config:t,_global:E,breakpoints:u,tokens:c,conditions:d,utility:p,token:C,properties:f,layers:l,isValidProperty:h,splitCssProps:function(e){return $c(e,h)},normalizeValue:g,getTokenCss:k,getGlobalCss:_,getPreflightCss:w,css:b,cva:y,sva:x,getRecipe:function(e,t){return r.recipes?.[e]??t},getSlotRecipe:function(e,t){return r.slotRecipes?.[e]??t},hasRecipe:function(e){return P(e)||z(e)},isRecipe:P,isSlotRecipe:z,query:T}}const lf=e=>Ic(e)&&"value"in e,cf=e=>({list:()=>Object.keys(Gd(e,lf)),search(e){return this.list().filter(t=>t.includes(e))}}),uf=(e,t,r)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,n])=>(r(n,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),df=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),pf="var(--chakra-empty,/*!*/ /*!*/)",ff={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":pf,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,pf])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,pf])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},hf={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},gf={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},{variants:mf,defaultVariants:vf}=hf,bf={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},yf={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},xf={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},kf={badge:hf,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:mf,defaultVariants:vf},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}},input:yf,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:yf.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:gf,radiomark:xf,colorSwatch:bf},_f=Pd.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),wf=Pd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Sf=Pd.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),Cf=Ou.extendWith("itemBody"),Pf=zu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),zf=zu("alert").parts("title","description","root","indicator","content"),Ef=zu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Tf=zu("blockquote").parts("root","icon","content","caption"),jf=zu("card").parts("root","header","body","footer","title","description"),Rf=zu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Of=zu("data-list").parts("root","item","itemLabel","itemValue"),If=Bu.extendWith("header","body","footer","backdrop"),Af=Bu.extendWith("header","body","footer","backdrop"),Df=Hu.extendWith("textarea"),Mf=zu("empty-state",["root","content","indicator","title","description"]),Lf=Vu.extendWith("requiredIndicator"),Ff=Yu.extendWith("content"),Nf=Gu.extendWith("itemContent","dropzoneContent","fileText"),Wf=zu("list").parts("root","item","indicator"),$f=ed.extendWith("itemCommand"),Bf=zu("select").parts("root","field","indicator"),Hf=nd.extendWith("header","body","footer"),Vf=od.extendWith("itemAddon","itemIndicator"),Uf=Vf.extendWith("itemContent","itemDescription"),qf=sd.extendWith("itemIndicator"),Yf=ud.extendWith("indicatorGroup"),Gf=$u.extendWith("indicatorGroup","empty"),Qf=dd.extendWith("markerIndicator"),Kf=zu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Xf=zu("status").parts("root","indicator"),Zf=zu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Jf=pd.extendWith("indicator"),eh=zu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),th=zu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),rh=zu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),nh=zu("tag").parts("root","label","closeTrigger","startElement","endElement"),ih=zu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),ah=Nu.extendWith("channelText"),oh=zu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Fu.extendWith("valueText");const sh=Ju,lh={className:"chakra-accordion",slots:Cf.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}},ch={className:"chakra-action-bar",slots:Pf.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},uh={slots:zf.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}},dh={slots:Iu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},ph={className:"chakra-blockquote",slots:Tf.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},fh={className:"chakra-breadcrumb",slots:Ef.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},hh={className:"chakra-card",slots:jf.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}},gh={slots:Du.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:gf.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:gf.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:gf.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:gf.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:gf.variants?.size?.lg}},variant:{outline:{control:gf.variants?.variant?.outline},solid:{control:gf.variants?.variant?.solid},subtle:{control:gf.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},mh={slots:Rf.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:gf.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:gf.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:gf.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:gf.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:gf.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:gf.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:gf.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:gf.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},vh={slots:oh.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}},bh={slots:ju.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},yh={className:"colorPicker",slots:ah.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...bf.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...yf.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:yf.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:yf.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:yf.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:yf.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:yf.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:yf.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:yf.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:yf.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:yf.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},xh={className:"chakra-combobox",slots:Gf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},kh={slots:Of.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},_h={slots:If.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}},wh={slots:Af.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},Sh={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Ch={slots:Df.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Sh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Sh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},Ph={slots:Mf.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},zh={className:"chakra-field",slots:Lf.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},Eh={className:"fieldset",slots:Ff.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},Th={className:"chakra-file-upload",slots:Nf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}},jh={className:"chakra-hover-card",slots:Ku.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},Rh={className:"chakra-list",slots:Wf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}},Oh={className:"chakra-listbox",slots:sh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}},Ih={className:"chakra-menu",slots:$f.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Ah={className:"chakra-select",slots:Yf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},Dh={className:"chakra-native-select",slots:Bf.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Ah.variants?.variant.outline.trigger},subtle:{field:Ah.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Ah.defaultVariants};function Mh(e,t){const r={};for(const n in e){const i=t(n,e[n]);r[i[0]]=i[1]}return r}const Lh={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},Fh={className:"chakra-number-input",slots:td.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...yf.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Lh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Lh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:yf.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:yf.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:yf.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:yf.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Mh(yf.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:Nh,defaultVariants:Wh}=yf,$h={className:"chakra-pin-input",slots:rd.keys(),base:{input:{...yf.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Mh(Nh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Mh(Nh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Wh},Bh={className:"chakra-popover",slots:Hf.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}},Hh={slots:id.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},Vh={className:"chakra-progress-circle",slots:id.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}},Uh={slots:ad.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},qh={className:"chakra-radio-card",slots:Uf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:xf.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:xf.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:xf.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:xf.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:xf.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:xf.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},Yh={className:"chakra-radio-group",slots:Vf.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:xf.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:xf.variants?.variant?.outline},subtle:{itemControl:xf.variants?.variant?.subtle},solid:{itemControl:xf.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:xf.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:xf.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:xf.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:xf.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},Gh={className:"chakra-rating-group",slots:qf.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}},Qh={className:"chakra-scroll-area",slots:ld.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}},Kh={className:"chakra-segment-group",slots:cd.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}},Xh={className:"chakra-slider",slots:Qf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},Zh={className:"chakra-stat",slots:Kf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},Jh={className:"chakra-status",slots:Xf.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},eg={className:"chakra-steps",slots:Zf.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},tg={slots:Jf.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},rg={className:"chakra-table",slots:eh.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},ng={slots:rh.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},ig=hf.variants?.variant,ag={slots:nh.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ig?.subtle},solid:{root:ig?.solid},outline:{root:ig?.outline},surface:{root:ig?.surface}}},defaultVariants:{size:"md",variant:"surface"}},og={slots:ih.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}},sg={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},lg={flex:"1"},cg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},ug={_selected:{layerStyle:"fill.solid"}},dg={accordion:lh,actionBar:ch,alert:uh,avatar:dh,blockquote:ph,breadcrumb:fh,card:hh,checkbox:gh,checkboxCard:mh,codeBlock:vh,collapsible:bh,dataList:kh,dialog:_h,drawer:wh,editable:Ch,emptyState:Ph,field:zh,fieldset:Eh,fileUpload:Th,hoverCard:jh,list:Rh,listbox:Oh,menu:Ih,nativeSelect:Dh,numberInput:Fh,pinInput:$h,popover:Bh,progress:Hh,progressCircle:Vh,radioCard:qh,radioGroup:Yh,ratingGroup:Gh,scrollArea:Qh,segmentGroup:Kh,select:Ah,combobox:xh,slider:Xh,stat:Zh,steps:eg,switch:tg,table:rg,tabs:ng,tag:ag,toast:{slots:th.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}},tooltip:{slots:fd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}},status:Jh,timeline:og,colorPicker:yh,qrCode:Uh,treeView:{slots:Xu.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:sg,item:sg,itemText:lg,branchText:lg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:cg,item:cg},solid:{branchControl:ug,item:ug}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},pg=Cd.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),fg=Cd.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),hg=Cd.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),gg=Cd.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),mg=Cd.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),vg=Cd.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),bg=Cd.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),yg=Cd.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),xg=Cd.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),kg=Cd.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),_g='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',wg=Cd.fonts({heading:{value:`Inter, ${_g}`},body:{value:`Inter, ${_g}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Sg=Cd.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Cg=Cd.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Pg=Cd.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),zg=Cd.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),Eg=Cd.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Tg=Cd.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),jg=Cd.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),Rg=Cd.sizes({...Eg,...zg,...jg,...Tg}),Og=Cd.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),Ig=wd(Fd,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:ff,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},tokens:{aspectRatios:fg,animations:pg,blurs:hg,borders:gg,colors:mg,durations:bg,easings:yg,fonts:wg,fontSizes:xg,fontWeights:kg,letterSpacings:Sg,lineHeights:Cg,radii:Pg,spacing:zg,sizes:Rg,zIndex:Og,cursor:vg},semanticTokens:{colors:_f,shadows:Sf,radii:wf},recipes:kf,slotRecipes:dg,textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}}});function Ag(e,t){const r=Nc();return os.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>r.token(`${e}.${t}`,t)),[r,e,t])}sf(Ig);const Dg=Zc("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Dg.displayName="AbsoluteCenter";const{withContext:Mg}=nu({key:"badge"}),Lg=Mg("span"),{withContext:Fg}=nu({key:"spinner"}),Ng=Fg("span"),Wg=os.forwardRef(function(e,t){const{spinner:r=ts.jsx(Ng,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:i,text:a,visible:o=!0,...s}=e;return o?a?ts.jsxs(wu,{ref:t,display:"contents",...s,children:["start"===n&&r,a,"end"===n&&r]}):r?ts.jsxs(wu,{ref:t,display:"contents",...s,children:[ts.jsx(Dg,{display:"inline-flex",children:r}),ts.jsx(wu,{visibility:"hidden",display:"contents",children:i})]}):ts.jsx(wu,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:$g,usePropsContext:Bg}=nu({key:"button"}),Hg=os.forwardRef(function(e,t){const r=Bg(),n=os.useMemo(()=>jc(r,e),[r,e]),i=$g(n),{loading:a,loadingText:o,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return ts.jsx(Zc.button,{type:"button",ref:t,...u,"data-loading":(d=a,d?"":void 0),disabled:a||u.disabled,className:Oc(i.className,n.className),css:[i.styles,n.css],children:!n.asChild&&a?ts.jsx(Wg,{spinner:l,text:o,spinnerPlacement:c,children:s}):s});var d}),Vg=os.forwardRef(function(e,t){return ts.jsx(Hg,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),Ug=os.forwardRef(function(e,t){const{direction:r="column",align:n,justify:i,gap:a="0.5rem",wrap:o,children:s,separator:l,className:c,...u}=e,d=os.useMemo(()=>function(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":kd(r,e=>n[e])}}({gap:a,direction:r}),[a,r]),p=os.useMemo(()=>os.isValidElement(l)?function(e){return os.Children.toArray(e).filter(e=>os.isValidElement(e))}(s).map((e,t,r)=>{const n=void 0!==e.key?e.key:t,i=l,a=os.cloneElement(i,{css:[d,i.props.css]});return ts.jsxs(os.Fragment,{children:[e,t===r.length-1?null:a]},n)}):s,[s,l,d]);return ts.jsx(Zc.div,{ref:t,display:"flex",alignItems:n,justifyContent:i,flexDirection:r,flexWrap:o,gap:l?void 0:a,className:Oc("chakra-stack",c),...u,children:p})}),{useRecipeResult:qg}=nu({key:"icon"}),Yg=os.forwardRef(function(e,t){const{styles:r,className:n,props:i}=qg({asChild:!e.as,...e});return ts.jsx(Zc.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[r,e.css],className:Oc(n,e.className)})});function Gg(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=os.Children.toArray(e.path),o=os.forwardRef((e,n)=>ts.jsx(Yg,{ref:n,asChild:!1,viewBox:t,...i,...e,children:a.length?a:ts.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}const Qg=os.forwardRef(function(e,t){const{direction:r,align:n,justify:i,wrap:a,basis:o,grow:s,shrink:l,inline:c,...u}=e;return ts.jsx(Zc.div,{ref:t,...u,css:{display:c?"inline-flex":"flex",flexDirection:r,alignItems:n,justifyContent:i,flexWrap:a,flexBasis:o,flexGrow:s,flexShrink:l,...e.css}})}),Kg=os.forwardRef(function(e,t){const{align:r,fit:n="cover",...i}=e;return ts.jsx(Zc.img,{ref:t,objectFit:n,objectPosition:r,className:Oc("chakra-image",e.className),...i})}),{withContext:Xg}=nu({key:"link"}),Zg=Xg("a"),Jg=os.forwardRef(function(e,t){const{columns:r,minChildWidth:n,...i}=e,a=Nc(),o=n?function(e,t){return kd(e,e=>{const r=t.tokens.getVar(`sizes.${e}`,"number"==typeof(n=e)?`${n}px`:n);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(n,a):kd(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return ts.jsx(iu,{ref:t,templateColumns:o,...i})}),em=os.forwardRef(function(e,t){return ts.jsx(Ug,{align:"center",...e,direction:"row",ref:t})}),tm=os.forwardRef(function(e,t){return ts.jsx(Ug,{align:"center",...e,direction:"column",ref:t})}),{withContext:rm}=nu({key:"textarea"}),nm=rm(qu),im=()=>{const[e,t]=os.useState(!1),r=os.useCallback(()=>{const e=window.innerWidth;t(e<=768)},[]);return os.useEffect(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),{isMobile:e}},am={runAssistant:`${r}/v2/run-assistant`,streamV2:`${r}/v2/stream`,cartContextSync:`${r}/shopify/cart-context/sync`,searchProductLog:`${r}/search-selected-item-log`,getUploadUrl:`${r}/get-upload-url`,trackProductView:`${r}/roi/track-view`,trackSession:`${r}/roi/track-session`,messageFeedback:`${r}/feedback/message`,generateWelcomeMessage:`${r}/generate-welcome-message`,generateFollowupNudge:`${r}/generate-followup-nudge`,generateNudgeChips:`${r}/generate-nudge-chips`,storeQuizzes:`${r}/store-quizzes`},om=Ho("sendMessageToStreamAPI",async(e,t,r,n,i,a,o,s,l)=>{const c=t.assistant_id,u={assistant_id:c,thread_id:r||void 0,message:e,src:"undefined"!=typeof window?window.location.href:"",platform:"shopify_widget",image_url:s,end_user_id:l};let d;Object.keys(u).forEach(e=>void 0===u[e]&&delete u[e]);const p={Accept:"application/json","Content-Type":"application/json"};"undefined"!=typeof window&&window.idToken&&(p.Authorization=`Bearer ${window.idToken}`);try{d=await fetch(am.runAssistant,{method:"POST",headers:p,body:JSON.stringify(u),signal:o?.signal})}catch(m){throw console.error("[Dori Widget] Run assistant request failed:",{error:m,errorName:m?.name,errorMessage:m?.message,assistant_id:c,thread_id:r}),m}if(o?.signal.aborted)return;if(429===d.status)return console.error("[Dori Widget] API rate limit exceeded:",{status:429,assistant_id:c,thread_id:r}),void i("You have exceeded the request limit. Please wait at least 24 hours and try again.");if(402===d.status)return console.error("[Dori Widget] Monthly conversation limit reached:",{status:402,assistant_id:c,thread_id:r}),void i("Hi! 😊 This store's assistant has reached its conversation limit for this month and is taking a short break. Please check back next month — and feel free to reach out to the store directly in the meantime!");if(!d.ok)throw console.error("[Dori Widget] Run assistant response not OK:",{status:d.status,statusText:d.statusText,assistant_id:c,thread_id:r}),new Error(`Run assistant request failed with status ${d.status}: ${d.statusText}`);let f;try{f=await d.json()}catch(v){throw console.error("[Dori Widget] Failed to parse run assistant response:",v),new Error("Failed to parse run assistant response")}const h=f.thread_id;if(!h)throw new Error("No thread_id received from run assistant");const g=`${am.streamV2}/${h}`;return new Promise(e=>{const t=new EventSource(g),r=()=>{t.close(),e()};o&&o.signal.addEventListener("abort",r),t.onopen=()=>{console.log("[Dori Widget] SSE stream connected",{thread_id:h})},t.onerror=()=>{console.log("[Dori Widget] SSE stream error, EventSource will auto-reconnect",{thread_id:h,readyState:t.readyState})},t.onmessage=e=>{Bo("SSE message parse",()=>{const t=JSON.parse(e.data),r={thread_id:t.thread_id,text:t.text,wait:t.wait,tool_name:t.tool_name,products:t.products,shape:t.shape,status:t.status,suggestions:t.suggestions,action:t.action};Object.keys(r).forEach(e=>void 0===r[e]&&delete r[e]),Object.keys(r).length>0&&n(r)})()},t.addEventListener("start",()=>{console.log("[Dori Widget] SSE stream started",{thread_id:h})}),t.addEventListener("end",()=>{console.log("[Dori Widget] SSE stream ended",{thread_id:h}),o&&o.signal.removeEventListener("abort",r),t.close(),a(),e()})})}),sm=Ho("trackProductClick",async(e,t,r)=>{const n={log:{assistant_id:t.assistant_id,thread_id:r,created_at:(new Date).toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(am.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0})});function lm(){if("undefined"==typeof document)return null;const e=document.cookie.match(/(?:^|;\s*)dori_client_id=([^;]+)/);return e?decodeURIComponent(e[1]):null}const cm=Ho("trackProductViewsBatch",async(e,t,r,n,i,a,o,s)=>{if(0===e.length)return;const l={customer_email:a||null,customer_id:o||null,external_product_ids:e,thread_id:t,platform:n,session_key:r,sharing_id:i,end_user_id:s||null,client_id:lm()};await fetch(am.trackProductView,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(l)})}),um=Ho("trackSession",async(e,t,r,n,i,a)=>{if(!e||!t)return;const o={sharing_id:t,thread_id:e,platform:r,session_key:n,customer_id:i||null,end_user_id:a||null,client_id:lm()};await fetch(am.trackSession,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})});async function dm(e,t,r,n,i){try{const a=new AbortController,o=setTimeout(()=>a.abort(),12e3),s=n?AbortSignal.any([n,a.signal]):a.signal,l=await fetch(am.generateNudgeChips,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,nudge_position:t,last_answer_summary:r,last_user_message:i?.lastUserMessage??null,last_answer_products:i?.lastAnswerProducts??null}),signal:s});if(clearTimeout(o),!l.ok)return console.warn("[Dori Widget] fetchNudgeChips failed:",l.status),{chips:null,bannedToken:null};const c=await l.json();return{chips:Array.isArray(c?.chips)&&c.chips.length>0?c.chips:null,bannedToken:"string"==typeof c?.banned_token?c.banned_token:null}}catch(a){return"AbortError"!==a?.name&&console.warn("[Dori Widget] fetchNudgeChips error:",a),{chips:null,bannedToken:null}}}var pm=(e=>(e.OTHER="other",e.SHOPIFY="shopify",e.WORDPRESS_WOOCOMMERCE="wordpress_woocommerce",e))(pm||{});function fm(){if("undefined"==typeof window||"undefined"==typeof document)return"other";const e=window.location.href.toLowerCase(),t=window.location.pathname.toLowerCase(),r=document.body.className.toLowerCase();return"/"===t||""===t||r.includes("home")||r.includes("front-page")?"homepage":t.includes("/cart")||t.includes("/basket")||r.includes("woocommerce-cart")||t.includes("/checkout")||r.includes("woocommerce-checkout")?"cart":t.includes("/search")||e.includes("?s=")||e.includes("?q=")||r.includes("search-results")||r.includes("search")?"search":t.includes("/product/")||t.includes("/products/")||r.includes("single-product")||r.includes("product-template")||document.querySelector("[data-product-id]")||document.querySelector(".product-single")||document.querySelector("form.cart")?"product":t.includes("/category/")||t.includes("/collection/")||t.includes("/collections/")||t.includes("/product-category/")||t.includes("/shop/")||r.includes("archive")||r.includes("tax-product_cat")||r.includes("post-type-archive-product")||r.includes("collection-template")?"category":"other"}function hm(){if("undefined"==typeof document)return"";const e=document.querySelector("h1");return e?.textContent?.trim()||document.title||""}function gm(){return{page_link:"undefined"!=typeof window?window.location.href:"",page_type:fm(),h1:hm()}}function mm(){const e=gm(),t=[];return e.page_type&&"other"!==e.page_type&&t.push(`page_type: ${e.page_type}`),e.h1&&t.push(`page_title: ${e.h1}`),e.page_link&&t.push(`url: ${e.page_link}`),0===t.length?"":`[USER_PAGE_CONTEXT: ${t.join(" | ")}]\n\n`}let vm=0;function bm(e){return"shopify"===String(e?.platform||"").toLowerCase()}function ym(){if("undefined"==typeof window)return"/";const e=window.Shopify?.routes?.root||"/";return e.endsWith("/")?e:`${e}/`}function xm(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}_${Math.random().toString(36).slice(2,10)}`}function km(){if("undefined"==typeof window)return`anon_${xm()}`;if(window.DORI_CUSTOMER_ID){const e=function(){try{const e=window.localStorage.getItem(n.SHOPIFY_END_USER_SESSION);if(e&&e.trim())return e;const t=xm();return window.localStorage.setItem(n.SHOPIFY_END_USER_SESSION,t),t}catch{return xm()}}();return`shopify_customer_${String(window.DORI_CUSTOMER_ID)}_${e}`}try{const e=window.localStorage.getItem(n.SHOPIFY_END_USER_ID);if(e&&e.trim())return e;const t=`anon_${xm()}`;return window.localStorage.setItem(n.SHOPIFY_END_USER_ID,t),t}catch{return`anon_${xm()}`}}let _m=!1;async function wm(e){const t=Date.now();if(t-vm<800)return null;vm=t;const r=await async function(){try{const e=ym(),t=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!t.ok)return null;const r=await t.json(),n=String(r?.token||"").trim();return n?{token:n,item_count:Number(r?.item_count||0),currency:String(r?.currency||""),total_price:Number(r?.total_price||0),subtotal_price:Number(r?.items_subtotal_price||0),updated_at:(new Date).toISOString()}:null}catch{return null}}();if(!r)return null;try{const t=await fetch(am.cartContextSync,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({assistant_id:e.assistantId,platform:e.platform,end_user_id:e.endUserId,thread_id:e.threadId||void 0,cart:r,src:e.src||("undefined"!=typeof window?window.location.href:"")})});if(!t.ok)return null;const n=await t.json();return"string"==typeof n?.thread_id?n.thread_id:null}catch{return null}}function Sm(e,t){const r=e.toUpperCase();return!!["POST","PUT","PATCH","DELETE"].includes(r)&&["/cart/add","/cart/change","/cart/update","/cart/clear"].some(e=>t.includes(e))}function Cm(e){if(null!=e)return String(e).trim()||void 0}function Pm(e){const t=Cm(e);if(!t)return;const r=t.match(/gid:\/\/shopify\/ProductVariant\/(\d+)/i);if(r?.[1])return r[1];const n=t.match(/\d+$/);return n?.[0]||t}function zm(e){const t=Cm(e);if(t)try{const e=new URL(t,"undefined"!=typeof window?window.location.origin:"https://example.com").pathname.match(/\/products\/([^\/?#]+)/i);return e?.[1]?decodeURIComponent(e[1]):void 0}catch{const e=t.match(/\/products\/([^\/?#]+)/i);return e?.[1]?decodeURIComponent(e[1]):void 0}}async function Em(e){const t=ym(),r=await fetch(`${t}products/${encodeURIComponent(e)}.js`,{method:"GET",credentials:"include",cache:"no-store",headers:{Accept:"application/json"}});if(!r.ok)return null;const n=await r.json();return Array.isArray(n?.variants)&&0!==n.variants.length?n:null}function Tm(e){return(Array.isArray(e.options)?e.options:[]).map((e,t)=>"string"==typeof e?{name:e,values:[]}:{name:Cm(e?.name)||`Option ${t+1}`,values:Array.isArray(e?.values)?e.values.map(e=>Cm(e)).filter(e=>Boolean(e)):[]}).filter(e=>Boolean(e.name))}function jm(e,t){return 1===t?Cm(e.option1):2===t?Cm(e.option2):3===t?Cm(e.option3):void 0}function Rm(e,t){return Tm(e).map((e,r)=>{const n=r+1,i=Array.from(new Set(t.map(e=>jm(e,n)).filter(e=>Boolean(e)))),a=e.values.length>0?e.values:i;return{name:e.name,values:a}}).filter(e=>e.values.length>0)}function Om(e,t){if(!t||0===Object.keys(t).length)return[];const r=Object.entries(t).map(([e,t])=>{const r=Cm(e)?.toLowerCase(),n=Cm(t)?.toLowerCase();return r&&n?{key:r,value:n}:null}).filter(e=>Boolean(e));if(0===r.length)return[];const n=Tm(e).map((e,t)=>({key:e.name.toLowerCase(),index:t+1}));return e.variants.filter(e=>r.every(({key:t,value:r})=>{let i;if(i="option1"===t||"option2"===t||"option3"===t?Number(t.replace("option","")):n.find(e=>e.key===t)?.index,!i)return!1;const a=jm(e,i)?.toLowerCase();return a===r}))}async function Im(e,t,r){const n=ym(),i=Number(e),a={id:Number.isFinite(i)?i:e,quantity:t};let o;r&&(a.properties={_dori_thread_id:r});try{o=await fetch(`${n}cart/add.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({items:[a]})})}catch{return{type:"failed",reason:"network",message:"Network issue while adding item to cart. Please try again."}}let s=null;try{s=await o.json()}catch{s=null}if(!o.ok){const e=Cm(s?.description||s?.message),t=(e||"").toLowerCase();return 422===o.status&&(t.includes("sold out")||t.includes("out of stock")||t.includes("stock"))?{type:"failed",reason:"out_of_stock",message:"This variant is out of stock right now."}:404===o.status?{type:"failed",reason:"variant_not_found",message:"I could not find a valid variant to add to cart."}:{type:"failed",reason:"bad_request",message:e||"I couldn't add this item to cart right now."}}return{type:"success",variant_id:e,variant_title:Cm(s?.title),quantity:t}}async function Am(e,t){const r=function(e){const t=Number(e);return!Number.isFinite(t)||t<1?1:Math.max(1,Math.floor(t))}(e.quantity),n=Pm(e.variant_id);if(n)return{...await Im(n,r,t),product_title:Cm(e.product_name)};const i=Cm(e.product_handle)||zm(e.product_url);if(!i)return{type:"failed",reason:"missing_product_handle",message:"I need the product page context to add this item. Please open the product page and try again.",product_title:Cm(e.product_name)};let a=null;try{a=await Em(i)}catch{return{type:"failed",reason:"network",message:"I couldn't load product details right now. Please try again.",product_title:Cm(e.product_name)}}if(!a)return{type:"failed",reason:"product_not_found",message:"I couldn't find that product from this page context. Please open the product page and try again.",product_title:Cm(e.product_name)};const o=function(e,t){const r=Pm(t.variant_id);if(r){const t=e.variants.find(e=>Pm(e.id)===r);return t?!1===t.available?{type:"failed",reason:"out_of_stock",product_title:e.title,message:"That variant is currently out of stock."}:t:{type:"failed",reason:"variant_not_found",product_title:e.title,message:"I could not find that variant for this product."}}const n=Om(e,t.selected_options);if(1===n.length){const t=n[0];return!1===t.available?{type:"failed",reason:"out_of_stock",product_title:e.title,message:"That variant is currently out of stock."}:t}if(n.length>1){const t=n.filter(e=>!1!==e.available);return 1===t.length?t[0]:{type:"needs_options",product_title:e.title,message:"I need one more option before adding this product to your cart.",options:Rm(e,t.length>0?t:n)}}const i=e.variants.filter(e=>!1!==e.available);if(1===i.length)return i[0];if(0===i.length)return{type:"failed",reason:"out_of_stock",product_title:e.title,message:"This product is currently out of stock."};const a=Rm(e,i).filter(e=>e.values.length>1);return{type:"needs_options",product_title:e.title,message:"Please choose an option so I can add the right variant.",options:a.length>0?a:Rm(e,i)}}(a,e);if("type"in o)return o;const s=Pm(o.id);if(!s)return{type:"failed",reason:"variant_not_found",message:"I could not resolve a valid product variant to add.",product_title:a.title};const l=await Im(s,r,t);return"success"!==l.type?{...l,product_title:a.title}:{...l,product_title:a.title,variant_title:l.variant_title||Cm(o.title)}}function Dm(e){if(null==e)return;const t=String(e).trim();if(!t)return;const r=t.match(/gid:\/\/shopify\/ProductVariant\/(\d+)/i);if(r?.[1])return r[1];const n=t.match(/\d+$/);return n?.[0]||t}function Mm(e,t){const r=function(e){if(!e)return 2;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:e}).resolvedOptions().maximumFractionDigits??2}catch{return 2}}(t),n=Math.pow(10,r);return Number((e/n).toFixed(r))}async function Lm(){try{const e=ym(),t=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});return t.ok?await t.json():null}catch{return null}}async function Fm(e,t){const r=ym();try{return(await fetch(`${r}cart/change.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({line:e,quantity:t})})).ok}catch{return!1}}function Nm(e,t){if(!t||0===Object.keys(t).length)return e;const r=Object.values(t).map(e=>e.trim().toLowerCase()),n=e.filter(e=>{const t=(e.item.title||"").toLowerCase();return r.every(e=>t.includes(e))});return n.length>0?n:e}function Wm(e,t){return{type:"needs_selection",candidates:e.map(e=>({product_title:e.item.product_title,variant_title:e.item.title,quantity:e.item.quantity,variant_id:e.item.variant_id,line_index:e.lineIndex})),message:t}}const $m={create_custom_product_card:"preparingProducts",create_product_card:"preparingProducts",create_order:"startingOrder",get_product_detail:"findingProductDetails",product_retrieval:"searchingBestOptions",order_notes:"addingNotes",order_persistence:"savingOrder",payment_processing:"processingPayment",retrieve_faq:"lookingForAnswer",prompt_recommendation:"",similar_products:"searchingSimilar",track_order:"checkingOrderStatus",web_fetch:"fetchingWebPage",web_search:"searchingTheWeb",thinking:"typing"},Bm=(e,t)=>{if(e&&e in $m){const r=$m[e];if(r)return t[r]}return t.typing},Hm={minimize:"Minimize",showFullScreen:"Show Full Screen",close:"Close",reload:"Reload",askAnything:"Ask anything you need",whatsYourQuestion:"What's your question?",processing:"Processing...",writePrompt:"Write a prompt or paste a contract address",similar:"Similar",more:"More",removeProduct:"Remove product",doYouHaveSimilar:"Do you have similar to",doesProductHaveDiscount:"Does this product have a discount?",whatFeaturesSpecial:"What features make this product special?",otherColorsAvailable:"Are there other colors available?",poweredBy:"Powered by",aiCanMakeMistakes:"AI can make mistakes. Check important info",errorOccurred:"An error has occurred. Please try again.",rateLimitError:"You have exceeded the request limit. Please wait at least 24 hours and try again.",preparingProducts:"Preparing products to show you...",startingOrder:"Starting the order process...",findingProductDetails:"Finding product details for you...",searchingBestOptions:"Searching for the best options for you...",addingNotes:"Adding your notes to the order...",savingOrder:"Carefully saving your order...",processingPayment:"Processing your payment information...",lookingForAnswer:"Looking for the best answer for you...",searchingSimilar:"Searching for similar products...",checkingOrderStatus:"Checking your order status...",fetchingWebPage:"Fetching the web page for you...",searchingTheWeb:"Searching the web for you...",typing:"Typing...",imHereToHelp:"I'm here to help with anything on your mind about your purchase!",hiIm:"Hi, I'm",addToCartButton:"Add",addToCartMessage:"Add {product} to my cart",addToCartAdding:"Adding...",cartUndoRemoved:"Removed {product}",cartUndoQuantityChanged:"Updated {product}",cartUndoButton:"Undo",cartViewCart:"View Cart",cartCheckout:"Checkout",askDori:"Ask Dori!",askAgent:"Ask {name}!",topPick:"Top Pick",alsoConsider:"Also consider"},Vm={English:Hm,Spanish:{minimize:"Minimizar",showFullScreen:"Pantalla completa",close:"Cerrar",reload:"Recargar",askAnything:"Pregunta lo que necesites",whatsYourQuestion:"¿Cuál es tu pregunta?",processing:"Procesando...",writePrompt:"Escribe una consulta o pega una dirección de contrato",similar:"Similar",more:"Más",removeProduct:"Eliminar producto",doYouHaveSimilar:"¿Tienes algo similar a",doesProductHaveDiscount:"¿Este producto tiene descuento?",whatFeaturesSpecial:"¿Qué características hacen especial este producto?",otherColorsAvailable:"¿Hay otros colores disponibles?",poweredBy:"Desarrollado por",aiCanMakeMistakes:"La IA puede cometer errores. Verifica la información importante",errorOccurred:"Ha ocurrido un error. Por favor, inténtalo de nuevo.",rateLimitError:"Has excedido el límite de solicitudes. Por favor espera al menos 24 horas e inténtalo de nuevo.",preparingProducts:"Preparando productos para mostrarte...",startingOrder:"Iniciando el proceso de pedido...",findingProductDetails:"Buscando detalles del producto para ti...",searchingBestOptions:"Buscando las mejores opciones para ti...",addingNotes:"Agregando tus notas al pedido...",savingOrder:"Guardando cuidadosamente tu pedido...",processingPayment:"Procesando tu información de pago...",lookingForAnswer:"Buscando la mejor respuesta para ti...",searchingSimilar:"Buscando productos similares...",checkingOrderStatus:"Verificando el estado de tu pedido...",fetchingWebPage:"Obteniendo la página web para ti...",searchingTheWeb:"Buscando en la web para ti...",typing:"Escribiendo...",imHereToHelp:"¡Estoy aquí para ayudarte con cualquier cosa sobre tu compra!",hiIm:"Hola, soy",addToCartButton:"Agregar",addToCartMessage:"Agregar {product} a mi carrito",addToCartAdding:"Agregando...",cartUndoRemoved:"{product} eliminado",cartUndoQuantityChanged:"{product} actualizado",cartUndoButton:"Deshacer",cartViewCart:"Ver carrito",cartCheckout:"Pagar",askDori:"¡Pregunta a Dori!",askAgent:"Pregunta a {name}!",topPick:"Mejor opción",alsoConsider:"También considere"},French:{minimize:"Réduire",showFullScreen:"Plein écran",close:"Fermer",reload:"Recharger",askAnything:"Posez votre question",whatsYourQuestion:"Quelle est votre question?",processing:"Traitement en cours...",writePrompt:"Écrivez une demande ou collez une adresse de contrat",similar:"Similaire",more:"Plus",removeProduct:"Retirer le produit",doYouHaveSimilar:"Avez-vous quelque chose de similaire à",doesProductHaveDiscount:"Ce produit a-t-il une réduction?",whatFeaturesSpecial:"Quelles caractéristiques rendent ce produit spécial?",otherColorsAvailable:"Y a-t-il d'autres couleurs disponibles?",poweredBy:"Propulsé par",aiCanMakeMistakes:"L'IA peut faire des erreurs. Vérifiez les informations importantes",errorOccurred:"Une erreur s'est produite. Veuillez réessayer.",rateLimitError:"Vous avez dépassé la limite de requêtes. Veuillez attendre au moins 24 heures et réessayer.",preparingProducts:"Préparation des produits à vous montrer...",startingOrder:"Démarrage du processus de commande...",findingProductDetails:"Recherche des détails du produit pour vous...",searchingBestOptions:"Recherche des meilleures options pour vous...",addingNotes:"Ajout de vos notes à la commande...",savingOrder:"Sauvegarde soigneuse de votre commande...",processingPayment:"Traitement de vos informations de paiement...",lookingForAnswer:"Recherche de la meilleure réponse pour vous...",searchingSimilar:"Recherche de produits similaires...",checkingOrderStatus:"Vérification de l'état de votre commande...",fetchingWebPage:"Récupération de la page web pour vous...",searchingTheWeb:"Recherche sur le web pour vous...",typing:"En train d'écrire...",imHereToHelp:"Je suis là pour vous aider avec tout ce qui concerne votre achat!",hiIm:"Salut, je suis",addToCartButton:"Ajouter",addToCartMessage:"Ajouter {product} à mon panier",addToCartAdding:"Ajout en cours...",cartUndoRemoved:"{product} supprimé",cartUndoQuantityChanged:"{product} mis à jour",cartUndoButton:"Annuler",cartViewCart:"Voir le panier",cartCheckout:"Payer",askDori:"Demandez à Dori!",askAgent:"Demandez à {name}!",topPick:"Meilleur choix",alsoConsider:"À considérer aussi"},German:{minimize:"Minimieren",showFullScreen:"Vollbild",close:"Schließen",reload:"Neu laden",askAnything:"Fragen Sie was Sie möchten",whatsYourQuestion:"Was ist Ihre Frage?",processing:"Wird verarbeitet...",writePrompt:"Schreiben Sie eine Anfrage oder fügen Sie eine Vertragsadresse ein",similar:"Ähnlich",more:"Mehr",removeProduct:"Produkt entfernen",doYouHaveSimilar:"Haben Sie etwas Ähnliches wie",doesProductHaveDiscount:"Hat dieses Produkt einen Rabatt?",whatFeaturesSpecial:"Welche Funktionen machen dieses Produkt besonders?",otherColorsAvailable:"Sind andere Farben verfügbar?",poweredBy:"Betrieben von",aiCanMakeMistakes:"KI kann Fehler machen. Überprüfen Sie wichtige Informationen",errorOccurred:"Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.",rateLimitError:"Sie haben das Anforderungslimit überschritten. Bitte warten Sie mindestens 24 Stunden und versuchen Sie es erneut.",preparingProducts:"Produkte werden vorbereitet...",startingOrder:"Bestellvorgang wird gestartet...",findingProductDetails:"Produktdetails werden für Sie gesucht...",searchingBestOptions:"Die besten Optionen werden für Sie gesucht...",addingNotes:"Ihre Notizen werden zur Bestellung hinzugefügt...",savingOrder:"Ihre Bestellung wird sorgfältig gespeichert...",processingPayment:"Ihre Zahlungsinformationen werden verarbeitet...",lookingForAnswer:"Die beste Antwort wird für Sie gesucht...",searchingSimilar:"Ähnliche Produkte werden gesucht...",checkingOrderStatus:"Ihr Bestellstatus wird überprüft...",fetchingWebPage:"Webseite wird für Sie abgerufen...",searchingTheWeb:"Suche im Web für Sie...",typing:"Schreibt...",imHereToHelp:"Ich bin hier, um Ihnen bei allem rund um Ihren Kauf zu helfen!",hiIm:"Hallo, ich bin der",addToCartButton:"Hinzufügen",addToCartMessage:"{product} in meinen Warenkorb legen",addToCartAdding:"Wird hinzugefügt...",cartUndoRemoved:"{product} entfernt",cartUndoQuantityChanged:"{product} aktualisiert",cartUndoButton:"Rückgängig",cartViewCart:"Warenkorb",cartCheckout:"Zur Kasse",askDori:"Fragen Sie Dori!",askAgent:"Fragen Sie {name}!",topPick:"Top-Auswahl",alsoConsider:"Auch interessant"},Chinese:{minimize:"最小化",showFullScreen:"全屏显示",close:"关闭",reload:"重新加载",askAnything:"问我任何问题",whatsYourQuestion:"你的问题是什么?",processing:"处理中...",writePrompt:"输入提示或粘贴合约地址",similar:"相似",more:"更多",removeProduct:"移除产品",doYouHaveSimilar:"你有类似的产品吗",doesProductHaveDiscount:"这个产品有折扣吗?",whatFeaturesSpecial:"是什么特性让这个产品特别?",otherColorsAvailable:"有其他颜色可选吗?",poweredBy:"技术支持",aiCanMakeMistakes:"AI可能会出错。请检查重要信息",errorOccurred:"发生错误。请重试。",rateLimitError:"您已超出请求限制。请等待至少24小时后重试。",preparingProducts:"正在准备产品展示给您...",startingOrder:"正在开始订单流程...",findingProductDetails:"正在为您查找产品详情...",searchingBestOptions:"正在为您搜索最佳选项...",addingNotes:"正在将您的备注添加到订单...",savingOrder:"正在仔细保存您的订单...",processingPayment:"正在处理您的付款信息...",lookingForAnswer:"正在为您寻找最佳答案...",searchingSimilar:"正在搜索类似产品...",checkingOrderStatus:"正在检查您的订单状态...",fetchingWebPage:"正在为您获取网页...",searchingTheWeb:"正在为您搜索网络...",typing:"正在输入...",imHereToHelp:"我在这里帮助您解决关于购买的任何问题!",hiIm:"你好,我是",addToCartButton:"加入",addToCartMessage:"将 {product} 加入购物车",addToCartAdding:"添加中...",cartUndoRemoved:"已移除 {product}",cartUndoQuantityChanged:"已更新 {product}",cartUndoButton:"撤销",cartViewCart:"查看购物车",cartCheckout:"结账",askDori:"问 Dori!",askAgent:"问 {name}!",topPick:"首选",alsoConsider:"也可以考虑"},Japanese:{minimize:"最小化",showFullScreen:"全画面表示",close:"閉じる",reload:"再読み込み",askAnything:"何でもお聞きください",whatsYourQuestion:"ご質問は何ですか?",processing:"処理中...",writePrompt:"プロンプトを入力するか、契約アドレスを貼り付けてください",similar:"類似",more:"もっと見る",removeProduct:"商品を削除",doYouHaveSimilar:"類似の商品はありますか",doesProductHaveDiscount:"この商品は割引がありますか?",whatFeaturesSpecial:"この商品の特別な機能は何ですか?",otherColorsAvailable:"他の色はありますか?",poweredBy:"提供元",aiCanMakeMistakes:"AIは間違える可能性があります。重要な情報を確認してください",errorOccurred:"エラーが発生しました。もう一度お試しください。",rateLimitError:"リクエスト制限を超えました。少なくとも24時間待ってから再試行してください。",preparingProducts:"商品を準備しています...",startingOrder:"注文プロセスを開始しています...",findingProductDetails:"商品の詳細を検索しています...",searchingBestOptions:"最適なオプションを検索しています...",addingNotes:"メモを注文に追加しています...",savingOrder:"注文を慎重に保存しています...",processingPayment:"お支払い情報を処理しています...",lookingForAnswer:"最適な回答を探しています...",searchingSimilar:"類似商品を検索しています...",checkingOrderStatus:"注文状況を確認しています...",fetchingWebPage:"ウェブページを取得しています...",searchingTheWeb:"ウェブを検索しています...",typing:"入力中...",imHereToHelp:"ご購入に関することなら何でもお手伝いします!",hiIm:"こんにちは、私は",addToCartButton:"追加",addToCartMessage:"{product} をカートに追加",addToCartAdding:"追加中...",cartUndoRemoved:"{product} が削除されました",cartUndoQuantityChanged:"{product} が更新されました",cartUndoButton:"元に戻す",cartViewCart:"カートを見る",cartCheckout:"レジへ",askDori:"Dori に聞いて!",askAgent:"{name} に聞いて!",topPick:"イチオシ",alsoConsider:"こちらもおすすめ"},Korean:{minimize:"최소화",showFullScreen:"전체 화면",close:"닫기",reload:"새로고침",askAnything:"무엇이든 물어보세요",whatsYourQuestion:"무엇을 도와드릴까요?",processing:"처리 중...",writePrompt:"프롬프트를 입력하거나 계약 주소를 붙여넣으세요",similar:"유사",more:"더보기",removeProduct:"상품 제거",doYouHaveSimilar:"유사한 제품이 있나요",doesProductHaveDiscount:"이 제품에 할인이 있나요?",whatFeaturesSpecial:"이 제품의 특별한 기능은 무엇인가요?",otherColorsAvailable:"다른 색상도 있나요?",poweredBy:"제공",aiCanMakeMistakes:"AI는 실수할 수 있습니다. 중요한 정보를 확인하세요",errorOccurred:"오류가 발생했습니다. 다시 시도해 주세요.",rateLimitError:"요청 한도를 초과했습니다. 최소 24시간 후에 다시 시도해 주세요.",preparingProducts:"상품을 준비하고 있습니다...",startingOrder:"주문 프로세스를 시작하고 있습니다...",findingProductDetails:"상품 세부정보를 찾고 있습니다...",searchingBestOptions:"최적의 옵션을 검색하고 있습니다...",addingNotes:"메모를 주문에 추가하고 있습니다...",savingOrder:"주문을 신중하게 저장하고 있습니다...",processingPayment:"결제 정보를 처리하고 있습니다...",lookingForAnswer:"최적의 답변을 찾고 있습니다...",searchingSimilar:"유사한 상품을 검색하고 있습니다...",checkingOrderStatus:"주문 상태를 확인하고 있습니다...",fetchingWebPage:"웹페이지를 가져오고 있습니다...",searchingTheWeb:"웹에서 검색하고 있습니다...",typing:"입력 중...",imHereToHelp:"구매에 관한 모든 것을 도와드리겠습니다!",hiIm:"안녕하세요, 저는",addToCartButton:"추가",addToCartMessage:"{product}을(를) 장바구니에 추가",addToCartAdding:"추가 중...",cartUndoRemoved:"{product} 제거됨",cartUndoQuantityChanged:"{product} 업데이트됨",cartUndoButton:"실행 취소",cartViewCart:"장바구니 보기",cartCheckout:"결제",askDori:"Dori 에게 물어보세요!",askAgent:"{name} 에게 물어보세요!",topPick:"최고 추천",alsoConsider:"이것도 고려해 보세요"},Arabic:{minimize:"تصغير",showFullScreen:"ملء الشاشة",close:"إغلاق",reload:"إعادة تحميل",askAnything:"اسأل ما تحتاج",whatsYourQuestion:"ما هو سؤالك؟",processing:"جاري المعالجة...",writePrompt:"اكتب استفسارًا أو الصق عنوان العقد",similar:"مشابه",more:"المزيد",removeProduct:"إزالة المنتج",doYouHaveSimilar:"هل لديك منتج مشابه لـ",doesProductHaveDiscount:"هل هذا المنتج عليه خصم؟",whatFeaturesSpecial:"ما هي المميزات التي تجعل هذا المنتج مميزًا؟",otherColorsAvailable:"هل هناك ألوان أخرى متاحة؟",poweredBy:"مدعوم من",aiCanMakeMistakes:"يمكن للذكاء الاصطناعي أن يخطئ. تحقق من المعلومات المهمة",errorOccurred:"حدث خطأ. يرجى المحاولة مرة أخرى.",rateLimitError:"لقد تجاوزت حد الطلبات. يرجى الانتظار 24 ساعة على الأقل والمحاولة مرة أخرى.",preparingProducts:"جاري تحضير المنتجات لعرضها عليك...",startingOrder:"جاري بدء عملية الطلب...",findingProductDetails:"جاري البحث عن تفاصيل المنتج من أجلك...",searchingBestOptions:"جاري البحث عن أفضل الخيارات لك...",addingNotes:"جاري إضافة ملاحظاتك إلى الطلب...",savingOrder:"جاري حفظ طلبك بعناية...",processingPayment:"جاري معالجة معلومات الدفع الخاصة بك...",lookingForAnswer:"جاري البحث عن أفضل إجابة لك...",searchingSimilar:"جاري البحث عن منتجات مشابهة...",checkingOrderStatus:"جاري التحقق من حالة طلبك...",fetchingWebPage:"جاري جلب صفحة الويب لك...",searchingTheWeb:"جاري البحث في الويب لك...",typing:"يكتب...",imHereToHelp:"أنا هنا لمساعدتك في أي شيء يتعلق بشرائك!",hiIm:"مرحبا، أنا",addToCartButton:"أضف",addToCartMessage:"أضف {product} إلى سلة التسوق",addToCartAdding:"جاري الإضافة...",cartUndoRemoved:"تم إزالة {product}",cartUndoQuantityChanged:"تم تحديث {product}",cartUndoButton:"تراجع",cartViewCart:"عرض السلة",cartCheckout:"الدفع",askDori:"اسأل Dori!",askAgent:"اسأل {name}!",topPick:"الخيار الأفضل",alsoConsider:"قد يعجبك أيضاً"},Hindi:{minimize:"छोटा करें",showFullScreen:"पूर्ण स्क्रीन",close:"बंद करें",reload:"पुनः लोड करें",askAnything:"कुछ भी पूछें",whatsYourQuestion:"आपका सवाल क्या है?",processing:"प्रक्रिया जारी है...",writePrompt:"एक प्रॉम्प्ट लिखें या अनुबंध पता पेस्ट करें",similar:"समान",more:"अधिक",removeProduct:"उत्पाद हटाएं",doYouHaveSimilar:"क्या आपके पास इसके समान कुछ है",doesProductHaveDiscount:"क्या इस उत्पाद पर छूट है?",whatFeaturesSpecial:"कौन सी विशेषताएं इस उत्पाद को विशेष बनाती हैं?",otherColorsAvailable:"क्या अन्य रंग उपलब्ध हैं?",poweredBy:"द्वारा संचालित",aiCanMakeMistakes:"AI गलतियाँ कर सकता है। महत्वपूर्ण जानकारी की जाँच करें",errorOccurred:"एक त्रुटि हुई है। कृपया पुनः प्रयास करें।",rateLimitError:"आपने अनुरोध सीमा पार कर ली है। कृपया कम से कम 24 घंटे प्रतीक्षा करें और पुनः प्रयास करें।",preparingProducts:"आपको दिखाने के लिए उत्पाद तैयार किए जा रहे हैं...",startingOrder:"ऑर्डर प्रक्रिया शुरू की जा रही है...",findingProductDetails:"आपके लिए उत्पाद विवरण खोजे जा रहे हैं...",searchingBestOptions:"आपके लिए सर्वोत्तम विकल्प खोजे जा रहे हैं...",addingNotes:"आपके नोट्स ऑर्डर में जोड़े जा रहे हैं...",savingOrder:"आपका ऑर्डर सावधानीपूर्वक सहेजा जा रहा है...",processingPayment:"आपकी भुगतान जानकारी संसाधित की जा रही है...",lookingForAnswer:"आपके लिए सर्वोत्तम उत्तर खोजा जा रहा है...",searchingSimilar:"समान उत्पाद खोजे जा रहे हैं...",checkingOrderStatus:"आपकी ऑर्डर स्थिति की जाँच की जा रही है...",fetchingWebPage:"आपके लिए वेब पेज प्राप्त कर रहे हैं...",searchingTheWeb:"आपके लिए वेब पर खोज रहे हैं...",typing:"टाइप कर रहा है...",imHereToHelp:"मैं आपकी खरीदारी से संबंधित किसी भी बात में मदद के लिए यहाँ हूँ!",hiIm:"नमस्ते, मैं",addToCartButton:"जोड़ें",addToCartMessage:"{product} को मेरी कार्ट में जोड़ें",addToCartAdding:"जोड़ा जा रहा है...",cartUndoRemoved:"{product} हटाया गया",cartUndoQuantityChanged:"{product} अपडेट किया गया",cartUndoButton:"पूर्ववत करें",cartViewCart:"कार्ट देखें",cartCheckout:"चेकआउट",askDori:"Dori से पूछें!",askAgent:"{name} से पूछें!",topPick:"सबसे अच्छा",alsoConsider:"ये भी देखें"},Portuguese:{minimize:"Minimizar",showFullScreen:"Tela cheia",close:"Fechar",reload:"Recarregar",askAnything:"Pergunte o que precisar",whatsYourQuestion:"Qual é a sua pergunta?",processing:"Processando...",writePrompt:"Escreva uma consulta ou cole um endereço de contrato",similar:"Similar",more:"Mais",removeProduct:"Remover produto",doYouHaveSimilar:"Você tem algo similar a",doesProductHaveDiscount:"Este produto tem desconto?",whatFeaturesSpecial:"Que características tornam este produto especial?",otherColorsAvailable:"Há outras cores disponíveis?",poweredBy:"Desenvolvido por",aiCanMakeMistakes:"A IA pode cometer erros. Verifique informações importantes",errorOccurred:"Ocorreu um erro. Por favor, tente novamente.",rateLimitError:"Você excedeu o limite de solicitações. Aguarde pelo menos 24 horas e tente novamente.",preparingProducts:"Preparando produtos para mostrar a você...",startingOrder:"Iniciando o processo de pedido...",findingProductDetails:"Procurando detalhes do produto para você...",searchingBestOptions:"Buscando as melhores opções para você...",addingNotes:"Adicionando suas notas ao pedido...",savingOrder:"Salvando cuidadosamente seu pedido...",processingPayment:"Processando suas informações de pagamento...",lookingForAnswer:"Procurando a melhor resposta para você...",searchingSimilar:"Buscando produtos similares...",checkingOrderStatus:"Verificando o status do seu pedido...",fetchingWebPage:"Buscando a página web para você...",searchingTheWeb:"Pesquisando na web para você...",typing:"Digitando...",imHereToHelp:"Estou aqui para ajudar com qualquer coisa sobre sua compra!",hiIm:"Olá, eu sou",addToCartButton:"Adicionar",addToCartMessage:"Adicionar {product} ao meu carrinho",addToCartAdding:"Adicionando...",cartUndoRemoved:"{product} removido",cartUndoQuantityChanged:"{product} atualizado",cartUndoButton:"Desfazer",cartViewCart:"Ver carrinho",cartCheckout:"Finalizar",askDori:"Pergunte ao Dori!",askAgent:"Pergunte ao {name}!",topPick:"Melhor escolha",alsoConsider:"Considere também"},Russian:{minimize:"Свернуть",showFullScreen:"Полный экран",close:"Закрыть",reload:"Перезагрузить",askAnything:"Спросите что угодно",whatsYourQuestion:"Какой у вас вопрос?",processing:"Обработка...",writePrompt:"Напишите запрос или вставьте адрес контракта",similar:"Похожие",more:"Еще",removeProduct:"Удалить продукт",doYouHaveSimilar:"У вас есть что-то похожее на",doesProductHaveDiscount:"Есть ли скидка на этот продукт?",whatFeaturesSpecial:"Какие функции делают этот продукт особенным?",otherColorsAvailable:"Есть ли другие цвета?",poweredBy:"Работает на",aiCanMakeMistakes:"ИИ может ошибаться. Проверяйте важную информацию",errorOccurred:"Произошла ошибка. Пожалуйста, попробуйте снова.",rateLimitError:"Вы превысили лимит запросов. Подождите не менее 24 часов и попробуйте снова.",preparingProducts:"Подготавливаем продукты для вас...",startingOrder:"Начинаем процесс заказа...",findingProductDetails:"Ищем детали продукта для вас...",searchingBestOptions:"Ищем лучшие варианты для вас...",addingNotes:"Добавляем ваши заметки к заказу...",savingOrder:"Бережно сохраняем ваш заказ...",processingPayment:"Обрабатываем вашу платежную информацию...",lookingForAnswer:"Ищем лучший ответ для вас...",searchingSimilar:"Ищем похожие продукты...",checkingOrderStatus:"Проверяем статус вашего заказа...",fetchingWebPage:"Загружаем веб-страницу для вас...",searchingTheWeb:"Ищем в интернете для вас...",typing:"Печатает...",imHereToHelp:"Я здесь, чтобы помочь вам с покупкой!",hiIm:"Привет, я",addToCartButton:"Добавить",addToCartMessage:"Добавить {product} в корзину",addToCartAdding:"Добавление...",cartUndoRemoved:"{product} удален",cartUndoQuantityChanged:"{product} обновлен",cartUndoButton:"Отменить",cartViewCart:"Корзина",cartCheckout:"Оформить",askDori:"Спросите Dori!",askAgent:"Спросите {name}!",topPick:"Лучший выбор",alsoConsider:"Также обратите внимание"},Italian:{minimize:"Riduci",showFullScreen:"Schermo intero",close:"Chiudi",reload:"Ricarica",askAnything:"Chiedi qualsiasi cosa",whatsYourQuestion:"Qual è la tua domanda?",processing:"Elaborazione...",writePrompt:"Scrivi una richiesta o incolla un indirizzo di contratto",similar:"Simile",more:"Altro",removeProduct:"Rimuovi prodotto",doYouHaveSimilar:"Hai qualcosa di simile a",doesProductHaveDiscount:"Questo prodotto ha uno sconto?",whatFeaturesSpecial:"Quali caratteristiche rendono speciale questo prodotto?",otherColorsAvailable:"Ci sono altri colori disponibili?",poweredBy:"Offerto da",aiCanMakeMistakes:"L'IA può commettere errori. Verifica le informazioni importanti",errorOccurred:"Si è verificato un errore. Per favore riprova.",rateLimitError:"Hai superato il limite di richieste. Attendi almeno 24 ore e riprova.",preparingProducts:"Preparazione dei prodotti da mostrarti...",startingOrder:"Avvio del processo di ordine...",findingProductDetails:"Ricerca dei dettagli del prodotto per te...",searchingBestOptions:"Ricerca delle migliori opzioni per te...",addingNotes:"Aggiunta delle tue note all'ordine...",savingOrder:"Salvataggio attento del tuo ordine...",processingPayment:"Elaborazione delle tue informazioni di pagamento...",lookingForAnswer:"Ricerca della migliore risposta per te...",searchingSimilar:"Ricerca di prodotti simili...",checkingOrderStatus:"Verifica dello stato del tuo ordine...",fetchingWebPage:"Recupero della pagina web per te...",searchingTheWeb:"Ricerca sul web per te...",typing:"Sta scrivendo...",imHereToHelp:"Sono qui per aiutarti con qualsiasi cosa riguardo il tuo acquisto!",hiIm:"Ciao, sono",addToCartButton:"Aggiungi",addToCartMessage:"Aggiungi {product} al mio carrello",addToCartAdding:"Aggiungendo...",cartUndoRemoved:"{product} rimosso",cartUndoQuantityChanged:"{product} aggiornato",cartUndoButton:"Annulla",cartViewCart:"Vedi carrello",cartCheckout:"Cassa",askDori:"Chiedi a Dori!",askAgent:"Chiedi a {name}!",topPick:"Scelta top",alsoConsider:"Da considerare anche"},Turkish:{minimize:"Küçült",showFullScreen:"Tam Ekran",close:"Kapat",reload:"Yenile",askAnything:"Ne istersen sor",whatsYourQuestion:"Sorunuz nedir?",processing:"İşleniyor...",writePrompt:"Bir istem yazın veya bir sözleşme adresi yapıştırın",similar:"Benzer",more:"Daha fazla",removeProduct:"Ürünü kaldır",doYouHaveSimilar:"Buna benzer bir şey var mı",doesProductHaveDiscount:"Bu üründe indirim var mı?",whatFeaturesSpecial:"Bu ürünü özel kılan özellikler nelerdir?",otherColorsAvailable:"Başka renkler mevcut mu?",poweredBy:"Destekleyen",aiCanMakeMistakes:"Yapay zeka hata yapabilir. Önemli bilgileri kontrol edin",errorOccurred:"Bir hata oluştu. Lütfen tekrar deneyin.",rateLimitError:"İstek sınırını aştınız. Lütfen en az 24 saat bekleyin ve tekrar deneyin.",preparingProducts:"Size göstermek için ürünler hazırlanıyor...",startingOrder:"Sipariş süreci başlatılıyor...",findingProductDetails:"Sizin için ürün detayları bulunuyor...",searchingBestOptions:"Sizin için en iyi seçenekler aranıyor...",addingNotes:"Notlarınız siparişe ekleniyor...",savingOrder:"Siparişiniz dikkatle kaydediliyor...",processingPayment:"Ödeme bilgileriniz işleniyor...",lookingForAnswer:"Sizin için en iyi cevap aranıyor...",searchingSimilar:"Benzer ürünler aranıyor...",checkingOrderStatus:"Sipariş durumunuz kontrol ediliyor...",fetchingWebPage:"Web sayfası sizin için getiriliyor...",searchingTheWeb:"Sizin için web'de aranıyor...",typing:"Yazıyor...",imHereToHelp:"Satın alma işleminizle ilgili her konuda yardımcı olmak için buradayım!",hiIm:"Merhaba, ben",addToCartButton:"Ekle",addToCartMessage:"{product} sepetime ekle",addToCartAdding:"Ekleniyor...",cartUndoRemoved:"{product} kaldırıldı",cartUndoQuantityChanged:"{product} güncellendi",cartUndoButton:"Geri al",cartViewCart:"Sepeti gör",cartCheckout:"Ödeme",askDori:"Dori'ye sorun!",askAgent:"{name}'e sorun!",topPick:"En İyi Seçim",alsoConsider:"Bunları da değerlendirin"},Polish:{minimize:"Minimalizuj",showFullScreen:"Pełny ekran",close:"Zamknij",reload:"Odśwież",askAnything:"Zapytaj o cokolwiek",whatsYourQuestion:"Jakie jest twoje pytanie?",processing:"Przetwarzanie...",writePrompt:"Wpisz zapytanie lub wklej adres kontraktu",similar:"Podobne",more:"Więcej",removeProduct:"Usuń produkt",doYouHaveSimilar:"Czy masz coś podobnego do",doesProductHaveDiscount:"Czy ten produkt ma zniżkę?",whatFeaturesSpecial:"Jakie funkcje sprawiają, że ten produkt jest wyjątkowy?",otherColorsAvailable:"Czy są dostępne inne kolory?",poweredBy:"Obsługiwane przez",aiCanMakeMistakes:"AI może popełniać błędy. Sprawdź ważne informacje",errorOccurred:"Wystąpił błąd. Spróbuj ponownie.",rateLimitError:"Przekroczyłeś limit żądań. Poczekaj co najmniej 24 godziny i spróbuj ponownie.",preparingProducts:"Przygotowywanie produktów do pokazania...",startingOrder:"Rozpoczynanie procesu zamówienia...",findingProductDetails:"Wyszukiwanie szczegółów produktu dla ciebie...",searchingBestOptions:"Wyszukiwanie najlepszych opcji dla ciebie...",addingNotes:"Dodawanie twoich notatek do zamówienia...",savingOrder:"Ostrożne zapisywanie twojego zamówienia...",processingPayment:"Przetwarzanie informacji o płatności...",lookingForAnswer:"Wyszukiwanie najlepszej odpowiedzi dla ciebie...",searchingSimilar:"Wyszukiwanie podobnych produktów...",checkingOrderStatus:"Sprawdzanie statusu twojego zamówienia...",fetchingWebPage:"Pobieranie strony internetowej dla ciebie...",searchingTheWeb:"Wyszukiwanie w sieci dla ciebie...",typing:"Pisze...",imHereToHelp:"Jestem tutaj, aby pomóc ci we wszystkim związanym z twoim zakupem!",hiIm:"Cześć, jestem",addToCartButton:"Dodaj",addToCartMessage:"Dodaj {product} do koszyka",addToCartAdding:"Dodawanie...",cartUndoRemoved:"{product} usunięty",cartUndoQuantityChanged:"{product} zaktualizowany",cartUndoButton:"Cofnij",cartViewCart:"Zobacz koszyk",cartCheckout:"Kasa",askDori:"Zapytaj Dori!",askAgent:"Zapytaj {name}!",topPick:"Najlepszy wybór",alsoConsider:"Warto też rozważyć"},Dutch:{minimize:"Minimaliseren",showFullScreen:"Volledig scherm",close:"Sluiten",reload:"Herladen",askAnything:"Vraag wat je wilt",whatsYourQuestion:"Wat is je vraag?",processing:"Verwerken...",writePrompt:"Schrijf een prompt of plak een contractadres",similar:"Vergelijkbaar",more:"Meer",removeProduct:"Product verwijderen",doYouHaveSimilar:"Heb je iets vergelijkbaars met",doesProductHaveDiscount:"Heeft dit product korting?",whatFeaturesSpecial:"Welke functies maken dit product speciaal?",otherColorsAvailable:"Zijn er andere kleuren beschikbaar?",poweredBy:"Mogelijk gemaakt door",aiCanMakeMistakes:"AI kan fouten maken. Controleer belangrijke informatie",errorOccurred:"Er is een fout opgetreden. Probeer het opnieuw.",rateLimitError:"Je hebt de aanvraaglimiet overschreden. Wacht minimaal 24 uur en probeer het opnieuw.",preparingProducts:"Producten voorbereiden om te tonen...",startingOrder:"Bestelproces starten...",findingProductDetails:"Productdetails voor je zoeken...",searchingBestOptions:"De beste opties voor je zoeken...",addingNotes:"Je notities aan de bestelling toevoegen...",savingOrder:"Je bestelling zorgvuldig opslaan...",processingPayment:"Je betalingsinformatie verwerken...",lookingForAnswer:"Het beste antwoord voor je zoeken...",searchingSimilar:"Vergelijkbare producten zoeken...",checkingOrderStatus:"Je bestelstatus controleren...",fetchingWebPage:"De webpagina wordt voor je opgehaald...",searchingTheWeb:"Op het web zoeken voor je...",typing:"Aan het typen...",imHereToHelp:"Ik ben hier om je te helpen met alles over je aankoop!",hiIm:"Hoi, ik ben",addToCartButton:"Toevoegen",addToCartMessage:"{product} aan mijn winkelwagen toevoegen",addToCartAdding:"Toevoegen...",cartUndoRemoved:"{product} verwijderd",cartUndoQuantityChanged:"{product} bijgewerkt",cartUndoButton:"Ongedaan",cartViewCart:"Winkelwagen bekijken",cartCheckout:"Afrekenen",askDori:"Vraag Dori!",askAgent:"Vraag {name}!",topPick:"Topkeuze",alsoConsider:"Ook het overwegen waard"},Ukrainian:{minimize:"Згорнути",showFullScreen:"Повний екран",close:"Закрити",reload:"Перезавантажити",askAnything:"Запитайте будь-що",whatsYourQuestion:"Яке ваше питання?",processing:"Обробка...",writePrompt:"Напишіть запит або вставте адресу контракту",similar:"Схожі",more:"Більше",removeProduct:"Видалити продукт",doYouHaveSimilar:"Чи є у вас щось схоже на",doesProductHaveDiscount:"Чи є знижка на цей продукт?",whatFeaturesSpecial:"Які функції роблять цей продукт особливим?",otherColorsAvailable:"Чи є інші кольори?",poweredBy:"Працює на",aiCanMakeMistakes:"ШІ може помилятися. Перевіряйте важливу інформацію",errorOccurred:"Сталася помилка. Будь ласка, спробуйте знову.",rateLimitError:"Ви перевищили ліміт запитів. Зачекайте щонайменше 24 години та спробуйте знову.",preparingProducts:"Підготовка продуктів для вас...",startingOrder:"Початок процесу замовлення...",findingProductDetails:"Пошук деталей продукту для вас...",searchingBestOptions:"Пошук найкращих варіантів для вас...",addingNotes:"Додавання ваших приміток до замовлення...",savingOrder:"Ретельне збереження вашого замовлення...",processingPayment:"Обробка вашої платіжної інформації...",lookingForAnswer:"Пошук найкращої відповіді для вас...",searchingSimilar:"Пошук схожих продуктів...",checkingOrderStatus:"Перевірка статусу вашого замовлення...",fetchingWebPage:"Завантажуємо веб-сторінку для вас...",searchingTheWeb:"Шукаємо в інтернеті для вас...",typing:"Друкує...",imHereToHelp:"Я тут, щоб допомогти вам з покупкою!",hiIm:"Привіт, я",addToCartButton:"Додати",addToCartMessage:"Додати {product} до кошика",addToCartAdding:"Додається...",cartUndoRemoved:"{product} видалено",cartUndoQuantityChanged:"{product} оновлено",cartUndoButton:"Скасувати",cartViewCart:"Переглянути кошик",cartCheckout:"Оформити",askDori:"Запитайте Dori!",askAgent:"Запитайте {name}!",topPick:"Найкращий вибір",alsoConsider:"Також варто розглянути"},Vietnamese:{minimize:"Thu nhỏ",showFullScreen:"Toàn màn hình",close:"Đóng",reload:"Tải lại",askAnything:"Hỏi bất cứ điều gì",whatsYourQuestion:"Câu hỏi của bạn là gì?",processing:"Đang xử lý...",writePrompt:"Viết câu hỏi hoặc dán địa chỉ hợp đồng",similar:"Tương tự",more:"Thêm",removeProduct:"Xóa sản phẩm",doYouHaveSimilar:"Bạn có sản phẩm tương tự",doesProductHaveDiscount:"Sản phẩm này có giảm giá không?",whatFeaturesSpecial:"Tính năng nào làm cho sản phẩm này đặc biệt?",otherColorsAvailable:"Có màu khác không?",poweredBy:"Được cung cấp bởi",aiCanMakeMistakes:"AI có thể mắc lỗi. Kiểm tra thông tin quan trọng",errorOccurred:"Đã xảy ra lỗi. Vui lòng thử lại.",rateLimitError:"Bạn đã vượt quá giới hạn yêu cầu. Vui lòng đợi ít nhất 24 giờ và thử lại.",preparingProducts:"Đang chuẩn bị sản phẩm để hiển thị cho bạn...",startingOrder:"Đang bắt đầu quy trình đặt hàng...",findingProductDetails:"Đang tìm chi tiết sản phẩm cho bạn...",searchingBestOptions:"Đang tìm kiếm tùy chọn tốt nhất cho bạn...",addingNotes:"Đang thêm ghi chú của bạn vào đơn hàng...",savingOrder:"Đang cẩn thận lưu đơn hàng của bạn...",processingPayment:"Đang xử lý thông tin thanh toán của bạn...",lookingForAnswer:"Đang tìm câu trả lời tốt nhất cho bạn...",searchingSimilar:"Đang tìm kiếm sản phẩm tương tự...",checkingOrderStatus:"Đang kiểm tra trạng thái đơn hàng của bạn...",fetchingWebPage:"Đang tải trang web cho bạn...",searchingTheWeb:"Đang tìm kiếm trên web cho bạn...",typing:"Đang nhập...",imHereToHelp:"Tôi ở đây để giúp bạn mọi thứ về việc mua hàng của bạn!",hiIm:"Xin chào, tôi là",addToCartButton:"Thêm",addToCartMessage:"Thêm {product} vào giỏ hàng",addToCartAdding:"Đang thêm...",cartUndoRemoved:"Đã xóa {product}",cartUndoQuantityChanged:"Đã cập nhật {product}",cartUndoButton:"Hoàn tác",cartViewCart:"Xem giỏ hàng",cartCheckout:"Thanh toán",askDori:"Hỏi Dori!",askAgent:"Hỏi {name}!",topPick:"Lựa chọn hàng đầu",alsoConsider:"Cũng nên xem"},Thai:{minimize:"ย่อเล็กสุด",showFullScreen:"แสดงแบบเต็มหน้าจอ",close:"ปิด",reload:"โหลดใหม่",askAnything:"ถามอะไรก็ได้",whatsYourQuestion:"คำถามของคุณคืออะไร?",processing:"กำลังประมวลผล...",writePrompt:"เขียนคำถามหรือวางที่อยู่สัญญา",similar:"คล้ายกัน",more:"เพิ่มเติม",removeProduct:"ลบสินค้า",doYouHaveSimilar:"คุณมีสินค้าที่คล้ายกับ",doesProductHaveDiscount:"สินค้านี้มีส่วนลดไหม?",whatFeaturesSpecial:"คุณสมบัติอะไรที่ทำให้สินค้านี้พิเศษ?",otherColorsAvailable:"มีสีอื่นให้เลือกไหม?",poweredBy:"ขับเคลื่อนโดย",aiCanMakeMistakes:"AI อาจทำผิดพลาดได้ ตรวจสอบข้อมูลสำคัญ",errorOccurred:"เกิดข้อผิดพลาด กรุณาลองอีกครั้ง",rateLimitError:"คุณใช้คำขอเกินขีดจำกัด กรุณารออย่างน้อย 24 ชั่วโมงแล้วลองอีกครั้ง",preparingProducts:"กำลังเตรียมสินค้าเพื่อแสดงให้คุณ...",startingOrder:"กำลังเริ่มกระบวนการสั่งซื้อ...",findingProductDetails:"กำลังค้นหารายละเอียดสินค้าให้คุณ...",searchingBestOptions:"กำลังค้นหาตัวเลือกที่ดีที่สุดให้คุณ...",addingNotes:"กำลังเพิ่มบันทึกของคุณในคำสั่งซื้อ...",savingOrder:"กำลังบันทึกคำสั่งซื้อของคุณอย่างระมัดระวัง...",processingPayment:"กำลังประมวลผลข้อมูลการชำระเงินของคุณ...",lookingForAnswer:"กำลังมองหาคำตอบที่ดีที่สุดให้คุณ...",searchingSimilar:"กำลังค้นหาสินค้าที่คล้ายกัน...",checkingOrderStatus:"กำลังตรวจสอบสถานะคำสั่งซื้อของคุณ...",fetchingWebPage:"กำลังดึงหน้าเว็บให้คุณ...",searchingTheWeb:"กำลังค้นหาบนเว็บให้คุณ...",typing:"กำลังพิมพ์...",imHereToHelp:"ฉันอยู่ที่นี่เพื่อช่วยเหลือคุณในทุกเรื่องเกี่ยวกับการซื้อของคุณ!",hiIm:"สวัสดี ฉันคือ",addToCartButton:"เพิ่ม",addToCartMessage:"เพิ่ม {product} ลงในตะกร้าของฉัน",addToCartAdding:"กำลังเพิ่ม...",cartUndoRemoved:"ลบ {product} แล้ว",cartUndoQuantityChanged:"อัปเดต {product} แล้ว",cartUndoButton:"ยกเลิก",cartViewCart:"ดูตะกร้า",cartCheckout:"ชำระเงิน",askDori:"ถาม Dori!",askAgent:"ถาม {name}!",topPick:"ตัวเลือกยอดนิยม",alsoConsider:"ลองพิจารณาด้วย"},Indonesian:{minimize:"Perkecil",showFullScreen:"Layar Penuh",close:"Tutup",reload:"Muat Ulang",askAnything:"Tanya apa saja",whatsYourQuestion:"Apa pertanyaan Anda?",processing:"Memproses...",writePrompt:"Tulis pertanyaan atau tempel alamat kontrak",similar:"Serupa",more:"Lainnya",removeProduct:"Hapus produk",doYouHaveSimilar:"Apakah Anda punya yang serupa dengan",doesProductHaveDiscount:"Apakah produk ini ada diskon?",whatFeaturesSpecial:"Fitur apa yang membuat produk ini istimewa?",otherColorsAvailable:"Apakah ada warna lain?",poweredBy:"Didukung oleh",aiCanMakeMistakes:"AI bisa membuat kesalahan. Periksa informasi penting",errorOccurred:"Terjadi kesalahan. Silakan coba lagi.",rateLimitError:"Anda telah melebihi batas permintaan. Harap tunggu setidaknya 24 jam dan coba lagi.",preparingProducts:"Menyiapkan produk untuk ditampilkan kepada Anda...",startingOrder:"Memulai proses pemesanan...",findingProductDetails:"Mencari detail produk untuk Anda...",searchingBestOptions:"Mencari opsi terbaik untuk Anda...",addingNotes:"Menambahkan catatan Anda ke pesanan...",savingOrder:"Menyimpan pesanan Anda dengan hati-hati...",processingPayment:"Memproses informasi pembayaran Anda...",lookingForAnswer:"Mencari jawaban terbaik untuk Anda...",searchingSimilar:"Mencari produk serupa...",checkingOrderStatus:"Memeriksa status pesanan Anda...",fetchingWebPage:"Mengambil halaman web untuk Anda...",searchingTheWeb:"Mencari di web untuk Anda...",typing:"Sedang mengetik...",imHereToHelp:"Saya di sini untuk membantu Anda dengan apa pun tentang pembelian Anda!",hiIm:"Hai, saya",addToCartButton:"Tambah",addToCartMessage:"Tambahkan {product} ke keranjang",addToCartAdding:"Menambahkan...",cartUndoRemoved:"{product} dihapus",cartUndoQuantityChanged:"{product} diperbarui",cartUndoButton:"Batalkan",cartViewCart:"Lihat keranjang",cartCheckout:"Bayar",askDori:"Tanya Dori!",askAgent:"Tanya {name}!",topPick:"Pilihan Terbaik",alsoConsider:"Pertimbangkan juga"},Malay:{minimize:"Minima",showFullScreen:"Skrin Penuh",close:"Tutup",reload:"Muat Semula",askAnything:"Tanya apa sahaja",whatsYourQuestion:"Apakah soalan anda?",processing:"Memproses...",writePrompt:"Tulis soalan atau tampal alamat kontrak",similar:"Serupa",more:"Lagi",removeProduct:"Buang produk",doYouHaveSimilar:"Adakah anda mempunyai yang serupa dengan",doesProductHaveDiscount:"Adakah produk ini mempunyai diskaun?",whatFeaturesSpecial:"Apakah ciri yang menjadikan produk ini istimewa?",otherColorsAvailable:"Adakah warna lain tersedia?",poweredBy:"Dikuasakan oleh",aiCanMakeMistakes:"AI boleh membuat kesilapan. Semak maklumat penting",errorOccurred:"Ralat telah berlaku. Sila cuba lagi.",rateLimitError:"Anda telah melebihi had permintaan. Sila tunggu sekurang-kurangnya 24 jam dan cuba lagi.",preparingProducts:"Menyediakan produk untuk ditunjukkan kepada anda...",startingOrder:"Memulakan proses pesanan...",findingProductDetails:"Mencari butiran produk untuk anda...",searchingBestOptions:"Mencari pilihan terbaik untuk anda...",addingNotes:"Menambah nota anda ke pesanan...",savingOrder:"Menyimpan pesanan anda dengan teliti...",processingPayment:"Memproses maklumat pembayaran anda...",lookingForAnswer:"Mencari jawapan terbaik untuk anda...",searchingSimilar:"Mencari produk yang serupa...",checkingOrderStatus:"Memeriksa status pesanan anda...",fetchingWebPage:"Mendapatkan halaman web untuk anda...",searchingTheWeb:"Mencari di web untuk anda...",typing:"Sedang menaip...",imHereToHelp:"Saya di sini untuk membantu anda dengan apa sahaja tentang pembelian anda!",hiIm:"Hai, saya",addToCartButton:"Tambah",addToCartMessage:"Tambah {product} ke troli saya",addToCartAdding:"Menambah...",cartUndoRemoved:"{product} dibuang",cartUndoQuantityChanged:"{product} dikemas kini",cartUndoButton:"Buat asal",cartViewCart:"Lihat troli",cartCheckout:"Daftar keluar",askDori:"Tanya Dori!",askAgent:"Tanya {name}!",topPick:"Pilihan Utama",alsoConsider:"Turut dipertimbangkan"},Hebrew:{minimize:"מזער",showFullScreen:"מסך מלא",close:"סגור",reload:"טען מחדש",askAnything:"שאל כל שאלה",whatsYourQuestion:"מה השאלה שלך?",processing:"מעבד...",writePrompt:"כתוב שאלה או הדבק כתובת חוזה",similar:"דומה",more:"עוד",removeProduct:"הסר מוצר",doYouHaveSimilar:"יש לך משהו דומה ל",doesProductHaveDiscount:"האם למוצר הזה יש הנחה?",whatFeaturesSpecial:"אילו תכונות הופכות את המוצר הזה למיוחד?",otherColorsAvailable:"האם יש צבעים אחרים זמינים?",poweredBy:"מופעל על ידי",aiCanMakeMistakes:"בינה מלאכותית עלולה לטעות. בדוק מידע חשוב",errorOccurred:"אירעה שגיאה. אנא נסה שוב.",rateLimitError:"חרגת ממגבלת הבקשות. אנא המתן לפחות 24 שעות ונסה שוב.",preparingProducts:"מכין מוצרים להצגה עבורך...",startingOrder:"מתחיל תהליך הזמנה...",findingProductDetails:"מחפש פרטי מוצר עבורך...",searchingBestOptions:"מחפש את האפשרויות הטובות ביותר עבורך...",addingNotes:"מוסיף את ההערות שלך להזמנה...",savingOrder:"שומר בזהירות את ההזמנה שלך...",processingPayment:"מעבד את פרטי התשלום שלך...",lookingForAnswer:"מחפש את התשובה הטובה ביותר עבורך...",searchingSimilar:"מחפש מוצרים דומים...",checkingOrderStatus:"בודק את סטטוס ההזמנה שלך...",fetchingWebPage:"מביא את דף האינטרנט עבורך...",searchingTheWeb:"מחפש באינטרנט עבורך...",typing:"מקליד...",imHereToHelp:"אני כאן כדי לעזור לך עם כל דבר הקשור לרכישה שלך!",hiIm:"שלום, אני",addToCartButton:"הוסף",addToCartMessage:"הוסף את {product} לעגלה שלי",addToCartAdding:"מוסיף...",cartUndoRemoved:"{product} הוסר",cartUndoQuantityChanged:"{product} עודכן",cartUndoButton:"בטל",cartViewCart:"צפה בעגלה",cartCheckout:"לתשלום",askDori:"שאל את Dori!",askAgent:"שאל את {name}!",topPick:"הבחירה המובילה",alsoConsider:"שווה גם לשקול"},Greek:{minimize:"Ελαχιστοποίηση",showFullScreen:"Πλήρης οθόνη",close:"Κλείσιμο",reload:"Επαναφόρτωση",askAnything:"Ρωτήστε ό,τι θέλετε",whatsYourQuestion:"Ποια είναι η ερώτησή σας;",processing:"Επεξεργασία...",writePrompt:"Γράψτε μια ερώτηση ή επικολλήστε μια διεύθυνση συμβολαίου",similar:"Παρόμοιο",more:"Περισσότερα",removeProduct:"Αφαίρεση προϊόντος",doYouHaveSimilar:"Έχετε κάτι παρόμοιο με",doesProductHaveDiscount:"Έχει αυτό το προϊόν έκπτωση;",whatFeaturesSpecial:"Ποια χαρακτηριστικά κάνουν αυτό το προϊόν ξεχωριστό;",otherColorsAvailable:"Υπάρχουν άλλα χρώματα διαθέσιμα;",poweredBy:"Με την υποστήριξη",aiCanMakeMistakes:"Η τεχνητή νοημοσύνη μπορεί να κάνει λάθη. Ελέγξτε σημαντικές πληροφορίες",errorOccurred:"Παρουσιάστηκε σφάλμα. Παρακαλώ δοκιμάστε ξανά.",rateLimitError:"Έχετε υπερβεί το όριο αιτημάτων. Παρακαλώ περιμένετε τουλάχιστον 24 ώρες και δοκιμάστε ξανά.",preparingProducts:"Προετοιμασία προϊόντων για εμφάνιση...",startingOrder:"Έναρξη διαδικασίας παραγγελίας...",findingProductDetails:"Αναζήτηση λεπτομερειών προϊόντος για εσάς...",searchingBestOptions:"Αναζήτηση καλύτερων επιλογών για εσάς...",addingNotes:"Προσθήκη σημειώσεών σας στην παραγγελία...",savingOrder:"Προσεκτική αποθήκευση της παραγγελίας σας...",processingPayment:"Επεξεργασία πληροφοριών πληρωμής...",lookingForAnswer:"Αναζήτηση καλύτερης απάντησης για εσάς...",searchingSimilar:"Αναζήτηση παρόμοιων προϊόντων...",checkingOrderStatus:"Έλεγχος κατάστασης παραγγελίας σας...",fetchingWebPage:"Ανάκτηση ιστοσελίδας για εσάς...",searchingTheWeb:"Αναζήτηση στο διαδίκτυο για εσάς...",typing:"Πληκτρολογεί...",imHereToHelp:"Είμαι εδώ για να σας βοηθήσω με οτιδήποτε σχετικό με την αγορά σας!",hiIm:"Γεια, είμαι",addToCartButton:"Προσθήκη",addToCartMessage:"Προσθήκη {product} στο καλάθι μου",addToCartAdding:"Προσθήκη...",cartUndoRemoved:"{product} αφαιρέθηκε",cartUndoQuantityChanged:"{product} ενημερώθηκε",cartUndoButton:"Αναίρεση",cartViewCart:"Προβολή καλαθιού",cartCheckout:"Ταμείο",askDori:"Ρωτήστε Dori!",askAgent:"Ρωτήστε {name}!",topPick:"Κορυφαία επιλογή",alsoConsider:"Αξίζει επίσης"},Romanian:{minimize:"Minimizează",showFullScreen:"Ecran complet",close:"Închide",reload:"Reîncarcă",askAnything:"Întreabă orice",whatsYourQuestion:"Care este întrebarea ta?",processing:"Se procesează...",writePrompt:"Scrie o întrebare sau lipește o adresă de contract",similar:"Similar",more:"Mai mult",removeProduct:"Elimină produs",doYouHaveSimilar:"Ai ceva similar cu",doesProductHaveDiscount:"Acest produs are reducere?",whatFeaturesSpecial:"Ce caracteristici fac acest produs special?",otherColorsAvailable:"Sunt disponibile alte culori?",poweredBy:"Susținut de",aiCanMakeMistakes:"AI poate face greșeli. Verifică informațiile importante",errorOccurred:"A apărut o eroare. Te rugăm să încerci din nou.",rateLimitError:"Ai depășit limita de solicitări. Te rugăm să aștepți cel puțin 24 de ore și să încerci din nou.",preparingProducts:"Se pregătesc produsele pentru a fi afișate...",startingOrder:"Se inițiază procesul de comandă...",findingProductDetails:"Se caută detalii despre produs...",searchingBestOptions:"Se caută cele mai bune opțiuni pentru tine...",addingNotes:"Se adaugă notele tale la comandă...",savingOrder:"Se salvează comanda ta cu atenție...",processingPayment:"Se procesează informațiile de plată...",lookingForAnswer:"Se caută cel mai bun răspuns pentru tine...",searchingSimilar:"Se caută produse similare...",checkingOrderStatus:"Se verifică starea comenzii tale...",fetchingWebPage:"Se încarcă pagina web pentru tine...",searchingTheWeb:"Se caută pe web pentru tine...",typing:"Scrie...",imHereToHelp:"Sunt aici să te ajut cu orice legat de achiziția ta!",hiIm:"Salut, sunt",addToCartButton:"Adaugă",addToCartMessage:"Adaugă {product} în coșul meu",addToCartAdding:"Se adaugă...",cartUndoRemoved:"{product} eliminat",cartUndoQuantityChanged:"{product} actualizat",cartUndoButton:"Anulează",cartViewCart:"Vezi coș",cartCheckout:"Plată",askDori:"Întreabă Dori!",askAgent:"Întreabă {name}!",topPick:"Alegerea de top",alsoConsider:"De luat în considerare"},Czech:{minimize:"Minimalizovat",showFullScreen:"Celá obrazovka",close:"Zavřít",reload:"Znovu načíst",askAnything:"Zeptejte se na cokoliv",whatsYourQuestion:"Jaká je vaše otázka?",processing:"Zpracování...",writePrompt:"Napište dotaz nebo vložte adresu smlouvy",similar:"Podobné",more:"Více",removeProduct:"Odstranit produkt",doYouHaveSimilar:"Máte něco podobného jako",doesProductHaveDiscount:"Má tento produkt slevu?",whatFeaturesSpecial:"Jaké funkce dělají tento produkt speciálním?",otherColorsAvailable:"Jsou k dispozici jiné barvy?",poweredBy:"Používá technologii",aiCanMakeMistakes:"AI může dělat chyby. Zkontrolujte důležité informace",errorOccurred:"Došlo k chybě. Zkuste to prosím znovu.",rateLimitError:"Překročili jste limit požadavků. Počkejte prosím alespoň 24 hodin a zkuste to znovu.",preparingProducts:"Připravují se produkty k zobrazení...",startingOrder:"Zahajuje se proces objednávky...",findingProductDetails:"Hledají se podrobnosti o produktu...",searchingBestOptions:"Hledají se nejlepší možnosti pro vás...",addingNotes:"Přidávají se vaše poznámky k objednávce...",savingOrder:"Pečlivě se ukládá vaše objednávka...",processingPayment:"Zpracovávají se vaše platební informace...",lookingForAnswer:"Hledá se nejlepší odpověď pro vás...",searchingSimilar:"Hledají se podobné produkty...",checkingOrderStatus:"Kontroluje se stav vaší objednávky...",fetchingWebPage:"Načítání webové stránky pro vás...",searchingTheWeb:"Vyhledávání na webu pro vás...",typing:"Píše...",imHereToHelp:"Jsem tu, abych vám pomohl s čímkoli ohledně vašeho nákupu!",hiIm:"Ahoj, jsem",addToCartButton:"Přidat",addToCartMessage:"Přidat {product} do košíku",addToCartAdding:"Přidávám...",cartUndoRemoved:"{product} odstraněn",cartUndoQuantityChanged:"{product} aktualizován",cartUndoButton:"Zpět",cartViewCart:"Zobrazit košík",cartCheckout:"Pokladna",askDori:"Zeptejte se Dori!",askAgent:"Zeptejte se {name}!",topPick:"Nejlepší volba",alsoConsider:"Zvažte také"},Slovak:{minimize:"Minimalizovať",showFullScreen:"Celá obrazovka",close:"Zavrieť",reload:"Znovu načítať",askAnything:"Spýtajte sa na čokoľvek",whatsYourQuestion:"Aká je vaša otázka?",processing:"Spracovanie...",writePrompt:"Napíšte otázku alebo vložte adresu zmluvy",similar:"Podobné",more:"Viac",removeProduct:"Odstrániť produkt",doYouHaveSimilar:"Máte niečo podobné ako",doesProductHaveDiscount:"Má tento produkt zľavu?",whatFeaturesSpecial:"Aké funkcie robia tento produkt výnimočným?",otherColorsAvailable:"Sú k dispozícii iné farby?",poweredBy:"Používa technológiu",aiCanMakeMistakes:"AI môže robiť chyby. Skontrolujte dôležité informácie",errorOccurred:"Vyskytla sa chyba. Skúste to prosím znova.",rateLimitError:"Prekročili ste limit požiadaviek. Počkajte prosím aspoň 24 hodín a skúste to znova.",preparingProducts:"Pripravujú sa produkty na zobrazenie...",startingOrder:"Začína sa proces objednávky...",findingProductDetails:"Hľadajú sa podrobnosti o produkte...",searchingBestOptions:"Hľadajú sa najlepšie možnosti pre vás...",addingNotes:"Pridávajú sa vaše poznámky k objednávke...",savingOrder:"Starostlivo sa ukladá vaša objednávka...",processingPayment:"Spracovávajú sa vaše platobné údaje...",lookingForAnswer:"Hľadá sa najlepšia odpoveď pre vás...",searchingSimilar:"Hľadajú sa podobné produkty...",checkingOrderStatus:"Kontroluje sa stav vašej objednávky...",fetchingWebPage:"Načítava sa webová stránka pre vás...",searchingTheWeb:"Vyhľadáva sa na webe pre vás...",typing:"Píše...",imHereToHelp:"Som tu, aby som vám pomohol s čímkoľvek ohľadom vášho nákupu!",hiIm:"Ahoj, som",addToCartButton:"Pridať",addToCartMessage:"Pridať {product} do košíka",addToCartAdding:"Pridávam...",cartUndoRemoved:"{product} odstránený",cartUndoQuantityChanged:"{product} aktualizovaný",cartUndoButton:"Späť",cartViewCart:"Zobraziť košík",cartCheckout:"Pokladňa",askDori:"Spýtajte sa Dori!",askAgent:"Spýtajte sa {name}!",topPick:"Najlepšia voľba",alsoConsider:"Zvážte aj"},Swedish:{minimize:"Minimera",showFullScreen:"Fullskärm",close:"Stäng",reload:"Ladda om",askAnything:"Fråga vad du vill",whatsYourQuestion:"Vad är din fråga?",processing:"Bearbetar...",writePrompt:"Skriv en fråga eller klistra in en kontraktsadress",similar:"Liknande",more:"Mer",removeProduct:"Ta bort produkt",doYouHaveSimilar:"Har du något liknande",doesProductHaveDiscount:"Har denna produkt rabatt?",whatFeaturesSpecial:"Vilka funktioner gör denna produkt speciell?",otherColorsAvailable:"Finns det andra färger tillgängliga?",poweredBy:"Drivs av",aiCanMakeMistakes:"AI kan göra misstag. Kontrollera viktig information",errorOccurred:"Ett fel har uppstått. Försök igen.",rateLimitError:"Du har överskridit begäransegränsen. Vänta minst 24 timmar och försök igen.",preparingProducts:"Förbereder produkter att visa dig...",startingOrder:"Startar beställningsprocessen...",findingProductDetails:"Söker produktdetaljer åt dig...",searchingBestOptions:"Söker efter bästa alternativen för dig...",addingNotes:"Lägger till dina anteckningar i beställningen...",savingOrder:"Sparar din beställning noggrant...",processingPayment:"Bearbetar din betalningsinformation...",lookingForAnswer:"Letar efter bästa svaret för dig...",searchingSimilar:"Söker efter liknande produkter...",checkingOrderStatus:"Kontrollerar din beställningsstatus...",fetchingWebPage:"Hämtar webbsidan åt dig...",searchingTheWeb:"Söker på webben åt dig...",typing:"Skriver...",imHereToHelp:"Jag är här för att hjälpa dig med allt om ditt köp!",hiIm:"Hej, jag är",addToCartButton:"Lägg till",addToCartMessage:"Lägg till {product} i min kundvagn",addToCartAdding:"Lägger till...",cartUndoRemoved:"{product} borttagen",cartUndoQuantityChanged:"{product} uppdaterad",cartUndoButton:"Ångra",cartViewCart:"Visa kundvagn",cartCheckout:"Kassa",askDori:"Fråga Dori!",askAgent:"Fråga {name}!",topPick:"Toppval",alsoConsider:"Överväg även"},Norwegian:{minimize:"Minimer",showFullScreen:"Fullskjerm",close:"Lukk",reload:"Last inn på nytt",askAnything:"Spør om hva som helst",whatsYourQuestion:"Hva er spørsmålet ditt?",processing:"Behandler...",writePrompt:"Skriv et spørsmål eller lim inn en kontraktsadresse",similar:"Lignende",more:"Mer",removeProduct:"Fjern produkt",doYouHaveSimilar:"Har du noe lignende som",doesProductHaveDiscount:"Har dette produktet rabatt?",whatFeaturesSpecial:"Hvilke funksjoner gjør dette produktet spesielt?",otherColorsAvailable:"Er det andre farger tilgjengelig?",poweredBy:"Drevet av",aiCanMakeMistakes:"AI kan gjøre feil. Sjekk viktig informasjon",errorOccurred:"En feil har oppstått. Vennligst prøv igjen.",rateLimitError:"Du har overskredet forespørselsgrensen. Vent minst 24 timer og prøv igjen.",preparingProducts:"Forbereder produkter å vise deg...",startingOrder:"Starter bestillingsprosessen...",findingProductDetails:"Søker etter produktdetaljer for deg...",searchingBestOptions:"Søker etter de beste alternativene for deg...",addingNotes:"Legger til notatene dine i bestillingen...",savingOrder:"Lagrer bestillingen din nøye...",processingPayment:"Behandler betalingsinformasjonen din...",lookingForAnswer:"Leter etter det beste svaret for deg...",searchingSimilar:"Søker etter lignende produkter...",checkingOrderStatus:"Sjekker bestillingsstatusen din...",fetchingWebPage:"Henter nettsiden for deg...",searchingTheWeb:"Søker på nettet for deg...",typing:"Skriver...",imHereToHelp:"Jeg er her for å hjelpe deg med alt om kjøpet ditt!",hiIm:"Hei, jeg er",askDori:"Spør Dori!",askAgent:"Spør {name}!",topPick:"Toppvalg",alsoConsider:"Vurder også"},Danish:{minimize:"Minimer",showFullScreen:"Fuld skærm",close:"Luk",reload:"Genindlæs",askAnything:"Spørg om hvad som helst",whatsYourQuestion:"Hvad er dit spørgsmål?",processing:"Behandler...",writePrompt:"Skriv et spørgsmål eller indsæt en kontraktadresse",similar:"Lignende",more:"Mere",removeProduct:"Fjern produkt",doYouHaveSimilar:"Har du noget lignende som",doesProductHaveDiscount:"Har dette produkt rabat?",whatFeaturesSpecial:"Hvilke funktioner gør dette produkt specielt?",otherColorsAvailable:"Er der andre farver tilgængelige?",poweredBy:"Drevet af",aiCanMakeMistakes:"AI kan lave fejl. Tjek vigtig information",errorOccurred:"Der opstod en fejl. Prøv venligst igen.",rateLimitError:"Du har overskredet anmodningsgrænsen. Vent venligst mindst 24 timer og prøv igen.",preparingProducts:"Forbereder produkter til at vise dig...",startingOrder:"Starter bestillingsprocessen...",findingProductDetails:"Søger efter produktdetaljer til dig...",searchingBestOptions:"Søger efter de bedste muligheder til dig...",addingNotes:"Tilføjer dine noter til bestillingen...",savingOrder:"Gemmer din bestilling omhyggeligt...",processingPayment:"Behandler dine betalingsoplysninger...",lookingForAnswer:"Søger efter det bedste svar til dig...",searchingSimilar:"Søger efter lignende produkter...",checkingOrderStatus:"Tjekker din bestillingsstatus...",fetchingWebPage:"Henter websiden til dig...",searchingTheWeb:"Søger på nettet for dig...",typing:"Skriver...",imHereToHelp:"Jeg er her for at hjælpe dig med alt om dit køb!",hiIm:"Hej, jeg er",addToCartButton:"Tilføj",addToCartMessage:"Tilføj {product} til min kurv",addToCartAdding:"Tilføjer...",cartUndoRemoved:"{product} fjernet",cartUndoQuantityChanged:"{product} opdateret",cartUndoButton:"Fortryd",cartViewCart:"Se kurv",cartCheckout:"Kassen",askDori:"Spørg Dori!",askAgent:"Spørg {name}!",topPick:"Topvalg",alsoConsider:"Overvej også"},Finnish:{minimize:"Pienennä",showFullScreen:"Koko näyttö",close:"Sulje",reload:"Lataa uudelleen",askAnything:"Kysy mitä tahansa",whatsYourQuestion:"Mikä on kysymyksesi?",processing:"Käsitellään...",writePrompt:"Kirjoita kysymys tai liitä sopimuksen osoite",similar:"Samankaltainen",more:"Lisää",removeProduct:"Poista tuote",doYouHaveSimilar:"Onko sinulla jotain vastaavaa kuin",doesProductHaveDiscount:"Onko tässä tuotteessa alennusta?",whatFeaturesSpecial:"Mitkä ominaisuudet tekevät tästä tuotteesta erityisen?",otherColorsAvailable:"Onko muita värejä saatavilla?",poweredBy:"Tarjoaa",aiCanMakeMistakes:"Tekoäly voi tehdä virheitä. Tarkista tärkeät tiedot",errorOccurred:"Tapahtui virhe. Yritä uudelleen.",rateLimitError:"Olet ylittänyt pyyntörajan. Odota vähintään 24 tuntia ja yritä uudelleen.",preparingProducts:"Valmistellaan tuotteita näytettäväksi...",startingOrder:"Aloitetaan tilausprosessi...",findingProductDetails:"Etsitään tuotetietoja sinulle...",searchingBestOptions:"Etsitään parhaita vaihtoehtoja sinulle...",addingNotes:"Lisätään muistiinpanosi tilaukseen...",savingOrder:"Tallennetaan tilaustasi huolellisesti...",processingPayment:"Käsitellään maksutietojasi...",lookingForAnswer:"Etsitään parasta vastausta sinulle...",searchingSimilar:"Etsitään samankaltaisia tuotteita...",checkingOrderStatus:"Tarkistetaan tilauksesi tilaa...",fetchingWebPage:"Haetaan verkkosivua sinulle...",searchingTheWeb:"Etsitään verkosta sinulle...",typing:"Kirjoittaa...",imHereToHelp:"Olen täällä auttaakseni sinua kaikessa ostoksesi liittyen!",hiIm:"Hei, olen",addToCartButton:"Lisää",addToCartMessage:"Lisää {product} ostoskoriin",addToCartAdding:"Lisätään...",cartUndoRemoved:"{product} poistettu",cartUndoQuantityChanged:"{product} päivitetty",cartUndoButton:"Kumoa",cartViewCart:"Näytä ostoskori",cartCheckout:"Kassalle",askDori:"Kysy Dorilta!",askAgent:"Kysy {name}:lta!",topPick:"Paras valinta",alsoConsider:"Harkitse myös"},Bengali:{minimize:"ছোট করুন",showFullScreen:"পূর্ণ স্ক্রীন",close:"বন্ধ করুন",reload:"পুনরায় লোড করুন",askAnything:"যা কিছু জিজ্ঞাসা করুন",whatsYourQuestion:"আপনার প্রশ্ন কী?",processing:"প্রক্রিয়াকরণ...",writePrompt:"একটি প্রম্পট লিখুন বা একটি চুক্তি ঠিকানা পেস্ট করুন",similar:"অনুরূপ",more:"আরও",removeProduct:"পণ্য সরান",doYouHaveSimilar:"এর মতো কিছু আছে",doesProductHaveDiscount:"এই পণ্যে কি ছাড় আছে?",whatFeaturesSpecial:"কোন বৈশিষ্ট্যগুলি এই পণ্যটিকে বিশেষ করে?",otherColorsAvailable:"অন্য রঙ পাওয়া যায় কি?",poweredBy:"দ্বারা চালিত",aiCanMakeMistakes:"AI ভুল করতে পারে। গুরুত্বপূর্ণ তথ্য যাচাই করুন",errorOccurred:"একটি ত্রুটি ঘটেছে। অনুগ্রহ করে আবার চেষ্টা করুন।",rateLimitError:"আপনি অনুরোধ সীমা অতিক্রম করেছেন। অনুগ্রহ করে কমপক্ষে 24 ঘন্টা অপেক্ষা করুন এবং আবার চেষ্টা করুন।",preparingProducts:"আপনাকে দেখানোর জন্য পণ্য প্রস্তুত করা হচ্ছে...",startingOrder:"অর্ডার প্রক্রিয়া শুরু করা হচ্ছে...",findingProductDetails:"আপনার জন্য পণ্যের বিবরণ খুঁজে বের করা হচ্ছে...",searchingBestOptions:"আপনার জন্য সেরা বিকল্পগুলি খোঁজা হচ্ছে...",addingNotes:"আপনার নোট অর্ডারে যোগ করা হচ্ছে...",savingOrder:"আপনার অর্ডার সাবধানে সংরক্ষণ করা হচ্ছে...",processingPayment:"আপনার পেমেন্ট তথ্য প্রক্রিয়া করা হচ্ছে...",lookingForAnswer:"আপনার জন্য সেরা উত্তর খোঁজা হচ্ছে...",searchingSimilar:"অনুরূপ পণ্য খোঁজা হচ্ছে...",checkingOrderStatus:"আপনার অর্ডার স্ট্যাটাস পরীক্ষা করা হচ্ছে...",fetchingWebPage:"আপনার জন্য ওয়েব পেজ আনা হচ্ছে...",searchingTheWeb:"আপনার জন্য ওয়েবে অনুসন্ধান করা হচ্ছে...",typing:"টাইপ করছে...",imHereToHelp:"আমি আপনার ক্রয় সম্পর্কে যেকোনো বিষয়ে সাহায্য করার জন্য এখানে আছি!",hiIm:"হ্যালো, আমি",addToCartButton:"যোগ করুন",addToCartMessage:"{product} আমার কার্টে যোগ করুন",addToCartAdding:"যোগ হচ্ছে...",cartUndoRemoved:"{product} মুছে ফেলা হয়েছে",cartUndoQuantityChanged:"{product} আপডেট হয়েছে",cartUndoButton:"পূর্বাবস্থায় ফেরান",cartViewCart:"কার্ট দেখুন",cartCheckout:"চেকআউট",askDori:"Dori কে জিজ্ঞাসা করুন!",askAgent:"{name} কে জিজ্ঞাসা করুন!",topPick:"সেরা পছন্দ",alsoConsider:"এটাও বিবেচনা করুন"},Tamil:{minimize:"சிறிதாக்கு",showFullScreen:"முழு திரை",close:"மூடு",reload:"மீண்டும் ஏற்று",askAnything:"எதையும் கேளுங்கள்",whatsYourQuestion:"உங்கள் கேள்வி என்ன?",processing:"செயலாக்கம்...",writePrompt:"ஒரு கேள்வியை எழுதவும் அல்லது ஒப்பந்த முகவரியை ஒட்டவும்",similar:"ஒத்த",more:"மேலும்",removeProduct:"தயாரிப்பை அகற்று",doYouHaveSimilar:"இதைப் போன்ற ஏதாவது உள்ளதா",doesProductHaveDiscount:"இந்த தயாரிப்புக்கு தள்ளுபடி உள்ளதா?",whatFeaturesSpecial:"இந்த தயாரிப்பை சிறப்பாக்கும் அம்சங்கள் என்ன?",otherColorsAvailable:"வேறு நிறங்கள் கிடைக்குமா?",poweredBy:"வழங்குபவர்",aiCanMakeMistakes:"AI தவறு செய்யலாம். முக்கிய தகவல்களை சரிபார்க்கவும்",errorOccurred:"பிழை ஏற்பட்டது. மீண்டும் முயற்சிக்கவும்.",rateLimitError:"நீங்கள் கோரிக்கை வரம்பை மீறிவிட்டீர்கள். குறைந்தது 24 மணி நேரம் காத்திருந்து மீண்டும் முயற்சிக்கவும்.",preparingProducts:"உங்களுக்காக தயாரிப்புகளை தயார்படுத்துகிறது...",startingOrder:"ஆர்டர் செயல்முறையைத் தொடங்குகிறது...",findingProductDetails:"உங்களுக்காக தயாரிப்பு விவரங்களைக் கண்டறிகிறது...",searchingBestOptions:"உங்களுக்கான சிறந்த விருப்பங்களைத் தேடுகிறது...",addingNotes:"உங்கள் குறிப்புகளை ஆர்டருக்கு சேர்க்கிறது...",savingOrder:"உங்கள் ஆர்டரை கவனமாக சேமிக்கிறது...",processingPayment:"உங்கள் பணம் செலுத்தும் தகவலை செயல்படுத்துகிறது...",lookingForAnswer:"உங்களுக்கான சிறந்த பதிலைத் தேடுகிறது...",searchingSimilar:"ஒத்த தயாரிப்புகளைத் தேடுகிறது...",checkingOrderStatus:"உங்கள் ஆர்டர் நிலையைச் சரிபார்க்கிறது...",fetchingWebPage:"உங்களுக்காக வலைப்பக்கத்தைப் பெறுகிறது...",searchingTheWeb:"உங்களுக்காக வலையில் தேடுகிறது...",typing:"தட்டச்சு செய்கிறது...",imHereToHelp:"உங்கள் வாங்குதல் பற்றிய எதற்கும் உதவ நான் இங்கே இருக்கிறேன்!",hiIm:"வணக்கம், நான்",addToCartButton:"சேர்",addToCartMessage:"{product} என் கார்ட்டில் சேர்",addToCartAdding:"சேர்க்கிறது...",cartUndoRemoved:"{product} நீக்கப்பட்டது",cartUndoQuantityChanged:"{product} புதுப்பிக்கப்பட்டது",cartUndoButton:"செயல் தவிர்",cartViewCart:"கார்ட் பார்",cartCheckout:"செலுத்து",askDori:"Dori யிடம் கேளுங்கள்!",askAgent:"{name} யிடம் கேளுங்கள்!",topPick:"சிறந்த தேர்வு",alsoConsider:"இதையும் பரிசீலியுங்கள்"},Telugu:{minimize:"చిన్నదిగా చేయండి",showFullScreen:"పూర్తి స్క్రీన్",close:"మూసివేయండి",reload:"మళ్లీ లోడ్ చేయండి",askAnything:"ఏదైనా అడగండి",whatsYourQuestion:"మీ ప్రశ్న ఏమిటి?",processing:"ప్రాసెస్ చేస్తోంది...",writePrompt:"ఒక ప్రశ్న రాయండి లేదా ఒప్పంద చిరునామా అతికించండి",similar:"సారూప్యమైన",more:"మరింత",removeProduct:"ఉత్పత్తిని తీసివేయండి",doYouHaveSimilar:"దీనికి సారూప్యమైనది ఉందా",doesProductHaveDiscount:"ఈ ఉత్పత్తికి తగ్గింపు ఉందా?",whatFeaturesSpecial:"ఈ ఉత్పత్తిని ప్రత్యేకంగా చేసే లక్షణాలు ఏమిటి?",otherColorsAvailable:"ఇతర రంగులు అందుబాటులో ఉన్నాయా?",poweredBy:"అందించినది",aiCanMakeMistakes:"AI పొరపాట్లు చేయవచ్చు. ముఖ్యమైన సమాచారాన్ని తనిఖీ చేయండి",errorOccurred:"లోపం సంభవించింది. దయచేసి మళ్లీ ప్రయత్నించండి.",rateLimitError:"మీరు అభ్యర్థన పరిమితిని మించిపోయారు. దయచేసి కనీసం 24 గంటలు వేచి మళ్లీ ప్రయత్నించండి.",preparingProducts:"మీకు చూపించడానికి ఉత్పత్తులను సిద్ధం చేస్తోంది...",startingOrder:"ఆర్డర్ ప్రక్రియను ప్రారంభిస్తోంది...",findingProductDetails:"మీ కోసం ఉత్పత్తి వివరాలను కనుగొంటోంది...",searchingBestOptions:"మీ కోసం ఉత్తమ ఎంపికలను శోధిస్తోంది...",addingNotes:"మీ గమనికలను ఆర్డర్కు జోడిస్తోంది...",savingOrder:"మీ ఆర్డర్ను జాగ్రత్తగా సేవ్ చేస్తోంది...",processingPayment:"మీ చెల్లింపు సమాచారాన్ని ప్రాసెస్ చేస్తోంది...",lookingForAnswer:"మీ కోసం ఉత్తమ సమాధానాన్ని శోధిస్తోంది...",searchingSimilar:"సారూప్య ఉత్పత్తులను శోధిస్తోంది...",checkingOrderStatus:"మీ ఆర్డర్ స్థితిని తనిఖీ చేస్తోంది...",fetchingWebPage:"మీ కోసం వెబ్ పేజీని తీసుకొస్తోంది...",searchingTheWeb:"మీ కోసం వెబ్లో శోధిస్తోంది...",typing:"టైప్ చేస్తున్నారు...",imHereToHelp:"మీ కొనుగోలు గురించి దేనికైనా సహాయం చేయడానికి నేను ఇక్కడ ఉన్నాను!",hiIm:"హలో, నేను",addToCartButton:"జోడించు",addToCartMessage:"{product}ని నా కార్ట్కి జోడించు",addToCartAdding:"జోడిస్తున్నాము...",cartUndoRemoved:"{product} తొలగించబడింది",cartUndoQuantityChanged:"{product} నవీకరించబడింది",cartUndoButton:"రద్దు చేయి",cartViewCart:"కార్ట్ చూడు",cartCheckout:"చెక్అవుట్",askDori:"Dori ని అడగండి!",askAgent:"{name} ని అడగండి!",topPick:"అత్యుత్తమ ఎంపిక",alsoConsider:"ఇవి కూడా పరిశీలించండి"},Afrikaans:{minimize:"Minimeer",showFullScreen:"Volskerm",close:"Sluit",reload:"Herlaai",askAnything:"Vra enigiets",whatsYourQuestion:"Wat is jou vraag?",processing:"Verwerk...",writePrompt:"Skryf 'n vraag of plak 'n kontrakadres",similar:"Soortgelyk",more:"Meer",removeProduct:"Verwyder produk",doYouHaveSimilar:"Het jy iets soortgelyks soos",doesProductHaveDiscount:"Het hierdie produk 'n afslag?",whatFeaturesSpecial:"Watter kenmerke maak hierdie produk spesiaal?",otherColorsAvailable:"Is daar ander kleure beskikbaar?",poweredBy:"Aangedryf deur",aiCanMakeMistakes:"KI kan foute maak. Kontroleer belangrike inligting",errorOccurred:"'n Fout het voorgekom. Probeer asseblief weer.",rateLimitError:"Jy het die versoekslimiet oorskry. Wag asseblief ten minste 24 uur en probeer weer.",preparingProducts:"Berei produkte voor om jou te wys...",startingOrder:"Begin bestelproses...",findingProductDetails:"Soek produkbesonderhede vir jou...",searchingBestOptions:"Soek die beste opsies vir jou...",addingNotes:"Voeg jou notas by die bestelling...",savingOrder:"Stoor jou bestelling versigtig...",processingPayment:"Verwerk jou betalingsinligting...",lookingForAnswer:"Soek die beste antwoord vir jou...",searchingSimilar:"Soek soortgelyke produkte...",checkingOrderStatus:"Kontroleer jou bestelstatus...",fetchingWebPage:"Haal die webblad vir jou op...",searchingTheWeb:"Soek op die web vir jou...",typing:"Tik...",imHereToHelp:"Ek is hier om jou te help met enigiets oor jou aankoop!",hiIm:"Hallo, ek is",addToCartButton:"Voeg by",addToCartMessage:"Voeg {product} by my mandjie",addToCartAdding:"Voeg by...",cartUndoRemoved:"{product} verwyder",cartUndoQuantityChanged:"{product} opgedateer",cartUndoButton:"Ongedaan maak",cartViewCart:"Bekyk mandjie",cartCheckout:"Kassa",askDori:"Vra Dori!",askAgent:"Vra {name}!",topPick:"Topkeuse",alsoConsider:"Oorweeg ook"},Albanian:{minimize:"Minimizo",showFullScreen:"Ekran i plotë",close:"Mbyll",reload:"Ringarko",askAnything:"Pyet çdo gjë",whatsYourQuestion:"Cila është pyetja juaj?",processing:"Duke përpunuar...",writePrompt:"Shkruani një pyetje ose ngjisni një adresë kontrate",similar:"I ngjashëm",more:"Më shumë",removeProduct:"Hiq produktin",doYouHaveSimilar:"A keni diçka të ngjashme me",doesProductHaveDiscount:"A ka zbritje ky produkt?",whatFeaturesSpecial:"Cilat veçori e bëjnë këtë produkt special?",otherColorsAvailable:"A ka ngjyra të tjera të disponueshme?",poweredBy:"Mundësuar nga",aiCanMakeMistakes:"AI mund të bëjë gabime. Kontrolloni informacionin e rëndësishëm",errorOccurred:"Ndodhi një gabim. Ju lutemi provoni përsëri.",rateLimitError:"Keni tejkaluar kufirin e kërkesave. Ju lutemi prisni të paktën 24 orë dhe provoni përsëri.",preparingProducts:"Duke përgatitur produktet për t'ju treguar...",startingOrder:"Duke filluar procesin e porosisë...",findingProductDetails:"Duke kërkuar detaje produkti për ju...",searchingBestOptions:"Duke kërkuar opsionet më të mira për ju...",addingNotes:"Duke shtuar shënimet tuaja në porosi...",savingOrder:"Duke ruajtur porosinë tuaj me kujdes...",processingPayment:"Duke përpunuar informacionin tuaj të pagesës...",lookingForAnswer:"Duke kërkuar përgjigjen më të mirë për ju...",searchingSimilar:"Duke kërkuar produkte të ngjashme...",checkingOrderStatus:"Duke kontrolluar statusin e porosisë suaj...",fetchingWebPage:"Duke marrë faqen e internetit për ju...",searchingTheWeb:"Duke kërkuar në internet për ju...",typing:"Po shkruan...",imHereToHelp:"Jam këtu për t'ju ndihmuar me çdo gjë për blerjen tuaj!",hiIm:"Përshëndetje, unë jam",addToCartButton:"Shto",addToCartMessage:"Shto {product} në shportën time",addToCartAdding:"Po shtohet...",cartUndoRemoved:"{product} u hoq",cartUndoQuantityChanged:"{product} u përditësua",cartUndoButton:"Zhbëj",cartViewCart:"Shiko shportën",cartCheckout:"Paguaj",askDori:"Pyet Dori!",askAgent:"Pyet {name}!",topPick:"Zgjedhja kryesore",alsoConsider:"Konsideroni gjithashtu"},Amharic:Hm,Bulgarian:Hm,Burmese:Hm,Croatian:Hm,Estonian:Hm,Filipino:Hm,Gujarati:Hm,Hausa:Hm,Hungarian:Hm,Igbo:Hm,Kannada:Hm,Khmer:Hm,Lao:Hm,Latvian:Hm,Lithuanian:Hm,Malayalam:Hm,Marathi:Hm,Mongolian:Hm,Nepali:Hm,Pashto:Hm,Persian:Hm,Punjabi:Hm,Sinhala:Hm,Somali:Hm,Iraqi:Hm,Swahili:Hm,Urdu:Hm,Yoruba:Hm,Zulu:Hm},Um=e=>{const t=Vm[e]||Vm.English;return{...Hm,...t}};function qm(){if("undefined"==typeof window)return null;const e=window.location.pathname.match(/^\/([a-z]{2})-[a-z]{2}\//i);if(e)return e[1].toLowerCase();const t=document.documentElement.lang;if(t){const e=t.split("-")[0]?.toLowerCase();if(e)return e}return null}const Ym={af:"Afrikaans",sq:"Albanian",am:"Amharic",ar:"Arabic",bn:"Bengali",bg:"Bulgarian",my:"Burmese",zh:"Chinese",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fi:"Finnish",fr:"French",de:"German",el:"Greek",gu:"Gujarati",ha:"Hausa",he:"Hebrew",hi:"Hindi",hu:"Hungarian",ig:"Igbo",id:"Indonesian",it:"Italian",ja:"Japanese",kn:"Kannada",km:"Khmer",ko:"Korean",lo:"Lao",lv:"Latvian",lt:"Lithuanian",ms:"Malay",ml:"Malayalam",mr:"Marathi",mn:"Mongolian",ne:"Nepali",no:"Norwegian",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",ro:"Romanian",ru:"Russian",si:"Sinhala",sk:"Slovak",so:"Somali",es:"Spanish",sw:"Swahili",sv:"Swedish",ta:"Tamil",te:"Telugu",th:"Thai",tr:"Turkish",uk:"Ukrainian",ur:"Urdu",vi:"Vietnamese",yo:"Yoruba",zu:"Zulu"},Gm="dori-quiz-completed",Qm=os.createContext(void 0);function Km({children:e}){const[r,n]=os.useState(null),[k,_]=os.useState(!1),[w,S]=os.useState(null),[C,P]=os.useState(()=>qm());os.useEffect(()=>function(){if("undefined"==typeof window||"undefined"==typeof MutationObserver)return()=>{};const e=new MutationObserver(()=>{var e;e=qm(),P(t=>t===e?t:e)});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>e.disconnect()}(),[]);const z=os.useRef(null);os.useEffect(()=>{const e=z.current;z.current=C,null!==e&&e!==C&&me(e=>e+1)},[C]);const E=os.useMemo(()=>{return((e=C)?Ym[e.toLowerCase()]??null:null)??r?.language??"English";var e},[C,r?.language]),T=os.useMemo(()=>{const e=r?.suggestedReplyByLanguage;if(e&&"object"==typeof e){let t=null;if("undefined"!=typeof window){const e=window.location.pathname.match(/^\/([a-z]{2}-[a-z]{2})\//i);e&&(t=e[1])}const r="undefined"!=typeof document?document.documentElement.lang:"",n=[E,C,C?C.split("-")[0]:null,t,r||null].filter(e=>"string"==typeof e&&e.length>0);for(const a of n){const t=e[a];if(Array.isArray(t)&&t.length>0)return t}const i={};for(const[a,o]of Object.entries(e))"string"==typeof a&&(i[a.toLowerCase()]=o);for(const e of n){const t=i[e.toLowerCase()];if(Array.isArray(t)&&t.length>0)return t}console.warn("[Dori Widget] suggestedReplyByLanguage has no match for",{candidates:n,availableKeys:Object.keys(e)})}return Array.isArray(r?.suggestedReply)?r.suggestedReply:[]},[r?.suggestedReplyByLanguage,r?.suggestedReply,E,C]),[j,R]=os.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[O,I]=os.useState([]),[A,D]=os.useState("welcome"),[M,L]=os.useState(!1),[F,N]=os.useState("starting"),W=os.useRef(null),[$,B]=os.useState(!0),H=os.useRef(null),V=os.useCallback(()=>{$&&p(W.current)},[$]);os.useEffect(()=>{V()},[O,V]),function({botData:e,chatState:r,messages:n,currentStep:p,setBotData:f,setChatState:h,setMessages:g,setCurrentStep:m}){const[v,b]=os.useState(!1);os.useEffect(()=>{(()=>{if(t()){const e=c();if(e){if(console.log("Restoring session data:",e),e.botData){const t=e.botData,r=e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch{return[]}},n=t.suggestedReplyByLanguage;let i;if(n){const e="string"==typeof n?(()=>{try{return JSON.parse(n)}catch{return{}}})():n;i=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,r(t)]))}f({...t,suggestedReply:r(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}})}else f(e.botData);const t=u(),r={...e.chatState,threadId:t||e.chatState.threadId};h(r),g(e.messages.filter(e=>"loading"!==e.type)),m("initial-greeting"===e.currentStep?"initial-greeting":"ongoing"),d(),b(!0)}}else{const e=u();e&&(h({repliedProduct:null,threadId:e,isRequestInProgress:!1}),d()),b(!0)}})()},[f,h,g,m]),os.useEffect(()=>{v&&e&&(i(),a(e))},[e,v]),os.useEffect(()=>{v&&o(r)},[r,v]),os.useEffect(()=>{v&&s(n)},[n,v]),os.useEffect(()=>{v&&l(p)},[p,v])}({botData:r,chatState:j,messages:O,currentStep:A,setBotData:n,setChatState:R,setMessages:I,setCurrentStep:D});const[U,q]=os.useState(null),[Y,G]=os.useState(null),Q=os.useRef(!1),[K,X]=os.useState(null),[Z,J]=os.useState(null),[ee,te]=os.useState(null),[re,ne]=os.useState(()=>{try{return"true"===sessionStorage.getItem("dori-proactive-v2-suppressed")}catch{return!1}}),ie=os.useCallback((e,t)=>{X(e),J(t)},[]),ae=os.useCallback(()=>{X(null),J(null)},[]),oe=os.useRef(null),se=os.useRef(null);os.useEffect(()=>{Z&&(oe.current=Z,se.current=Date.now())},[Z]);const le=os.useCallback(()=>{ne(!0);try{sessionStorage.setItem("dori-proactive-v2-suppressed","true")}catch{}},[]),[ce,ue]=os.useState(null),[de,pe]=os.useState(()=>{try{return"true"===sessionStorage.getItem(Gm)}catch{return!1}}),fe=os.useRef(!1),he=os.useCallback(()=>{pe(!0);try{sessionStorage.setItem(Gm,"true")}catch{}},[]),[ge,me]=os.useState(0),ve=os.useRef(!1),be=os.useRef(new Set),ye=os.useRef(r);os.useEffect(()=>{ye.current=r},[r]);const xe=os.useRef(A);os.useEffect(()=>{xe.current=A},[A]),os.useEffect(()=>{if(!r)return;if(!1===r.customization?.enable_proactive_engagement)return;if(!r.business_description)return;if(0===ge){if(Q.current)return;Q.current=!0}else if("welcome"!==A&&"initial-greeting"!==A)return;const e=new AbortController,t=E||r.language||"en",n=gm();return async function(e,t,r,n){try{const i=new AbortController,a=setTimeout(()=>i.abort(),1e4),o=n?AbortSignal.any([n,i.signal]):i.signal,s=await fetch(am.generateWelcomeMessage,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({business_description:e,h1:t.h1,page_link:t.page_link,page_type:t.page_type,lang:r}),signal:o});if(clearTimeout(a),!s.ok)return console.warn("[Dori Widget] Dynamic welcome message fetch failed:",s.status),null;const l=await s.json();return l?.message||null}catch(i){return"AbortError"!==i?.name&&console.warn("[Dori Widget] Dynamic welcome message error:",i),null}}(r.business_description,n,t,e.signal).then(t=>{t&&!e.signal.aborted&&q(t)}),()=>{e.abort()}},[r,ge]),os.useEffect(()=>{if(!r)return;if(!0!==r.customization?.enable_standalone_quiz)return;if(de)return;const e=r.sharing_id||f();if(!e)return;if(0===ge){if(fe.current)return;fe.current=!0}else if("welcome"!==A&&"initial-greeting"!==A)return;const t=new AbortController;return async function(e,t,r){try{const n=new AbortController,i=setTimeout(()=>n.abort(),2e4),a=r?AbortSignal.any([r,n.signal]):n.signal,o=await fetch(`${am.storeQuizzes}/${e}?lang=${encodeURIComponent(t)}`,{signal:a});if(clearTimeout(i),!o.ok)return console.warn("[Dori Widget] Store quizzes fetch failed:",o.status),null;const s=await o.json(),l=s?.variants;return l&&Array.isArray(l)&&0!==l.length?l.map(e=>({welcome_hook:e.welcome_hook||"",entry_label:e.entry_label||"",steps:e.steps||[],result_prompt:e.result_prompt||"",result_type:e.quiz_type||e.result_type||"recommendation",analyzing_text:e.analyzing_text||""})):null}catch(n){return"AbortError"!==n?.name&&console.warn("[Dori Widget] Store quizzes error:",n),null}}(e,E||r.language||"English",t.signal).then(e=>{if(e&&e.length>0&&!t.signal.aborted){const t=Math.floor(Math.random()*e.length);ue(e[t])}}),()=>{t.abort()}},[r,ge,de]),os.useEffect(()=>{let e=window.location.href,t=null;const r=()=>{const r=window.location.href;if(r===e)return;e=r,ve.current=!1;const n=ye.current;!1!==n?.customization?.enable_proactive_engagement&&n?.business_description&&"welcome"===xe.current&&(t&&clearTimeout(t),t=setTimeout(()=>{q(null),te(null);try{pe("true"===sessionStorage.getItem(Gm))}catch{}ue(null),fe.current=!1,me(e=>e+1)},200))};window.addEventListener("popstate",r);const n=history.pushState.bind(history);history.pushState=(...e)=>{n(...e),r()};const i=history.replaceState.bind(history);return history.replaceState=(...e)=>{i(...e),r()},()=>{t&&clearTimeout(t),window.removeEventListener("popstate",r),history.pushState=n,history.replaceState=i}},[]);const ke=os.useRef(new Set),_e=os.useRef([]),we=os.useRef(null),[Se,Ce]=os.useState(0),[Pe,ze]=os.useState(null),Ee=os.useRef(null),Te=os.useRef(!1),je=os.useCallback(()=>{ze(null),null!==Ee.current&&(window.clearTimeout(Ee.current),Ee.current=null)},[]),Re=os.useCallback(async()=>{if(!Pe)return;const{variantId:e,previousQuantity:t}=Pe;je();try{const n=await Lm();if(!n)return;const i=n.items||[],a=Dm(e)||e,o=i.findIndex(e=>String(e.variant_id)===a);if(-1!==o?await Fm(o+1,t):t>0&&await Im(a,t),r&&bm(r)){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:j.threadId});e&&R(t=>({...t,threadId:e}));const t=await Lm();t&&Ce(t.item_count)}}catch{}},[Pe,je,r,j.threadId]),Oe=os.useCallback(()=>{if(H.current)return;const e=_e.current.shift();e&&we.current&&window.setTimeout(()=>{we.current?.({message:"",apiMessage:e,silent:!0})},0)},[]),Ie=os.useCallback(async(e,t)=>{if(ke.current.has(e.action_id))return;if(ke.current.add(e.action_id),ke.current.size>300){const e=Array.from(ke.current).slice(-200);ke.current.clear(),e.forEach(e=>ke.current.add(e))}const n=t||j.threadId||void 0;let i;try{i=await Am(e.payload,n)}catch{i={type:"failed",reason:"network",message:"I couldn't add that item right now. Please try again.",product_title:e.payload.product_name||void 0}}if("success"===i.type&&r&&bm(r)){const e=km(),n=t||j.threadId||void 0,i=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:n,src:"undefined"!=typeof window?window.location.href:""});i&&R(e=>({...e,threadId:i}));const a=await Lm();a&&Ce(a.item_count)}"success"===i.type?(Te.current=!0,_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_result:${JSON.stringify({action_id:e.action_id,product_name:i.product_title||e.payload.product_name||null,variant_title:i.variant_title||null,variant_id:i.variant_id,quantity:i.quantity})}`)):"needs_options"===i.type?_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_needs_options:${JSON.stringify({action_id:e.action_id,product_name:i.product_title,message:i.message,options:i.options})}`):_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_failed:${JSON.stringify({action_id:e.action_id,reason:i.reason,message:i.message,product_name:i.product_title||e.payload.product_name||null})}`),H.current||Oe()},[r,j.threadId,Oe]),Ae=os.useCallback(async e=>{const t=j.threadId||void 0;let n;try{n=await Am(e,t)}catch{n={type:"failed",reason:"network",message:"I couldn't add that item right now. Please try again."}}if("success"===n.type&&r&&bm(r)){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:t,src:"undefined"!=typeof window?window.location.href:""});e&&R(t=>({...t,threadId:e}));const n=await Lm();n&&Ce(n.item_count)}return"success"===n.type&&(Te.current=!0,_e.current.push(`DORI_INTERNAL_EVENT:add_to_cart_result:${JSON.stringify({action_id:`direct-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,product_name:n.product_title||e.product_name||null,variant_title:n.variant_title||null,variant_id:n.variant_id,quantity:n.quantity})}`),H.current||Oe()),n},[r,j.threadId,Oe]),De=os.useCallback(async(e,t)=>{if(ke.current.has(e.action_id))return;if(ke.current.add(e.action_id),ke.current.size>300){const e=Array.from(ke.current).slice(-200);ke.current.clear(),e.forEach(e=>ke.current.add(e))}let n;try{n=await async function(e){if("clear"===e.operation){if(!0!==e.confirmed)return{type:"failed",reason:"bad_request",message:"Please confirm before clearing the cart.",product_name:e.product_name};if(!(await async function(){const e=ym();try{return(await fetch(`${e}cart/clear.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json"}})).ok}catch{return!1}}()))return{type:"failed",reason:"network",message:"Could not clear the cart. Please try again."};const t=await Lm(),r=t?.total_price??0,n=t?.currency??"";return{type:"success",operation:"clear",previousQuantity:0,item_count:t?.item_count??0,total_price:r,total_price_major:Mm(r,n),currency:n}}if("set_note"===e.operation){const t=e.note??"",r=await async function(e){const t=ym();try{return(await fetch(`${t}cart/update.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({note:e})})).ok}catch{return!1}}(t);if(!r)return{type:"failed",reason:"network",message:"Could not update the cart note. Please try again."};const n=await Lm(),i=n?.total_price??0,a=n?.currency??"";return{type:"success",operation:"set_note",note:n?.note??t,previousQuantity:0,item_count:n?.item_count??0,total_price:i,total_price_major:Mm(i,a),currency:a}}const t=await Lm();if(!t)return{type:"failed",reason:"network",message:"Could not read cart. Please try again.",product_name:e.product_name};if(0===t.items.length)return{type:"failed",reason:"item_not_found",message:"Your cart is empty.",product_name:e.product_name};const r=function(e,t){const r=Dm(t.variant_id);if(r){const n=[];for(let t=0;t<e.length;t++)Dm(e[t].variant_id)===r&&n.push({item:e[t],lineIndex:t+1});if(1===n.length)return n[0];if(n.length>1){const e=Nm(n,t.selected_options);return 1===e.length?e[0]:Wm(e,"Multiple items match this variant. Which one do you mean?")}}const n=t.product_handle?.trim().toLowerCase()||zm(t.product_url)?.toLowerCase();if(n){const r=[];for(let t=0;t<e.length;t++)e[t].handle?.toLowerCase()===n&&r.push({item:e[t],lineIndex:t+1});if(1===r.length)return r[0];if(r.length>1){const e=Nm(r,t.selected_options);return 1===e.length?e[0]:Wm(e,"I found multiple variants of this product in your cart. Which one?")}}if(t.product_name){const r=t.product_name.trim().toLowerCase(),n=[];for(let t=0;t<e.length;t++){const i=e[t].product_title?.toLowerCase()||"",a=e[t].title?.toLowerCase()||"";(i.includes(r)||r.includes(i)||a.includes(r))&&n.push({item:e[t],lineIndex:t+1})}if(1===n.length)return n[0];if(n.length>1){const e=Nm(n,t.selected_options);return 1===e.length?e[0]:Wm(e,"Multiple items match that name. Which one do you mean?")}}return{type:"failed",reason:"item_not_found",message:"I couldn't find that item in your cart.",product_name:t.product_name}}(t.items,e);if("type"in r)return r;const{item:n,lineIndex:i}=r,a=n.quantity;let o;switch(e.operation){case"remove":o=0;break;case"set_quantity":o=null!=e.quantity&&e.quantity>=1?e.quantity:1;break;case"increment":o=n.quantity+1;break;case"decrement":o=n.quantity<=1?0:n.quantity-1;break;default:return{type:"failed",reason:"bad_request",message:`Unknown operation: ${e.operation}`,product_name:e.product_name}}if(!(await Fm(i,o)))return{type:"failed",reason:"network",message:"Could not update the cart. Please try again.",product_name:e.product_name||n.product_title};const s=await Lm(),l=s?.total_price??0,c=s?.currency??"";return{type:"success",operation:e.operation,product_name:e.product_name||n.product_title,variant_id:String(n.variant_id),previousQuantity:a,quantity:o,item_count:s?.item_count??0,total_price:l,total_price_major:Mm(l,c),currency:c}}(e.payload)}catch{n={type:"failed",reason:"network",message:"Could not update the cart right now. Please try again.",product_name:e.payload.product_name}}if("success"===n.type&&r&&bm(r)){Ce(n.item_count);const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:km(),threadId:t||j.threadId||void 0});e&&R(t=>({...t,threadId:e}))}"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(Te.current=!0),"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(null!==Ee.current&&window.clearTimeout(Ee.current),ze({productName:n.product_name||e.payload.product_name||"",variantId:n.variant_id||String(e.payload.variant_id||""),previousQuantity:n.previousQuantity,operation:n.operation}),Ee.current=window.setTimeout(()=>{ze(null),Ee.current=null},8e3)),"success"===n.type?_e.current.push(`DORI_INTERNAL_EVENT:cart_update_result:${JSON.stringify({action_id:e.action_id,operation:n.operation,product_name:n.product_name||e.payload.product_name||null,variant_id:n.variant_id||null,quantity:n.quantity??null,note:n.note??null,item_count:n.item_count,total_price:n.total_price_major,total_price_minor:n.total_price,currency:n.currency})}`):"needs_selection"===n.type?_e.current.push(`DORI_INTERNAL_EVENT:cart_update_needs_selection:${JSON.stringify({action_id:e.action_id,candidates:n.candidates,message:n.message})}`):_e.current.push(`DORI_INTERNAL_EVENT:cart_update_failed:${JSON.stringify({action_id:e.action_id,reason:n.reason,message:n.message,product_name:n.product_name||e.payload.product_name||null})}`),H.current||Oe()},[r,j.threadId,Oe]),Me=os.useCallback(e=>{R(t=>({...t,repliedProduct:e}))},[]),Le=os.useCallback(Bo("parseSuggestedReply",e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch(t){return console.error("Error parsing suggested reply:",t),[]}}),[]),Fe=os.useCallback(()=>{H.current&&(H.current.abort(),H.current=null),Te.current=!1,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type))},[]),Ne=os.useCallback(Ho("initializeBot",async e=>{if(!e||""===e.trim())return S("Invalid sharing ID provided"),void console.error("Invalid sharing ID provided");let t;_(!0),S(null);try{t=await new Promise((e,t)=>{const r=x();if(r)return console.log("[Dori Widget] Bot data already in localStorage"),void e(r);const n=()=>{const r=x();r?(a(),e(r)):(a(),t(new Error("Bot data event fired but no data in localStorage")))},i=e=>{const r=e,n=r.detail?.error||"Failed to load bot data";a(),t(new Error(n))},a=()=>{window.removeEventListener("dori-bot-data-ready",n),window.removeEventListener("dori-bot-data-error",i)};window.addEventListener("dori-bot-data-ready",n),window.addEventListener("dori-bot-data-error",i),setTimeout(()=>{a(),t(new Error("Timeout waiting for bot data"))},2e4)})}catch(o){const e=o instanceof Error?o.message:"Failed to load bot data";return S(e),console.error("[Dori Widget] Failed to load bot data:",o),void _(!1)}if(!t)return S("No bot data received"),console.error("[Dori Widget] No bot data received"),void _(!1);g();const r=t.suggestedReplyByLanguage;let i;if(r){const e="string"==typeof r?(()=>{try{return JSON.parse(r)}catch{return{}}})():r;i=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Le(t)]))}const a={...t,sharing_id:e,suggestedReply:Le(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}};n(a),_(!1),D("initial-greeting")}),[Le]),We=os.useCallback(Bo("addWelcomeMessage",()=>{const e=Um(E),t={id:`${Date.now()}-welcome-${Math.random().toString(36).slice(2,8)}`,type:"welcome",timestamp:new Date,content:r?.wellcomeMessage||e.imHereToHelp};I(e=>[...e,t])}),[r?.wellcomeMessage,E]);os.useEffect(()=>{if(!r||!bm(r))return;Lm().then(e=>{null!=e?.item_count&&Ce(e.item_count)}).catch(()=>{}),async function(){if("undefined"!=typeof window&&!_m){_m=!0;try{const e=ym(),t=km(),r=await fetch(`${e}cart.js`,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!r.ok)return;const n=await r.json(),i=n?.attributes||{};if(i._dori_visitor_id===t)return;await fetch(`${e}cart/update.js`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({attributes:{...i,_dori_visitor_id:t}})})}catch{}finally{_m=!1}}}();const e=km();return function(){if("undefined"==typeof window)return()=>{};let t=null;const n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{(async()=>{const t=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:j.threadId,src:"undefined"!=typeof window?window.location.href:""});t&&R(e=>e.threadId===t?e:{...e,threadId:t});try{const e=await Lm();e&&Ce(e.item_count)}catch{}})()},700)},i=window.fetch.bind(window);window.fetch=async(...e)=>{const t=await i(...e);try{const t=e[0],r=e[1];Sm((r?.method||(t instanceof Request?t.method:"GET")||"GET").toString(),"string"==typeof t?t:t instanceof URL?t.toString():t.url)&&n()}catch{}return t};const a=XMLHttpRequest.prototype.open,o=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(e,t,r,n,i){return this.__doriCartMethod=e,this.__doriCartUrl=String(t||""),a.call(this,e,t,r??!0,n,i)},XMLHttpRequest.prototype.send=function(e){return this.addEventListener("loadend",()=>{try{Sm(String(this.__doriCartMethod||"GET"),String(this.__doriCartUrl||""))&&n()}catch{}}),o.call(this,e)},()=>{window.fetch=i,XMLHttpRequest.prototype.open=a,XMLHttpRequest.prototype.send=o,null!==t&&window.clearTimeout(t)}}()},[r,j.threadId]);const $e=os.useCallback(Ho("sendMessage",async({message:e,imageUrl:t,apiMessage:n,silent:i},a)=>{if(!r||M&&!i)return;let o=n||e;if(!o||!o.trim())return;if(B(!0),!i&&!ve.current){ve.current=!0;const e=mm();e&&!o.includes("[USER_PAGE_CONTEXT:")&&(o=e+o)}const s=Um(E);if(!i){const r={id:`${Date.now()}-user-${Math.random().toString(36).slice(2,8)}`,type:"user",content:e,timestamp:new Date,repliedProduct:a,imageUrl:t};I(e=>[...e.filter(e=>"suggestions"!==e.type),r]);const n=oe.current,i=se.current;n&&i&&Date.now()-i<=3e4&&(Wo("nudge.in_chat.user_typed_after",{nudge_position:n}),oe.current=null,se.current=null),K&&(X(null),J(null))}if(H.current){if(i)return void _e.current.unshift(o);H.current.abort(),H.current=null}D("thinking"),L(!0),N("generating"),R(e=>({...e,isRequestInProgress:!0})),H.current=new AbortController;const l={id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:s.typing,timestamp:new Date};i||I(e=>[...e,l]),a&&(o=`this message is replied to product with id ${a.id}: ${e}`);let c,u="",d=null,p=[],h=null,x=[];const k=bm(r),_=k?km():void 0;let w=j.threadId;try{if(k&&!w&&_){const e=await wm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:_,src:"undefined"!=typeof window?window.location.href:""});e&&(w=e,R(t=>({...t,threadId:e})))}await om(o,r,w,e=>{Bo("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",e),e.thread_id){console.log("[StreamChatResponse] thread_id received:",e.thread_id),e.thread_id!==j.threadId&&g(),m(e.thread_id),v(e.thread_id),R(t=>({...t,threadId:e.thread_id||null}));const t=e.thread_id;if(t&&!be.current.has(t)){const e=pm.SHOPIFY,r=ye.current?.sharing_id||f();if(r){be.current.add(t);const n=window.DORI_CUSTOMER_ID,i=null!=n?String(n):void 0;um(t,r,e,b(),i,km())}}}if("shopify_add_to_cart"===e.action?.type&&Ie(e.action,e.thread_id||w||j.threadId),"shopify_update_cart"===e.action?.type&&De(e.action,e.thread_id||w||j.threadId),e.wait)console.log("[StreamChatResponse] wait received, creating new message session"),d&&u.trim()&&I(e=>e.map(e=>e.id===d?.id?{...e,content:y(u)}:e)),d=null,u="",p=[],c=void 0,h=null,I(t=>[...t.filter(e=>"loading"!==e.type),{id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:Bm(e.tool_name,s),timestamp:new Date}]);else if(e.text){console.log("[StreamChatResponse] text chunk received:",e.text),u+=e.text;const t=y(u);if(d)console.log("[StreamChatResponse] Updating existing bot message with:",t),I(e=>e.map(e=>e.id===d?.id?{...e,content:t}:e));else{if(!t)return;console.log("[StreamChatResponse] Creating new bot message:",t);const e=Te.current;e&&(Te.current=!1);const r={id:`${Date.now()}-dori-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:t,timestamp:new Date,...e&&{showCartActions:!0}};I(e=>[...e.filter(e=>"loading"!==e.type),r]),d=r}}else if(e.products&&e.products.length>0){console.log("[StreamChatResponse] products received:",e.products),g(),p=[...p,...e.products],e.shape&&(c=e.shape);const t=h||`${Date.now()}-products-${Math.random().toString(36).slice(2,8)}`;h=t,I(r=>{const n=[...r.filter(e=>"loading"!==e.type&&e.id!==t)],i=n.findIndex(e=>e.id===d?.id),a={id:t,type:"products",content:"Recommended Products:",timestamp:new Date,products:p,shape:c,tool_call_id:e.products?.[0]?.tool_call_id||""};return-1!==i?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),n.splice(i+1,0,a)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),n.push(a)),n}),console.log("Products accumulated and displayed:",p)}else e.suggestions&&e.suggestions.length>0&&(x=[...x,...e.suggestions])})()},e=>{if(H.current?.signal.aborted)return H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type)),void Oe();const t=e.includes("exceeded the request limit")||e.includes("rate limit")?s.rateLimitError:e;I(e=>[...e.filter(e=>"loading"!==e.type),{id:`${Date.now()}-error-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:t,timestamp:new Date}]),H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),Oe()},()=>{x.length>0&&I(e=>{const t=[...e.filter(e=>"suggestions"!==e.type&&"loading"!==e.type)],r=t.findIndex(e=>e.id===d?.id),n={id:`${Date.now()}-suggestions-${Math.random().toString(36).slice(2,8)}`,type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:x};return-1!==r?t.splice(r+1,0,n):t.push(n),t}),H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),Oe()},H.current,t,_)}catch(S){H.current?.signal.aborted||"AbortError"===S.name?(H.current=null,R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),D("ongoing"),I(e=>e.filter(e=>"loading"!==e.type)),Oe()):(console.error("Error in sendMessage:",S),I(e=>[...e.filter(e=>"loading"!==e.type),{id:`${Date.now()}-error-${Math.random().toString(36).slice(2,8)}`,type:"dori",content:s.errorOccurred,timestamp:new Date}]),D("ongoing"),R(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),L(!1),N("starting"),H.current=null,Oe())}}),[r,M,j.threadId,Ie,De,Oe]);os.useEffect(()=>{we.current=$e},[$e]);const Be=os.useCallback(()=>{H.current&&(H.current.abort(),H.current=null),h(),I([]),D("welcome"),L(!1),N("starting"),R({repliedProduct:null,threadId:null,isRequestInProgress:!1}),ke.current.clear(),_e.current=[],Te.current=!1},[]),He=os.useCallback(e=>{n(t=>t?{...t,...e}:null)},[]),Ve=os.useMemo(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")},[]),Ue=os.useCallback(async(e,t,r)=>{if(!Ve)return;const n=j.threadId;if(!n)return;const i=document.querySelector("script#dori-side-widget"),a=i?.getAttribute("data-sharing-id")||"",o=O.filter(e=>"dori"===e.type)[e];if(!o)return;const s=o.feedback;I(e=>e.map(e=>e.id===o.id?{...e,feedback:{rating:t,feedbackText:r}}:e));try{const i=await fetch(am.messageFeedback,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({thread_id:n,sharing_id:a,message_index:e,rating:t,feedback_text:r??null})});if(!i.ok)throw new Error(`Server responded with ${i.status}`)}catch(l){console.error("[Dori Widget] Failed to submit feedback:",l),I(e=>e.map(e=>e.id===o.id?{...e,feedback:s}:e))}},[j.threadId,Ve,O]),qe={botData:r,isLoadingBot:k,botError:w,chatState:j,messages:O,currentStep:A,isInputDisabled:M,inputState:F,cartItemCount:Se,cartUndoState:Pe,dismissCartUndo:je,handleCartUndo:Re,addToCartDirect:Ae,initializeBot:Ne,sendMessage:$e,stopCurrentRequest:Fe,setCurrentStep:D,setInputState:N,messagesEndRef:W,addWelcomeMessage:We,setRepliedProduct:Me,resetBot:Be,updateBotData:He,setAutoScrollEnabled:B,dynamicWelcomeMessage:U,pendingBubbleSuggestion:Y,setPendingBubbleSuggestion:G,proactiveChips:K,proactiveChipsPosition:Z,setProactiveChips:ie,dismissProactiveChips:ae,proactiveSuppressedThisSession:re,suppressProactiveForSession:le,dynamicFollowupNudgeMessage:ee,setDynamicFollowupNudgeMessage:te,diagnosticFlow:ce,diagnosticShown:de,markDiagnosticShown:he,isTestMode:Ve,submitFeedback:Ue,effectiveLanguage:E,effectiveSuggestedReplies:T};return ts.jsx(Qm.Provider,{value:qe,children:e})}function Xm(){const e=os.useContext(Qm);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}const Zm=()=>{const{effectiveLanguage:e}=Xm(),t=e||"English",r=Um(t);return{t:e=>r[e],language:t,translations:r}};function Jm(e,t){const r={white:"255, 255, 255",black:"0, 0, 0",transparent:"0, 0, 0"};if(r[e.toLowerCase()])return`rgba(${r[e.toLowerCase()]}, ${t})`;let n=e.replace("#","");return 3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length?e:`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`}function ev(e,t){let r=e.replace("#","");if(3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length)return e;const n=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgb(${Math.min(255,Math.round(n+t/100*(255-n)))}, ${Math.min(255,Math.round(i+t/100*(255-i)))}, ${Math.min(255,Math.round(a+t/100*(255-a)))})`}function tv(e,t){if("black"===e.toLowerCase())return e;if("white"===e.toLowerCase()){const e=255-Math.round(t/100*255);return`rgb(${e}, ${e}, ${e})`}let r=e.replace("#","");if(3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length)return e;const n=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgb(${Math.max(0,Math.round(n*(1-t/100)))}, ${Math.max(0,Math.round(i*(1-t/100)))}, ${Math.max(0,Math.round(a*(1-t/100)))})`}function rv(e,t,r=.5){const n=e=>{if("white"===e.toLowerCase())return[255,255,255];if("black"===e.toLowerCase())return[0,0,0];let t=e.replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length?[0,0,0]:[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]},[i,a,o]=n(e),[s,l,c]=n(t);return`rgb(${Math.round(i*(1-r)+s*r)}, ${Math.round(a*(1-r)+l*r)}, ${Math.round(o*(1-r)+c*r)})`}function nv(e){const t=Array.isArray(e)?e[0]:e;return`linear-gradient(126deg, ${tv(t,5)} 16%, ${ev(t,10)} 88%)`}const iv=Gg({displayName:"CloseIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M6.26915 5.7309C5.98798 5.44973 5.53209 5.44973 5.25092 5.7309C4.96975 6.01207 4.96975 6.46796 5.25092 6.74913L10.5018 12L5.25092 17.2509C4.96975 17.5321 4.96975 17.9879 5.25092 18.2691C5.53209 18.5503 5.98798 18.5503 6.26915 18.2691L11.52 13.0183L16.7709 18.2691C17.0521 18.5503 17.5079 18.5503 17.7891 18.2691C18.0703 17.9879 18.0703 17.5321 17.7891 17.2509L12.5383 12L17.7891 6.74913C18.0703 6.46796 18.0703 6.01207 17.7891 5.7309C17.5079 5.44973 17.0521 5.44973 16.7709 5.7309L11.52 10.9817L6.26915 5.7309Z",fill:"currentColor"})}),av=Gg({displayName:"ExpandIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z",fill:"currentColor"})}),ov=Gg({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16536 1.81467C7.16536 0.791333 5.9427 0.263999 5.1987 0.965999L1.30003 4.64C1.15132 4.78022 1.03284 4.94936 0.951856 5.13703C0.870874 5.3247 0.829102 5.52694 0.829102 5.73133C0.829102 5.93573 0.870874 6.13797 0.951856 6.32563C1.03284 6.5133 1.15132 6.68244 1.30003 6.82267L5.19736 10.5C5.94136 11.202 7.1647 10.674 7.1647 9.65133V8.33467C7.93731 8.19507 8.73376 8.28024 9.45939 8.58006C10.185 8.87989 10.8093 9.38175 11.258 10.026L11.7927 10.794C12.5207 11.84 14.162 11.3247 14.162 10.0507V9.738C14.162 5.89267 10.9394 2.87667 7.1647 3.05733L7.16536 1.81467ZM5.8847 1.69333C5.90839 1.67111 5.93807 1.6563 5.97007 1.65072C6.00208 1.64514 6.03501 1.64904 6.06483 1.66193C6.09465 1.67482 6.12005 1.69614 6.13791 1.72328C6.15577 1.75042 6.16531 1.78218 6.16536 1.81467V3.54C6.16536 3.87333 6.45736 4.132 6.78803 4.092C10.1767 3.68 13.1627 6.32467 13.1627 9.73867V10.0507C13.1627 10.3453 12.7827 10.4647 12.614 10.2227L12.0787 9.45467C11.4785 8.5928 10.6268 7.93727 9.63996 7.57763C8.65317 7.21799 7.5794 7.17179 6.56536 7.44533C6.45052 7.47639 6.34911 7.54442 6.27681 7.6389C6.2045 7.73337 6.16534 7.84903 6.16536 7.968V9.65067C6.16531 9.68315 6.15577 9.71492 6.13791 9.74205C6.12005 9.76919 6.09465 9.79051 6.06483 9.8034C6.03501 9.81629 6.00208 9.82019 5.97007 9.81461C5.93807 9.80903 5.90839 9.79422 5.8847 9.772L1.9867 6.09533C1.93716 6.04859 1.8977 5.99223 1.87072 5.92969C1.84375 5.86716 1.82984 5.79977 1.82984 5.73167C1.82984 5.66356 1.84375 5.59618 1.87072 5.53364C1.8977 5.4711 1.93716 5.41474 1.9867 5.368L5.8847 1.69333Z",fill:"currentColor"})}),sv=Gg({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:ts.jsx("path",{d:"M4.56503 3.915C5.11896 2.73832 6.04737 1.77849 7.20497 1.18572C8.36257 0.592947 9.68402 0.400681 10.9625 0.63901C12.2411 0.877339 13.4045 1.53281 14.2708 2.50286C15.137 3.4729 15.6573 4.70277 15.75 6C15.8332 7.19515 15.548 8.38706 14.9329 9.41516C14.3178 10.4433 13.4024 11.2581 12.31 11.75C11.9379 12.672 11.3425 13.4871 10.5774 14.122C9.81221 14.7569 8.90126 15.1917 7.92642 15.3873C6.95158 15.5829 5.94341 15.5332 4.99255 15.2426C4.04169 14.952 3.17794 14.4297 2.47896 13.7226C1.77998 13.0155 1.26768 12.1458 0.988107 11.1916C0.708538 10.2375 0.670468 9.2288 0.877321 8.25629C1.08417 7.28377 1.52946 6.37791 2.17316 5.62013C2.81685 4.86235 3.63877 4.27641 4.56503 3.915ZM9.90503 1.5H9.60503C8.52019 1.56681 7.48862 1.99351 6.67357 2.71256C5.85852 3.43161 5.30656 4.40195 5.10503 5.47L10.675 1.565C10.4205 1.52309 10.163 1.50136 9.90503 1.5ZM11.905 1.93L5.33003 6.555L5.06003 6.745C5.11592 7.4665 5.33108 8.16663 5.69003 8.79499L13.565 3.155C13.1023 2.63199 12.5329 2.21427 11.895 1.93H11.905ZM14.145 3.97L6.25003 9.60999C6.70986 10.1331 7.27572 10.5524 7.91003 10.84L14.75 5.82C14.6759 5.16869 14.47 4.53927 14.145 3.97ZM14.75 7.065L9.10503 11.2C9.4681 11.2629 9.83728 11.283 10.205 11.26C11.33 11.1916 12.3968 10.7368 13.225 9.97234C14.0532 9.20793 14.5919 8.1809 14.75 7.065ZM6.75003 14.5C7.59348 14.4958 8.42238 14.2798 9.16061 13.8718C9.89883 13.4638 10.5227 12.8769 10.975 12.165C10.7406 12.2117 10.5035 12.2434 10.265 12.26H9.90003C8.40699 12.257 6.97069 11.6876 5.88117 10.6668C4.79165 9.64592 4.13007 8.24969 4.03003 6.76C4.00121 6.25734 4.03819 5.75307 4.14003 5.26C3.22219 5.83357 2.51524 6.68948 2.12538 7.69915C1.73553 8.70883 1.68382 9.81774 1.97803 10.8593C2.27224 11.9009 2.89648 12.8189 3.75697 13.4754C4.61746 14.1318 5.66774 14.4914 6.75003 14.5Z",fill:"currentColor"})}),lv=Gg({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("path",{d:"M8 2.66683C5.42267 2.66683 3.33333 4.75617 3.33333 7.3335H2C2 4.01979 4.68629 1.3335 8 1.3335C11.3137 1.3335 14 4.01979 14 7.3335C14 8.75016 13.509 10.0522 12.6879 11.0786L14.8047 13.1954L13.8619 14.1382L11.7451 12.0214C10.7187 12.8425 9.41667 13.3335 8 13.3335V12.0002C10.5773 12.0002 12.6667 9.91083 12.6667 7.3335C12.6667 4.75617 10.5773 2.66683 8 2.66683Z",fill:"currentColor"}),ts.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),cv=Gg({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),ts.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),uv=Gg({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5858 11.0002C15.3669 10.2191 16.6332 10.2191 17.4143 11.0002L20.3738 13.9597C20.7643 14.3502 20.7643 14.9834 20.3738 15.3739C19.9833 15.7644 19.3501 15.7644 18.9596 15.3739L17 13.4144V21.0002C17 21.5524 16.5523 22.0002 16 22.0002C15.4478 22.0002 15 21.5524 15 21.0002V13.4144L13.0405 15.3739C12.65 15.7644 12.0168 15.7645 11.6263 15.3739C11.2358 14.9834 11.2358 14.3502 11.6263 13.9597L14.5858 11.0002Z",fill:"white"})]})}),dv=Gg({displayName:"ArrowLeftIcon",viewBox:"0 0 32 32",path:ts.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0002 17.4139C10.2191 16.6329 10.2191 15.3665 11.0002 14.5855L13.9597 11.6259C14.3502 11.2354 14.9834 11.2354 15.3739 11.6259C15.7644 12.0165 15.7644 12.6496 15.3739 13.0401L13.4144 14.9997H21.0002C21.5524 14.9997 22.0002 15.4474 22.0002 15.9997C22.0002 16.552 21.5524 16.9997 21.0002 16.9997H13.4144L15.3739 18.9592C15.7644 19.3498 15.7645 19.9829 15.3739 20.3735C14.9834 20.764 14.3502 20.764 13.9597 20.3735L11.0002 17.4139Z",fill:"currentColor"})}),pv=Gg({displayName:"ReloadIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M19.146 4.854l-1.489 1.489A8 8 0 1 0 12 20a8.094 8.094 0 0 0 7.371-4.886 1 1 0 1 0-1.842-.779A6.071 6.071 0 0 1 12 18a6 6 0 1 1 4.243-10.243l-1.39 1.39a.5.5 0 0 0 .354.854H19.5A.5.5 0 0 0 20 9.5V5.207a.5.5 0 0 0-.854-.353z",fill:"currentColor"})}),fv=Gg({displayName:"CartBagIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M16 7C16 5.4 14.9 4 13.5 4H10.5C9.1 4 8 5.4 8 7H5C4.448 7 4 7.448 4 8V19C4 19.552 4.448 20 5 20H19C19.552 20 20 19.552 20 19V8C20 7.448 19.552 7 19 7H16ZM10.5 6H13.5C13.776 6 14 6.4 14 7H10C10 6.4 10.224 6 10.5 6ZM18 18H6V9H8V10.5C8 11.052 8.448 11.5 9 11.5C9.552 11.5 10 11.052 10 10.5V9H14V10.5C14 11.052 14.448 11.5 15 11.5C15.552 11.5 16 11.052 16 10.5V9H18V18Z",fill:"currentColor"})}),hv=Gg({displayName:"ArrowRightIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M12.293 5.293C12.684 4.902 13.316 4.902 13.707 5.293L19.707 11.293C20.098 11.684 20.098 12.316 19.707 12.707L13.707 18.707C13.316 19.098 12.684 19.098 12.293 18.707C11.902 18.316 11.902 17.684 12.293 17.293L16.586 13H5C4.448 13 4 12.552 4 12C4 11.448 4.448 11 5 11H16.586L12.293 6.707C11.902 6.316 11.902 5.684 12.293 5.293Z",fill:"currentColor"})}),gv=Gg({displayName:"AiBigIcon",viewBox:"0 0 24 24",path:ts.jsx("path",{d:"M18.423 9.97031L16.7505 10.5726C15.8336 10.903 15.0009 11.4317 14.3118 12.1208C13.6226 12.81 13.094 13.6427 12.7635 14.5596L12.1613 16.2321C12.1492 16.2651 12.1272 16.2936 12.0984 16.3137C12.0695 16.3339 12.0352 16.3447 12 16.3447C11.9649 16.3447 11.9305 16.3339 11.9017 16.3137C11.8728 16.2936 11.8509 16.2651 11.8388 16.2321L11.2365 14.5596C10.9061 13.6427 10.3774 12.81 9.68826 12.1208C8.99911 11.4317 8.16641 10.903 7.24953 10.5726L5.57703 9.97031C5.544 9.9582 5.51549 9.93624 5.49535 9.9074C5.47521 9.87856 5.46441 9.84423 5.46441 9.80906C5.46441 9.77388 5.47521 9.73955 5.49535 9.71071C5.51549 9.68188 5.544 9.65992 5.57703 9.64781L7.24953 9.04556C8.16641 8.7151 8.99911 8.18645 9.68826 7.49729C10.3774 6.80814 10.9061 5.97544 11.2365 5.05856L11.8388 3.38606C11.8509 3.35303 11.8728 3.32452 11.9017 3.30438C11.9305 3.28424 11.9649 3.27344 12 3.27344C12.0352 3.27344 12.0695 3.28424 12.0984 3.30438C12.1272 3.32452 12.1492 3.35303 12.1613 3.38606L12.7635 5.05856C13.094 5.97544 13.6226 6.80814 14.3118 7.49729C15.0009 8.18645 15.8336 8.7151 16.7505 9.04556L18.423 9.64781C18.4564 9.65958 18.4853 9.68141 18.5057 9.71029C18.5261 9.73917 18.5371 9.77368 18.5371 9.80906C18.5371 9.84443 18.5261 9.87894 18.5057 9.90782C18.4853 9.9367 18.4564 9.95853 18.423 9.97031ZM22.4423 17.4988L21.5955 17.8041C21.1313 17.9715 20.7097 18.2393 20.3607 18.5883C20.0118 18.9372 19.744 19.3588 19.5765 19.8231L19.2713 20.6698C19.2652 20.6866 19.254 20.7011 19.2394 20.7113C19.2248 20.7216 19.2074 20.727 19.1895 20.727C19.1717 20.727 19.1543 20.7216 19.1396 20.7113C19.125 20.7011 19.1139 20.6866 19.1078 20.6698L18.8025 19.8231C18.635 19.3588 18.3673 18.9372 18.0183 18.5883C17.6694 18.2393 17.2478 17.9715 16.7835 17.8041L15.9368 17.4988C15.92 17.4927 15.9055 17.4816 15.8953 17.467C15.885 17.4523 15.8795 17.4349 15.8795 17.4171C15.8795 17.3992 15.885 17.3818 15.8953 17.3672C15.9055 17.3525 15.92 17.3414 15.9368 17.3353L16.7835 17.0301C17.2478 16.8626 17.6694 16.5948 18.0183 16.2459C18.3673 15.8969 18.635 15.4753 18.8025 15.0111L19.1078 14.1643C19.1139 14.1475 19.125 14.133 19.1396 14.1228C19.1543 14.1126 19.1717 14.1071 19.1895 14.1071C19.2074 14.1071 19.2248 14.1126 19.2394 14.1228C19.254 14.133 19.2652 14.1475 19.2713 14.1643L19.5765 15.0111C19.744 15.4753 20.0118 15.8969 20.3607 16.2459C20.7097 16.5948 21.1313 16.8626 21.5955 17.0301L22.4423 17.3353C22.4591 17.3414 22.4735 17.3525 22.4838 17.3672C22.494 17.3818 22.4995 17.3992 22.4995 17.4171C22.4995 17.4349 22.494 17.4523 22.4838 17.467C22.4735 17.4816 22.4591 17.4927 22.4423 17.4988ZM8.06253 17.4988L7.21578 17.8041C6.75155 17.9715 6.32995 18.2393 5.98098 18.5883C5.63201 18.9372 5.36426 19.3588 5.19678 19.8231L4.89153 20.6698C4.88542 20.6866 4.8743 20.7011 4.85967 20.7113C4.84505 20.7216 4.82763 20.727 4.80978 20.727C4.79192 20.727 4.7745 20.7216 4.75988 20.7113C4.74525 20.7011 4.73413 20.6866 4.72803 20.6698L4.42278 19.8231C4.2553 19.3588 3.98754 18.9372 3.63858 18.5883C3.28961 18.2393 2.86801 17.9715 2.40378 17.8041L1.55703 17.4988C1.54025 17.4927 1.52576 17.4816 1.51552 17.467C1.50528 17.4523 1.49979 17.4349 1.49979 17.4171C1.49979 17.3992 1.50528 17.3818 1.51552 17.3672C1.52576 17.3525 1.54025 17.3414 1.55703 17.3353L2.40378 17.0301C2.86801 16.8626 3.28961 16.5948 3.63858 16.2459C3.98754 15.8969 4.2553 15.4753 4.42278 15.0111L4.72803 14.1643C4.73413 14.1475 4.74525 14.133 4.75988 14.1228C4.7745 14.1126 4.79192 14.1071 4.80978 14.1071C4.82763 14.1071 4.84505 14.1126 4.85967 14.1228C4.8743 14.133 4.88542 14.1475 4.89153 14.1643L5.19678 15.0111C5.36426 15.4753 5.63201 15.8969 5.98098 16.2459C6.32995 16.5948 6.75155 16.8626 7.21578 17.0301L8.06253 17.3353C8.13903 17.3631 8.13903 17.4718 8.06253 17.4988Z",fill:"currentColor"})});Gg({displayName:"AiRainbowIconBase",viewBox:"0 0 24 24",path:ts.jsxs(ts.Fragment,{children:[ts.jsx("g",{clipPath:"url(#clip0_497_8063)",children:ts.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:"url(#paint0_linear_497_8063)"})}),ts.jsxs("defs",{children:[ts.jsxs("linearGradient",{id:"paint0_linear_497_8063",x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[ts.jsx("stop",{stopColor:"#FF7E90"}),ts.jsx("stop",{offset:"0.463542",stopColor:"#A939FF"}),ts.jsx("stop",{offset:"1",stopColor:"#0020FF"})]}),ts.jsx("clipPath",{id:"clip0_497_8063",children:ts.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})});const mv=e=>{const t=Ag("colors","primary"),[r,n,i]=function(e){const t=Array.isArray(e)?e[0]:e;return[ev(t,15),t,tv(t,10)]}(t),a=ss.useMemo(()=>`rainbow-gradient-${Math.random().toString(36).substr(2,9)}`,[]),{w:o,width:s,transform:l}=e,c="string"==typeof o?o:"string"==typeof s?s:"number"==typeof o?`${o}px`:"number"==typeof s?`${s}px`:"24px";return ts.jsx(eu,{position:"relative",display:"inline-block",width:c,height:c,transform:l,children:ts.jsxs("svg",{viewBox:"0 0 24 24",width:c,height:c,style:{display:"block"},children:[ts.jsxs("defs",{children:[ts.jsxs("linearGradient",{id:a,x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[ts.jsx("stop",{stopColor:r}),ts.jsx("stop",{offset:"0.463542",stopColor:n}),ts.jsx("stop",{offset:"1",stopColor:i})]}),ts.jsx("clipPath",{id:`clip-${a}`,children:ts.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),ts.jsx("g",{clipPath:`url(#clip-${a})`,children:ts.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:`url(#${a})`})})]})})},vv=""+new URL("dori.ico",import.meta.url).href,bv=({onClose:e,isMobile:t=!1,isExpanded:r=!1,onToggleExpand:n,onReload:i})=>{const{botData:a,cartItemCount:o}=Xm(),{t:s}=Zm(),l=bm(a)&&o>0;return ts.jsxs(Qg,{justify:"space-between",align:"center",flexShrink:0,children:[ts.jsx(Kg,{src:a?.bot_image?a?.bot_image:vv,alt:"",role:"presentation",w:"40px",h:"40px",borderRadius:"50%"}),ts.jsxs(em,{gap:3,children:[l&&ts.jsxs(Hg,{variant:"outline",size:"sm",borderRadius:"4px",px:2,height:"auto",lineHeight:"1.5",border:"none",color:"text",bgColor:"lightBackground",_hover:{bgColor:"veryLightBackground"},padding:"5px 9px",onClick:()=>{window.open(`${ym()}cart`,"_blank","noopener,noreferrer")},fontFamily:"system-ui, sans-serif",children:[ts.jsx(fv,{boxSize:"16px",color:"text"}),ts.jsx(Cu,{fontSize:"13px",fontWeight:"500",color:"text",children:o})]}),!t&&n&&ts.jsxs(Hg,{variant:"outline",size:"sm",borderRadius:"4px",px:3,height:"auto",lineHeight:"1.5",border:"none",color:"text",bgColor:"lightBackground",_hover:{bgColor:"veryLightBackground"},padding:"5px 9px",onClick:()=>n?.(),fontFamily:"system-ui, sans-serif",children:[ts.jsx(av,{boxSize:"16px",color:"text"}),s(r?"minimize":"showFullScreen")]}),i&&ts.jsx(Vg,{size:"sm",variant:"ghost","aria-label":s("reload"),onClick:i,color:"text",_hover:{bgColor:"mutedText"},children:ts.jsx(pv,{boxSize:t?"16px":"24px",color:"text"})}),ts.jsx(Vg,{size:"sm",variant:"ghost","aria-label":s("close"),onClick:()=>{r&&n?.(),e()},color:"text",_hover:{bgColor:"mutedText"},children:ts.jsx(iv,{boxSize:t?"16px":"24px",color:"text"})})]})]})};class yv{static async getUploadCredentials(e){const t={file_extension:e,expires_in:3600,content_length_range:{min_bytes:1024,max_bytes:10485760}},r=await fetch(am.getUploadUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:t})});if(!r.ok)throw new Error(`Failed to get upload credentials: ${r.status} ${r.statusText}`);return await r.json()}static async compressImage(e,t=1024,r=.8){return new Promise(n=>{const i=document.createElement("canvas"),a=i.getContext("2d"),o=new Image;o.onload=()=>{const{width:s,height:l}=this.calculateDimensions(o.width,o.height,t);i.width=s,i.height=l,a.drawImage(o,0,0,s,l),i.toBlob(t=>{const a=new File([t],e.name,{type:"image/jpeg",lastModified:Date.now()});n({file:a,preview:i.toDataURL("image/jpeg",r),format:"jpeg"})},"image/jpeg",r)},o.src=URL.createObjectURL(e)})}static getFileExtension(e){const t=e.name.split(".").pop()?.toLowerCase();switch(t){case"jpg":case"jpeg":default:return"jpeg";case"webp":return"webp";case"png":return"png";case"heic":return"heic"}}static calculateDimensions(e,t,r){if(e<=r)return{width:e,height:t};const n=t/e;return{width:r,height:Math.round(r*n)}}static async uploadImage(e,t){const r=new FormData;Object.entries(e.fields).forEach(([e,t])=>{r.append(e,t)}),r.append("file",t);const n=await fetch(e.url,{method:"POST",body:r});if(!n.ok&&204!==n.status)throw new Error("Error uploading image");return e.public_url}}const xv=()=>{const[e,t]=os.useState(null),[r,n]=os.useState(!1);return{uploadedImage:e,isUploading:r,handleFileSelect:()=>{const e=document.createElement("input");e.type="file",e.accept="image/jpeg,image/jpg,image/webp,image/png,image/heic",e.onchange=e=>{const r=e.target.files?.[0];r&&(async e=>{try{n(!0);const r=await yv.compressImage(e),i=await yv.getUploadCredentials(r.format),a=await yv.uploadImage(i,r.file);t({url:a,preview:r.preview,name:e.name,size:r.file.size})}catch(r){console.error("Upload failed:",r),alert("Failed to upload image")}finally{n(!1)}})(r)},e.click()},removeImage:()=>{e?.preview&&URL.revokeObjectURL(e.preview),t(null)}}};var kv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_v=ss.createContext&&ss.createContext(kv),wv=["attr","size","title"];function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sv.apply(this,arguments)}function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i),i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zv(e){return e&&e.map((e,t)=>ss.createElement(e.tag,Pv({key:t},e.attr),zv(e.child)))}function Ev(e){return t=>ss.createElement(Tv,Sv({attr:Pv({},e.attr)},t),zv(e.child))}function Tv(e){var t=t=>{var r,{attr:n,size:i,title:a}=e,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,wv),s=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),ss.createElement("svg",Sv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:r,style:Pv(Pv({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&ss.createElement("title",null,a),e.children)};return void 0!==_v?ss.createElement(_v.Consumer,null,e=>t(e)):t(kv)}function jv(e){return Ev({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"},child:[]}]})(e)}const Rv=({imageUrl:e,onRemove:t})=>ts.jsxs("div",{style:{position:"relative",display:"inline-block",background:"transparent"},children:[ts.jsx(Kg,{src:e,alt:"Uploaded image",w:"80px",h:"80px",borderRadius:"12px",objectFit:"cover",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.11)"}),ts.jsx(Vg,{position:"absolute",top:"6px",right:"6px",bg:"primary","aria-label":"Remove image",onClick:t,size:"sm",borderRadius:"50%",minW:"24px",h:"24px",children:ts.jsx(iv,{boxSize:"14px",filter:"brightness(0) invert(1) drop-shadow(0 0 1px white)"})})]}),Ov=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n,isMobileView:i})=>{const{chatState:{repliedProduct:a},setRepliedProduct:o}=Xm(),[s,l]=os.useState(t),{uploadedImage:c,isUploading:u,handleFileSelect:d,removeImage:p}=xv();os.useEffect(()=>{l(h(t))},[t]);const f=e=>{(s.trim()||e||c)&&(n?.({message:e??s.trim(),imageUrl:c?.url},a?.product),o?.(null),l(""),p())},h=e=>e.trimStart();return ts.jsxs(tm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:[c&&ts.jsx(eu,{position:"absolute",bottom:a?i?"300px":"190px":"90px",left:"12px",zIndex:1e6,bg:"transparent",pointerEvents:"auto",children:ts.jsx(Rv,{imageUrl:c.preview,onRemove:p})}),ts.jsx(eu,{bgColor:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:a?i?"300px":"190px":"90px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ts.jsxs(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[a&&ts.jsxs(tm,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",borderColor:"borderColor",bgColor:"lightBackground",children:[ts.jsxs(em,{justify:"space-between",align:"center",w:"full",children:[ts.jsx(Kg,{src:a?.product?.image,alt:"product",w:"40px",h:"40px"}),ts.jsx(Cu,{fontSize:"12px",fontWeight:400,color:"text",children:a?.product?.name}),ts.jsx(Vg,{bg:"transparent","aria-label":"Remove product",onClick:()=>o?.(null),children:ts.jsx(iv,{boxSize:"24px",color:"text"})})]}),a?.suggestions&&a.suggestions.length>0&&ts.jsxs(ts.Fragment,{children:[ts.jsx(eu,{display:{base:"none",md:"block"},w:"full",children:ts.jsx(em,{w:"full",justify:"flex-start",align:"center",gap:2,children:a.suggestions.map(e=>ts.jsx(Hg,{variant:"outline",bg:"transparent",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),h:"32px",px:3,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:ts.jsx(eu,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),ts.jsx(eu,{display:{base:"block",md:"none"},w:"full",children:ts.jsx(tm,{w:"full",align:"stretch",gap:"8px",children:a.suggestions.map(e=>ts.jsx(Hg,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"14px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),children:e},e))})})]})]}),ts.jsx(nm,{value:s,onChange:e=>(e=>{const t=h(e);l(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),f())},placeholder:e,fontSize:"16px",color:"text",fontWeight:300,resize:"none",rows:1,lineHeight:"1.5",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),ts.jsx(Vg,{position:"absolute",bottom:"8px",left:"12px",size:"xs",borderRadius:"full",bg:"background","aria-label":"Upload image",onClick:d,_hover:{bg:"background"},disabled:u,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",color:"text",children:u?ts.jsx(Ng,{size:"sm",color:"text"}):ts.jsx(jv,{size:"full",color:"text"})}),ts.jsx(Vg,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Send",onClick:()=>f(),_hover:{bg:"veryLightBackground"},disabled:!s.trim()&&!c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"background",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ts.jsx(uv,{boxSize:"30px",color:"primary"})})]})})]})},Iv=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:r}=Xm();return ts.jsx(tm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ts.jsx(eu,{bg:"lightBackground",borderRadius:"32px",position:"relative",p:3,w:"full",h:"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:3,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:ts.jsxs(em,{justify:"space-between",align:"center",h:"full",children:[ts.jsx(Cu,{color:"mutedText",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),ts.jsx(Vg,{size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Stop",onClick:()=>{r?.(),t?.()},_hover:{bg:"veryLightBackground"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:ts.jsx(cv,{boxSize:"30px",color:"primary"})})]})})})})},Av=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n})=>{const[i,a]=os.useState(t),[o,s]=os.useState(!1),{uploadedImage:l,isUploading:c,handleFileSelect:u,removeImage:d}=xv(),p=os.useRef(null);os.useEffect(()=>{a(g(t))},[t]);const f=()=>{(i.trim()||l)&&(n?.({message:i.trim(),imageUrl:l?.url}),a(""),d())},h=e=>` ${e}`,g=e=>e.trimStart();return ts.jsxs(tm,{gap:2,align:"stretch",children:[l&&ts.jsx(eu,{mb:2,alignSelf:"flex-start",bg:"transparent",children:ts.jsx(Rv,{imageUrl:l.preview,onRemove:d})}),ts.jsxs(eu,{bg:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:o?"80px":"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:()=>{s(!0),setTimeout(()=>{if(p.current){p.current.focus();const e=p.current.value.length;p.current.setSelectionRange(e,e)}},100)},children:[ts.jsx(eu,{position:"absolute",top:"8px",left:"8px",zIndex:2,children:ts.jsx(mv,{w:"24px",h:"24px",transform:"rotate(2700deg)",color:"primary"})}),ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:o?0:1,transform:o?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:o?"none":"auto",children:ts.jsx(em,{justify:"space-between",align:"center",h:"full",children:ts.jsx(Cu,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),ts.jsx(Vg,{position:"absolute",bottom:"7.5px",right:"52px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Upload image",onClick:e=>{e.stopPropagation(),u()},_hover:{bg:"veryLightBackground"},disabled:c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",children:c?ts.jsx(Ng,{size:"sm"}):ts.jsx(jv,{size:"24px"})}),ts.jsx(Vg,{position:"absolute",bottom:"8px",right:"12px",size:"xs",borderRadius:"full",bg:"primary","aria-label":"Send",onClick:e=>{e.stopPropagation(),f()},_hover:{bg:"darkPrimary"},disabled:!i.trim()&&!l,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"lightPrimary",cursor:"not-allowed"},transform:"scale(1) rotate(180deg)",zIndex:2,children:ts.jsx(dv,{boxSize:"30px",color:"text"})}),ts.jsx(eu,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:o?1:0,transform:o?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:o?"auto":"none",children:ts.jsx(nm,{ref:p,value:h(i),onChange:e=>(e=>{const t=g(e);a(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),f())},placeholder:h(e),fontSize:"16px",color:"text",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",cursor:"text",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2,lineHeight:"1.5"})})]})]})},Dv=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:r="",onChange:n,onSend:i,onStop:a})=>{const[o,s]=os.useState(!1);return os.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?ts.jsx(Ov,{placeholder:t,value:r,onChange:n,onSend:i,isMobileView:o}):"generating"===e?ts.jsx(Iv,{placeholder:t,onStop:a,isMobileView:o}):ts.jsx(Av,{placeholder:t,value:r,onChange:n,onSend:i})},Mv=(e,t)=>{const r=e.includes("?")?"&":"?";return`${e}${r}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},Lv=()=>{const{botData:e}=Xm(),{isMobile:t}=im(),{t:r}=Zm();return ts.jsxs(em,{gapX:2,justifyContent:t?"start":"center",align:"center",alignContent:"center",alignItems:"center",w:"full",wrap:t?"wrap":"nowrap",children:[ts.jsx(Zg,{href:Mv("https://dori.tech/",e?.sharing_id||""),target:"_blank",rel:"noopener noreferrer",display:"inline-flex",alignItems:"center",children:ts.jsx(Kg,{src:vv,alt:"Dori AI",boxSize:{base:"20px",md:"24px"}})}),ts.jsx(eu,{fontSize:"10px",color:"mutedText",px:0,py:0,bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1,children:ts.jsx(eu,{as:"span",children:r("aiCanMakeMistakes")})})]})};function Fv(e){return Ev({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Nv(e){return Ev({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}const Wv=(e={})=>{const{enableTwinkling:t=!0,enableFloating:r=!0,enableRotation:n=!0,enableScaling:i=!0,twinklingSpeed:a=1e3,floatingSpeed:o=3e3,rotationSpeed:s=8e3,scalingSpeed:l=4e3,floatingRange:c=2.5,rotationRange:u=90,scalingRange:d=1.2}=e,[p,f]=os.useState(1),[h,g]=os.useState(0),[m,v]=os.useState(0),[b,y]=os.useState(1);return os.useEffect(()=>{if(!t)return;const e=setInterval(()=>{f(e=>1===e?.2:1)},a);return()=>clearInterval(e)},[t,a]),os.useEffect(()=>{if(!r)return;const e=setInterval(()=>{g(e=>0===e?c:0)},o);return()=>clearInterval(e)},[r,o,c]),os.useEffect(()=>{if(!n)return;const e=setInterval(()=>{v(e=>0===e?u:0)},s);return()=>clearInterval(e)},[n,s,u]),os.useEffect(()=>{if(!i)return;const e=setInterval(()=>{y(e=>1===e?d:1)},l);return()=>clearInterval(e)},[i,l,d]),{getStarfieldTransform:(e,t)=>[].filter(Boolean).join(" "),getIconStyle:()=>({opacity:p,transition:"transform 0.8s ease-in-out, opacity 1s ease-in-out"}),twinkleOpacity:p,floatingOffset:h,rotationAngle:m,scaleFactor:b}},$v=(e,t)=>t?(e=>e?.customization?.mobile?.position?{align:e.customization?.mobile?.position?.align??"right",sideSpacing:e.customization?.mobile?.position?.side_spacing??8,bottomSpacing:e.customization?.mobile?.position?.bottom_spacing??0}:{align:"right",sideSpacing:8,bottomSpacing:20})(e):(e=>e?.customization?.position?{align:e.customization?.position?.align??"right",sideSpacing:e.customization?.position?.side_spacing??16,bottomSpacing:e.customization?.position?.bottom_spacing??0}:{align:"right",sideSpacing:16,bottomSpacing:60})(e);function Bv(){return"undefined"!=typeof window&&!!window.$crisp}function Hv(){Bv()&&window.$crisp.push(["do","chat:hide"])}function Vv(){console.log("trying to open"),Bv()&&(console.log("trying to open2"),window.$crisp.push(["do","chat:show"]),window.$crisp.push(["do","chat:open"]))}const Uv=15e3,qv="chatra";let Yv=!1,Gv=!1,Qv=null,Kv=0,Xv=null,Zv=0,Jv=!1;function eb(...e){console.log("[Dori-Chatra]",...e)}function tb(){return"undefined"!=typeof window&&"function"==typeof window.Chatra}function rb(){return!!tb()&&!!document.getElementById(qv)}function nb(e){if(tb())try{window.Chatra("hide"),eb("called Chatra('hide') —",e)}catch(t){eb("error calling hide:",t)}}function ib(){null!==Qv&&(clearInterval(Qv),Qv=null,eb("stopped maintain loop"))}function ab(){Gv||Date.now()-Kv>3e4?ib():Yv&&tb()&&nb("maintain loop")}function ob(){if(!Gv)return;const e=document.getElementById(qv);if(!e)return;const t=e.className||"",r=-1!==t.indexOf("chatra--visible");-1!==t.indexOf("chatra--expanded")?Jv=!0:Jv&&(Date.now()-Zv<1500||r&&nb("user closed chat"))}function sb(){eb("openChatraChat invoked"),Gv=!0,Jv=!1,ib(),function(){if(Xv||"undefined"==typeof document)return;const e=()=>{const e=document.getElementById(qv);return!!e&&(Xv=new MutationObserver(ob),Xv.observe(e,{attributes:!0,attributeFilter:["class","style"]}),eb("attached close observer to #chatra"),!0)};if(e())return;const t=Date.now(),r=setInterval(()=>{(e()||Date.now()-t>Uv)&&clearInterval(r)},200)}(),function(e){if(rb())return void e();const t=Date.now(),r=setInterval(()=>{rb()?(clearInterval(r),e()):Date.now()-t>Uv&&(clearInterval(r),eb("Chatra never fully loaded within",Uv,"ms"))},200)}(()=>{Zv=Date.now();try{window.Chatra("show"),eb("called Chatra('show')"),setTimeout(()=>{try{window.Chatra("openChat"),eb("called Chatra('openChat')")}catch(e){eb("error calling openChat:",e)}},50)}catch(e){eb("error calling show:",e)}})}const lb=(e,t,r)=>{switch(e){case"whatsapp":const e=t.phoneNumber?.replace(/\s/g,""),n=t.welcomeMessage?`?text=${encodeURIComponent(t.welcomeMessage)}`:"";window.open(`https://wa.me/${e}${n}`,"_blank");break;case"telegram":window.open(`https://t.me/${t.username}`,"_blank");break;case"customLink":window.open(t.linkUrl,"_blank");break;case"crisp":Vv(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":sb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"dori":r&&r()}},cb=({channels:e,isOpen:t,onToggle:r,isMobile:n,onMouseEnter:i,onChatClick:a})=>{const{botData:o}=Xm(),s=Pu({base:!0,md:!1})??!1,l=$v(o,s),c=!0!==o?.customization?.disable_idle_animation,{getStarfieldTransform:u,getIconStyle:d}=Wv({enableTwinkling:c,enableFloating:c,enableRotation:c,enableScaling:c}),p=(e=>{if(!e)return[];const t=[];return e.crisp?.enabled&&t.push({type:"crisp",icon:e.crisp.icon,name:e.crisp.name,data:e.crisp}),e.chatra?.enabled&&t.push({type:"chatra",icon:e.chatra.icon,name:e.chatra.name,data:e.chatra}),e.customLink?.enabled&&t.push({type:"customLink",icon:e.customLink.icon,name:e.customLink.name,data:e.customLink}),e.telegram?.enabled&&t.push({type:"telegram",icon:e.telegram.icon,name:e.telegram.name,data:e.telegram}),e.whatsapp?.enabled&&t.push({type:"whatsapp",icon:e.whatsapp.icon,name:e.whatsapp.name,data:e.whatsapp}),t})(e);return 0===p.length?null:ts.jsxs(tm,{gap:2,align:"flex-end",alignItems:"center",position:"absolute",bottom:"100%",right:0,children:[n&&t&&ts.jsx(Vg,{"aria-label":"Toggle support channels",size:"2xs",borderRadius:"full",bg:"primary",color:"background",boxShadow:"md",mb:2,opacity:t||n?1:0,transition:"all 0.2s ease",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},onClick:r,display:n||!t?"flex":"none",children:ts.jsx(Fv,{size:20})}),ts.jsx(eu,{mb:3,opacity:t?1:0,transform:t?"translateY(0)":"translateY(10px)",transition:"all 0.2s ease",pointerEvents:t?"auto":"none",onMouseEnter:i,children:ts.jsxs(tm,{gap:2,align:"flex-end",children:[ts.jsx(eu,{borderRadius:"full",cursor:"pointer",onClick:()=>lb("dori",{},a),bg:"primary",boxSize:{base:"36px",md:"48px"},display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"md",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},transition:"all 0.2s ease",children:ts.jsx(gv,{boxSize:{base:"24px",md:"32px"},color:"background",transform:u("expanded",l),...d()})}),p.map((e,t)=>ts.jsx(eu,{borderRadius:"full",cursor:"pointer",onClick:()=>lb(e.type,e.data,a),_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)"}},transition:"all 0.2s ease",children:ts.jsx(Kg,{src:e.icon,alt:e.name,boxSize:{base:"36px",md:"48px"},borderRadius:"full",objectFit:"fill"})},`${e.type}-${t}`))]})}),n&&!t&&ts.jsx(Vg,{"aria-label":"Toggle support channels",size:"2xs",borderRadius:"full",bg:"primary",color:"background",boxShadow:"md",mb:2,opacity:t||n?1:0,transition:"all 0.2s ease",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)",boxShadow:"lg"}},onClick:r,display:n||!t?"flex":"none",children:ts.jsx(Nv,{size:20})})]})},ub=({channels:e})=>{const t=(e=>{if(!e)return[];const t=[];return e.crisp?.enabled&&t.push({type:"crisp",icon:e.crisp.icon,name:e.crisp.name,data:e.crisp}),e.chatra?.enabled&&t.push({type:"chatra",icon:e.chatra.icon,name:e.chatra.name,data:e.chatra}),e.customLink?.enabled&&t.push({type:"customLink",icon:e.customLink.icon,name:e.customLink.name,data:e.customLink}),e.telegram?.enabled&&t.push({type:"telegram",icon:e.telegram.icon,name:e.telegram.name,data:e.telegram}),e.whatsapp?.enabled&&t.push({type:"whatsapp",icon:e.whatsapp.icon,name:e.whatsapp.name,data:e.whatsapp}),t})(e);return 0===t.length?null:ts.jsx(em,{gap:3,w:"full",alignItems:"center",justifyContent:"start",wrap:"wrap",children:t.map((e,t)=>ts.jsxs(eu,{display:"flex",alignItems:"center",gap:3,cursor:"pointer",borderRadius:"16px",padding:"6px 8px",bg:"lightBackground",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"veryLightBackground",transform:"scale(1.05)"}},transition:"all 0.2s ease",onClick:()=>((e,t)=>{switch(e){case"whatsapp":const e=t.phoneNumber?.replace(/\s/g,""),r=t.welcomeMessage?`?text=${encodeURIComponent(t.welcomeMessage)}`:"";window.open(`https://wa.me/${e}${r}`,"_blank");break;case"telegram":window.open(`https://t.me/${t.username}`,"_blank");break;case"customLink":window.open(t.linkUrl,"_blank");break;case"crisp":Vv(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":sb(),window.dispatchEvent(new Event("dori:close-widget"))}})(e.type,e.data),flexShrink:0,children:[ts.jsx(Kg,{src:e.icon,alt:e.name,boxSize:{base:"22px",md:"24px"},borderRadius:"full",objectFit:"cover"}),ts.jsx(Cu,{fontSize:{base:"12px",md:"14px"},fontWeight:"400",color:"text",whiteSpace:"nowrap",children:e.name})]},`${e.type}-${t}`))})},db=({flow:e,onComplete:t})=>{const[r,n]=os.useState(0),[i,a]=os.useState([]),[o,s]=os.useState("active"),[l,c]=os.useState(!1),[u,d]=os.useState(!1),[p,f]=os.useState(!1),h=os.useRef(null),g=os.useRef(null),m=os.useRef(null),v=os.useRef(null),b=Ag("colors","primary"),y=nv(b);os.useEffect(()=>{if("active"!==o)return;c(!1);const e=requestAnimationFrame(()=>{c(!0)});return()=>cancelAnimationFrame(e)},[r,o]),os.useEffect(()=>()=>{h.current&&clearTimeout(h.current),g.current&&clearTimeout(g.current),m.current&&clearTimeout(m.current),v.current&&clearTimeout(v.current)},[]);const x=os.useCallback(o=>{if(p)return;f(!0);const l=[...i,{stepIndex:r,option:o}];a(l),r<e.steps.length-1?(c(!1),h.current=setTimeout(()=>{n(e=>e+1),f(!1)},280)):(d(!0),v.current=setTimeout(()=>{s("analyzing"),d(!1);const r=800+700*Math.random();m.current=setTimeout(()=>{const r=l.map(e=>e.option.label).join(" · ");let n=e.result_prompt;l.forEach((e,t)=>{const r=`{step${t+1}}`;n=n.split(r).join(e.option.value)});const i=mm(),a=l.map(e=>e.option.label).join(", ");t(r,`${i}[Quiz selections: ${a}] ${n}`)},r)},300))},[p,i,r,e,t]),k=os.useCallback(()=>{r<=0||u||(c(!1),g.current=setTimeout(()=>{a(e=>e.slice(0,-1)),n(e=>e-1),f(!1)},250))},[r,u]),_=e.steps[r];return"analyzing"===o?ts.jsxs(tm,{gap:3,align:"center",flex:1,justify:"center",transition:"opacity 0.3s ease",children:[ts.jsx(em,{gap:2,flexWrap:"wrap",justify:"center",children:i.map((e,t)=>ts.jsx(pb,{label:e.option.label},t))}),ts.jsxs(tm,{gap:2,align:"center",py:4,children:[ts.jsx(lv,{boxSize:"20px",color:"primary",opacity:.6}),ts.jsx(Cu,{fontSize:"14px",fontWeight:500,fontFamily:"system-ui, sans-serif",css:{background:`linear-gradient(90deg, ${b}44, ${b}, ${b}44)`,backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",animation:"dori-shimmer 1.5s ease-in-out infinite"},children:e.analyzing_text})]}),ts.jsx("style",{children:"\n @keyframes dori-shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n }\n "})]}):ts.jsxs(tm,{gap:4,align:"stretch",flex:1,justify:"start",opacity:u?0:1,transform:u?"translateY(-8px)":"translateY(0)",transition:"opacity 0.3s ease, transform 0.3s ease",children:[i.length>0&&ts.jsxs(em,{gap:2,flexWrap:"wrap",align:"center",children:[ts.jsx(eu,{as:"button",onClick:k,"aria-label":"Back",cursor:"pointer",px:2,py:1,borderRadius:"12px",fontSize:"11px",color:"primary",opacity:.8,_hover:{opacity:1,bg:"veryLightBackground"},transition:"all 0.15s ease",fontFamily:"system-ui, sans-serif",flexShrink:0,children:"←"}),i.map((e,t)=>ts.jsx(pb,{label:e.option.label},t))]}),ts.jsxs(eu,{opacity:l?1:0,transform:l?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[ts.jsxs(tm,{align:"stretch",gap:3,mb:3,children:[ts.jsxs(em,{justify:"space-between",align:"center",gap:3,children:[ts.jsxs(em,{gap:2,align:"center",minW:0,children:[ts.jsx(eu,{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"24px",borderRadius:"12px",bg:"background",border:"1px solid",borderColor:"primary",flexShrink:0,children:ts.jsx(lv,{boxSize:"12px",color:"primary"})}),ts.jsx(Cu,{fontSize:"11px",fontWeight:600,fontFamily:"system-ui, sans-serif",lineHeight:"1.4",css:{background:y,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:e.entry_label})]}),ts.jsxs(eu,{px:2.5,py:1,borderRadius:"999px",bg:"background",border:"1px solid",borderColor:"primary",fontSize:"10px",fontWeight:700,color:"primary",fontFamily:"system-ui, sans-serif",lineHeight:"1",flexShrink:0,children:[r+1,"/",e.steps.length]})]}),ts.jsx(Cu,{fontSize:"17px",fontWeight:700,color:"text",lineHeight:"1.45",fontFamily:"system-ui, sans-serif",children:_.question}),ts.jsx(eu,{bg:"background",border:"1px solid",borderColor:"borderColor",borderRadius:"16px",px:3,py:2.5,children:ts.jsxs(em,{gap:2,align:"start",children:[ts.jsx(eu,{boxSize:"7px",borderRadius:"full",bg:"primary",mt:"7px",flexShrink:0}),ts.jsx(Cu,{fontSize:"12px",color:"textSecondary",fontWeight:500,lineHeight:"1.65",fontFamily:"system-ui, sans-serif",opacity:.9,children:_.reason})]})})]}),ts.jsx(eu,{display:"grid",gridTemplateColumns:{base:"1fr 1fr"},gap:2,children:_.options.map((e,t)=>ts.jsx(eu,{as:"button",px:3,py:"8px",borderRadius:"24px",border:"1px solid",borderColor:"primary",bg:"veryLightBackground",cursor:"pointer",textAlign:"start",display:"flex",alignItems:"center",gap:2,opacity:l?1:0,transform:l?"translateY(0)":"translateY(6px)",transition:`opacity 0.25s ease ${40*t}ms, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) ${40*t}ms, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease`,_hover:{bg:"lightBackground",boxShadow:`0 0 0 1px ${b}33`},_active:{bg:"lightBackground",transform:"translateY(0) scale(0.97)"},onClick:()=>x(e),fontFamily:"system-ui, sans-serif",children:ts.jsxs(eu,{flex:"1",minW:0,children:[ts.jsx(Cu,{fontSize:"13px",fontWeight:500,color:"text",lineHeight:"1.4",whiteSpace:"normal",wordBreak:"break-word",children:e.label}),e.subtitle&&ts.jsx(Cu,{fontSize:"10px",color:"textSecondary",opacity:.6,lineHeight:"1.2",children:e.subtitle})]})},e.value))})]})]})},pb=({label:e})=>ts.jsxs(eu,{px:3,py:1,borderRadius:"16px",bg:"veryLightBackground",border:"1px solid",borderColor:"primary",fontSize:"11px",fontWeight:500,color:"primary",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",children:["✓ ",e]}),fb=({chips:e,onChipClick:t,onDismiss:r})=>{const[n,i]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]),0===e.length?null:ts.jsx(eu,{flexShrink:0,opacity:n?1:0,transform:n?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)","data-dori-nudge":"chip-row",children:ts.jsxs(em,{gap:2,wrap:"wrap",align:"center",children:[e.map((e,r)=>ts.jsx(Hg,{size:"sm",variant:"outline",borderRadius:"20px",borderWidth:"1.5px",borderColor:"primary",bg:"veryLightBackground",color:"text",fontSize:"13px",fontWeight:500,px:3,py:1.5,height:"auto",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"lightBackground"}},onClick:()=>t(e),fontFamily:"system-ui, sans-serif",children:e},`${r}-${e}`)),ts.jsx(Vg,{size:"xs",borderRadius:"full",bg:"transparent","aria-label":"Dismiss nudge",color:"textSecondary",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"lightBackground"}},minW:"22px",w:"22px",h:"22px",p:0,flexShrink:0,onClick:r,opacity:.6,children:ts.jsx(iv,{boxSize:"11px"})})]})})},hb=({onStartChat:e,isMobile:t,isExpanded:r=!1,onToggleExpand:n,onClose:i})=>{const{inputValue:a,handleInputChange:o}=((e="")=>{const[t,r]=os.useState(e),n=os.useCallback(e=>{r(e)},[]),i=os.useCallback(e=>{t.trim()&&e&&(e(t.trim()),r(""))},[t]),a=os.useCallback((e,t)=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(t))},[i]),o=os.useCallback(()=>{r("")},[]),s=os.useCallback(e=>{r(e)},[]);return{inputValue:t,setInputValue:r,handleInputChange:n,handleSubmit:i,handleKeyPress:a,clearInput:o,setInput:s}})(),{botData:s,dynamicWelcomeMessage:l,effectiveSuggestedReplies:c,proactiveChips:u,proactiveChipsPosition:d,dismissProactiveChips:p,suppressProactiveForSession:f}=Xm(),{t:h,translations:g}=Zm(),m=s?.white_label?.is_white_labeled??!1,v=nv(Ag("colors","primary")),b=c,y=!1,x=!!(u&&u.length>0),_=os.useMemo(()=>{const e=[];return l&&e.push({text:l,isDynamic:!0}),x||b.forEach(t=>e.push({text:t,isDynamic:!1})),e},[l,b,x]);os.useMemo(()=>b.slice(0,2).map(e=>({text:e,isDynamic:!1})),[b]);const w=({message:t,imageUrl:r})=>{(t.trim()||r)&&e(t.trim(),r)};return ts.jsxs(ts.Fragment,{children:[ts.jsx(bv,{onClose:i,isMobile:t,isExpanded:r,onToggleExpand:n}),ts.jsxs(tm,{h:"full",minH:0,justify:"flex-start",align:"stretch",gap:4,children:[ts.jsx(tm,{gap:3,w:"full",align:"start",mb:"16px",flexShrink:0,children:ts.jsx(Cu,{fontWeight:r?600:500,fontStyle:"normal",fontSize:"24px",letterSpacing:"0",textAlign:r?"center":"right",fontFamily:"system-ui, sans-serif",css:{background:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:k(s?.agent_name,g)})}),ts.jsx(eu,{flex:1,minH:0,overflowY:"auto",overflowX:"hidden","data-scroll-container":"chat-messages",overscrollBehavior:"contain",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ts.jsxs(tm,{gap:4,align:"stretch",justify:"start",pb:3,children:[ts.jsx(eu,{children:ts.jsx(Dv,{state:"minimized",placeholder:h("askAnything"),value:a,onChange:o,onSend:w})}),u&&u.length>0&&ts.jsx(fb,{chips:u,onChipClick:t=>{Wo("post_answer"===d?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:t}),e(t),p()},onDismiss:()=>{Wo("post_answer"===d?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),p(),f()}}),y,y,_.length>0&&ts.jsx(eu,{w:"full",children:ts.jsx(eu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:3,w:"full",children:_.map((t,r)=>ts.jsxs(Hg,{variant:"outline",borderRadius:"24px",border:"1px solid",borderColor:t.isDynamic?"primary":"borderColor",bg:t.isDynamic?"veryLightBackground":"lightBackground",color:"text",fontSize:"14px",fontWeight:t.isDynamic?500:400,padding:"8px 12px",_hover:{bg:t.isDynamic?"lightBackground":"veryLightBackground",borderColor:t.isDynamic?"primary":"borderColor"},onClick:()=>((t,r,n)=>{if(r){const r=`${mm()}[SYSTEM: The user engaged with your proactive greeting about this page. Help them now. Jump straight into being useful — do not acknowledge this prompt or repeat any previous text.]`;e(t.trim(),n,r)}else w({message:t,imageUrl:n})})(t.text,t.isDynamic),justifyContent:"start",w:"full",height:"auto",lineHeight:"1.5",whiteSpace:"pre-wrap",...t.isDynamic?{gridColumn:{md:"span 2"}}:{},children:[ts.jsx(lv,{boxSize:"16px",color:t.isDynamic?"primary":"text"}),ts.jsx(eu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"system-ui, sans-serif",children:t.text})]},t.isDynamic?"dynamic":r))})})]})}),ts.jsx(eu,{w:"full",flexShrink:0,children:ts.jsx(ub,{channels:s?.merchant_support_channels})}),!m&&ts.jsx(eu,{flexShrink:0,transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ts.jsx(Lv,{variant:"default"})})]})]})},gb=({message:e,type:t="default"})=>{const r="loading"===t,{botData:n}=Xm(),i=e.replace(/\\([!?.,'":;\-\[\](){}#*_~`>+])/g,"$1"),a=r?i.replace(/[.\u2026]{1,3}\s*$/u,"").trim():i;return ts.jsxs(eu,{position:"relative",width:"full",children:[ts.jsx(eu,{opacity:"0",bg:"lightBackground",borderRadius:"24px",padding:"16px",children:ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",fontFamily:"system-ui, sans-serif",children:i})}),ts.jsx(eu,{h:"50px"}),ts.jsx(eu,{position:"absolute",left:0,bottom:0,children:ts.jsx(Kg,{src:n?.agent_image||vv,alt:"",role:"presentation",w:"24px",h:"24px",borderRadius:"50%"})}),ts.jsx(eu,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),ts.jsx(eu,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),ts.jsx(eu,{position:"absolute",left:"35px",bottom:"35px",bg:"lightBackground",borderRadius:"24px",padding:"16px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:r?ts.jsxs(em,{gap:"8px",align:"center",children:[a&&ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:a}),ts.jsx(em,{gap:"3px",align:"center","aria-hidden":"true",children:[0,1,2].map(e=>ts.jsx(eu,{w:"4px",h:"4px",borderRadius:"full",bg:"mutedText",css:{animation:`dori-typing-dot 1.2s ease-in-out ${.15*e}s infinite`}},e))}),ts.jsx("style",{children:"\n @keyframes dori-typing-dot {\n 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n }\n "})]}):ts.jsx(Cu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"text",fontFamily:"system-ui, sans-serif",children:i})})]})},mb={AED:"د.إ",ARS:"$",AUD:"$",BDT:"৳",BHD:"ب.د",BRL:"R$",CAD:"$",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DZD:"دج",EGP:"E£",EUR:"€",GBP:"£",HKD:"$",HUF:"Ft",IDR:"Rp",INR:"₹",IQD:"ع.د",IRT:"تومان",JOD:"د.أ",JPY:"¥",KES:"KSh",KMF:"CF",KRW:"₩",KWD:"د.ك",LBP:"ل.ل",LKR:"Rs",LYD:"ل.د",MAD:"د.م.",MRU:"UM",MXN:"$",MYR:"RM",NGN:"₦",NOK:"kr",NZD:"$",OMR:"ر.ع.",PHP:"₱",PKR:"₨",PLN:"zł",QAR:"ر.ق",RON:"lei",RUB:"₽",SAR:"ر.س",SDG:"ج.س.",SEK:"kr",SGD:"$",SOS:"Sh",SYP:"ل.س",THB:"฿",TND:"د.ت",TRY:"₺",UAH:"₴",USD:"$",VND:"₫",YER:"﷼",ZAR:"R"},vb={black:"#222222",white:"#ffffff",offwhite:"#f3efe7","off-white":"#f3efe7",ivory:"#f4f0e1",cream:"#f3ead3",natural:"#e8ded0",beige:"#d9c7a8",tan:"#cba36b",taupe:"#9b8978",camel:"#bd9a6a",khaki:"#a39a6a",sand:"#d8c19a",stone:"#cabfa9",nude:"#e3c4a8",gray:"#808080",grey:"#808080",charcoal:"#3a3d40",slate:"#5a6470",graphite:"#4a4a4a",silver:"#c4c4c4",ash:"#b2b2b2",smoke:"#8c8c8c",pewter:"#9a9a94",gunmetal:"#53565a",red:"#c8302b",crimson:"#a31f34",scarlet:"#c4302a",cherry:"#a31330",ruby:"#9b1b30",wine:"#5e1f2b",burgundy:"#5b1a26",bordeaux:"#4e1822",maroon:"#6b1f2a",brick:"#9c4a3a",terracotta:"#c46a4a",rust:"#9e4a2e",coral:"#e36a52",salmon:"#e69079",punch:"#d83a5e",pink:"#e58aab",rose:"#d98ca0",blush:"#e8c0c4",magenta:"#b8336a",fuchsia:"#c2407e",orange:"#e08234",pumpkin:"#e07b39",apricot:"#e7a473",peach:"#f0b48f",amber:"#c98a2b",mustard:"#c9962f",gold:"#c9a227",honey:"#d7a13a",sunshine:"#f4c842",yellow:"#e8c63a",lemon:"#e7d44a",canary:"#e6d24a",brown:"#6b4a2e",chocolate:"#4f3422",coffee:"#5a4334",mocha:"#7a5a44",caramel:"#a9743f",chestnut:"#6e3f2a",walnut:"#5a4031",espresso:"#3a2a21",bronze:"#7d5a33",copper:"#a35d3a",clay:"#a86a4f",green:"#3f7a3f",forest:"#2c4a2c",olive:"#6b6a35",sage:"#9aa583",moss:"#5e6b3a",mint:"#8fd0b0",emerald:"#1f8a5a",jade:"#3a9b78",lime:"#9bc24a","olive green":"#6b6a35",leaf:"#5a8a3a",blue:"#2f5fa8",navy:"#27314f",cobalt:"#2a4d9b",azure:"#3a8fd0",sky:"#86b8e0",denim:"#46688f",sapphire:"#1f4e8c",marine:"#27506b",ocean:"#1f6e8c",teal:"#1d8a85",turquoise:"#3fb7b0",aqua:"#5fc7c0",cyan:"#3bb6c4",periwinkle:"#8a9cd8",indigo:"#3a3a7a",purple:"#6f4a8e",violet:"#7a4ba0",plum:"#6e3a5e",grape:"#6f4a8e",eggplant:"#4b2e57",aubergine:"#4b2e57",amethyst:"#8a6aa0",lavender:"#b9a7d6",lilac:"#c4a8d6",mauve:"#a07a8a",seafoam:"#8fcab0",sangria:"#7a1f2b",midnight:"#1f2540",onyx:"#2a2a2a",ebony:"#2b2622",jet:"#2a2a2a",pearl:"#f0ead9",snow:"#fafafa",heather:"#9a8fa0",oat:"#dcceb4",fog:"#cfd2cf",berry:"#8a2f4a",rosso:"#c8302b",rojo:"#c8302b",rouge:"#c8302b",rot:"#c8302b",vermelho:"#c8302b",blu:"#2f5fa8",azul:"#2f5fa8",bleu:"#2f5fa8",blau:"#2f5fa8",azzurro:"#3a8fd0",verde:"#3f7a3f",vert:"#3f7a3f","grün":"#3f7a3f",gruen:"#3f7a3f",nero:"#222222",negro:"#222222",noir:"#222222",schwarz:"#222222",preto:"#222222",bianco:"#ffffff",blanco:"#ffffff",blanc:"#ffffff","weiß":"#ffffff",weiss:"#ffffff",branco:"#ffffff",giallo:"#e8c63a",amarillo:"#e8c63a",jaune:"#e8c63a",gelb:"#e8c63a",grigio:"#808080",gris:"#808080",grau:"#808080",marrone:"#6b4a2e","marrón":"#6b4a2e",marron:"#6b4a2e",braun:"#6b4a2e",viola:"#7a4ba0",morado:"#7a4ba0",lila:"#c4a8d6",arancione:"#e08234",naranja:"#e08234"};function bb(e){if(!e)return null;const t=e.trim().toLowerCase();if(vb[t])return vb[t];for(const r of t.split(/[\s/_,&+().-]+/))if(r&&vb[r])return vb[r];return null}const yb=/colo|couleur|farbe|màu|colore|kleur/i,xb=({variantSummary:e})=>{if(!e?.options?.length)return null;const{options:t}=e,r=t.find(e=>yb.test(e.name||"")),n=r?(()=>{const e=new Set(r.values.map(e=>e.image).filter(Boolean)).size>1,t=r.values.slice(0,6),n=r.values.length-t.length;return ts.jsxs(em,{gap:1,align:"center",wrap:"wrap",children:[t.map((t,r)=>{const n=!1===t.available,i=bb(t.value);return e&&t.image?ts.jsx(eu,{position:"relative",title:t.value,w:"16px",h:"16px",borderRadius:"4px",backgroundImage:`url(${t.image})`,backgroundSize:"cover",backgroundPosition:"center",border:"0.5px solid rgba(0,0,0,0.15)",opacity:n?.35:1,flexShrink:0,children:n&&ts.jsx(eu,{position:"absolute",top:"7px",left:"-2px",w:"20px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},r):i?ts.jsx(eu,{position:"relative",title:t.value,w:"15px",h:"15px",borderRadius:"full",bg:i,border:"0.5px solid rgba(0,0,0,0.2)",opacity:n?.35:1,flexShrink:0,children:n&&ts.jsx(eu,{position:"absolute",top:"7px",left:"-1px",w:"17px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},r):ts.jsx(Cu,{fontSize:"10px",px:1.5,py:.5,borderRadius:"6px",border:"0.5px solid",borderColor:"borderColor",color:"mutedText",opacity:n?.5:1,textDecoration:n?"line-through":"none",whiteSpace:"nowrap",title:t.value,fontFamily:"system-ui, sans-serif",children:t.value},r)}),n>0&&ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:["+",n]})]})})():null,i=(r?t.filter(e=>e!==r):t).map(e=>{const t=e.values.slice(0,4),r=e.values.length-t.length;return ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",fontFamily:"system-ui, sans-serif",children:[e.name,":"," ",t.map((e,r)=>ts.jsxs(Cu,{as:"span",textDecoration:!1===e.available?"line-through":"none",opacity:!1===e.available?.6:1,children:[e.value,r<t.length-1?", ":""]},r)),r>0?`, +${r}`:""]},e.name)});return n||0!==i.length?ts.jsxs(tm,{align:"start",gap:.5,w:"full",children:[n,i]}):null},kb=/colo|couleur|farbe|màu|colore|kleur/i,_b=({product:e,selectedColor:t=null,onColorChange:r})=>{const{addToCartDirect:n,botData:i}=Xm(),{t:a}=Zm(),o=e.variant_summary,[s,l]=os.useState(null),[c,u]=os.useState(!1),[d,p]=os.useState({}),[f,h]=os.useState("idle"),[g,m]=os.useState(null);os.useEffect(()=>{let t=!1;const r=zm(e.url);if(r)return Em(r).then(e=>{!t&&e&&e.variants?.length&&(l(e),u(!0))}).catch(()=>{}),()=>{t=!0}},[e.url]);const v=(e.currency||i?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",b=mb[v]||v,y=os.useMemo(()=>s?Tm(s):[],[s]),x=os.useMemo(()=>c&&s?y.map((e,t)=>{const r=kb.test(e.name),n=e.values.map(e=>{let n=null;if(r){const r=s.variants.find(r=>jm(r,t+1)===e&&r.featured_image?.src);n=r?.featured_image?.src??null}return{value:e,image:n}}),i=r&&new Set(n.map(e=>e.image).filter(Boolean)).size>1;return{name:e.name,isColor:r,useImages:i,values:n}}).filter(e=>e.values.length>1):(o?.options??[]).map(e=>{const t=kb.test(e.name),r=e.values.map(e=>({value:e.value,image:e.image})),n=t&&new Set(r.map(e=>e.image).filter(Boolean)).size>1;return{name:e.name,isColor:t,useImages:n,values:r}}),[c,s,y,o]),k=x.findIndex(e=>e.isColor),_=os.useRef(null);os.useEffect(()=>{if(t===_.current)return;if(_.current=t??null,null==t||k<0)return;const e=x[k]?.name;e&&p(r=>{if(r[e]===t)return r;const n={};for(let e=0;e<k;e++){const t=x[e].name;r[t]&&(n[t]=r[t])}return n[e]=t,n})},[t,k,x]);const w=x.length>0&&x.every(e=>d[e.name]),S=os.useMemo(()=>c&&s&&w?Om(s,d).find(e=>!1!==e.available)??null:null,[c,s,w,d]),C=x.map(e=>d[e.name]).filter(Boolean).join(" · "),P=null!=S?.price?` · ${b}${(S.price/100).toLocaleString()}`:"";return ts.jsxs(tm,{align:"stretch",gap:2,w:"full",pt:1,children:[x.map((e,t)=>ts.jsxs(eu,{children:[ts.jsxs(Cu,{fontSize:"11px",color:"mutedText",mb:1,fontFamily:"system-ui, sans-serif",children:[e.name,d[e.name]?` · ${d[e.name]}`:""]}),ts.jsx(em,{gap:1.5,wrap:"wrap",children:e.values.map(n=>((e,t,n)=>{const i=((e,t)=>{const r=x[e];if(c&&s){const n={[r.name]:t};for(let t=0;t<e;t++){const e=d[x[t].name];e&&(n[x[t].name]=e)}return Om(s,n).some(e=>!1!==e.available)}const n=o?.options.find(e=>e.name===r.name)?.values.find(e=>e.value===t);return!n||!1!==n.available})(e,n.value),a=d[t.name]===n.value,l=t.isColor?bb(n.value):null,u={as:"button",type:"button",disabled:!i,"aria-pressed":a,"aria-label":n.value,title:n.value,onClick:()=>i&&((e,t)=>{const n=x[e].name;p(r=>{const i={};for(let t=0;t<e;t++){const e=x[t].name;r[e]&&(i[e]=r[e])}return i[n]=t,i}),x[e]?.isColor&&r?.(t),"added"!==f&&"error"!==f||(h("idle"),m(null))})(e,n.value),cursor:i?"pointer":"not-allowed",opacity:i?1:.35,style:{appearance:"none",WebkitAppearance:"none"}};return t.useImages&&n.image?ts.jsx(eu,{...u,position:"relative",p:0,w:"40px",h:"40px",borderRadius:"8px",overflow:"hidden",border:"2px solid",borderColor:a?"primary":"borderColor",backgroundImage:`url(${n.image})`,backgroundSize:"cover",backgroundPosition:"center",flexShrink:0,children:!i&&ts.jsx(eu,{position:"absolute",top:"19px",left:"-3px",w:"46px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},n.value):l?ts.jsx(eu,{...u,position:"relative",p:0,w:"26px",h:"26px",borderRadius:"full",bg:l,border:"2px solid",borderColor:a?"primary":"transparent",boxShadow:a?void 0:"inset 0 0 0 0.5px rgba(0,0,0,0.2)",flexShrink:0,children:!i&&ts.jsx(eu,{position:"absolute",top:"11px",left:"-1px",w:"28px",h:"1.5px",bg:"text",transform:"rotate(-45deg)"})},n.value):ts.jsx(eu,{...u,px:2.5,py:1,borderRadius:"6px",border:"1px solid",borderColor:a?"primary":"borderColor",bg:a?"veryLightBackground":"background",children:ts.jsx(Cu,{fontSize:"12px",color:"text",textDecoration:i?"none":"line-through",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",children:n.value})},n.value)})(t,e,n))})]},e.name)),ts.jsxs(Hg,{size:"sm",h:"34px",borderRadius:"8px",fontSize:"12px",fontWeight:500,bg:"primary",color:"white",gap:1.5,w:"full",disabled:!w||"adding"===f,loading:"adding"===f,onClick:async()=>{if(!w||"adding"===f)return;if(c&&s&&!S)return h("error"),void m(null);h("adding"),m(null);const t=S?{variant_id:String(S.id),product_name:e.name,quantity:1}:{product_name:e.name,product_url:e.url,selected_options:d,quantity:1},r=await n(t);"success"===r.type?h("added"):(h("error"),m(r.message||null))},_hover:{opacity:.92},fontFamily:"system-ui, sans-serif",children:[ts.jsx(fv,{boxSize:"14px"}),"added"===f?`✓ ${C}`:a("addToCartButton")+(C?` · ${C}`:"")+P]}),"error"===f&&g&&ts.jsx(Cu,{fontSize:"11px",color:"error",fontFamily:"system-ui, sans-serif",children:g})]})},wb=({slides:e,activeValue:t,onActiveChange:r,height:n,bgColor:i,alt:a,onImageClick:o})=>{const s=os.useRef(null),l=os.useRef(!1),c=os.useRef(!1),u=os.useRef(null),d=os.useRef(t);d.current=t;const p=os.useRef(e);p.current=e;const f=os.useRef(r);f.current=r;const h=Math.max(0,e.findIndex(e=>e.value===t));return os.useEffect(()=>{const e=s.current;if(!e||c.current)return;const t=h*e.clientWidth;0===e.clientWidth||Math.abs(e.scrollLeft-t)<4||(l.current=!0,e.scrollTo({left:t,behavior:"smooth"}),u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{l.current=!1},450))},[h]),os.useEffect(()=>{const e=s.current;if(!e)return;let t;const r=()=>{if(l.current||0===e.clientWidth)return;const t=Math.round(e.scrollLeft/e.clientWidth),r=p.current[t];r&&r.value!==d.current&&f.current(r.value)},n=()=>{l.current||(c.current=!0,t&&window.clearTimeout(t),t=window.setTimeout(()=>{c.current=!1,r()},160))},i=()=>{t&&window.clearTimeout(t),c.current=!1,r()};return e.addEventListener("scroll",n,{passive:!0}),e.addEventListener("scrollend",i),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",i),t&&window.clearTimeout(t)}},[]),os.useEffect(()=>()=>{u.current&&window.clearTimeout(u.current)},[]),ts.jsxs(eu,{position:"relative",w:"full",children:[ts.jsx(em,{ref:s,gap:0,w:"full",css:{overflowX:"auto",scrollSnapType:"x mandatory",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},WebkitOverflowScrolling:"touch"},children:e.map((e,t)=>ts.jsx(eu,{css:{flex:"0 0 100%",scrollSnapAlign:"center"},bg:i,borderRadius:"md",cursor:o?"pointer":"default",onClick:o,children:ts.jsx(Kg,{src:e.src,alt:a,w:"full",h:n,objectFit:"contain",borderRadius:"md"})},`${e.value}-${t}`))}),e.length>1&&ts.jsx(em,{position:"absolute",bottom:"6px",left:"0",right:"0",justify:"center",gap:1,pointerEvents:"none",children:e.map((e,t)=>ts.jsx(eu,{w:"5px",h:"5px",borderRadius:"full",bg:t===h?"primary":"rgba(0,0,0,0.25)",transition:"background 0.2s"},`dot-${e.value}-${t}`))})]})},Sb=/colo|couleur|farbe|màu|colore|kleur/i,Cb=({product:e,isDesktop:t=!1,variant:r="default",badgeLabel:n})=>{const i="hero"===r,a="compact"===r,o=a?80:130,s=i?"160px":a?"80px":"124px",{sendMessage:l,setRepliedProduct:c,botData:u,chatState:d,addToCartDirect:p}=Xm(),{t:f}=Zm(),h=(u?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",g=mb[h]||h,{name:m,price:v,originalPrice:b,discount:y,image:x,id:k,url:_}=e,w=bm(u),S=Boolean(e.is_on_sale&&null!=e.sale_price&&e.sale_price>0&&null!=v&&e.sale_price<v),C=S&&e.sale_price?e.sale_price:v,P=S?v:b,z=S&&null!=e.sale_percent_off&&e.sale_percent_off>0?e.sale_percent_off:y,E=S&&null!=e.sale_amount_off&&e.sale_amount_off>0?e.sale_amount_off:void 0,T=!!P&&!!C&&P>C,j=S?e.sale_label:void 0,[R,O]=os.useState(!1),[I,A]=os.useState(!1),[D,M]=os.useState(!1),L=!!e.variant_summary?.options?.length,F=Ag("colors","background"),N=Array.isArray(F)?F[0]:F,[W,$]=os.useState(N),B=os.useRef(null),[H,V]=os.useState(null),U=os.useMemo(()=>{const t=e.variant_summary?.options?.find(e=>Sb.test(e.name||""));return!a&&t&&x&&t.values.some(e=>e.image)?t.values.map(e=>({value:e.value,src:e.image||x})):[]},[e.variant_summary,x,a]),q=U.length>1,Y=e.description?.length&&e.description?.length>o;os.useEffect(()=>{(()=>{if(!B.current)return;const e=B.current,t=()=>{try{const t=document.createElement("canvas"),r=t.getContext("2d");if(!r)return;t.width=e.naturalWidth||e.width,t.height=e.naturalHeight||e.height,r.drawImage(e,0,0);const n=[{x:0,y:0},{x:t.width-1,y:0},{x:0,y:t.height-1},{x:t.width-1,y:t.height-1}],i=[];let a=!1;if(n.forEach(({x:e,y:t})=>{const n=r.getImageData(e,t,1,1).data,[o,s,l,c]=n;if(c<128)a=!0;else{const e=`rgb(${o}, ${s}, ${l})`;i.push(e)}}),a&&0===i.length)return void $(N);if(0===i.length)return void $(N);const o={};i.forEach(e=>{o[e]=(o[e]||0)+1});const s=Object.keys(o).reduce((e,t)=>o[e]>o[t]?e:t);$(s)}catch(t){console.error("Error extracting corner colors:",t),$(N)}};if(!(e.complete&&e.naturalWidth>0))return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)};t()})()},[x,N]);const G=async()=>{if(!_||!u)return;const t=(e=>{const t=e.includes("?")?"&":"?";return`${e}${t}utm_source=dori&utm_medium=dori_widget&utm_campaign=dori_product_recommendation`})(_);sm(e,u,d.threadId),window.location.href=t},Q=I||d.isRequestInProgress,K=L&&D;return ts.jsxs(tm,{gap:1,children:[ts.jsx(eu,{bg:"background",borderRadius:a?"12px":"16px",border:"1px solid",borderColor:i?"primary":"borderColor",borderWidth:i?"1.5px":"1px",p:a?1.5:2,w:"full",transition:"all 0.2s ease",_hover:{borderColor:"primary",transform:"translateY(-1px)"},children:ts.jsxs(tm,{gap:a?1.5:2,align:"stretch",children:[ts.jsxs(eu,{position:"relative",borderRadius:"md",children:[i&&n&&ts.jsx(eu,{position:"absolute",top:"6px",left:"6px",zIndex:1,bg:"primary",color:"white",fontSize:"10px",fontWeight:"600",px:2,py:.5,borderRadius:"6px",fontFamily:"system-ui, sans-serif",boxShadow:"0 1px 3px rgba(0,0,0,0.15)",children:n}),q?ts.jsx(wb,{slides:U,activeValue:H,onActiveChange:V,height:s,bgColor:W,alt:m,onImageClick:G}):ts.jsx(eu,{cursor:"pointer",onClick:G,_hover:{opacity:.9},transition:"all 0.3s ease",bg:W,borderRadius:"md",children:ts.jsx(Kg,{ref:B,src:x,alt:m,w:"full",h:s,objectFit:"contain",borderRadius:"md",crossOrigin:"anonymous"})})]}),ts.jsx(Cu,{fontWeight:600,fontSize:a?"11px":"12px",lineHeight:a?"18px":"24px",color:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:m,fontFamily:"system-ui, sans-serif",cursor:"pointer",onClick:G,_hover:{color:"primary"},transition:"color 0.2s",children:m}),!a&&e.description&&ts.jsx(eu,{borderRadius:"8px",borderLeft:"2px solid",borderLeftColor:"primary",padding:"6px 10px",w:"full",bg:"lightBackground",cursor:R?"default":"pointer",onClick:R?void 0:()=>{O(!0)},_hover:R?{}:{bg:"veryLightBackground"},transition:"background-color 0.2s",children:ts.jsxs(Cu,{fontSize:"12px",fontWeight:400,color:"text",lineHeight:"20px",overflow:"hidden",title:e.description,fontFamily:"system-ui, sans-serif",children:[Y&&!R?e.description?.substring(0,o)+"... ":e.description,Y&&!R&&ts.jsx(Cu,{as:"span",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"system-ui, sans-serif",children:f("more")})]})}),!a&&e.variant_summary&&!D&&ts.jsx(xb,{variantSummary:e.variant_summary}),ts.jsx(em,{justify:"space-between",align:"end",children:ts.jsxs(tm,{gap:1,align:"start",children:[(T||z||E)&&ts.jsxs(em,{gap:1,children:[T&&ts.jsxs(Cu,{fontSize:"xs",color:"mutedText",textDecoration:"line-through",fontFamily:"system-ui, sans-serif",children:[g,P?.toLocaleString()]}),(z||E)&&ts.jsx(Lg,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"24px",title:j||void 0,children:z?`${z}%`:`-${g}${E?.toLocaleString()}`})]}),!!C&&C>0&&ts.jsxs(Cu,{fontSize:"12px",fontWeight:"700",color:"text",fontFamily:"system-ui, sans-serif",children:[g,C?.toLocaleString()||0]})]})})]})}),ts.jsxs(tm,{gap:1,w:"full",align:"stretch",children:[ts.jsxs(em,{gap:.5,children:[ts.jsx(Vg,{variant:"outline",size:"xs",h:a?"26px":"30px",fontSize:"12px",color:"primary",borderColor:"borderColor",borderRadius:"4px",_hover:{bg:"veryLightBackground"},borderWidth:"1px",onClick:()=>{c({product:e,suggestions:[f("doesProductHaveDiscount"),f("whatFeaturesSpecial"),f("otherColorsAvailable")]})},"aria-label":"Reply to product",children:ts.jsx(ov,{boxSize:a?"14px":"16px"})}),!a&&ts.jsxs(Hg,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:"4px",flex:1,fontWeight:400,onClick:()=>{const e=`${f("doYouHaveSimilar")} ${m}`;l({message:e,apiMessage:`${e} (product id: ${k})`})},_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",minW:0,overflow:"hidden",textOverflow:"ellipsis",children:[ts.jsx(sv,{boxSize:"16px"}),f("similar")]}),!a&&w&&ts.jsxs(Hg,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:t?"4px":"6px",flex:1,minW:0,fontWeight:400,onClick:L?()=>M(e=>!e):async()=>{if(I||d.isRequestInProgress)return;A(!0);const e=zm(_);try{if("success"!==(await p({product_name:m,product_url:_||void 0,product_handle:e||void 0,quantity:1})).type){const t=f("addToCartMessage").replace("{product}",m),r=`DORI_INTERNAL_EVENT:add_to_cart_request:${JSON.stringify({product_name:m,product_url:_||null,product_handle:e||null,quantity:1})}`;await l({message:t,apiMessage:r})}}finally{A(!1)}},disabled:!L&&Q,loading:!L&&Q,_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:[K?ts.jsx(iv,{boxSize:"11px"}):ts.jsx(fv,{boxSize:"16px"}),f(K?"close":Q?"addToCartAdding":"addToCartButton")]})]}),D&&L&&ts.jsx(_b,{product:e,selectedColor:H,onColorChange:V})]})]})},Pb=({index:e,delay:t=70,children:r})=>{const[n,i]=os.useState(!1);return os.useEffect(()=>{const r=setTimeout(()=>i(!0),e*t);return()=>clearTimeout(r)},[e,t]),ts.jsx(eu,{opacity:n?1:0,transform:n?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:r})},zb=({products:e,isDesktop:t})=>ts.jsx(Jg,{dir:"ltr",columns:t?2:1,gapX:t?2:1,gapY:t?4:2,w:"full",children:e.map((e,r)=>ts.jsx(Pb,{index:r,children:ts.jsx(Cb,{product:e,isDesktop:t})},e.id))}),Eb=({product:e,index:t,isLast:r,isDesktop:n,delay:i})=>{const[a,o]=os.useState(!1);os.useEffect(()=>{const e=setTimeout(()=>o(!0),i);return()=>clearTimeout(e)},[i]);const s=e.step_label?e.step_label.replace(/^\S+\s*\d+\s*[:.\-]\s*/i,"").trim()||e.step_label:null;return ts.jsx(eu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(10px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:ts.jsxs(em,{align:"stretch",gap:0,children:[ts.jsxs(tm,{align:"center",gap:0,w:"28px",flexShrink:0,children:[ts.jsx(eu,{w:"28px",h:"28px",borderRadius:"full",bg:"primary",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:ts.jsx(Cu,{fontSize:"12px",fontWeight:"700",color:"white",lineHeight:"1",children:t+1})}),!r&&ts.jsx(eu,{flex:1,w:"2px",bg:"borderColor",minH:"8px",opacity:a?1:0,transition:"opacity 0.3s ease-out 0.2s"})]}),ts.jsxs(tm,{align:"stretch",gap:1.5,flex:1,minW:0,pl:2.5,pb:r?0:3,children:[s&&ts.jsx(Cu,{fontSize:"13px",fontWeight:"600",color:"text",fontFamily:"system-ui, sans-serif",pt:.5,children:s}),ts.jsx(Cb,{product:e,isDesktop:n})]})]})})},Tb={single_pick:({products:e,isDesktop:t})=>{const r=e[0],n=e.slice(1,3),{t:i}=Zm(),[a,o]=os.useState(!1),[s,l]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>o(!0)),t=n.length>0?setTimeout(()=>l(!0),300):void 0;return()=>{cancelAnimationFrame(e),t&&clearTimeout(t)}},[n.length]),r?ts.jsxs(tm,{gap:3,w:"full",align:"stretch",children:[ts.jsx(eu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(8px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:ts.jsx(Cb,{product:r,isDesktop:t,variant:"hero",badgeLabel:i("topPick")})}),n.length>0&&ts.jsxs(eu,{opacity:s?1:0,transform:s?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:[ts.jsx(Cu,{fontSize:"11px",fontWeight:500,color:"mutedText",fontFamily:"system-ui, sans-serif",mb:2,px:1,children:i("alsoConsider")}),ts.jsx(Jg,{dir:"ltr",columns:1===n.length?1:2,gapX:2,gapY:2,w:"full",children:n.map(e=>ts.jsx(eu,{children:ts.jsx(Cb,{product:e,isDesktop:t,variant:1===n.length?"default":"compact"})},e.id))})]})]}):null},shortlist:({products:e,isDesktop:t})=>{const{t:r}=Zm();return ts.jsx(tm,{gap:3,w:"full",align:"stretch",children:e.map((e,n)=>ts.jsx(Pb,{index:n,delay:120,children:ts.jsx(Cb,{product:e,isDesktop:t,variant:0===n?"hero":"default",badgeLabel:0===n?r("topPick"):void 0})},e.id))})},routine:({products:e,isDesktop:t})=>ts.jsx(tm,{gap:0,w:"full",align:"stretch",children:e.map((r,n)=>ts.jsx(Eb,{product:r,index:n,isLast:n===e.length-1,isDesktop:t,delay:200*n},r.id))}),explore:zb},jb=({products:e,shape:t="explore"})=>{const{chatState:r,botData:n}=Xm(),i=os.useRef(new Set),a=os.useRef(null),[o,s]=os.useState(!1),l=os.useCallback(()=>{a.current&&s(a.current.offsetWidth>=600)},[]);os.useEffect(()=>{l();const e=new ResizeObserver(l);return a.current&&e.observe(a.current),()=>e.disconnect()},[l]),os.useEffect(()=>{const t=pm.SHOPIFY;if(console.log("[Dori ProductGrid] track-view effect run",{platform:t,threadId:r.threadId,productCount:e.length,botDataSharingId:n?.sharing_id??null}),!r.threadId)return void console.log("[Dori ProductGrid] bail: no chatState.threadId yet");const a=n?.sharing_id||f();if(!a)return void console.log("[Dori ProductGrid] bail: no sharingId (botData.sharing_id + getWidgetSharingId() both empty)");const o=b();let s=0,l=0;const c=[];if(e.forEach(e=>{const t=e.external_product_id;t?i.current.has(t)?l++:(i.current.add(t),c.push(t)):s++}),console.log("[Dori ProductGrid] product partition",{total:e.length,newToTrack:c.length,newProductIds:c,skippedNoExternalId:s,skippedAlreadyTracked:l,sharingId:a}),c.length>0){const e=window.DORI_CUSTOMER_ID,n=null!=e?String(e):void 0,i=km();console.log("[Dori ProductGrid] → calling trackProductViewsBatch",{count:c.length,threadId:r.threadId,sessionKey:o,platform:t,sharingId:a,customerId:n,endUserId:i}),cm(c,r.threadId||"",o,t,a,void 0,n,i)}else console.log("[Dori ProductGrid] no new product ids to track → no track-view call this render")},[e,r.threadId,n?.sharing_id]);const c=Tb[t]||zb;return ts.jsx(tm,{ref:a,align:"stretch",gap:2,w:"full",children:ts.jsx(eu,{px:1,w:"full",children:ts.jsx(c,{products:e,isDesktop:o})})})},Rb=({index:e,children:t})=>{const[r,n]=os.useState(!1);return os.useEffect(()=>{const t=setTimeout(()=>n(!0),70*e);return()=>clearTimeout(t)},[e]),ts.jsx(eu,{opacity:r?1:0,transform:r?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:t})},Ob=({suggestions:e})=>{const{sendMessage:t}=Xm(),r=e.length>0&&e.every(e=>e.length<=18);return ts.jsx(Qg,{direction:r?"row":"column",wrap:r?"wrap":"nowrap",gap:2,maxW:{base:"260px",md:"70%"},alignSelf:"flex-start",alignItems:r?"flex-start":"stretch",children:e.map((e,n)=>ts.jsx(Rb,{index:n,children:ts.jsx(Hg,{bg:n%2==0?"background":"lightBackground",border:"1px solid",borderColor:"borderColor",borderRadius:"24px",px:4,h:"auto",lineHeight:"1.5",py:2,onClick:()=>(e=>{t({message:e})})(e),_hover:{bg:"lightBackground",borderColor:"primary"},_active:{bg:"veryLightBackground"},textAlign:"center",justifyContent:"center",w:r?"auto":"full",children:ts.jsx(Cu,{fontSize:{base:"14px",md:"12px"},fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",lineClamp:r?1:2,children:e})})},n))})},Ib=()=>{const{t:e}=Zm();return ts.jsxs(em,{mt:3,gap:2,justify:"flex-start",children:[ts.jsxs(Hg,{size:"xs",variant:"outline",borderColor:"borderColor",color:"textSecondary",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.open(`${ym()}cart`,"_blank","noopener,noreferrer")},_hover:{borderColor:"primary"},children:[ts.jsx(fv,{boxSize:"14px"}),e("cartViewCart")]}),ts.jsxs(Hg,{size:"xs",variant:"solid",bg:"primary",color:"buttonText",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.location.href=`${ym()}checkout`},_hover:{opacity:.85},children:[e("cartCheckout"),ts.jsx(hv,{boxSize:"14px"})]})]})},Ab=({onSubmit:e,onClose:t,existingText:r})=>{const[n,i]=os.useState(r||""),[a,o]=os.useState(!1);return os.useEffect(()=>{i(r||"")},[r]),ts.jsx(eu,{mt:2,bg:"background",borderRadius:"10px",p:3,borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:ts.jsxs(tm,{gap:3,align:"stretch",children:[ts.jsxs(tm,{gap:.5,align:"start",children:[ts.jsx(Cu,{fontSize:"13px",fontWeight:"600",color:"text",lineHeight:"1.4",children:"Tell us what was wrong"}),ts.jsx(Cu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:"Your comment is optional and helps us improve responses."})]}),ts.jsx(nm,{value:n,onChange:e=>i(e.target.value),placeholder:"Describe what you expected...",rows:3,fontSize:"12px",resize:"none",borderColor:"borderColor",borderRadius:"8px",p:2,bg:"lightBackground",color:"text",autoFocus:!0,_placeholder:{color:"mutedText"},_focus:{outline:"none",borderColor:"primary",boxShadow:"none"}}),ts.jsxs(em,{gap:2,justify:"flex-end",children:[ts.jsx(Hg,{size:"sm",variant:"ghost",onClick:t,disabled:a,fontSize:"12px",color:"mutedText",px:3,h:"30px",_hover:{bg:"lightBackground"},children:"Cancel"}),ts.jsx(Hg,{size:"sm",variant:"outline",onClick:async()=>{o(!0),await e(void 0),o(!1)},disabled:a,fontSize:"12px",color:"text",borderColor:"borderColor",px:3,h:"30px",children:"No Comment"}),ts.jsx(Hg,{size:"sm",onClick:async()=>{o(!0),await e(n.trim()||void 0),o(!1)},disabled:a,fontSize:"12px",bg:"primary",color:"white",px:3,h:"30px",borderRadius:"8px",_hover:{opacity:.85},children:a?"Submitting...":"Submit"})]})]})})},Db=({messageIndex:e,feedback:t})=>{const{submitFeedback:r}=Xm(),[n,i]=os.useState(!1),a="like"===t?.rating,o="dislike"===t?.rating;return ts.jsxs(eu,{mt:1,children:[ts.jsxs(em,{gap:1,align:"center",children:[ts.jsx(eu,{as:"button",onClick:async()=>{a||(await r(e,"like"),i(!1))},display:"flex",alignItems:"center",justifyContent:"center",w:"28px",h:"28px",borderRadius:"6px",bg:a?"primary":"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:a?"primary":"borderColor",cursor:"pointer",title:"This response was helpful",_hover:{opacity:.8},transition:"all 0.15s",children:ts.jsx(Cu,{fontSize:"12px",lineHeight:"1",children:"👍"})}),ts.jsx(eu,{as:"button",onClick:()=>{i(!0)},display:"flex",alignItems:"center",justifyContent:"center",w:"28px",h:"28px",borderRadius:"6px",bg:o?"red.500":"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:o?"red.500":"borderColor",cursor:"pointer",title:"This response wasn't helpful",_hover:{opacity:.8},transition:"all 0.15s",children:ts.jsx(Cu,{fontSize:"12px",lineHeight:"1",children:"👎"})})]}),t?.feedbackText&&ts.jsxs(eu,{mt:1,px:2.5,py:2,bg:"lightBackground",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:[ts.jsx(Cu,{fontSize:"10px",color:"mutedText",lineHeight:"1.2",fontWeight:"600",textTransform:"uppercase",mb:1,children:"Submitted Feedback"}),ts.jsx(Cu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:t.feedbackText})]}),n&&ts.jsx(eu,{maxW:"280px",children:ts.jsx(Ab,{onSubmit:async t=>{await r(e,"dislike",t),i(!1)},onClose:()=>{i(!1)},existingText:t?.feedbackText})})]})},Mb=ss.lazy(()=>_(()=>import("./MarkdownContent-Cnu8VPfl.js"),__vite__mapDeps([0,1]),import.meta.url)),Lb=({message:e,isStreaming:t=!1,doriMessageIndex:r,isAfterProducts:n=!1})=>{const{isTestMode:i}=Xm(),a=nv(Ag("colors","primary")),o=function(e){const t=Date.now()-new Date(e).getTime()<2e3,[r,n]=os.useState(!t);return os.useEffect(()=>{if(!t)return;const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[t]),r}(e.timestamp),s=function(e,t){const r=os.useRef(e),n=os.useRef(t?0:e.length),[i,a]=os.useState(t?"":e),o=os.useRef(null),s=os.useRef(t);r.current=e,s.current=t;const l=os.useCallback(()=>{const e=r.current,t=e.length-n.current;if(t<=0||!s.current)return void(o.current=null);const i=Math.max(1,Math.ceil(.12*t));n.current=Math.min(e.length,n.current+i),a(e.slice(0,n.current)),n.current<e.length?o.current=requestAnimationFrame(l):o.current=null},[]),c=os.useCallback(()=>{null===o.current&&(o.current=requestAnimationFrame(l))},[l]),u=os.useCallback(()=>{null!==o.current&&(cancelAnimationFrame(o.current),o.current=null)},[]);return os.useEffect(()=>(t?n.current<e.length&&c():(u(),n.current=e.length,a(e)),u),[t]),os.useEffect(()=>{t&&n.current<e.length&&c()},[e,t,c]),i}(e.content,t);if("welcome"===e.type)return ts.jsx(gb,{message:e.content});if("loading"===e.type)return e.content&&ts.jsx(gb,{message:e.content,type:"loading"});if("user"===e.type)return ts.jsxs(eu,{maxW:"220px",alignSelf:"flex-end",mb:2,children:[e.imageUrl&&ts.jsx(eu,{w:"120px",h:"120px",mb:2,borderRadius:"12px",background:a,children:ts.jsx(Kg,{src:e.imageUrl,alt:"Uploaded image",w:"100%",h:"100%",borderRadius:"12px",objectFit:"cover"})}),(e.content.length>0||e.repliedProduct)&&ts.jsxs(tm,{bg:"lightBackground",borderRadius:"24px",px:3,py:2,gap:2,alignItems:"start",w:"full",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:[e.repliedProduct&&ts.jsxs(em,{bg:"background",borderRadius:"12px",p:2,gap:2,w:"full",children:[ts.jsx(Kg,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),ts.jsx(Cu,{fontSize:"12px",fontWeight:"400",color:"text",children:e.repliedProduct.name})]}),ts.jsx(os.Suspense,{fallback:ts.jsx(Cu,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"text",fontFamily:"system-ui, sans-serif",whiteSpace:"pre-wrap",children:e.content}),children:ts.jsx(Mb,{variant:"user",children:e.content})})]})]});if("products"===e.type)return ts.jsx(eu,{maxW:"100%",alignSelf:"flex-start",mb:4,w:"full",opacity:o?1:0,transform:o?"translateY(0)":"translateY(4px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:ts.jsx(jb,{products:e.products||[],shape:e.shape})});if("suggestions"===e.type)return ts.jsx(Ob,{suggestions:e.suggestions||[]});if("dori"===e.type&&!e.content?.trim()&&!t)return null;const l=i&&"dori"===e.type&&!t,c=n&&!t?{base:"13px",md:"12px"}:{base:"15px",md:"13px"};return ts.jsxs(tm,{align:"stretch",gap:2,opacity:o?1:0,transform:o?"translateY(0)":"translateY(4px)",transition:"opacity 0.25s ease-out, transform 0.25s ease-out",children:[ts.jsx(eu,{w:"full",alignSelf:"flex-start",children:ts.jsx(os.Suspense,{fallback:ts.jsx(Cu,{fontSize:c,fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.6",whiteSpace:"pre-wrap",children:s}),children:ts.jsx(Mb,{variant:"dori",textSize:c,children:s})})}),e.showCartActions&&ts.jsx(Ib,{}),l&&void 0!==r&&ts.jsx(Db,{messageIndex:r,feedback:e.feedback})]})},Fb=({chat:e,t:t})=>{const[r,n]=os.useState(!1);return os.useEffect(()=>{const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[]),ts.jsxs(em,{role:"status","aria-live":"polite",flexShrink:0,justify:"space-between",align:"center",px:3,py:2,bg:"backgroundMuted",borderRadius:"8px",borderLeft:"3px solid",borderLeftColor:"primary",fontSize:"13px",opacity:r?1:0,transform:r?"translateY(0)":"translateY(8px)",transition:"opacity 0.25s ease-out, transform 0.25s ease-out",children:[ts.jsx(Cu,{color:"textSecondary",fontSize:"13px",lineClamp:1,flex:1,children:"remove"===e.cartUndoState.operation?t("cartUndoRemoved").replace("{product}",e.cartUndoState.productName):t("cartUndoQuantityChanged").replace("{product}",e.cartUndoState.productName)}),ts.jsxs(em,{gap:1,children:[ts.jsx(Hg,{size:"xs",variant:"ghost",color:"primary",fontWeight:"600",fontSize:"13px",onClick:e.handleCartUndo,_hover:{bg:"transparent",opacity:.7},px:2,minW:"auto",children:t("cartUndoButton")}),ts.jsx(Vg,{size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:e.dismissCartUndo,color:"textSecondary",_hover:{bg:"transparent",opacity:.7},minW:"auto",h:"auto",p:.5,children:ts.jsx(iv,{boxSize:"12px"})})]})]})},Nb=({header:e})=>{const t=Xm(),{botData:r,pendingBubbleSuggestion:n,setPendingBubbleSuggestion:i,proactiveChips:a,proactiveChipsPosition:o,dismissProactiveChips:s,suppressProactiveForSession:l}=t,{t:c,translations:u}=Zm(),d=os.useRef(null),p=os.useCallback(()=>{const e=d.current;if(!e)return;const r=e.scrollHeight-e.scrollTop-e.clientHeight<80;t.setAutoScrollEnabled(r)},[t.setAutoScrollEnabled]),[f,h]=os.useState(!1),g=os.useRef(null);os.useEffect(()=>{if(n&&n!==g.current){g.current=n;const e=requestAnimationFrame(()=>h(!0));return()=>cancelAnimationFrame(e)}n||(h(!1),g.current=null)},[n]);const m=nv(Ag("colors","primary")),v=os.useMemo(()=>{if(!t.chatState.isRequestInProgress)return null;if(t.messages.some(e=>"loading"===e.type))return null;for(let e=t.messages.length-1;e>=0;e--)if("dori"===t.messages[e].type)return t.messages[e].id;return null},[t.chatState.isRequestInProgress,t.messages]);return ts.jsxs(ts.Fragment,{children:[e,ts.jsx(Cu,{fontWeight:"600",fontStyle:"normal",fontSize:"24px",letterSpacing:"0",w:"fit-content",transition:"opacity 0.5s ease",fontFamily:"system-ui, sans-serif",css:{background:m,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:k(r?.agent_name,u)}),ts.jsxs(tm,{flex:1,justify:"center",align:"stretch",gap:4,minH:0,transition:"opacity 0.5s ease",opacity:1,children:[ts.jsx(eu,{ref:d,flex:1,overflowY:"scroll",overflowX:"hidden","data-scroll-container":"chat-messages",overscrollBehavior:"contain",onScroll:p,css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ts.jsxs(tm,{overscrollBehavior:"contain",gap:2,align:"stretch",pb:2,children:[t.messages.reduce((e,t)=>{const r="dori"===t.type,n=r?e.doriCount:void 0,i=r&&"products"===e.prevType;return e.elements.push(ts.jsx(Lb,{message:t,isStreaming:t.id===v,doriMessageIndex:n,isAfterProducts:i},t.id)),r&&e.doriCount++,e.prevType=t.type,e},{elements:[],doriCount:0,prevType:""}).elements,ts.jsx("div",{ref:t.messagesEndRef,style:{height:"1px"}})]})}),t.cartUndoState&&ts.jsx(Fb,{chat:t,t:c}),n&&ts.jsxs(eu,{flexShrink:0,position:"relative",opacity:f?1:0,transform:f?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[ts.jsxs(Hg,{variant:"outline",borderRadius:"24px",border:"1.5px solid",borderColor:"primary",bg:"veryLightBackground",color:"text",fontSize:{base:"15px",md:"13px"},fontWeight:500,px:3,py:2,w:"full",height:"auto",lineHeight:"1.5",whiteSpace:"pre-wrap",justifyContent:"start",gap:2,_hover:{bg:"lightBackground"},onClick:()=>{const e=`${mm()}[SYSTEM: The user engaged with your proactive greeting about this page. Help them now. Jump straight into being useful — do not acknowledge this prompt or repeat any previous text.]`;t.sendMessage({message:n,apiMessage:e}),i(null)},children:[ts.jsx(lv,{boxSize:"15px",color:"primary",flexShrink:0}),ts.jsx(eu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",fontFamily:"system-ui, sans-serif",children:n})]}),ts.jsx(Vg,{position:"absolute",top:"-6px",right:"-6px",size:"xs",borderRadius:"full",bg:"backgroundMuted",border:"1px solid",borderColor:"borderColor","aria-label":"Dismiss",color:"textSecondary",_hover:{bg:"lightBackground"},minW:"18px",w:"18px",h:"18px",p:0,onClick:()=>i(null),children:ts.jsx(iv,{boxSize:"9px"})})]}),a&&a.length>0&&ts.jsx(fb,{chips:a,onChipClick:e=>{Wo("post_answer"===o?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:e}),t.sendMessage({message:e}),s()},onDismiss:()=>{Wo("post_answer"===o?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),s(),l()}}),ts.jsx(eu,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:ts.jsx(Dv,{state:t.inputState,placeholder:"generating"===t.inputState?c("processing"):c("whatsYourQuestion"),onSend:t.isInputDisabled?void 0:t.sendMessage,onStop:t.stopCurrentRequest})})]})]})},Wb=({containerRef:e,isOpen:t,showSuggestionScreen:r,scrollableSelector:n='[data-scroll-container="chat-messages"]'})=>{os.useEffect(()=>{if(!t||!e.current)return;const r=e.current,i=()=>r.querySelector(n),a=e=>{const t=i();e.preventDefault(),e.stopPropagation(),t&&(t.scrollTop+=e.deltaY)};let o=0,s=0,l=0,c=null,u=null,d=0;const p=()=>{null!==u&&(cancelAnimationFrame(u),u=null)},f=e=>{p(),o=e.touches[0].clientY,s=e.touches[0].clientX},h=e=>{const t=i(),r=e.touches[0].clientY,n=e.touches[0].clientX,a=o-r,u=s-n;var p;e.preventDefault(),e.stopPropagation(),Math.abs(a)>Math.abs(u)&&(t&&(l+=1.2*a,p=t,null===c&&(c=requestAnimationFrame(()=>(e=>{e.scrollTop+=l,l=0,c=null})(p)))),d=a,o=r)},g=()=>{const e=i();e&&Math.abs(d)>.5?(e=>{const t=()=>{d*=.92,Math.abs(d)<.4?u=null:(e.scrollTop+=d,u=requestAnimationFrame(t))};u=requestAnimationFrame(t)})(e):d=0};return r.addEventListener("wheel",a,{passive:!1}),r.addEventListener("touchstart",f,{passive:!1}),r.addEventListener("touchmove",h,{passive:!1}),r.addEventListener("touchend",g,{passive:!1}),r.addEventListener("touchcancel",g,{passive:!1}),()=>{r.removeEventListener("wheel",a),r.removeEventListener("touchstart",f),r.removeEventListener("touchmove",h),r.removeEventListener("touchend",g),r.removeEventListener("touchcancel",g),p(),null!==c&&cancelAnimationFrame(c)}},[t,r,n])},$b=({children:e,showSuggestionScreen:t,isOpen:r,isExpanded:n=!1})=>{const{isMobile:i}=im(),{botData:a}=Xm(),o=os.useRef(null),s=a?.white_label?.is_white_labeled??!1,l=a?.customization?.position?.align??"right",c=Ag("colors","borderColor"),u={bgColor:"background",zIndex:1e6,overflow:"hidden",willChange:"transform",pointerEvents:r?"auto":"none",overscrollBehavior:"contain"},d={position:"fixed",top:"0",left:"0",right:"0",bottom:"0",transform:r?"translateY(0)":"translateY(100vh)",transition:"all 0.5s ease",visibility:r?"visible":"hidden",opacity:r?1:0,...u},p={position:"fixed",[l]:n?"50%":"20px",top:"50%",visibility:r?"visible":"hidden",opacity:r?1:0,transform:r?n?"right"===l?"translate(50%, -50%)":"translate(-50%, -50%)":"translateY(-50%)":n?"right"===l?"translate(50%, -50%) translateX(120%)":"translate(-50%, -50%) translateX(-120%)":"right"===l?"translateY(-50%) translateX(120%)":"translateY(-50%) translateX(-120%)",width:n?"max(600px, 90vh)":"600px",height:n?"max(600px, 90vh)":"600px",transition:"all 0.5s ease",border:`1px solid ${c}`,borderRadius:"24px",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)",...u},f=i?d:p;return Wb({containerRef:o,isOpen:r,showSuggestionScreen:t}),ts.jsx(eu,{ref:o,...f,children:ts.jsxs(tm,{p:6,pb:2,h:"full",justify:"flex-start",align:"stretch",gap:2,children:[e,!t&&!s&&ts.jsx(eu,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ts.jsx(Lv,{variant:"default"})})]})})},Bb=({isOpen:r,onClose:n,isExpanded:i=!1,onToggleExpand:a,pendingChat:o,onPendingChatConsumed:s})=>{const{sendMessage:l,addWelcomeMessage:c,resetBot:u}=Xm(),{showSuggestionScreen:d,goToChat:p,goToSuggestion:f}=(r=>{const[n,i]=os.useState(!0),a=os.useRef(!1),o=os.useRef(!1);return os.useEffect(()=>{if(!o.current){const r=e();t()&&r.length>0&&(a.current=!0,i(!1),console.log("Skipping welcome screen - existing messages found:",r.length)),o.current=!0}},[]),os.useEffect(()=>{r&&!a.current?i(!0):r&&a.current&&i(!1)},[r]),{showSuggestionScreen:n,goToChat:os.useCallback(()=>{a.current=!0,i(!1)},[]),goToSuggestion:os.useCallback(()=>{a.current=!1,i(!0)},[])}})(r),{isMobile:h}=im(),g=os.useRef(!1);os.useEffect(()=>{r&&!g.current&&(No(),g.current=!0)},[r]);const m=h,v=(e,t,r)=>{p(),c(),l({message:e,imageUrl:t,apiMessage:r})};os.useEffect(()=>{if(r&&o){const e=setTimeout(()=>{v(o.message,o.imageUrl,o.apiMessage),s?.()},100);return()=>clearTimeout(e)}},[r,o]);return ts.jsx($b,{showSuggestionScreen:d,isOpen:r,isExpanded:i,children:d?ts.jsx(hb,{onStartChat:v,isMobile:m,isExpanded:i,onToggleExpand:a,onClose:n}):ts.jsx(Nb,{header:ts.jsx(bv,{onClose:n,isMobile:m,isExpanded:i,onToggleExpand:a,onReload:()=>{u(),f()}})})})},Hb=({onClick:e,suppressBubble:t=!1})=>{const{botData:r,dynamicWelcomeMessage:n,dynamicFollowupNudgeMessage:i,diagnosticFlow:a,diagnosticShown:o,setPendingBubbleSuggestion:s}=Xm(),{t:l}=Zm(),c=Ag("colors","primary"),u=Ag("colors","background"),d=Ag("colors","lightBackground"),p=nv(c),f=function(e,t){const r=Array.isArray(e)?e[0]:e,n=Array.isArray(t)?t[0]:t;return`linear-gradient(223deg, ${r} 0%, ${n} 25%, ${ev(n,3)} 50%, ${n} 76%, ${r} 100%)`}(u,d),[h,g]=os.useState("expanded"),[m,v]=os.useState(!1),[b,y]=os.useState(!0),[x,k]=os.useState(!1),[_,C]=os.useState(!1),[P,z]=os.useState(!1),E=os.useRef(null),T=()=>{E.current&&(clearTimeout(E.current),E.current=null)},j=()=>{T(),L||(k(!0),C(!0))};os.useEffect(()=>()=>T(),[]);const R=!0!==r?.customization?.disable_idle_animation,{getStarfieldTransform:O,getIconStyle:I}=Wv({enableTwinkling:R,enableFloating:R,enableRotation:R,enableScaling:R}),A=os.useRef(!1),D=os.useRef(0),M=os.useRef(null),L=Pu({base:!0,md:!1})??!1,F=$v(r,L),N=!(!r?.customization?.enable_avatar_in_fab||!r?.bot_image),W=r?.customization?.avatar_fab_scale,$=N&&"number"==typeof W&&Number.isFinite(W)?Math.min(1.5,Math.max(.4,W)):1,B=(e,t)=>({base:`${Math.round(e*$)}px`,md:`${Math.round(t*$)}px`}),H=r?.agent_name?l("askAgent").replace("{name}",r.agent_name):l("askDori"),V=!1!==r?.customization?.enable_proactive_engagement,U=!0===r?.customization?.enable_standalone_quiz&&a&&!o?a.welcome_hook:null,q=i||U||n,Y=V&&!t?q||r?.wellcomeMessage||l("imHereToHelp"):null,G=()=>{S();const e=++D.current;g("expanded"),y(!1),z(!1);const t=setTimeout(()=>{if(D.current===e&&(v(!0),!r?.customization?.disable_welcome_popup)){const t=setTimeout(()=>{if(D.current!==e)return;y(!0);const t=setTimeout(()=>{D.current===e&&(y(!1),setTimeout(()=>{D.current===e&&g("minimized")},300))},3e3);return()=>clearTimeout(t)},100);return()=>clearTimeout(t)}},100);return()=>clearTimeout(t)};os.useEffect(()=>{A.current||(A.current=!0,q&&!r?.customization?.disable_welcome_popup||!w()?(()=>{g("minimized"),y(!1);const e=setTimeout(()=>{v(!0)},0)})():G())},[]),os.useEffect(()=>{const e=setInterval(()=>{w()&&G()},1e3);return()=>clearInterval(e)},[]),os.useEffect(()=>{if(!q)return;if(r?.customization?.disable_welcome_popup)return;D.current++,M.current&&(clearTimeout(M.current),M.current=null),z(!0),g("expanded");const e=setTimeout(()=>{y(!0)},400),t=setTimeout(()=>{y(!1),M.current=setTimeout(()=>{g("minimized"),M.current=null},350)},i?8400:6400);return()=>{clearTimeout(e),clearTimeout(t),M.current&&(clearTimeout(M.current),M.current=null)}},[q]);const Q=()=>{const t=i||n;t&&s(t),i&&Wo("nudge.page_followup.clicked"),e&&(e(),"minimized"===h&&(y(!1),setTimeout(()=>{g("expanded"),setTimeout(()=>{r?.customization?.disable_welcome_popup||setTimeout(()=>{y(!0)},50)},100)},0)))},K=Q,X="minimized"===h||N,Z=N&&L,J="right"===F.align?"32px 0px 32px 32px":"0px 32px 32px 32px";return ts.jsxs(eu,{position:"relative",transform:m?Z?"translateY(0) scale(1)":`translateY(calc(-50% + ${F.bottomSpacing}px)) scale(1)`:Z?"translateY(100px) scale(0.9)":`translateY(calc(-50% + ${F.bottomSpacing}px + 100px)) scale(0.9)`,opacity:m?1:0,onMouseLeave:()=>{L||(T(),E.current=setTimeout(()=>{k(!1),C(!1)},100))},children:[ts.jsx(cb,{channels:r?.merchant_support_channels,isOpen:x,onToggle:()=>k(!x),isMobile:L,onMouseEnter:j,onChatClick:e}),"expanded"===h&&Y&&!r?.customization?.disable_welcome_popup&&ts.jsx(eu,{position:"absolute",bottom:"100%",[F.align]:"0",mb:2,w:{base:"90vw",md:"25vw"},maxW:{base:"90vw",md:"300px"},bg:f,borderRadius:"16px",p:2,pe:3,boxShadow:P?"0 8px 32px rgba(0,0,0,0.16), 0 0 0 1.5px rgba(120,120,200,0.13)":"lg",opacity:b?1:0,transform:b?"translateY(0) scale(1)":P?"translateY(20px) scale(0.88)":"translateY(10px) scale(0.95)",transition:b?P?"opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1.61, 0.36, 1), box-shadow 0.4s ease":"opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1)":"opacity 0.25s ease, transform 0.25s ease",cursor:"pointer",onClick:K,children:ts.jsxs(em,{gap:1,align:"center",width:"100%",justifyContent:"flex-start",children:[ts.jsx(Vg,{size:"xs",variant:"ghost","aria-label":"Close",onClick:e=>{e.stopPropagation(),i&&Wo("nudge.page_followup.dismissed"),y(!1),setTimeout(()=>g("minimized"),300)},color:"text",_hover:{"@media (hover: hover) and (pointer: fine)":{bg:"rgba(0,0,0,0.1)"}},h:"auto",p:1,children:ts.jsx(iv,{boxSize:"16px"})}),ts.jsx(Cu,{fontSize:"12px",fontWeight:"400",color:"text",lineHeight:"1.75",flex:1,width:"100%",fontFamily:"system-ui, sans-serif",children:Y})]})}),ts.jsx(Hg,{borderRadius:X?"50%":J,borderWidth:0,bg:p,color:"text",border:"none !important",w:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(230,270):{base:"120px",md:"150px"},minW:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(230,270):{base:"120px",md:"150px"},h:X?N?B(96,112):{base:"48px",md:"56px"}:N?B(96,112):"auto",p:X?"0":{base:2,md:3},overflow:"hidden",transition:"width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), min-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.4s ease, padding 0.3s ease, transform 0.2s ease",onClick:Q,className:"fab-glass",_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.05)"}},style:{borderRadius:X?"50%":J,cursor:"pointer",touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},onMouseEnter:j,justifyContent:"center",children:ts.jsxs(em,{gap:X?0:2,position:"relative",w:"full",justify:X?"center":"space-between",overflow:"hidden",children:[ts.jsx(Cu,{fontSize:{base:"14px",md:"16px"},fontWeight:{base:"500",md:"600"},lineHeight:"1.5",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",color:"background",opacity:X?0:1,maxW:X?"0px":"200px",transition:"opacity 0.2s ease, max-width 0.35s ease",overflow:"hidden",children:H}),!x&&(r?.customization?.enable_avatar_in_fab&&r?.bot_image?ts.jsx(Kg,{src:r.bot_image,alt:"",role:"presentation",boxSize:X?B(100,116):B(80,92),borderRadius:"full",objectFit:"cover",flexShrink:0}):ts.jsx(gv,{boxSize:{base:"20px",md:"24px"},color:"background",transform:O(h,F),...I(),flexShrink:0}))]})})]})},Vb={English:{subtitle:e=>`Answer ${e} quick question${e>1?"s":""} for personalized recommendations`,cta:"Start →",skip:"Or open chat instead"},Czech:{subtitle:e=>`Odpovězte na ${e} ${1===e?"otázku":"otázky"} pro personalizovaná doporučení`,cta:"Začít →",skip:"Nebo otevřít chat"},German:{subtitle:e=>`Beantworten Sie ${e} kurze Frage${e>1?"n":""} für persönliche Empfehlungen`,cta:"Starten →",skip:"Oder Chat öffnen"},Hungarian:{subtitle:e=>`Válaszolj ${e} gyors kérdésre személyre szabott ajánlásokért`,cta:"Indítás →",skip:"Vagy nyisd meg a chatet"},Persian:{subtitle:e=>`به ${e} سوال کوتاه پاسخ بدید تا پیشنهادات شخصی دریافت کنید`,cta:"شروع →",skip:"یا چت را باز کنید"},French:{subtitle:e=>`Répondez à ${e} question${e>1?"s":""} rapide${e>1?"s":""} pour des recommandations personnalisées`,cta:"Commencer →",skip:"Ou ouvrir le chat"},Spanish:{subtitle:e=>`Responde ${e} pregunta${e>1?"s":""} rápida${e>1?"s":""} para recomendaciones personalizadas`,cta:"Empezar →",skip:"O abrir el chat"},Arabic:{subtitle:e=>`أجب عن ${e} ${e>1?"أسئلة":"سؤال"} سريع للحصول على توصيات مخصصة`,cta:"ابدأ →",skip:"أو افتح المحادثة"},Turkish:{subtitle:e=>`Kişiselleştirilmiş öneriler için ${e} hızlı soruyu yanıtlayın`,cta:"Başla →",skip:"Veya sohbeti aç"},Portuguese:{subtitle:e=>`Responda ${e} pergunta${e>1?"s":""} rápida${e>1?"s":""} para recomendações personalizadas`,cta:"Começar →",skip:"Ou abrir o chat"},Italian:{subtitle:e=>`Rispondi a ${e} domanda${e>1?"e":""} veloce${e>1?"i":""} per raccomandazioni personalizzate`,cta:"Inizia →",skip:"Oppure apri la chat"}},Ub=({hookText:e,stepCount:t,language:r,onStart:n,onSkipToChat:i,onDismiss:a})=>{const o=function(e){return Vb[e]||Vb.English}(r);return ts.jsxs(tm,{gap:3,align:"stretch",w:"full",children:[ts.jsxs(em,{justify:"space-between",align:"start",children:[ts.jsxs(em,{gap:2,align:"center",children:[ts.jsx(lv,{boxSize:"18px",color:"primary"}),ts.jsx(Cu,{fontSize:"16px",fontWeight:600,color:"text",lineHeight:"1.3",fontFamily:"system-ui, sans-serif",children:e})]}),ts.jsx(eu,{as:"button",onClick:a,cursor:"pointer",p:1,borderRadius:"full",opacity:.5,_hover:{opacity:1,bg:"lightBackground"},transition:"all 0.15s ease",flexShrink:0,"aria-label":"Close",children:ts.jsx(Cu,{fontSize:"16px",color:"text",lineHeight:"1",children:"×"})})]}),ts.jsx(Cu,{fontSize:"13px",color:"mutedText",lineHeight:"1.5",fontFamily:"system-ui, sans-serif",children:o.subtitle(t)}),ts.jsx(Hg,{onClick:n,bg:"primary",color:"white",borderRadius:"12px",h:"40px",fontSize:"14px",fontWeight:500,fontFamily:"system-ui, sans-serif",_hover:{opacity:.9},_active:{transform:"scale(0.98)"},w:"full",children:o.cta}),ts.jsx(eu,{as:"button",onClick:i,cursor:"pointer",alignSelf:"center",children:ts.jsx(Cu,{fontSize:"12px",color:"mutedText",fontFamily:"system-ui, sans-serif",_hover:{color:"text"},transition:"color 0.15s ease",children:o.skip})})]})},qb="dori-quiz-dismissed";function Yb(){try{return"true"===sessionStorage.getItem(qb)}catch{return!1}}function Gb(){try{sessionStorage.setItem(qb,"true")}catch{}}const Qb=({onOpenWidget:e,onStartChat:t,onDismissed:r})=>{const{diagnosticFlow:n,diagnosticShown:i,markDiagnosticShown:a,effectiveLanguage:o}=Xm(),s=o||"English",[l,c]=os.useState("hidden"),[u,d]=os.useState(!1),p=os.useRef(null),f=os.useRef(!1),h=!!n&&!i&&!Yb();return os.useEffect(()=>(h&&"hidden"===l&&(p.current=setTimeout(()=>{c("teaser"),requestAnimationFrame(()=>{requestAnimationFrame(()=>d(!0))}),f.current||(f.current=!0,No()?.capture("quiz_card_impression"))},800)),h||"hidden"===l||(c("hidden"),d(!1)),()=>{p.current&&clearTimeout(p.current)}),[h]),"hidden"!==l&&n?ts.jsx(eu,{position:"fixed",left:{base:"12px",md:"24px"},bottom:{base:"12px",md:"24px"},right:{base:"12px",md:"auto"},width:{base:"auto",md:"expanded"===l?"400px":"320px"},maxW:{base:"calc(100vw - 24px)",md:"400px"},zIndex:999999,opacity:u?1:0,transform:u?"translateY(0)":"translateY(16px)",transition:"all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)",children:ts.jsxs(eu,{bg:"background",borderRadius:"20px",border:"1px solid",borderColor:"borderColor",boxShadow:"0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)",p:4,overflow:"hidden",transition:"all 0.3s ease",children:["teaser"===l&&ts.jsx(Ub,{hookText:n.welcome_hook,stepCount:n.steps.length,language:s,onStart:()=>{c("expanded"),No()?.capture("quiz_card_started")},onSkipToChat:()=>{d(!1),Gb(),a(),No()?.capture("quiz_card_skip_to_chat"),setTimeout(()=>{c("hidden"),r?.(),e()},300)},onDismiss:()=>{d(!1),Gb(),No()?.capture("quiz_card_dismiss"),setTimeout(()=>{c("hidden"),r?.()},300)}}),"expanded"===l&&ts.jsx(db,{flow:n,onComplete:(e,r)=>{a(),No()?.capture("quiz_card_completed"),d(!1),setTimeout(()=>{c("hidden"),t(e,void 0,r),No()?.capture("quiz_card_widget_opened")},350)}})]})}):null},Kb="dori-session-context-v1";function Xb(e){const t=(r=e.pageContext.page_type,n=e.session.product_pages_viewed,"cart"===r?"cart_help":"search"===r?"search_refine":"product"===r?n>=2?"compare":"next_step":"category"===r?"filter":"homepage"===r?"gift_help":"next_step");var r,n;return{business_description:e.businessDescription,lang:e.lang,page_type:e.pageContext.page_type,h1:e.pageContext.h1||"",page_link:e.pageContext.page_link||"",dwell_sec:e.dwellSec,scroll_percent:e.scrollPercent,idle_sec:e.idleSec,trigger_signal:e.triggerSignal,previous_page_type:e.session.previous_page_type,product_pages_viewed:e.session.product_pages_viewed,last_search_term:e.session.last_search_term,cart_visited:e.session.cart_visited,suggested_intent:t}}function Zb(){const[e,t]=os.useState(()=>gm()),[r,n]=os.useState(()=>function(){try{const e=sessionStorage.getItem(Kb);if(!e)return{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null};const t=JSON.parse(e);return 1!==t?.v?{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null}:t}catch{return{v:1,current_page_type:null,previous_page_type:null,product_pages_viewed:0,last_search_term:null,cart_visited:!1,last_url:null}}}()),i=os.useRef(null),a=os.useCallback(e=>{t(e),n(t=>{if(i.current===e.page_link)return t;i.current=e.page_link;const r=function(e,t){if(e.last_url===t.page_link)return e;const r={...e,previous_page_type:e.current_page_type??e.previous_page_type,current_page_type:t.page_type,last_url:t.page_link};if("product"===t.page_type&&(r.product_pages_viewed=e.product_pages_viewed+1),"cart"===t.page_type&&(r.cart_visited=!0),"search"===t.page_type)try{const n=new URL(t.page_link);r.last_search_term=n.searchParams.get("q")||n.searchParams.get("s")||n.searchParams.get("search")||e.last_search_term}catch{}return r}(t,e);return function(e){try{sessionStorage.setItem(Kb,JSON.stringify(e))}catch{}}(r),r})},[]);return os.useEffect(()=>{a(gm())},[a]),os.useEffect(()=>{let e=window.location.href;const t=()=>{const t=window.location.href;t!==e&&(e=t,a(gm()))};window.addEventListener("popstate",t);const r=history.pushState.bind(history);history.pushState=(...e)=>{r(...e),t()};const n=history.replaceState.bind(history);return history.replaceState=(...e)=>{n(...e),t()},()=>{window.removeEventListener("popstate",t),history.pushState=r,history.replaceState=n}},[a]),{pageContext:e,session:r,refreshPageContext:os.useCallback(()=>a(gm()),[a])}}function Jb(e){const t=e.is_on_sale&&null!=e.sale_price?e.sale_price:e.price;if(null==t)return;const r=e.sale_currency||e.currency||"";return r?`${r} ${t}`:String(t)}function ey(e){const t=e.metadata||{},r="string"==typeof t.brand?t.brand:void 0,n="string"==typeof t.vendor?t.vendor:void 0;return r||n}function ty(e){return{title:e.name,brand:ey(e),price:Jb(e),category:e.category||e.sub_category}}const ry="dori-page-followup-fired-count";function ny(){try{return parseInt(sessionStorage.getItem(ry)||"0",10)||0}catch{return 0}}function iy(){return"undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches}function ay(){if("undefined"==typeof document)return 0;const e=document.documentElement,t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.min(100,Math.max(0,Math.round(e.scrollTop/t*100)))}const oy=({isWidgetOpen:e})=>(function({isWidgetOpen:e}){const t=Xm(),{session:r,pageContext:n}=Zb(),{botData:i,messages:a,chatState:o,isInputDisabled:s,setProactiveChips:l,proactiveChips:c,proactiveSuppressedThisSession:u,effectiveLanguage:d}=t,p=os.useRef(0),f=os.useRef(null),h=os.useRef(null),g=os.useRef(null),m=os.useRef(!1),v=os.useRef(null),b=os.useRef(null),y=os.useRef(null);os.useEffect(()=>{e?(v.current=Date.now(),m.current=!1):(p.current=0,f.current=null,m.current=!1,v.current=null,null!==h.current&&(window.clearTimeout(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null),null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null))},[e]);const x=os.useCallback(()=>{null!==h.current&&(window.clearTimeout(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null)},[]),k=os.useCallback(()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null)},[]);os.useEffect(()=>()=>{x(),k()},[x,k]),os.useEffect(()=>{o.isRequestInProgress&&(x(),k())},[o.isRequestInProgress,x,k]);const _=!!i&&!!i.is_widget_enabled&&!1!==i.customization?.enable_proactive_engagement&&!u,w=function(e){if(0===e.length)return null;let t=-1;for(let c=e.length-1;c>=0;c--)if("user"===e[c].type){t=c;break}const r=-1===t?e:e.slice(t+1);if(0===r.length)return null;if(r.some(e=>"typing"===e.type||"loading"===e.type))return null;const n=r.some(e=>"products"===e.type),i=[];let a=0;for(const c of r)if("products"===c.type&&c.products?.length){a+=c.products.length;for(const e of c.products)i.length<5&&i.push(ty(e))}const o=r.some(e=>"suggestions"===e.type),s=r.some(e=>"dori"===e.type),l=r[r.length-1];return{hasProductCards:n,productCount:a,hasSuggestions:o,hasPlainAnswer:s,finished:!0,turnFinishedAt:l.timestamp instanceof Date?l.timestamp.getTime():Date.now(),products:i,lastUserMessage:-1===t?null:(e[t].content||"").trim()||null}}(a),S=w?`${w.turnFinishedAt}:${w.hasProductCards}:${w.productCount}:${w.hasSuggestions}:${w.hasPlainAnswer}`:null;os.useEffect(()=>{e&&_&&i&&(p.current>=3||o.isRequestInProgress||s||c||w&&w.finished&&function(e,t){if(e.hasProductCards||e.hasSuggestions)return!0;if(!e.hasPlainAnswer)return!1;const r=[...t].reverse().find(e=>"dori"===e.type);if(!r)return!1;const n=(r.content||"").trim().toLowerCase();return!!n&&!["error","rate limit","exceeded","try again","couldn't","could not"].some(e=>n.startsWith(e))}(w,a)&&S&&f.current!==S&&(f.current=S,x(),h.current=window.setTimeout(async()=>{if(h.current=null,!e||u||p.current>=3||!i.business_description)return;const t=new AbortController;g.current=t;const a=Xb({businessDescription:i.business_description,lang:String(d??"English"),pageContext:n,session:r,dwellSec:0,scrollPercent:0,idleSec:Math.floor(25),triggerSignal:"post_answer"}),o=function(e){return e.hasProductCards&&e.productCount>=2?`I showed ${e.productCount} product cards.`:e.hasProductCards?"I showed 1 product card.":e.hasSuggestions?"I offered clickable suggestions.":"I answered with a text reply."}(w),{chips:s,bannedToken:c}=await dm(a,"post_answer",o,t.signal,{lastUserMessage:w.lastUserMessage,lastAnswerProducts:w.products.length>0?w.products:null});g.current=null,c&&Wo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:a.suggested_intent,nudge_position:"post_answer"}),s&&(p.current+=1,l(s,"post_answer"),Wo("nudge.in_chat.post_answer.fired",{last_answer_shape:o,chip_count:s.length,suggested_intent:a.suggested_intent}))},25e3)))},[S,e,o.isRequestInProgress,s,u,_]),os.useEffect(()=>{if(!e)return;if(!_)return;if(!i)return;if(m.current)return;if(c)return;if(a.some(e=>"user"===e.type))return;const t=v.current??Date.now(),o=Date.now()-t,s=Math.max(0,25e3-o);return null!==b.current&&window.clearTimeout(b.current),b.current=window.setTimeout(async()=>{if(b.current=null,!e)return;if(m.current)return;if(u)return;if(a.some(e=>"user"===e.type))return;if(!i.business_description)return;if(function(){if("undefined"==typeof document)return!1;const e=document.querySelector("#dori-react-widget-host");if(!e)return!1;const t=(e.shadowRoot||e).querySelectorAll("input, textarea");for(const r of Array.from(t)){const e=r.value;if(e&&e.trim().length>0)return!0}return!1}())return;const t=new AbortController;y.current=t;const o=Xb({businessDescription:i.business_description,lang:String(d??"English"),pageContext:n,session:r,dwellSec:0,scrollPercent:0,idleSec:Math.floor(20),triggerSignal:"pre_message"}),{chips:s,bannedToken:c}=await dm(o,"pre_message",null,t.signal);y.current=null,c&&Wo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:o.suggested_intent,nudge_position:"pre_message"}),s&&(m.current=!0,l(s,"pre_message"),Wo("nudge.in_chat.pre_message.fired",{page_type:o.page_type,suggested_intent:o.suggested_intent,chip_count:s.length}))},s),()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null)}},[e,a.length,u,_])}({isWidgetOpen:e}),function({isWidgetOpen:e}){const t=Xm(),{session:r,pageContext:n}=Zb(),{botData:i,dynamicWelcomeMessage:a,setDynamicFollowupNudgeMessage:o,proactiveSuppressedThisSession:s,effectiveLanguage:l,diagnosticFlow:c,diagnosticShown:u}=t,d=os.useRef(!1),p=os.useRef(Date.now()),f=os.useRef(Date.now()),h=os.useRef(null),g=os.useRef(null),m=os.useCallback(()=>{null!==h.current&&(window.clearInterval(h.current),h.current=null),g.current&&(g.current.abort(),g.current=null)},[]);os.useEffect(()=>{d.current=!1,p.current=Date.now(),f.current=Date.now()},[n.page_link]);const v=os.useCallback(async t=>{if(d.current)return;if(!i)return;if(!i.is_widget_enabled)return;if(!1===i.customization?.enable_proactive_engagement)return;if(s)return;if(ny()>=2)return;if(e)return;if(c&&!u)return;if(i.banned_paths?.length){const e=window.location.pathname.toLowerCase();if(i.banned_paths.some(t=>e.includes(t.toLowerCase())))return}if(!i.business_description)return;d.current=!0,m();const h=Math.floor((Date.now()-p.current)/1e3),v=Math.floor((Date.now()-f.current)/1e3),b=Xb({businessDescription:i.business_description,lang:String(l??"English"),pageContext:n,session:r,dwellSec:h,scrollPercent:ay(),idleSec:v,triggerSignal:t}),y=new AbortController;g.current=y;const x=await async function(e,t,r){try{const n=new AbortController,i=setTimeout(()=>n.abort(),1e4),a=r?AbortSignal.any([r,n.signal]):n.signal,o=await fetch(am.generateFollowupNudge,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,prior_welcome_text:t}),signal:a});if(clearTimeout(i),!o.ok)return console.warn("[Dori Widget] fetchFollowupNudge failed:",o.status),null;const s=await o.json();return s?.message??null}catch(n){return"AbortError"!==n?.name&&console.warn("[Dori Widget] fetchFollowupNudge error:",n),null}}(b,a,y.signal);g.current=null,x&&(o(x),function(){const e=ny()+1;try{sessionStorage.setItem(ry,String(e))}catch{}}(),Wo("nudge.page_followup.fired",{page_type:b.page_type,suggested_intent:b.suggested_intent,trigger_signal:t,dwell_sec:h}))},[i,e,s,n,r,a,o,l,m,c,u]),b=os.useRef(v);os.useEffect(()=>{b.current=v},[v]),os.useEffect(()=>{if(i){if(!e)return h.current=window.setInterval(()=>{if(d.current)return void m();const e=Date.now()-p.current,t=ay();if(e>=2e4)b.current("dwell");else if(e>=8e3&&t>=60)b.current("scroll");else if(!iy()&&Date.now()-f.current>=1e4)return void b.current("idle")},500),()=>{null!==h.current&&(window.clearInterval(h.current),h.current=null)};m()}},[i,e,n.page_link,m]),os.useEffect(()=>{if(iy())return;const e=()=>{f.current=Date.now()},t=e=>{const t=Date.now()-p.current;e.clientY<=8&&t>=5e3&&v("exit")};return document.addEventListener("mousemove",e),document.addEventListener("mouseleave",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseleave",t)}},[v]),os.useEffect(()=>m,[m])}({isWidgetOpen:e}),null);function sy(){const[e,r]=os.useState(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")}),[n,i]=os.useState(!1),[a,o]=os.useState(""),{botData:s,updateBotData:l,diagnosticFlow:c,diagnosticShown:u}=Xm(),[d,p]=os.useState(null),[f,h]=os.useState(!1),g=!0===s?.customization?.disable_welcome_popup,m=!(!0!==s?.customization?.enable_standalone_quiz||!c||u||f||e||Yb()||g),{isCurrentPathBanned:v}=(e=>{const[t,r]=os.useState("");return os.useEffect(()=>{const e=()=>{r("undefined"==typeof window?"":window.location.pathname)};e();const t=()=>{e()};window.addEventListener("popstate",t);const n=history.pushState,i=history.replaceState;return history.pushState=function(...t){n.apply(history,t),e()},history.replaceState=function(...t){i.apply(history,t),e()},()=>{window.removeEventListener("popstate",t),history.pushState=n,history.replaceState=i}},[]),{isCurrentPathBanned:()=>((e,t=[])=>{if(!t||0===t.length)return!1;const r=e.replace(/^\/+/,"").toLowerCase();return t.some(e=>{const t=e.replace(/^\/+/,"").toLowerCase();return r.includes(t)})})(t,e)}})(s?.banned_paths||[]);os.useEffect(()=>{s?.merchant_support_channels?.crisp?.enabled&&(Hv(),Bv()&&window.$crisp.push(["on","chat:closed",()=>{Hv()}]))},[s?.merchant_support_channels?.crisp?.enabled]),os.useEffect(()=>{s?.merchant_support_channels?.chatra?.enabled&&(eb("hideChatraWidget invoked"),Yv=!0,function(e){if(tb())return void e();const t=Date.now(),r=setInterval(()=>{tb()?(clearInterval(r),e()):Date.now()-t>Uv&&(clearInterval(r),eb("Chatra never became ready within",Uv,"ms"))},200)}(()=>{Gv||nb("initial hide")}),null!==Qv||"undefined"==typeof window||Gv||(Kv=Date.now(),Qv=setInterval(ab,1e3)))},[s?.merchant_support_channels?.chatra?.enabled]),function({sharingId:e}){const{initializeBot:r,resetBot:n}=Xm(),i=os.useRef(void 0);os.useEffect(()=>{i.current&&e&&i.current!==e&&n?.(),i.current=e,e&&!t()&&r(e)},[e,r,n])}({sharingId:a});const b=Pu({base:!0,md:!1})??!1,y=((e,t=!1)=>{const{align:r,sideSpacing:n}=e;return t?{bottom:"90px",[r]:`${n}px`}:{top:"50%",[r]:`${n}px`}})($v(s,b),!(!s?.customization?.enable_avatar_in_fab||!s?.bot_image)&&b);os.useEffect(()=>{window.chatbotData?o(window.chatbotData.sharingID):Bo("useEffect sharing ID",()=>{o((()=>{const e=document.querySelector("script#dori-side-widget");return e?.getAttribute("data-sharing-id")||""})());const e=document.querySelector("script#dori-side-widget");if(!e)return;const t=new MutationObserver(t=>{for(const r of t)if("attributes"===r.type&&"data-sharing-id"===r.attributeName){const t=e.getAttribute("data-sharing-id")||"";o(t),console.log("data-sharing-id changed:",t)}});return t.observe(e,{attributes:!0,attributeFilter:["data-sharing-id"]}),()=>{t.disconnect()}})()},[]),os.useEffect(()=>{const e=e=>{r(!0),e?.expand&&i(!0)},t=()=>r(!1),n=()=>r(e=>!e),a=e=>{l(e)},o=window;o.doriWidget={...o.doriWidget,open:e,close:t,toggle:n,updateConfig:a};const s=t=>{const r=t.detail;e(r)};return window.addEventListener("dori:open-widget",s),window.addEventListener("dori:close-widget",t),window.addEventListener("dori:toggle-widget",n),()=>{o.doriWidget&&(o.doriWidget.open===e&&delete o.doriWidget.open,o.doriWidget.close===t&&delete o.doriWidget.close,o.doriWidget.toggle===n&&delete o.doriWidget.toggle,o.doriWidget.updateConfig===a&&delete o.doriWidget.updateConfig),window.removeEventListener("dori:open-widget",s),window.removeEventListener("dori:close-widget",t),window.removeEventListener("dori:toggle-widget",n)}},[l]);const x=os.useCallback(()=>{const e=(()=>{if(console.log("[Dori Widget] botData:",s),null===s)return console.log("[Dori Widget] botData is null, defaulting widget enabled to true"),!0;const e=!0===s.is_widget_enabled||null===s.is_widget_enabled;return console.log("[Dori Widget] botData.is_widget_enabled:",s.is_widget_enabled,"-> widget enabled:",e),e})(),t=v(),r=!e||t;return console.log("shouldHideWidget",e,t,"-> shouldHide:",r),r},[s,v])();console.log("App render - shouldHide:",x,"isOpen:",e);const k=os.useCallback((e,t,n)=>{h(!0),p({message:e,imageUrl:t,apiMessage:n}),r(!0)},[]),_=os.useCallback(()=>{p(null)},[]);return ts.jsx(eu,{fontFamily:"system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:!x&&ts.jsxs(ts.Fragment,{children:[ts.jsx(oy,{isWidgetOpen:e}),ts.jsx(Bb,{isOpen:e,onClose:()=>r(!1),isExpanded:n,onToggleExpand:e=>i(void 0===e?!n:e),pendingChat:d,onPendingChatConsumed:_}),m&&ts.jsx(Qb,{onOpenWidget:()=>r(!0),onStartChat:k,onDismissed:()=>h(!0)}),!e&&ts.jsx(eu,{position:"fixed",zIndex:"1000000",...y,children:ts.jsx(Hb,{onClick:()=>{r(!e)},suppressBubble:m})})]})})}function ly(){return ts.jsx(sy,{})}console.log("isDevelopment",!1);var cy={};const uy=qo(Pc),dy=qo(Il);function py(){throw new Error("[Dori Widget] react-dom/server is excluded from this build (see react-dom-server-stub.ts)")}const fy=py,hy=py,gy={renderToString:fy,renderToStaticMarkup:hy},my=qo(Object.freeze(Object.defineProperty({__proto__:null,default:gy,renderToStaticMarkup:hy,renderToString:fy},Symbol.toStringTag,{value:"Module"})));var vy,by,yy,xy,ky,_y,wy={exports:{}};function Sy(){return by?vy:(by=1,vy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Cy(){if(xy)return yy;xy=1;var e=Sy();function t(){}function r(){}return r.resetWarningCache=t,yy=function(){function n(t,r,n,i,a,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a}}function Py(){return ky||(ky=1,wy.exports=Cy()()),wy.exports}function zy(){if(_y)return cy;_y=1,Object.defineProperty(cy,"__esModule",{value:!0});var e=as(),t=uy,r=dy,n=Ss(),i=my,a=Py();function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),l=o(r),c=o(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Vo?Vo:"undefined"!=typeof self?self:{};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p=d(function(e){var t,r,n,i,a,o,s,l,c,d,p,f,h,g,m;t=u,r=function(e,t,n){if(!l(t)||d(t)||p(t)||f(t)||s(t))return t;var i,a=0,o=0;if(c(t))for(i=[],o=t.length;a<o;a++)i.push(r(e,t[a],n));else for(var u in i={},t)Object.prototype.hasOwnProperty.call(t,u)&&(i[e(u,n)]=r(e,t[u],n));return i},n=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},i=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return(r=e,n=t,i=(n=n||{}).separator||"_",a=n.split||/(?=[A-Z])/,r.split(a).join(i)).toLowerCase();var r,n,i,a},o=Object.prototype.toString,s=function(e){return"function"==typeof e},l=function(e){return e===Object(e)},c=function(e){return"[object Array]"==o.call(e)},d=function(e){return"[object Date]"==o.call(e)},p=function(e){return"[object RegExp]"==o.call(e)},f=function(e){return"[object Boolean]"==o.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},m={camelize:n,decamelize:a,pascalize:i,depascalize:a,camelizeKeys:function(e,t){return r(g(n,t),e)},decamelizeKeys:function(e,t){return r(g(a,t),e,t)},pascalizeKeys:function(e,t){return r(g(i,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}).decamelize,f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},h=d(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}),g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},m=e.createContext(null);function v(e){var t=e.children,r=void 0===t?"":t,n=g(e,["children"]);return"string"!=typeof r&&(r=i.renderToString(r)),s.default.createElement("template",h({},n,{dangerouslySetInnerHTML:{__html:r}}))}function b(e){var t=e.root,r=e.children,i=void 0===r?null:r;return n.createPortal(i,t)}v.propTypes={children:c.default.oneOfType([c.default.string,c.default.node])},b.propTypes={root:c.default.object.isRequired,children:c.default.node};var y=new Map;function x(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(n,i){var a=p(i,{separator:"-"}),o="".concat(t,"-").concat(a);return y.has(o)||y.set(o,function(t){var r=e.forwardRef(function(r,i){var a,o,l=r.mode,c=void 0===l?"open":l,u=r.delegatesFocus,d=void 0!==u&&u,p=r.styleSheets,y=void 0===p?[]:p,x=r.ssr,k=void 0!==x&&x,_=r.children,w=g(r,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(a=i,o=e.useRef(a&&a.current),e.useEffect(function(){a&&(a.current=o.current)},[a]),o),C=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],i=!0,a=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(r.push(s.value),r.length!==t);i=!0);}catch(n){a=!0,o=n}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.useState(null),2),P=C[0],z=C[1],E="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(S.current)try{if("function"==typeof i&&i(S.current),k){var e=S.current.shadowRoot;return void z(e)}var t=S.current.attachShadow({mode:c,delegatesFocus:d});y.length>0&&(t.adoptedStyleSheets=y),z(t)}catch(n){!function(e){var t=e.error,r=e.styleSheets,n=e.root;if("NotSupportedError"!==t.name)throw t;r.length>0&&(n.adoptedStyleSheets=r)}({error:n,styleSheets:y,root:P})}},[i,S,y]),s.default.createElement(s.default.Fragment,null,s.default.createElement(t.tag,h({key:E,ref:S},w),(P||k)&&s.default.createElement(m.Provider,{value:P},k?s.default.createElement(v,{shadowroot:c,shadowrootmode:c},t.render({root:P,ssr:k,children:_})):s.default.createElement(b,{root:P},t.render({root:P,ssr:k,children:_})))))});return r.propTypes={mode:c.default.oneOf(["open","closed"]),delegatesFocus:c.default.bool,styleSheets:c.default.arrayOf(c.default.instanceOf(globalThis.CSSStyleSheet)),ssr:c.default.bool,children:c.default.node},r}({tag:a,render:r})),y.get(o)}})}x();var k=new WeakMap,_=x({},"emotion",function(e){var r,n=e.root,i=e.children,a=k.get(n)||(r=l.default({container:n,key:"react-shadow"}),k.set(n,r),r);return s.default.createElement(t.CacheProvider,{value:a},s.default.createElement(s.default.Fragment,null,i))});return cy.default=_,cy}const Ey=Uo(zy()),Ty=":host",jy=(e,t,r)=>e?.[t]||r,Ry=e=>{const t={cssVarsRoot:Ty,conditions:{light:`${Ty} &, .light &`},preflight:{scope:Ty},globalCss:{[Ty]:Ig.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"system-ui, sans-serif"},body:{value:"system-ui, sans-serif"}},colors:(()=>{const{primary:t,background:r,text:n,accent:i}=(e=>({primary:jy(e,"primary","#0070f3"),background:jy(e,"background","#f7fafc"),text:jy(e,"textPrimary","#1a202c"),accent:jy(e,"error","#ff383c")}))(e),a=rv(r,n,.05),o=Jm(n,.6),s=rv(r,n,.1),l=tv(t,10),c=tv(t,15);return{primary:{value:t},background:{value:r},text:{value:n},error:{value:i},errorBackground:{value:Jm(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:a},veryLightBackground:{value:ev(a,15)},mutedText:{value:o},borderColor:{value:s}}})(),fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}},spacing:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},28:{value:"112px"},32:{value:"128px"},36:{value:"144px"},40:{value:"160px"},44:{value:"176px"},48:{value:"192px"},52:{value:"208px"},56:{value:"224px"},60:{value:"240px"},64:{value:"256px"},72:{value:"288px"},80:{value:"320px"},96:{value:"384px"}},fontSizes:{"2xs":{value:"10px"},xs:{value:"12px"},sm:{value:"14px"},md:{value:"16px"},lg:{value:"18px"},xl:{value:"20px"},"2xl":{value:"24px"},"3xl":{value:"30px"},"4xl":{value:"36px"},"5xl":{value:"48px"},"6xl":{value:"60px"},"7xl":{value:"72px"},"8xl":{value:"96px"},"9xl":{value:"128px"}},borderWidths:{0:{value:"0px"},1:{value:"1px"},2:{value:"2px"},4:{value:"4px"},8:{value:"8px"}},radii:{none:{value:"0px"},sm:{value:"2px"},md:{value:"4px"},lg:{value:"8px"},xl:{value:"12px"},"2xl":{value:"16px"},"3xl":{value:"24px"},"4xl":{value:"32px"},full:{value:"9999px"}},lineHeights:{3:{value:"12px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},none:{value:"1"},tight:{value:"1.25"},snug:{value:"1.375"},normal:{value:"1.5"},relaxed:{value:"1.625"},loose:{value:"2"}},sizes:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},full:{value:"100%"},"3xs":{value:"224px"},"2xs":{value:"256px"},xs:{value:"320px"},sm:{value:"384px"},md:{value:"448px"},lg:{value:"512px"},xl:{value:"576px"},"2xl":{value:"672px"},"3xl":{value:"768px"},"4xl":{value:"896px"},"5xl":{value:"1024px"},"6xl":{value:"1152px"},"7xl":{value:"1280px"},"8xl":{value:"1440px"}}}}};return sf(Ig,t)};Ry();const Oy={primary:"#0070f3",background:"#ffffff",textPrimary:"#1a202c",error:"#ff383c"};function Iy({children:e}){const{botData:t}=Xm(),r=os.useMemo(()=>Ry(t?.theme??Oy),[t?.theme]);return ts.jsx(Wc,{value:r,children:e})}function Ay({children:e}){const[t,r]=os.useState(null),[n,i]=os.useState(null);return os.useEffect(()=>{if(!t?.shadowRoot||n)return;const e=Ol({key:"root",container:t.shadowRoot});i(e)},[t,n]),ts.jsx(Ey.div,{ref:r,style:{backgroundColor:"transparent",display:"block"},"data-nosnippet":"",children:t&&n&&ts.jsx(Qu,{value:()=>t.shadowRoot??document,children:ts.jsx(dc,{value:n,children:ts.jsx(Km,{children:ts.jsx(Iy,{children:e})})})})})}class Dy extends os.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),$o(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}let My=!1;const Ly=Object.freeze(Object.defineProperty({__proto__:null,initializeDoriWidget:function(){if(My)return console.log("[Dori Widget] Already initialized, skipping"),()=>{};My=!0;const e=[];let t=document.getElementById("dori-react-widget-host");t||(t=document.createElement("div"),t.id="dori-react-widget-host",t.setAttribute("data-nosnippet",""),document.body.appendChild(t));const r=zs.createRoot(t);r.render(ts.jsx(ss.StrictMode,{children:ts.jsx(Dy,{children:ts.jsx(Ay,{children:ts.jsx(ly,{})})})})),e.push(r);const n=()=>{_(()=>import("./MarkdownContent-Cnu8VPfl.js"),__vite__mapDeps([0,1]),import.meta.url).catch(()=>{})};return"function"==typeof window.requestIdleCallback?window.requestIdleCallback(n,{timeout:3e3}):window.setTimeout(n,1500),()=>{e.forEach(e=>e.unmount()),My=!1}}},Symbol.toStringTag,{value:"Module"}));export{eu as B,ru as E,Kg as I,Zg as L,Cu as T,Zc as a,Oc as b,Lc as c,Ag as d,Ly as e,Uo as g,ts as j,jc as m,os as r,Nc as u};
|