@dori-ai/dori-side-widget 1.13.0 → 1.13.2
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-BNhXJr_w.js → MarkdownContent-C1UsAsh-.js} +1 -1
- package/dist/assets/MarkdownContent-C1UsAsh-.js.br +0 -0
- package/dist/assets/MarkdownContent-C1UsAsh-.js.gz +0 -0
- package/dist/assets/{main-CYQVl9gA.js → main-BnogMn9g.js} +2 -2
- package/dist/assets/main-BnogMn9g.js.br +0 -0
- package/dist/assets/main-BnogMn9g.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-BNhXJr_w.js.br +0 -0
- package/dist/assets/MarkdownContent-BNhXJr_w.js.gz +0 -0
- package/dist/assets/main-CYQVl9gA.js.br +0 -0
- package/dist/assets/main-CYQVl9gA.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 as h,i as f,j as g,k as m,n as v,o as b,p as y,q as x,r as _,_ 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,E="undefined"!=typeof globalThis?globalThis:P;"undefined"==typeof self&&(E.self=E),"undefined"==typeof File&&(E.File=function(){});var z=Array.prototype,T=z.forEach,j=z.indexOf,R=null==E?void 0:E.navigator,O=null==E?void 0:E.document,I=null==E?void 0:E.location,A=null==E?void 0:E.fetch,D=null!=E&&E.XMLHttpRequest&&"withCredentials"in new E.XMLHttpRequest?E.XMLHttpRequest:void 0,M=null==E?void 0:E.AbortController,F=null==R?void 0:R.userAgent,L=null!=P?P:{},N={DEBUG:!1,LIB_VERSION:"1.343.2"};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,J=X.hasOwnProperty,Z=X.toString,ee=K||function(e){return"[object Array]"===Z.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(J.call(e,t))return!1;return!0}return!1},ie=e=>void 0===e,ae=e=>"[object String]"==Z.call(e),oe=e=>ae(e)&&0===e.trim().length,se=e=>null===e,le=e=>ie(e)||se(e),ce=e=>"[object Number]"==Z.call(e)&&e==e,ue=e=>ce(e)&&e>0,de=e=>"[object Boolean]"===Z.call(e),pe=e=>Y(q,e);function he(e){return null===e||"object"!=typeof e}function fe(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function ge(e){return!ie(Event)&&function(e,t){try{return e instanceof t}catch(r){return!1}}(e,Event)}var me=[!0,"true",1,"1","yes"],ve=e=>Y(me,e),be=[!1,"false",0,"0","no"];function ye(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),ye(i||r,t,r,n))}class xe{constructor(e){this.t={},this.i=e.i,this.o=ye(e.bucketSize,0,100,e.h),this.m=ye(e.refillRate,0,this.o,e.h),this.$=ye(e.refillInterval,0,864e5,e.h)}S(e,t){var r=t-e.lastAccess,n=Math.floor(r/this.$);if(n>0){var i=n*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+n*this.$}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.S(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 _e,ke,we,Se="Mobile",Ce="iOS",Pe="Android",Ee="Tablet",ze=Pe+" "+Ee,Te="iPad",je="Apple",Re=je+" Watch",Oe="Safari",Ie="BlackBerry",Ae="Samsung",De=Ae+"Browser",Me=Ae+" Internet",Fe="Chrome",Le=Fe+" OS",Ne=Fe+" "+Ce,We="Internet Explorer",$e=We+" "+Se,Be="Opera",He=Be+" Mini",Ve="Edge",Ue="Microsoft "+Ve,qe="Firefox",Ye=qe+" "+Ce,Ge="Nintendo",Qe="PlayStation",Ke="Xbox",Xe=Pe+" "+Se,Je=Se+" "+Oe,Ze="Windows",et=Ze+" Phone",tt="Nokia",rt="Ouya",nt="Generic",it=nt+" "+Se.toLowerCase(),at=nt+" "+Ee.toLowerCase(),ot="Konqueror",st="(\\d+(\\.\\d+)?)",lt=new RegExp("Version/"+st),ct=new RegExp(Ke,"i"),ut=new RegExp(Qe+" \\w+","i"),dt=new RegExp(Ge+" \\w+","i"),pt=new RegExp(Ie+"|PlayBook|BB10","i"),ht={"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"},ft=function(e,t){return t=t||"",Y(e," OPR/")&&Y(e,"Mini")?He:Y(e," OPR/")?Be:pt.test(e)?Ie:Y(e,"IE"+Se)||Y(e,"WPDesktop")?$e:Y(e,De)?Me:Y(e,Ve)||Y(e,"Edg/")?Ue:Y(e,"FBIOS")?"Facebook "+Se:Y(e,"UCWEB")||Y(e,"UCBrowser")?"UC Browser":Y(e,"CriOS")?Ne:Y(e,"CrMo")||Y(e,Fe)?Fe:Y(e,Pe)&&Y(e,Oe)?Xe:Y(e,"FxiOS")?Ye:Y(e.toLowerCase(),ot.toLowerCase())?ot:((e,t)=>{return t&&Y(t,je)||Y(r=e,Oe)&&!Y(r,Fe)&&!Y(r,Pe);var r})(e,t)?Y(e,Se)?Je:Oe:Y(e,qe)?qe:Y(e,"MSIE")||Y(e,"Trident/")?We:Y(e,"Gecko")?qe:""},gt={[$e]:[new RegExp("rv:"+st)],[Ue]:[new RegExp(Ve+"?\\/"+st)],[Fe]:[new RegExp("("+Fe+"|CrMo)\\/"+st)],[Ne]:[new RegExp("CriOS\\/"+st)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+st)],[Oe]:[lt],[Je]:[lt],[Be]:[new RegExp("(Opera|OPR)\\/"+st)],[qe]:[new RegExp(qe+"\\/"+st)],[Ye]:[new RegExp("FxiOS\\/"+st)],[ot]:[new RegExp("Konqueror[:/]?"+st,"i")],[Ie]:[new RegExp(Ie+" "+st),lt],[Xe]:[new RegExp("android\\s"+st,"i")],[Me]:[new RegExp(De+"\\/"+st)],[We]:[new RegExp("(rv:|MSIE )"+st)],Mozilla:[new RegExp("rv:"+st)]},mt=function(e,t){var r=ft(e,t),n=gt[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},vt=[[new RegExp(Ke+"; "+Ke+" (.*?)[);]","i"),e=>[Ke,e&&e[1]||""]],[new RegExp(Ge,"i"),[Ge,""]],[new RegExp(Qe,"i"),[Qe,""]],[pt,[Ie,""]],[new RegExp(Ze,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[et,""];if(new RegExp(Se).test(t)&&!/IEMobile\b/.test(t))return[Ze+" "+Se,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=ht[n]||"";return/arm/i.test(t)&&(i="RT"),[Ze,i]}return[Ze,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[Ce,t.join(".")]}return[Ce,""]}],[/(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("("+Pe+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Pe+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Pe,t.join(".")]}return[Pe,""]}],[/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/,[Le,""]],[/Linux|debian/i,["Linux",""]]],bt=function(e){return dt.test(e)?Ge:ut.test(e)?Qe:ct.test(e)?Ke:new RegExp(rt,"i").test(e)?rt:new RegExp("("+et+"|WPDesktop)","i").test(e)?et:/iPad/.test(e)?Te:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Re:pt.test(e)?Ie:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(tt,"i").test(e)?tt:/(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(Se).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)?Pe:ze:new RegExp("(pda|"+Se+")","i").test(e)?it:new RegExp(Ee,"i").test(e)&&!new RegExp(Ee+" pc","i").test(e)?at:""},yt=e=>e instanceof Error;function xt(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return we&&r.length===ke||(ke=r.length,we=r.reduce((r,n)=>{_e||(_e={});var i=_e[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,_e[n]=[l,c];break}}return r},{})),we}}class _t{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}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(t),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?t.skipFirstLines: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(e){var t;return{chunkIdMap:xt(this.stackParser),skipFirstLines:null!==(t=e.skipFirstLines)&&void 0!==t?t:1}}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)})}}var kt="?";function wt(e,t,r,n,i){var a={platform:e,filename:t,function:"<anonymous>"===r?kt:r,in_app:!0};return ie(n)||(a.lineno=n),ie(i)||(a.colno=i),a}var St=(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]:kt,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Ct=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Pt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Et=/\((\S*)(?::(\d+))(?::(\d+))\)/,zt=(e,t)=>{var r=Ct.exec(e);if(r){var[,n,i,a]=r;return wt(t,n,kt,+i,+a)}var o=Pt.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var s=Et.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[l,c]=St(o[1]||kt,o[2]);return wt(t,c,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},Tt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rt=(e,t)=>{var r=Tt.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=jt.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],a=r[1]||kt;return[a,i]=St(a,i),wt(t,i,a,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},Ot=/\(error: (.*)\)/;class It{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 At{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 Dt{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 Mt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Ft{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(Mt);return n&&(t=n[1],r=n[2]),[t,r]}}var Lt=["fatal","error","warning","log","info","debug"];function Nt(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 Wt{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 ge(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: "+Nt(e)}isSeverityLevel(e){return ae(e)&&!oe(e)&&Lt.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(yt(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(r){return}}}class $t{match(e){return ge(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+Nt(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Bt{match(e){return he(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 Ht{match(e){return fe(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return he(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(he(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 Vt=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,n={k:function(t){if(P&&(N.DEBUG||L.POSTHOG_DEBUG||r)&&!ie(P.console)&&P.console){for(var n=("__rrweb_original__"in P.console[t]?P.console[t].__rrweb_original__:P.console[t]),i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n(e,...a)}},info:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("log",...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("warn",...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("error",...t)},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=>{n.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>Vt(e+" "+t,r)};return n},Ut=Vt("[PostHog.js]"),qt=Ut.createLogger,Yt=qt("[ExternalScriptsLoader]"),Gt=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Yt.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");if("head"===e.config.external_scripts_inject_target)O.head.appendChild(n);else{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)};L.__PosthogExtensions__=L.__PosthogExtensions__||{},L.__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);Gt(e,a,r)},L.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Gt(e,n,r)};var Qt={};function Kt(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)===Qt)return}function Xt(e,t,r){if(!le(e)){if(ee(e))return Kt(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Qt)return}else for(var i in e)if(J.call(e,i)&&t.call(r,e[i],i)===Qt)return}}var Jt=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 Kt(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},Zt=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 Kt(r,function(t){Kt(t,function(t){e.push(t)})}),e};function er(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 tr=function(e){try{return e()}catch(t){return}},rr=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){Ut.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ut.critical(i)}}},nr=function(e){var t={};return Xt(e,function(e,r){(ae(e)&&e.length>0||ce(e))&&(t[r]=e)}),t},ir=["herokuapp.com","vercel.app","netlify.app"];function ar(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 ir)if(r===n)return!1;return!0}function or(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function sr(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 lr="$people_distinct_id",cr="__alias",ur="__timers",dr="$autocapture_disabled_server_side",pr="$heatmaps_enabled_server_side",hr="$exception_capture_enabled_server_side",fr="$error_tracking_suppression_rules",gr="$error_tracking_capture_extension_exceptions",mr="$web_vitals_enabled_server_side",vr="$dead_clicks_enabled_server_side",br="$product_tours_enabled_server_side",yr="$web_vitals_allowed_metrics",xr="$session_recording_remote_config",_r="$sesid",kr="$session_is_sampled",wr="$enabled_feature_flags",Sr="$early_access_features",Cr="$feature_flag_details",Pr="$stored_person_properties",Er="$stored_group_properties",zr="$surveys",Tr="$flag_call_reported",jr="$user_state",Rr="$client_session_props",Or="$capture_rate_limit",Ir="$initial_campaign_params",Ar="$initial_referrer_info",Dr="$initial_person_info",Mr="$epp",Fr="__POSTHOG_TOOLBAR__",Lr="$posthog_cookieless",Nr=[lr,cr,"__cmpns",ur,"$session_recording_enabled_server_side",pr,_r,wr,fr,jr,Sr,Cr,Er,Pr,zr,Tr,Rr,Or,Ir,Ar,Mr,Dr,"$conversations_widget_session_id","$conversations_ticket_id","$conversations_widget_state","$conversations_user_traits"];function Wr(e){return e instanceof Element&&(e.id===Fr||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function $r(e){return!!e&&1===e.nodeType}function Br(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Hr(e){return!!e&&3===e.nodeType}function Vr(e){return!!e&&11===e.nodeType}function Ur(e){return e?G(e).split(/\s+/):[]}function qr(e){var t=null==P?void 0:P.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Yr(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 Ur(t)}function Gr(e){return le(e)?null:G(e).split(/(\s+)/).filter(e=>hn(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qr(e){var t="";return an(e)&&!on(e)&&e.childNodes&&e.childNodes.length&&Xt(e.childNodes,function(e){var r;Hr(e)&&e.textContent&&(t+=null!==(r=Gr(e.textContent))&&void 0!==r?r:"")}),G(t)}function Kr(e){return ie(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Xr=["a","button","form","input","select","textarea","label"];function Jr(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 Zr(e){var t=e.parentNode;return!(!t||!$r(t))&&t}var en=["next","previous","prev",">","<"],tn=[".ph-no-rageclick",".ph-no-capture"],rn=e=>!e||Br(e,"html")||!$r(e),nn=(e,t)=>{if(!P||rn(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!Br(i,"body");)if(Vr(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var a=Zr(i);if(!a)break;if(t||Xr.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 an(e){for(var t=e;t.parentNode&&!Br(t,"body");t=t.parentNode){var r=Yr(t);if(Y(r,"ph-sensitive")||Y(r,"ph-no-capture"))return!1}if(Y(Yr(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 on(e){return!!(Br(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Br(e,"select")||Br(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var sn="(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})",ln=new RegExp("^(?:"+sn+")$"),cn=new RegExp(sn),un="\\d{3}-?\\d{2}-?\\d{4}",dn=new RegExp("^("+un+")$"),pn=new RegExp("("+un+")");function hn(e,t){if(void 0===t&&(t=!0),le(e))return!1;if(ae(e)){if(e=G(e),(t?ln:cn).test((e||"").replace(/[- ]/g,"")))return!1;if((t?dn:pn).test(e))return!1}return!0}function fn(e){var t=Qr(e);return hn(t=(t+" "+gn(e)).trim())?t:""}function gn(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Xt(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Qr(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+gn(e)).trim())}catch(i){Ut.error("[AutoCapture]",i)}}),t}function mn(e){return e.replace(/"|\\"/g,'\\"')}function vn(e){var t=e.attr__class;return t?ee(t)?t:Ur(t):void 0}class bn{constructor(e){this.disabled=!1===e;var t=re(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&r-n.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var yn=e=>{var t=null==O?void 0:O.createElement("a");return ie(t)?null:(t.href=e,t)},xn=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){Ut.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},_n=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 h=l;return null!=s&&(h+="?"+u.join("&")),null!=a&&(h+="#"+a),h},kn=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},wn="$copy_autocapture",Sn=qt("[AutoCapture]");function Cn(e,t){return t.length>e?t.slice(0,e)+"...":t}function Pn(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!$r(t));return t}class En{constructor(e){this.P=!1,this.T=null,this.I=!1,this.instance=e,this.rageclicks=new bn(e.config.rageclick),this.C=null}get R(){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}F(){if(this.isBrowserSupported()){if(P&&O){var e=e=>{e=e||(null==P?void 0:P.event);try{this.O(e)}catch(An){Sn.error("Failed to capture event",An)}};if(sr(O,"submit",e,{capture:!0}),sr(O,"change",e,{capture:!0}),sr(O,"click",e,{capture:!0}),this.R.capture_copied_text){var t=e=>{e=e||(null==P?void 0:P.event),this.O(e,wn)};sr(O,"copy",t,{capture:!0}),sr(O,"cut",t,{capture:!0})}}}else Sn.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.I=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[dr]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.C=e}getElementSelectors(e){var t,r=[];return null==(t=this.C)||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[dr],n=this.T;if(se(n)&&!de(r)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!r;return!!this.instance.config.autocapture&&!i}O(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=Kr(e);Hr(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,e.timeStamp||(new Date).getTime())&&function(e,t){if(!P||rn(e))return!1;var r,n,i;if(de(t)?(r=!!t&&tn,n=void 0):(r=null!==(i=null==t?void 0:t.css_selector_ignorelist)&&void 0!==i?i:tn,n=null==t?void 0:t.content_ignorelist),!1===r)return!1;var{targetElementList:a}=nn(e,!1);return!function(e,t){if(!1===e||ie(e))return!1;var r;if(!0===e)r=en;else{if(!ee(e))return!1;if(e.length>10)return Ut.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:n}=e;return r.some(e=>t.includes(e)||n.includes(e))})}(n,a.map(e=>{var t;return{safeText:Qr(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!Jr(a,r)}(n,this.instance.config.rageclick)&&this.O(e,"$rageclick");var i=t===wn;if(n&&function(e,t,r,n,i){var a,o,s,l;if(void 0===r&&(r=void 0),!P||rn(e))return!1;if(null!=(a=r)&&a.url_allowlist&&!qr(r.url_allowlist))return!1;if(null!=(o=r)&&o.url_ignorelist&&qr(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}=nn(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(!Jr(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 h=e.tagName.toLowerCase();switch(h){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&&(Xr.indexOf(h)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.R,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&&!Br(u,"body");)Vr(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p,h,f=[],g={},m=!1,v=!1;if(Xt(c,e=>{var t=an(e);"a"===e.tagName.toLowerCase()&&(m=e.getAttribute("href"),m=t&&m&&hn(m)&&m),Y(Yr(e),"ph-no-capture")&&(v=!0),f.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),a={tag_name:i};Xr.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?a.$el_text=Cn(1024,fn(e)):a.$el_text=Cn(1024,Qr(e)));var o=Yr(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),Xt(e.attributes,function(r){var i;if((!on(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&hn(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=Ur(o).join(" ")),a["attr__"+r.name]=Cn(1024,o)}});for(var s=1,l=1,c=e;c=Pn(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(!an(e))return{};var t={};return Xt(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&&hn(n)&&(t[r]=n)}}),t}(e);Jt(g,r)}),v)return{props:{},explicitNoCapture:v};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?f[0].$el_text=fn(e):f[0].$el_text=Qr(e)),m){var b,y;f[0].attr__href=m;var x=null==(b=yn(m))?void 0:b.host,_=null==P||null==(y=P.location)?void 0:y.host;x&&_&&x!==_&&(d=m)}return{props:Jt({$event_type:i.type,$ce_version:1},l?{}:{$elements:f},{$elements_chain:(h=f,p=h.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:vn(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return er(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return n.attributes[t]=r}),n}),p.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 er(a).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[mn(t.toString())]=mn(r.toString())}),(n+=":")+er(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";"))},null!=(r=f[0])&&r.$el_text?{$el_text:null==(n=f[0])?void 0:n.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},g)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.R.element_attribute_ignorelist,elementsChainAsString:this.I});if(o)return!1;var s=this.getElementSelectors(n);if(s&&s.length>0&&(a.$element_selectors=s),t===wn){var l,c=Gr(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 zn="0123456789abcdef";class Tn{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 Tn(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+zn.charAt(this.bytes[t]>>>4)+zn.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 Tn(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 jn{constructor(){this.A=0,this.j=0,this.D=new In}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.j++,this.j>4398046511103&&(this.A++,this.L())}return Tn.fromFieldsV7(this.A,Math.trunc(this.j/Math.pow(2,30)),this.j&Math.pow(2,30)-1,this.D.nextUint32())}L(){this.j=1024*this.D.nextUint32()+(1023&this.D.nextUint32())}}var Rn,On=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&&(On=e=>crypto.getRandomValues(e));class In{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(On(this.N),this.U=0),this.N[this.U++]}}var An,Dn=()=>Mn().toString(),Mn=()=>(Rn||(Rn=new jn)).generate(),Fn="",Ln=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Nn={H:()=>!!O,B:function(e){Ut.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(Nn.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),Fn)return Fn;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_"+Dn();!Fn&&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",Fn=a)}return Fn}(e);if(!r){var n=(i=e.match(Ln))?i[0]:"";n!==r&&Ut.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&&Ut.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{Nn.G(e,"",-1,t)}catch(r){return}}},Wn=null,$n={H:function(){if(!se(Wn))return Wn;var e=!0;if(ie(P))e=!1;else try{var t="__mplssupport__";$n.G(t,"xyz"),'"xyz"'!==$n.q(t)&&(e=!1),$n.V(t)}catch(An){e=!1}return e||Ut.error("localStorage unsupported; falling back to cookie store"),Wn=e,e},B:function(e){Ut.error("localStorage error: "+e)},q:function(e){try{return null==P?void 0:P.localStorage.getItem(e)}catch(An){$n.B(An)}return null},W:function(e){try{return JSON.parse($n.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==P||P.localStorage.setItem(e,JSON.stringify(t))}catch(An){$n.B(An)}},V:function(e){try{null==P||P.localStorage.removeItem(e)}catch(An){$n.B(An)}}},Bn=["$device_id","distinct_id",_r,kr,Mr,Dr],Hn={},Vn={H:function(){return!0},B:function(e){Ut.error("memoryStorage error: "+e)},q:function(e){return Hn[e]||null},W:function(e){return Hn[e]||null},G:function(e,t){Hn[e]=t},V:function(e){delete Hn[e]}},Un=null,qn={H:function(){if(!se(Un))return Un;if(Un=!0,ie(P))Un=!1;else try{var e="__support__";qn.G(e,"xyz"),'"xyz"'!==qn.q(e)&&(Un=!1),qn.V(e)}catch(An){Un=!1}return Un},B:function(e){Ut.error("sessionStorage error: ",e)},q:function(e){try{return null==P?void 0:P.sessionStorage.getItem(e)}catch(An){qn.B(An)}return null},W:function(e){try{return JSON.parse(qn.q(e))||null}catch(t){}return null},G:function(e,t){try{null==P||P.sessionStorage.setItem(e,JSON.stringify(t))}catch(An){qn.B(An)}},V:function(e){try{null==P||P.sessionStorage.removeItem(e)}catch(An){qn.B(An)}}},Yn=((An={})[An.PENDING=-1]="PENDING",An[An.DENIED=0]="DENIED",An[An.GRANTED=1]="GRANTED",An);class Gn{constructor(e){this._instance=e}get R(){return this._instance.config}get consent(){return this.J()?Yn.DENIED:this.K}isOptedOut(){return"always"===this.R.cookieless_mode||this.consent===Yn.DENIED||this.consent===Yn.PENDING&&(this.R.opt_out_capturing_by_default||"on_reject"===this.R.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Yn.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.R.cookie_expiration,this.R.cross_subdomain_cookie,this.R.secure_cookie)}reset(){this.Y.V(this.X,this.R.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 ve(e)?Yn.GRANTED:Y(be,e)?Yn.DENIED:Yn.PENDING}get Y(){if(!this.Z){var e=this.R.opt_out_capturing_persistence_type;this.Z="localStorage"===e?$n:Nn;var t="localStorage"===e?Nn:$n;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(ve(t.q(this.X))),t.V(this.X,this.R.cross_subdomain_cookie))}return this.Z}J(){return!!this.R.respect_dnt&&!!or([null==R?void 0:R.doNotTrack,null==R?void 0:R.msDoNotTrack,L.doNotTrack],e=>ve(e))}}var Qn=qt("[Dead Clicks]"),Kn=()=>!0,Xn=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(vr)),n=e.instance.config.capture_dead_clicks;return de(n)?n:!!re(n)||r};class Jn{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({[vr]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Qn.error("failed to load script",t):e()})}et(){var e;if(O){if(!this.tt&&null!=(e=L.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=re(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=L.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(O),Qn.info("starting...")}}else Qn.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Qn.info("stopping..."))}}var Zn=qt("[ExceptionAutocapture]");class ei{constructor(e){var t,r,n;this.rt=()=>{var e;if(P&&this.isEnabled&&null!=(e=L.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=L.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=L.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=L.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.R.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.R.capture_unhandled_rejections&&(this.nt=r(this.captureException.bind(this))),!this.ot&&this.R.capture_console_errors&&(this.ot=n(this.captureException.bind(this)))}catch(An){Zn.error("failed to start",An),this.ut()}}},this._instance=e,this.ht=!(null==(t=this._instance.persistence)||!t.props[hr]),this.dt=new xe({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:Zn}),this.R=this.vt(),this.startIfEnabledOrStop()}vt(){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.ht:e)&&(t=B({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.R.capture_console_errors||this.R.capture_unhandled_errors||this.R.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Zn.info("enabled"),this.ut(),this.it(this.rt)):this.ut()}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return Zn.error("failed to load script",t);e()})}ut(){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.ht=!!t||!1,this._instance.persistence&&this._instance.persistence.register({[hr]:this.ht}),this.R=this.vt(),this.startIfEnabledOrStop()}onConfigChange(){this.R=this.vt()}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)?Zn.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function ti(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 ri{constructor(e){var t;this._instance=e,this.ct=(null==P||null==(t=P.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Ut.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ft&&this.ft(),this.ft=void 0,Ut.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(P&&P.history){var r=this;null!=(e=P.history.pushState)&&e.__posthog_wrapped__||ti(P.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r._t("pushState")}),null!=(t=P.history.replaceState)&&t.__posthog_wrapped__||ti(P.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r._t("replaceState")}),this.bt()}}_t(e){try{var t,r=null==P||null==(t=P.location)?void 0:t.pathname;if(!r)return;r!==this.ct&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.ct=r}catch(An){Ut.error("Error capturing "+e+" pageview",An)}}bt(){if(!this.ft){var e=()=>{this._t("popstate")};sr(P,"popstate",e),this.ft=()=>{P&&P.removeEventListener("popstate",e)}}}}var ni=qt("[SegmentIntegration]"),ii="posthog-js";function ai(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 h=(null==(s=t.exception)?void 0:s.values)||[],f=h.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=h[0])?void 0:l.value)||t.message,$exception_type:null==(c=h[0])?void 0:c.type,$exception_level:t.level,$exception_list:f,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=h[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=h[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 oi{constructor(e,t,r,n,i,a){this.name=ii,this.setupOnce=function(o){o(ai(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==a||a}))}}}var si=null!=P&&P.location?kn(P.location.hash,"__posthog")||kn(location.hash,"state"):null,li="_postHogToolbarParams",ci=qt("[Toolbar]"),ui=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(ui||{});class di{constructor(e){this.instance=e}yt(e){L.ph_toolbar_state=e}wt(){var e;return null!==(e=L.ph_toolbar_state)&&void 0!==e?e:ui.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(An){return!1}t=null==P?void 0:P.localStorage}var n,i=si||kn(e.hash,"__posthog")||kn(e.hash,"state"),a=i?tr(()=>JSON.parse(atob(decodeURIComponent(i))))||tr(()=>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(li)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(An){return!1}}xt(e){var t=L.ph_load_toolbar||L.ph_load_editor;!le(t)&&te(t)?t(e,this.instance):ci.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==O||!O.getElementById(Fr));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(li,JSON.stringify(B({},n,{source:void 0}))),this.wt()===ui.LOADED)this.xt(n);else if(this.wt()===ui.UNINITIALIZED){var i;this.yt(ui.LOADING),null==(i=L.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return ci.error("[Toolbar] Failed to load",e),void this.yt(ui.UNINITIALIZED);this.yt(ui.LOADED),this.xt(n)}),sr(P,"turbolinks:load",()=>{this.yt(ui.UNINITIALIZED),this.loadToolbar(n)})}return!0}Et(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 pi=qt("[TracingHeaders]");class hi{constructor(e){this.$t=void 0,this.St=void 0,this.rt=()=>{var e,t;ie(this.$t)&&(null==(e=L.__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=L.__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=L.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return pi.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.$t)||e.call(this),null==(t=this.St)||t.call(this),this.$t=void 0,this.St=void 0)}}var fi="https?://(.*)",gi=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],mi=Zt(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],gi),vi="<masked>",bi=["li_fat_id"];function yi(e,t,r){if(!O)return{};var n,i=t?Zt([],gi,r||[]):[],a=xi(_n(O.URL,i,vi),e),o=(n={},Xt(bi,function(e){var t=Nn.q(e);n[e]=t||null}),n);return Jt(o,a)}function xi(e,t){var r=mi.concat(t||[]),n={};return Xt(r,function(t){var r=xn(e,t);n[t]=r||null}),n}function _i(e){var t,r=(t=e)?0===t.search(fi+"google.([^/?]*)")?"google":0===t.search(fi+"bing.com")?"bing":0===t.search(fi+"yahoo.com")?"yahoo":0===t.search(fi+"duckduckgo.com")?"duckduckgo":null:null,n="yahoo"!=r?"q":"p",i={};if(!se(r)){i.$search_engine=r;var a=O?xn(O.referrer,n):"";a.length&&(i.ph_keyword=a)}return i}function ki(){return navigator.language||navigator.userLanguage}function wi(){return(null==O?void 0:O.referrer)||"$direct"}function Si(e,t){var r=e?Zt([],gi,t||[]):[],n=null==I?void 0:I.href.substring(0,1e3);return{r:wi().substring(0,1e3),u:n?_n(n,r,vi):void 0}}function Ci(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=yn(r))?void 0:t.host};if(n){i.$current_url=n;var a=yn(n);i.$host=null==a?void 0:a.host,i.$pathname=null==a?void 0:a.pathname;var o=xi(n);Jt(i,o)}if(r){var s=_i(r);Jt(i,s)}return i}function Pi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(An){return}}function Ei(){try{return(new Date).getTimezoneOffset()}catch(An){return}}var zi=qt("[Web Vitals]"),Ti=9e5;class ji{constructor(e){var t;this.kt=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Pt=()=>{clearTimeout(this.Tt),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.It=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(ie(r))zi.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Ct();ie(n)||(le(null==e?void 0:e.name)||le(null==e?void 0:e.value)?zi.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?zi.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.Pt(),this.Tt=setTimeout(this.Pt,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.Pt()))}},this.rt=()=>{if(!this.P){var e,t,r,n,i=L.__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.It.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.It.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.It.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.It.bind(this)),this.P=!0):zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.kt=!(null==(t=this._instance.persistence)||!t.props[mr]),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 le(r)?(null==(t=this._instance.persistence)?void 0:t.props[yr])||["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 useAttribution(){var e=re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return null!=e&&e}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:Ti;return 0<e&&e<=6e4?Ti:e}get isEnabled(){var e=null==I?void 0:I.protocol;if("http:"!==e&&"https:"!==e)return zi.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:de(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return de(t)?t:this.kt}startIfEnabled(){this.isEnabled&&!this.P&&(zi.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({[mr]:t}),this._instance.persistence.register({[yr]:r})),this.kt=t,this.startIfEnabled()}it(e){var t,r;if(null!=(t=L.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks)e();else{var n=this.useAttribution?"web-vitals-with-attribution":"web-vitals";null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,n,t=>{t?zi.error("failed to load script",t):e()})}}Ct(){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?Zt([],gi,r||[]):[];return _n(e,n,vi)}zi.error("Could not determine current URL")}}var Ri=qt("[Heatmaps]");function Oi(e){return re(e)&&"clientX"in e&&"clientY"in e&&ce(e.clientX)&&ce(e.clientY)}class Ii{constructor(e){var t;this.kt=!1,this.P=!1,this.Ft=null,this.instance=e,this.kt=!(null==(t=this.instance.persistence)||!t.props[pr]),this.rageclicks=new bn(e.config.rageclick)}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 le(this.instance.config.capture_heatmaps)?le(this.instance.config.enable_heatmaps)?this.kt:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;Ri.info("starting..."),this.Ot(),this.Mt()}else{var e;clearInterval(null!==(e=this.Ft)&&void 0!==e?e:void 0),this.At(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[pr]:t}),this.kt=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}jt(e){this.Dt(e.originalEvent,"deadclick")}Mt(){this.Ft&&clearInterval(this.Ft),this.Ft="visible"===(null==O?void 0:O.visibilityState)?setInterval(this.Lt.bind(this),this.flushIntervalMilliseconds):null}Ot(){P&&O&&(this.Nt=this.Lt.bind(this),sr(P,"beforeunload",this.Nt),this.Ut=e=>this.Dt(e||(null==P?void 0:P.event)),sr(O,"click",this.Ut,{capture:!0}),this.zt=e=>this.Ht(e||(null==P?void 0:P.event)),sr(O,"mousemove",this.zt,{capture:!0}),this.Bt=new Jn(this.instance,Kn,this.jt.bind(this)),this.Bt.startIfEnabled(),this.qt=this.Mt.bind(this),sr(O,"visibilitychange",this.qt),this.P=!0)}At(){var e;P&&O&&(this.Nt&&P.removeEventListener("beforeunload",this.Nt),this.Ut&&O.removeEventListener("click",this.Ut,{capture:!0}),this.zt&&O.removeEventListener("mousemove",this.zt,{capture:!0}),this.qt&&O.removeEventListener("visibilitychange",this.qt),clearTimeout(this.Wt),null==(e=this.Bt)||e.stop(),this.P=!1)}Gt(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&&$r(n)&&!Br(n,"body");){if(n===r)return!1;if(Y(t,null==P?void 0:P.getComputedStyle(n).position))return!0;n=Zr(n)}return!1}(Kr(e),["fixed","sticky"],i);return{x:e.clientX+(a?0:n),y:e.clientY+(a?0:r),target_fixed:a,type:t}}Dt(e,t){var r;if(void 0===t&&(t="click"),!Wr(e.target)&&Oi(e)){var n=this.Gt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Vt(B({},n,{type:"rageclick"})),this.Vt(n)}}Ht(e){!Wr(e.target)&&Oi(e)&&(clearTimeout(this.Wt),this.Wt=setTimeout(()=>{this.Vt(this.Gt(e,"mousemove"))},500))}Vt(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?Zt([],gi,n||[]):[],a=_n(t,i,vi);this.N=this.N||{},this.N[a]||(this.N[a]=[]),this.N[a].push(e)}}Lt(){this.N&&!ne(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Ai{constructor(e){this.Jt=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Ut.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.Kt=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Yt()}Yt(){var e;this.Xt=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.Jt)}destroy(){var e;null==(e=this.Xt)||e.call(this),this.Xt=void 0}doPageView(e,t){var r,n=this.Qt(e,t);return this.Kt={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.Qt(e,null==(t=this.Kt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Kt)?void 0:e.pageViewId}}Qt(e,t){var r=this.Kt;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:ye(o/a,0,1,Ut),p=a<=1?1:ye(s/a,0,1,Ut),h=l<=1?1:ye(c/l,0,1,Ut),f=l<=1?1:ye(u/l,0,1,Ut);n=Jt(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:h,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var Di=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),Mi=Uint8Array,Fi=Uint16Array,Li=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 Fi(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Li(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 Fi(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 Fi(t);i<n;++i)++a[e[i]-1];var o,s=new Fi(t);for(i=0;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;for(o=new Fi(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 Ji=new Mi(32);for(Gi=0;Gi<32;++Gi)Ji[Gi]=5;var Zi=Ki(Xi,9),ea=Ki(Ji,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 Fi?Fi:e instanceof Li?Li: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 h=new Fi(p+1),f=oa(r[u-1],h,0);if(f>t){n=0;var g=0,m=f-t,v=1<<m;for(a.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});n<i;++n){var b=a[n].s;if(!(h[b]>t))break;g+=v-(1<<f-h[b]),h[b]=t}for(g>>>=m;g>0;){var y=a[n].s;h[y]<t?g-=1<<t-h[y]++-1:++n}for(;n>=0&&g;--n){var x=a[n].s;h[x]==t&&(--h[x],++g)}f=t}return[new Mi(h),f]},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 Fi(++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],h=d[1],f=aa(a,15),g=f[0],m=f[1],v=sa(p),b=v[0],y=v[1],x=sa(g),_=x[0],k=x[1],w=new Fi(19),S=0;S<b.length;++S)w[31&b[S]]++;for(S=0;S<_.length;++S)w[31&_[S]]++;for(var C=aa(w,7),P=C[0],E=C[1],z=19;z>4&&!P[$i[z-1]];--z);var T,j,R,O,I=c+5<<3,A=la(i,Xi)+la(a,Ji)+o,D=la(i,p)+la(a,g)+o+14+3*z+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,h),j=p,R=Ki(g,m),O=g;var M=Ki(P,E);for(na(t,u,y-257),na(t,u+5,k-1),na(t,u+10,z-4),u+=14,S=0;S<z;++S)na(t,u+3*S,P[$i[S]]);u+=3*z;for(var F=[b,_],L=0;L<2;++L){var N=F[L];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=Zi,j=Xi,R=ea,O=Ji;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 Li([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pa=function(){for(var e=new Li(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),ha=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};var fa=!!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 Xt(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===Di.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,h=(1<<r)-1,f=new Fi(32768),g=new Fi(h+1),m=Math.ceil(r/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&h},y=new Li(25e3),x=new Fi(288),_=new Fi(32),k=0,w=0,S=(l=0,0),C=0,P=0;l<i;++l){var E=b(l),z=32767&l,T=g[E];if(f[z]=T,g[E]=z,C<=l){var j=i-l;if((k>7e3||S>24576)&&j>423){s=ua(e,o,0,y,x,_,w,S,P,l-P,s),S=k=w=0,P=l;for(var R=0;R<286;++R)x[R]=0;for(R=0;R<30;++R)_[R]=0}var O=2,I=0,A=p,D=z-T&32767;if(j>2&&E==b(l-D))for(var M=Math.min(d,j)-1,F=Math.min(32767,l),L=Math.min(258,j);D<=F&&--A&&z!=T;){if(e[l+O]==e[l+O-D]){for(var N=0;N<L&&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-f[B]+32768&32767;H>$&&($=H,T=B)}}}D+=(z=T)-(T=f[z])+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],++_[U],C=l+O,++k}else y[S++]=e[l],++x[e[l]]}}s=ua(e,o,!0,y,x,_,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&&ha(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),ha(a,o-8,r.d()),ha(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===Di.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;Xt(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){Ut.error(i)}null==e.callback||e.callback(n)})).catch(t=>{Ut.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:{};Xt(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 _a(e,t,r){return va({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var ka={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))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})},wa=e=>e.toLowerCase();function Sa(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];if(ie(i)||se(i))return!1;var a=[String(i)],o=ka[n.operator];return!!o&&o(n.values,a)})}var Ca=qt("[Error tracking]");class Pa{constructor(e){var t,r;this.Zt=[],this.ti=new _t([new It,new Ht,new Dt,new At,new $t,new Wt,new Ft,new Bt],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 function(t,n){void 0===n&&(n=0);for(var i=[],a=t.split("\n"),o=n;o<a.length;o++){var s=a[o];if(!(s.length>1024)){var l=Ot.test(s)?s.replace(Ot,"$1"):s;if(!l.match(/\S*Error: /)){for(var c of r){var u=c(l,e);if(u){i.push(u);break}}if(i.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||kt});var r})}(i)}}("web:javascript",zt,Rt)),this._instance=e,this.Zt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(fr))&&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.Zt=i,this._instance.persistence&&this._instance.persistence.register({[fr]:this.Zt,[gr]:a})}get ii(){var e,t=!!this._instance.get_property(gr),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.ti.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.ei(t)){if(this.ri(t))return void Ca.info("Skipping exception capture because a suppression rule matched");if(!this.ii&&this.si(t))return void Ca.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ni(t))return void Ca.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ri(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.Zt.some(e=>{var r=e.values.map(e=>{var r,n=ka[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)})}si(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://"))}ni(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}ei(e){return!le(e)&&ee(e)}}var Ea=qt("[FeatureFlags]"),za=qt("[FeatureFlags]",{debugEnabled:!0}),Ta="$active_feature_flags",ja="$override_feature_flags",Ra="$feature_flag_payloads",Oa="$override_feature_flag_payloads",Ia="$feature_flag_request_id",Aa="$feature_flag_evaluated_at",Da=e=>{var t={};for(var[r,n]of er(e||{}))n&&(t[r]=n);return t},Ma=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class Fa{constructor(e){this.oi=!1,this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.ci=!1,this._instance=e,this.featureFlagEventHandlers=[]}fi(){var e,t=null!==(e=this._instance.config.evaluation_contexts)&&void 0!==e?e:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.ci||(Ea.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ci=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||Ea.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}pi(){return this.fi().length>0}flags(){if(this._instance.config.__preview_remote_config)this.di=!0;else{var e=!this.gi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.mi({disableFlags:e})}}get hasLoadedFlags(){return this.ai}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(Cr),t=this._instance.get_property(ja),r=this._instance.get_property(Oa);if(!r&&!t)return e||{};var n=Jt({},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],h=B({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(h.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(h.original_variant=null==l?void 0:l.variant),p&&(h.metadata=B({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),n[a]=h}return this.oi||(Ea.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.oi=!0),n}getFlagVariants(){var e=this._instance.get_property(wr),t=this._instance.get_property(ja);if(!t)return e||{};for(var r=Jt({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.oi||(Ea.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.oi=!0),r}getFlagPayloads(){var e=this._instance.get_property(Ra),t=this._instance.get_property(Oa);if(!t)return e||{};for(var r=Jt({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.oi||(Ea.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.oi=!0),r}reloadFeatureFlags(){this.ui||this._instance.config.advanced_disable_feature_flags||this.gi||(this._instance.bi.emit("featureFlagsReloading",!0),this.gi=setTimeout(()=>{this.mi()},5))}yi(){clearTimeout(this.gi),this.gi=void 0}ensureFlagsLoaded(){this.ai||this.li||this.gi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ui=e}mi(e){var t;if(this.yi(),!this._instance.M())if(this.li)this.hi=!0;else{var r=this._instance.config.token,n=this._instance.get_property("$device_id"),i={token:r,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(Pr)||{}),group_properties:this._instance.get_property(Er)};se(n)||ie(n)||(i.$device_id=n),(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.pi()&&(i.evaluation_contexts=this.fi());var a=this._instance.config.__preview_remote_config,o=a?"/flags/?v=2":"/flags/?v=2&config=true",s=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",l=this._instance.requestRouter.endpointFor("flags",o+s);a&&(i.timezone=Pi()),this.li=!0,this._instance._send_request({method:"POST",url:l,data:i,compression:this._instance.config.disable_compression?void 0:Di.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,r,n=!0;if(200===e.statusCode&&(this.hi||(this.$anon_distinct_id=void 0),n=!1),this.li=!1,this.di||(this.di=!0,this._instance.wi(null!==(r=e.json)&&void 0!==r?r:{})),!i.disable_flags||this.hi)if(this.vi=!n,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(Ma.FeatureFlags))Ea.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;i.disable_flags||this.receivedFeatureFlags(null!==(a=e.json)&&void 0!==a?a:{},n),this.hi&&(this.hi=!1,this.mi())}}})}}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlagResult(e,t);return null!==(r=null==n?void 0:n.variant)&&void 0!==r?r:null==n?void 0:n.enabled}Ea.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants(),n=e in r,i=r[e],a=this.getFlagPayloads()[e],o=String(i),s=this._instance.get_property(Ia)||void 0,l=this._instance.get_property(Aa)||void 0,c=this._instance.get_property(Tr)||{};if((t.send_event||!("send_event"in t))&&(!(e in c)||!c[e].includes(o))){var u,d,p,h,f,g,m,v,b;ee(c[e])?c[e].push(o):c[e]=[o],null==(u=this._instance.persistence)||u.register({[Tr]:c});var y=this.getFeatureFlagDetails(e),x={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:a||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(d=this._instance.config.bootstrap)||null==(d=d.featureFlags)?void 0:d[e])||null,$feature_flag_bootstrapped_payload:(null==(p=this._instance.config.bootstrap)||null==(p=p.featureFlagPayloads)?void 0:p[e])||null,$used_bootstrap_value:!this.vi};ie(null==y||null==(h=y.metadata)?void 0:h.version)||(x.$feature_flag_version=y.metadata.version);var _,k=null!==(f=null==y||null==(g=y.reason)?void 0:g.description)&&void 0!==f?f:null==y||null==(m=y.reason)?void 0:m.code;k&&(x.$feature_flag_reason=k),null!=y&&null!=(v=y.metadata)&&v.id&&(x.$feature_flag_id=y.metadata.id),ie(null==y?void 0:y.original_variant)&&ie(null==y?void 0:y.original_enabled)||(x.$feature_flag_original_response=ie(y.original_variant)?y.original_enabled:y.original_variant),null!=y&&null!=(b=y.metadata)&&b.original_payload&&(x.$feature_flag_original_payload=null==y||null==(_=y.metadata)?void 0:_.original_payload),this._instance.capture("$feature_flag_called",x)}if(n){var w=a;if(!ie(a))try{w=JSON.parse(a)}catch(S){}return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:w}}}else Ea.warn('getFeatureFlagResult for key "'+e+"\" failed. Feature flags didn't load in time.")}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.pi()&&(n.evaluation_contexts=this.fi()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:n,compression:this._instance.config.disable_compression?void 0:Di.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.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return ie(r)?void 0:!!r}Ea.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.ai=!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]}))):Ea.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,u=e.evaluatedAt;if(ee(s)){Ea.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var d={};if(s)for(var p=0;p<s.length;p++)d[s[p]]=!0;t&&t.register({[Ta]:s,[wr]:d})}else{var h=s,f=l,g=o;if(e.errorsWhileComputingFlags)if(o){var m=new Set(Object.keys(o).filter(e=>{var t;return!(null!=(t=o[e])&&t.failed)}));h=B({},r,Object.fromEntries(Object.entries(h).filter(e=>{var[t]=e;return m.has(t)}))),f=B({},n,Object.fromEntries(Object.entries(f||{}).filter(e=>{var[t]=e;return m.has(t)}))),g=B({},i,Object.fromEntries(Object.entries(g||{}).filter(e=>{var[t]=e;return m.has(t)})))}else h=B({},r,h),f=B({},n,f),g=B({},i,g);t&&t.register(B({[Ta]:Object.keys(Da(h)),[wr]:h||{},[Ra]:f||{},[Cr]:g||{}},c?{[Ia]:c}:{},u?{[Aa]:u}:{}))}}}(e,this._instance.persistence,r,n,i),this.xi(t)}}override(e,t){void 0===t&&(t=!1),Ea.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return Ea.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(ja),this._instance.persistence.unregister(Oa),this.xi(),za.info("All overrides cleared");if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;if(this.oi=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t),"flags"in r)if(!1===r.flags)this._instance.persistence.unregister(ja),za.info("Flag overrides cleared");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({[ja]:n})}else this._instance.persistence.register({[ja]:r.flags});za.info("Flag overrides set",{flags:r.flags})}return"payloads"in r&&(!1===r.payloads?(this._instance.persistence.unregister(Oa),za.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[Oa]:r.payloads}),za.info("Payload overrides set",{payloads:r.payloads}))),void this.xi()}this.xi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ai){var{flags:t,flagVariants:r}=this.Ei();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(Sr)||[]).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({[Ta]:Object.keys(Da(s)),[wr]:s}),this.xi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(Sr),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({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(Sr),null==(n=this._instance.persistence)||n.register({[Sr]:i}),e(i)}}})}Ei(){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),{})}}xi(e){var{flags:t,flagVariants:r}=this.Ei();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Pr)||{};this._instance.register({[Pr]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Pr)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Er)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=B({},r[t],e[t]),delete e[t]}),this._instance.register({[Er]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(Er)||{};this._instance.register({[Er]:B({},t,{[e]:{}})})}else this._instance.unregister(Er)}reset(){this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.$anon_distinct_id=void 0,this.yi(),this.oi=!1}}var La=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Na{constructor(e,t){var r,n;this.R=e,this.props={},this.$i=!1,this.Si=(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.ki(e),this.load(),e.debug&&Ut.info("Persistence loaded",e.persistence,B({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.Pi}ki(e){-1===La.indexOf(e.persistence.toLowerCase())&&(Ut.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=function(e){void 0===e&&(e=[]);var t=[...Bn,...e];return B({},$n,{W:function(e){try{var t={};try{t=Nn.W(e)||{}}catch(n){}var r=Jt(t,JSON.parse($n.q(e)||"{}"));return $n.G(e,r),r}catch(n){}return null},G:function(e,r,n,i,a,o){try{$n.G(e,r,void 0,void 0,o);var s={};t.forEach(e=>{r[e]&&(s[e]=r[e])}),Object.keys(s).length&&Nn.G(e,s,n,i,a,o)}catch(l){$n.B(l)}},V:function(e,t){try{null==P||P.localStorage.removeItem(e),Nn.V(e,t)}catch(An){$n.B(An)}}})}(e.cookie_persisted_properties||[]),r=e.persistence.toLowerCase();return"localstorage"===r&&$n.H()?$n:"localstorage+cookie"===r&&t.H()?t:"sessionstorage"===r&&qn.H()?qn:"memory"===r?Vn:"cookie"===r?Nn:t.H()?t:Nn}properties(){var e={};return Xt(this.props,function(t,r){if(r===wr&&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=Nr)?s:j&&a.indexOf===j?-1!=a.indexOf(o):(Xt(a,function(e){if(s||(s=e===o))return Qt}),s))||(e[r]=t);var a,o,s}),e}load(){if(!this.Pi){var e=this.Y.W(this.Si);e&&(this.props=Jt({},e))}}save(){this.Pi||this.Y.G(this.Si,this.props,this.Ti,this.Ii,this.Ci,this.R.debug)}remove(){this.Y.V(this.Si,!1),this.Y.V(this.Si,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(re(e)){ie(t)&&(t="None"),this.Ti=ie(r)?this.Ri:r;var n=!1;if(Xt(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.Ti=ie(t)?this.Ri:t;var r=!1;if(Xt(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.$i){var e=yi(this.R.custom_campaign_params,this.R.mask_personal_data_properties,this.R.custom_personal_data_properties);ne(nr(e))||this.register(e),this.$i=!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:wi(),$referring_domain:null!=O&&O.referrer&&(null==(e=yn(O.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Ir]||this.props[Ar]||this.register_once({[Dr]:Si(this.R.mask_personal_data_properties,this.R.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Xt([Ar,Ir],t=>{var r=this.props[t];r&&Xt(r,function(t,r){e["$initial_"+Q(r)]=t})});var t,r,n=this.props[Dr];if(n){var i=(t=Ci(n),r={},Xt(t,function(e,t){r["$initial_"+Q(t)]=e}),r);Jt(e,i)}return e}safe_merge(e){return Xt(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.Ri=this.Ti=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||!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),n=[...t].sort();return r.every((e,t)=>e===n[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var n=this.ki(e),i=this.props;this.clear(),this.Y=n,this.props=i,this.save()}}set_disabled(e){this.Pi=e,this.Pi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ii&&(this.Ii=e,this.remove(),this.save())}set_secure(e){e!==this.Ci&&(this.Ci=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[ur]||{};r[e]=t,this.props[ur]=r,this.save()}remove_event_timer(e){var t=(this.props[ur]||{})[e];return ie(t)||(delete this.props[ur][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var Wa=qt("[Product Tours]"),$a="ph_product_tours";class Ba{constructor(e){this.Fi=null,this.Oi=null,this._instance=e}onRemoteConfig(e){this._instance.persistence&&this._instance.persistence.register({[br]:!(null==e||!e.productTours)}),this.loadIfEnabled()}loadIfEnabled(){var e,t;this.Fi||(e=this._instance).config.disable_product_tours||null==(t=e.persistence)||!t.get_property(br)||this.it(()=>this.Mi())}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?Wa.error("Could not load product tours script",t):e()})}Mi(){var e;!this.Fi&&null!=(e=L.__PosthogExtensions__)&&e.generateProductTours&&(this.Fi=L.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!ee(this.Oi)||t){var r=this._instance.persistence;if(r){var n=r.props[$a];if(ee(n)&&!t)return this.Oi=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return Wa.error(i),void e([],{isLoaded:!1,error:i})}var a=ee(t.json.product_tours)?t.json.product_tours:[];this.Oi=a,r&&r.register({[$a]:a}),e(a,{isLoaded:!0})}})}else e(this.Oi,{isLoaded:!0})}getActiveProductTours(e){le(this.Fi)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Fi.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Fi)||t.showTourById(e)}previewTour(e){this.Fi?this.Fi.previewTour(e):this.it(()=>{var t;this.Mi(),null==(t=this.Fi)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Fi)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Fi)||e.nextStep()}previousStep(){var e;null==(e=this.Fi)||e.previousStep()}clearCache(){var e;this.Oi=null,null==(e=this._instance.persistence)||e.unregister($a)}resetTour(e){var t;null==(t=this.Fi)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Fi)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Fi)||t.cancelPendingTour(e)}}var Ha=function(e){return e.Activation="events",e.Cancellation="cancelEvents",e}({});!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"}({}),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}({});var Va=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 Ua=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e.ABANDONED="survey abandoned",e}({}),qa=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.PRODUCT_TOUR_ID="$product_tour_id",e.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",e}({}),Ya=function(e){return e.Popover="popover",e.Inline="inline",e}({}),Ga=qt("[Surveys]"),Qa="seenSurvey_",Ka=(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},Xa=e=>{return n=""+(t=Qa)+(r=e).id,r.current_iteration&&r.current_iteration>0&&(n=""+t+r.id+"_"+r.current_iteration),n;var t,r,n},Ja=[Va.Popover,Va.Widget,Va.API],Za={ignoreConditions:!1,ignoreDelay:!1,displayType:Ya.Popover};class eo{constructor(){this.Ai={},this.Ai={}}on(e,t){return this.Ai[e]||(this.Ai[e]=[]),this.Ai[e].push(t),()=>{this.Ai[e]=this.Ai[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Ai[e]||[])r(t);for(var n of this.Ai["*"]||[])n(e,t)}}function to(e,t,r){if(le(e))return!1;switch(r){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(i){return!1}default:return!1}}class ro{constructor(e){this.ji=new eo,this.Di=(e,t)=>this.Li(e,t)&&this.Ni(e,t)&&this.Ui(e,t)&&this.zi(e,t),this.Li=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Hi=new Set,this.Bi=new Set}init(){var e,t;ie(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!ie(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,r;null==(t=this.Bi)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Hi)||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.Hi.has(e)||this.Hi.has(null==t?void 0:t.event))&&this.Bi&&(null==(r=this.Bi)?void 0:r.size)>0&&this.Bi.forEach(e=>{this.qi(t,e)&&this.ji.emit("actionCaptured",e.name)})}Wi(e){this.onAction("actionCaptured",t=>e(t))}qi(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Di(e,r))return!0;return!1}onAction(e,t){return this.ji.on(e,t)}Ni(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(!to(n,t.url,t.url_matching||"contains"))return!1}return!0}Ui(e,t){return!!this.Gi(e,t)&&!!this.Vi(e,t)&&!!this.Ji(e,t)}Gi(e,t){var r;if(null==t||!t.href)return!0;var n=this.Ki(e);if(n.length>0)return n.some(e=>to(e.href,t.href,t.href_matching||"exact"));var i,a=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!a&&to((i=a.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}Vi(e,t){var r;if(null==t||!t.text)return!0;var n=this.Ki(e);if(n.length>0)return n.some(e=>to(e.text,t.text,t.text_matching||"exact")||to(e.$el_text,t.text,t.text_matching||"exact"));var i,a,o,s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!s&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!le(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(s),a=t.text,o=t.text_matching||"exact",i.some(e=>to(e,a,o)))}Ji(e,t){var r,n;if(null==t||!t.selector)return!0;var i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var a=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&a)try{return new RegExp(t.selector_regex).test(a)}catch(o){return!1}return!1}Ki(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}zi(e,t){return null==t||!t.properties||0===t.properties.length||Sa(t.properties.reduce((e,t)=>{var r=ee(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class no{constructor(e){this._instance=e,this.Yi=new Map,this.Xi=new Map,this.Qi=new Map}Zi(e,t){return!!e&&Sa(e.propertyFilters,null==t?void 0:t.properties)}te(e,t){var r=new Map;return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}ie(e,t,r){var n=(r===Ha.Activation?this.Yi:this.Xi).get(e),i=[];return this.ee(e=>{i=e.filter(e=>null==n?void 0:n.includes(e.id))}),i.filter(n=>{var i,a=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.Zi(a,t)})}register(e){var t;ie(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.re(e),this.se(e))}se(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.ne&&(this.ne=new ro(this._instance),this.ne.init(),this.ne.Wi(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.ne)||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.Qi.get(t.name);r&&r.push(e.id),this.Qi.set(t.name,r||[e.id])}}))}))}re(e){var t,r=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}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});0===r.length&&0===n.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.Yi=this.te(e,Ha.Activation),this.Xi=this.te(e,Ha.Cancellation))}onEvent(e,t){var r,n=this.oe(),i=this.ae(),a=this.le(),o=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[i])||[];if(a===e&&t&&o.length>0){var s,l;n.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:o});var c=(null==t||null==(s=t.properties)?void 0:s.$survey_id)||(null==t||null==(l=t.properties)?void 0:l.$product_tour_id);if(c){var u=o.indexOf(c);u>=0&&(o.splice(u,1),this.ue(o))}}else{if(this.Xi.has(e)){var d=this.ie(e,t,Ha.Cancellation);d.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:d.map(e=>e.id)}),d.forEach(e=>{var t=o.indexOf(e.id);t>=0&&o.splice(t,1),this.he(e.id)}),this.ue(o))}if(this.Yi.has(e)){n.info("event name matched",{event:e,eventPayload:t,items:this.Yi.get(e)});var p=this.ie(e,t,Ha.Activation);this.ue(o.concat(p.map(e=>e.id)||[]))}}}onAction(e){var t,r=this.ae(),n=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[];this.Qi.has(e)&&this.ue(n.concat(this.Qi.get(e)||[]))}ue(e){var t,r=this.oe(),n=this.ae(),i=[...new Set(e)].filter(e=>!this.de(e));r.info("updating activated items",{activatedItems:i}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[n]:i})}getActivatedIds(){var e,t=this.ae();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getEventToItemsMap(){return this.Yi}ve(){return this.ne}}class io extends no{constructor(e){super(e)}ae(){return"$surveys_activated"}le(){return Ua.SHOWN}ee(e){var t;null==(t=this._instance)||t.getSurveys(e)}he(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}oe(){return Ga}de(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class ao{constructor(e){this.ce=void 0,this._surveyManager=null,this.fe=!1,this.pe=[],this.ge=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(le(t))return Ga.warn("Flags not loaded yet. Not loading surveys.");var r=ee(t);this.ce=r?t.length>0:t,Ga.info("flags response received, isSurveysEnabled: "+this.ce),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(Qa)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.fe)Ga.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ga.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Ga.info("Not loading surveys in cookieless mode without consent.");else{var e=null==L?void 0:L.__PosthogExtensions__;if(e){if(!ie(this.ce)||this._instance.config.advanced_enable_surveys){var t=this.ce||this._instance.config.advanced_enable_surveys;this.fe=!0;try{var r=e.generateSurveys;if(r)return void this._e(r,t);var n=e.loadExternalDependency;if(!n)return void this.me("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.me("Could not load surveys script",r):this._e(e.generateSurveys,t)})}catch(i){throw this.me("Error initializing surveys",i),i}finally{this.fe=!1}}}else Ga.error("PostHog Extensions not found.")}}_e(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new io(this._instance),Ga.info("Surveys loaded successfully"),this.be({isLoaded:!0})}me(e,t){Ga.error(e,t),this.be({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.pe.push(e),this._surveyManager&&this.be({isLoaded:!0}),()=>{this.pe=this.pe.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Ga.info("Disabled. Not loading surveys."),e([]);var r,n=this._instance.get_property(zr);if(n&&!t)return e(n,{isLoaded:!0});"undefined"!=typeof Promise&&this.ge?this.ge.then(t=>{var{surveys:r,context:n}=t;return e(r,n)}):("undefined"!=typeof Promise&&(this.ge=new Promise(e=>{r=e})),this._instance._send_request({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 n;this.ge=null;var i=t.statusCode;if(200!==i||!t.json){var a="Surveys API could not be loaded, status: "+i;Ga.error(a);var o={isLoaded:!1,error:a};return e([],o),void(null==r||r({surveys:[],context:o}))}var s,l=t.json.surveys||[],c=l.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});c.length>0&&(null==(s=this._surveyEventReceiver)||s.register(c)),null==(n=this._instance.persistence)||n.register({[zr]:l});var u={isLoaded:!0};e(l,u),null==r||r({surveys:l,context:u})}}))}be(e){for(var t of this.pe)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(r){Ga.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!le(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Ga.warn("init was not called")}ye(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}we(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.ye(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(le(this._surveyManager))return Ga.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.we(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return le(this._surveyManager)?(Ga.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.we(i);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var n;if(le(this._surveyManager))Ga.warn("init was not called");else{var i="string"==typeof e?this.ye(e):e;if(null!=i&&i.id)if(Ja.includes(i.type)){var a=null==O?void 0:O.querySelector(t);if(a)return null!=(n=i.appearance)&&n.surveyPopupDelaySeconds?(Ga.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Ga.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,a,r),Ga.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,a,r);Ga.warn("Survey element not found")}else Ga.warn("Surveys of type "+i.type+" cannot be rendered in the app");else Ga.warn("Survey not found")}}displaySurvey(e,t){var r;if(le(this._surveyManager))Ga.warn("init was not called");else{var n=this.ye(e);if(n){var i=n;if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=B({},n,{appearance:B({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Ya.Popover&&t.initialResponses&&Ga.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var a=this.canRenderSurvey(n);if(!a.visible)return void Ga.warn("Survey is not eligible to be displayed: ",a.disabledReason)}t.displayType!==Ya.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else Ga.warn("Survey not found")}}cancelPendingSurvey(e){le(this._surveyManager)?Ga.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}var oo=qt("[Conversations]");class so{constructor(e){this.xe=void 0,this._conversationsManager=null,this.Ee=!1,this.$e=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;le(t)||(de(t)?this.xe=t:(this.xe=t.enabled,this.$e=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.xe=void 0,this.$e=null}loadIfEnabled(){if(!this._conversationsManager&&!this.Ee&&!(this._instance.config.disable_conversations||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==L?void 0:L.__PosthogExtensions__;if(e&&!ie(this.xe)&&this.xe)if(this.$e&&this.$e.token){this.Ee=!0;try{var t=e.initConversations;if(t)return this.Se(t),void(this.Ee=!1);var r=e.loadExternalDependency;if(!r)return void this.ke("PostHog loadExternalDependency extension not found.");r(this._instance,"conversations",t=>{t||!e.initConversations?this.ke("Could not load conversations script",t):this.Se(e.initConversations),this.Ee=!1})}catch(n){this.ke("Error initializing conversations",n),this.Ee=!1}}else oo.error("Conversations enabled but missing token in remote config.")}}Se(e){if(this.$e)try{this._conversationsManager=e(this.$e,this._instance),oo.info("Conversations loaded successfully")}catch(t){this.ke("Error completing conversations initialization",t)}else oo.error("Cannot complete initialization: remote config is null")}ke(e,t){oo.error(e,t),this._conversationsManager=null,this.Ee=!1}show(){this._conversationsManager?this._conversationsManager.show():oo.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.xe&&!se(this._conversationsManager)}isVisible(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&void 0!==e&&e}sendMessage(e,t,r){var n=this;return $(function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,r):(oo.warn("Conversations not available yet."),null)})()}getMessages(e,t){var r=this;return $(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(oo.warn("Conversations not available yet."),null)})()}markAsRead(e){var t=this;return $(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(oo.warn("Conversations not available yet."),null)})()}getTickets(e){var t=this;return $(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(oo.warn("Conversations not available yet."),null)})()}getCurrentTicketId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())&&void 0!==e?e:null}getWidgetSessionId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())&&void 0!==e?e:null}}class lo{constructor(e){var t;this.Pe=!1,this.Te=!1,this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Pe=!0)}onRemoteConfig(e){var t,r=null==(t=e.logs)?void 0:t.captureConsoleLogs;!le(r)&&r&&(this.Pe=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Pe&&!this.Te){var e=qt("[logs]"),t=null==L?void 0:L.__PosthogExtensions__;if(t){var r=t.loadExternalDependency;r?r(this._instance,"logs",r=>{var n;r||null==(n=t.logs)||!n.initializeLogs?e.error("Could not load logs script",r):(t.logs.initializeLogs(this._instance),this.Te=!0)}):e.error("PostHog loadExternalDependency extension not found.")}else e.error("PostHog Extensions not found.")}}}var co=qt("[RateLimiter]");class uo{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{co.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(r){return void co.warn('could not rate limit - continuing. Error: "'+(null==r?void 0:r.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t,r,n;void 0===e&&(e=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:a}=this,o=(new Date).getTime(),s=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property(Or))&&void 0!==t?t:{tokens:i,last:o};s.tokens+=(o-s.last)/1e3*a,s.last=o,s.tokens>i&&(s.tokens=i);var l=s.tokens<1;return l||e||(s.tokens=Math.max(0,s.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+a+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(n=this.instance.persistence)||n.set_property(Or,s),{isRateLimited:l,remainingTokens:s.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var po=qt("[RemoteConfig]");class ho{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=L._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Ie(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(po.error("PostHog Extensions not found. Cannot load remote config."),e())}Ce(e){this._instance._send_request({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 po.info("Using preloaded remote config",this.remoteConfig),void this.wi(this.remoteConfig);if(this._instance.M())return void po.warn("Remote config is disabled. Falling back to local config.");this.Ie(e=>{if(!e)return po.info("No config found after loading remote JS config. Falling back to JSON."),void this.Ce(e=>{this.wi(e)});this.wi(e)})}catch(An){po.error("Error loading remote config",An)}}wi(e){e?this._instance.config.__preview_remote_config?(this._instance.wi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):po.info("__preview_remote_config is disabled. Logging config instead",e):po.error("Failed to fetch remote config from PostHog.")}}var fo=3e3;class go{constructor(e,t){this.Re=!0,this.Fe=[],this.Oe=ye((null==t?void 0:t.flush_interval_ms)||fo,250,5e3,Ut.createLogger("flush interval"),fo),this.Me=e}enqueue(e){this.Fe.push(e),this.Ae||this.je()}unload(){this.De();var e=this.Fe.length>0?this.Le():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Me(B({},e,{transport:"sendBeacon"}))})}enable(){this.Re=!1,this.je()}je(){var e=this;this.Re||(this.Ae=setTimeout(()=>{if(this.De(),this.Fe.length>0){var t=this.Le(),r=function(){var r=t[n],i=(new Date).getTime();r.data&&ee(r.data)&&Xt(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.Me(r)};for(var n in t)r()}},this.Oe))}De(){clearTimeout(this.Ae),this.Ae=void 0}Le(){var e={};return Xt(this.Fe,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.Fe=[],e}}var mo=["retriesPerformedSoFar"];class vo{constructor(e){this.Ne=!1,this.Ue=3e3,this.Fe=[],this._instance=e,this.Fe=[],this.ze=!0,!ie(P)&&"onLine"in P.navigator&&(this.ze=P.navigator.onLine,this.He=()=>{this.ze=!0,this.Lt()},this.Be=()=>{this.ze=!1},sr(P,"online",this.He),sr(P,"offline",this.Be))}get length(){return this.Fe.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=H(e,mo);ue(t)&&(r.url=ma(r.url,{retry_count:t})),this._instance._send_request(B({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.qe(B({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}qe(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.Fe.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),Ut.warn(c),this.Ne||(this.Ne=!0,this.We())}We(){if(this.Ge&&clearTimeout(this.Ge),0===this.Fe.length)return this.Ne=!1,void(this.Ge=void 0);this.Ge=setTimeout(()=>{this.ze&&this.Fe.length>0&&this.Lt(),this.We()},this.Ue)}Lt(){var e=Date.now(),t=[],r=this.Fe.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.Fe=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Ge&&(clearTimeout(this.Ge),this.Ge=void 0),this.Ne=!1,ie(P)||(this.He&&(P.removeEventListener("online",this.He),this.He=void 0),this.Be&&(P.removeEventListener("offline",this.Be),this.Be=void 0)),this.Fe))try{this._instance._send_request(B({},e,{transport:"sendBeacon"}))}catch(An){Ut.error(An)}this.Fe=[]}}class bo{constructor(e){this.Ve=()=>{var e,t,r,n;this.Je||(this.Je={});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.Je.lastScrollY=Math.ceil(a),this.Je.maxScrollY=Math.max(a,null!==(e=this.Je.maxScrollY)&&void 0!==e?e:0),this.Je.maxScrollHeight=Math.max(o,null!==(t=this.Je.maxScrollHeight)&&void 0!==t?t:0),this.Je.lastContentY=s,this.Je.maxContentY=Math.max(s,null!==(r=this.Je.maxContentY)&&void 0!==r?r:0),this.Je.maxContentHeight=Math.max(l,null!==(n=this.Je.maxContentHeight)&&void 0!==n?n:0)},this._instance=e}getContext(){return this.Je}resetContext(){var e=this.Je;return setTimeout(this.Ve,0),e}startMeasuringScrollPosition(){sr(P,"scroll",this.Ve,{capture:!0}),sr(P,"scrollend",this.Ve,{capture:!0}),sr(P,"resize",this.Ve)}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 yo=e=>Si(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class xo{constructor(e,t,r,n){this.Ke=e=>{var t=this.Ye();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Xe(this._instance)};this.Qe.register({[Rr]:r})}},this._instance=e,this.Ze=t,this.Qe=r,this.Xe=n||yo,this.Ze.onSessionId(this.Ke)}Ye(){return this.Qe.props[Rr]}getSetOnceProps(){var e,t=null==(e=this.Ye())?void 0:e.props;return t?"r"in t?Ci(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 Xt(nr(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+Q(r)]=t}),e}}var _o=qt("[SessionId]");class ko{on(e,t){return this.tr.on(e,t)}constructor(e,t,r){var n;if(this.ir=[],this.er=void 0,this.tr=new eo,this.rr=(e,t)=>!(!ue(e)||!ue(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.R=e.config,this.Qe=e.persistence,this.sr=void 0,this.nr=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ar=t||Dn,this.lr=r||Dn;var i=this.R.persistence_name||this.R.token,a=this.R.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*ye(a,60,36e3,_o.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ur(),this.hr="ph_"+i+"_window_id",this.dr="ph_"+i+"_primary_window_exists",this.vr()){var o=qn.W(this.hr),s=qn.W(this.dr);o&&!s?this.sr=o:qn.V(this.hr),qn.G(this.dr,!0)}if(null!=(n=this.R.bootstrap)&&n.sessionID)try{var l=(()=>{var e=this.R.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.cr(this.R.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){_o.error("Invalid sessionID in bootstrap",c)}this.pr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ie(this.ir)&&(this.ir=[]),this.ir.push(e),this.nr&&e(this.nr,this.sr),()=>{this.ir=this.ir.filter(t=>t!==e)}}vr(){return"memory"!==this.R.persistence&&!this.Qe.Pi&&qn.H()}gr(e){e!==this.sr&&(this.sr=e,this.vr()&&qn.G(this.hr,e))}_r(){return this.sr?this.sr:this.vr()?qn.W(this.hr):null}cr(e,t,r){e===this.nr&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.nr=e,this.Qe.register({[_r]:[t,e,r]}))}mr(){var e=this.Qe.props[_r];return ee(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.cr(null,null,null)}destroy(){clearTimeout(this.br),this.br=void 0,this.er&&P&&(P.removeEventListener("beforeunload",this.er,{capture:!1}),this.er=void 0),this.ir=[]}pr(){this.er=()=>{this.vr()&&qn.V(this.dr)},sr(P,"beforeunload",this.er,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.R.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,a]=this.mr(),o=this._r(),s=ue(a)&&Math.abs(r-a)>864e5,l=!1,c=!i,u=!c&&!e&&this.rr(r,n);c||u||s?(i=this.ar(),o=this.lr(),_o.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),a=r,l=!0):o||(o=this.lr(),l=!0);var d=ue(n)&&e&&!s?n:r,p=ue(a)?a:(new Date).getTime();return this.gr(o),this.cr(i,d,p),e||this.ur(),l&&this.ir.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}}ur(){clearTimeout(this.br),this.br=setTimeout(()=>{var[e]=this.mr();if(this.rr((new Date).getTime(),e)){var t=this.nr;this.resetSessionId(),this.tr.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var wo=["$set_once","$set"],So=qt("[SiteApps]");class Co{constructor(e){this._instance=e,this.yr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}wr(e,t){if(t){var r=this.globalsForEvent(t);this.yr.push(r),this.yr.length>1e3&&(this.yr=this.yr.slice(10))}}get siteAppLoaders(){var e;return null==(e=L._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.wr.bind(this));this.Er=()=>{e(),this.yr=[],this.Er=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:h,$set:f}=e;return{event:B({},H(e,wo),{properties:B({},e.properties,f?{$set:B({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},f)}:{},h?{$set_once:B({},null!==(n=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==n?n:{},h)}:{}),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.yr.length&&(So.info("Processing "+this.yr.length+" events for site app with id "+e.id),this.yr.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.Er)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,So.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){So.error("Error while initializing PostHog app with config id "+e.id,o),i(!1)}if(n&&t.loaded)try{r()}catch(s){So.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}$r(){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)}Sr(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){So.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.$r(),void this._instance.on("eventCaptured",e=>this.Sr(e))):void So.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.Er)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var a=function(e){var t;L["__$$ph_site_app_"+e]=i._instance,null==(t=L.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return So.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:s}of e.siteApps)a(o)}else So.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var Po=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},Eo=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),zo="i.posthog.com";class To{constructor(e){this.kr={},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 flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+zo,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.kr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Eo.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Eo.EU:this.kr[this.apiHost]=Eo.CUSTOM),this.kr[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if(this.region===Eo.CUSTOM)return this.apiHost+t;var r=zo+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var jo={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 Ro{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{Ro.Pr("retrieved web experiments from the server"),t.Tr=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.Tr&&(Ro.Pr("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Tr)||r.set(e.feature_flag_key,e));var n=t._instance.getFeatureFlag(e.feature_flag_key);ae(n)&&e.variants[n]&&t.Ir(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var a=e.variants[i];Ro.Cr(a)&&t.Ir(e.name,i,a.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())Ro.Pr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(le(this.Tr))return this.Tr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ro.Pr("applying feature flags",e),e.forEach(e=>{var t;if(this.Tr&&null!=(t=this.Tr)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.Tr)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Ir(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=Ro.getWindowLocation();if(null!=e&&e.search){var t=xn(null==e?void 0:e.search,"__experiment_id"),r=xn(null==e?void 0:e.search,"__experiment_variant");t&&r&&(Ro.Pr("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.Rr(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._send_request({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)}})}Rr(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(Ro.Pr("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Ir(n[0].name,t,n[0].variants[t].transforms))}static Cr(e){return!le(e.conditions)&&Ro.Fr(e)&&Ro.Or(e)}static Fr(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,a=Ro.getWindowLocation();return!!a&&(null==(r=e.conditions)||!r.url||jo[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 Or(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.utm))return!0;var r=yi();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,h=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,f=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&&h&&f&&p}return!1}static Pr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Ut.info("[WebExperiments] "+e,r)}Ir(e,t,r){this._is_bot()?Ro.Pr("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;Ro.Pr("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)})}}):Ro.Pr("Control variants leave the page unmodified.")}_is_bot(){return R&&this._instance?Po(R,this._instance.config.custom_blocked_useragents):void 0}}var Oo=qt("[PostHog ExternalIntegrations]"),Io={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Ao{constructor(e){this._instance=e}it(e,t){var r;null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return Oo.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,a;!n||null!=(r=L.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(Io[t],()=>{var r;null==(r=L.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=L.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(a=L.__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 Do="[SessionRecording]",Mo=qt(Do);class Fo{get started(){var e;return!(null==(e=this.Mr)||!e.isStarted)}get status(){return this.Mr?this.Mr.status:this.Ar&&!this.jr?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Ar=!1,this.Dr=void 0,this._instance=e,!this._instance.sessionManager)throw Mo.error("started without valid sessionManager"),new Error(Do+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(Do+' cannot be used with cookieless_mode="always"')}get jr(){var e,t=!(null==(e=this._instance.get_property(xr))||!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.jr||null==(t=this.Mr)||!t.isStarted){var r=!ie(Object.assign)&&!ie(Array.from);this.jr&&r?(this.Lr(e),Mo.info("starting")):this.stopRecording()}}Lr(e){var t,r,n;this.jr&&(null!=L&&null!=(t=L.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=L.__PosthogExtensions__)&&r.initSessionRecording?this.Nr(e):null==(n=L.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Ur,t=>{if(t)return Mo.error("could not load recorder",t);this.Nr(e)}))}stopRecording(){var e,t;null==(e=this.Dr)||e.call(this),this.Dr=void 0,null==(t=this.Mr)||t.stop()}zr(){var e;null==(e=this._instance.persistence)||e.unregister(kr)}Hr(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.zr();var a=null==t?void 0:t.minimumDurationMilliseconds;n.register({[xr]:B({cache_timestamp:Date.now(),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.Dr)||t.call(this),this.Dr=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.Hr(e),this.Ar=!0,this.startIfEnabledOrStop()):this.Ar=!0:Mo.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.Mr)&&r.log?this.Mr.log(e,t):Mo.warn("log called before recorder was ready")}get Ur(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(xr);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Nr(e){var t,r;if(null==(t=L.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.Mr||(this.Mr=null==(r=L.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.Mr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Mr.start(e)}onRRwebEmit(e){var t;null==(t=this.Mr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Mr||null==(t=this._instance.persistence)||t.register({$replay_override_linked_flag:!0}),null==(e=this.Mr)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Mr||null==(t=this._instance.persistence)||t.register({$replay_override_sampling:!0}),null==(e=this.Mr)||e.overrideSampling()}overrideTrigger(e){var t,r;this.Mr||null==(r=this._instance.persistence)||r.register({["url"===e?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),null==(t=this.Mr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Mr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.Mr)||!r.tryAddCustomEvent(e,t))}}var Lo={},No=()=>{},Wo="posthog",$o=!fa&&-1===(null==F?void 0:F.indexOf("MSIE"))&&-1===(null==F?void 0:F.indexOf("Mozilla")),Bo=e=>{var t;return B({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:ar(null==O?void 0:O.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:No,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,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_conversations:!1,disable_product_tours:!0,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,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;Ut.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:fo},error_tracking:{},_onCapture:No,__preview_eager_load_replay:!1},(e=>({rageclick:!(e&&e>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(e&&e>="2025-05-24")||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Ho=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=Jt({},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]:Ut.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class Vo{constructor(){this.__forceAllowLocalhost=!1}get Br(){return this.__forceAllowLocalhost}set Br(e){Ut.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Uo{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 Vo,this.qr=!1,this.version=N.LIB_VERSION,this.bi=new eo,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Bo(),this.SentryIntegration=oi,this.sentryIntegration=e=>{return t=ai(this,e),{name:ii,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Wr=!1,this.Gr=null,this.Vr=null,this.Jr=null,this.featureFlags=new Fa(this),this.toolbar=new di(this),this.scrollManager=new bo(this),this.pageViewManager=new Ai(this),this.surveys=new ao(this),this.conversations=new so(this),this.logs=new lo(this),this.experiments=new Ro(this),this.exceptions=new Pa(this),this.rateLimiter=new uo(this),this.requestRouter=new To(this),this.consent=new Gn(this),this.externalIntegrations=new Ao(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=>Ut.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Wo){var n,i=null!==(n=Lo[r])&&void 0!==n?n:new Uo;return i._init(e,t,r),Lo[r]=i,Lo[Wo][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n;if(void 0===t&&(t={}),ie(e)||oe(e))return Ut.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.Kr(t.debug),this.Yr=t,this.Xr=[],t.person_profiles&&(this.Vr=t.person_profiles),this.set_config(Jt({},Bo(t.defaults),Ho(t),{name:r,token:e})),this.config.on_xhr_error&&Ut.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:Di.GZipJS;var i=this.Qr();this.persistence=new Na(this.config,i),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Na(B({},this.config,{persistence:"sessionStorage"}),i);var a=B({},this.persistence.props),o=B({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Zr=new go(e=>this.ts(e),this.config.request_queue_config),this.es=new vo(this),this.__request_queue=[];var s="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(s||(this.sessionManager=new ko(this),this.sessionPropsManager=new xo(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ut.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.rs(s)},0)):(Ut.info("Initializing extensions synchronously"),this.rs(s)),N.DEBUG=N.DEBUG||this.config.debug,N.DEBUG&&Ut.info("Starting in debug mode",{this:this,config:t,thisC:B({},this.config),p:a,s:o}),void 0!==(null==(n=t.bootstrap)?void 0:n.distinctID)){var l,c,u=this.config.get_device_id(Dn()),d=null!=(l=t.bootstrap)&&l.isIdentifiedID?u:t.bootstrap.distinctID;this.persistence.set_property(jr,null!=(c=t.bootstrap)&&c.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:d})}if(this.ss()){var p,h,f=Object.keys((null==(p=t.bootstrap)?void 0:p.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},{}),g=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>f[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:f,featureFlagPayloads:g})}if(s)this.register_once({distinct_id:Lr,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(Dn());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(jr,"anonymous")}return sr(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()||Dn();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(jr,"identified")),t()},i=r.user();"then"in i&&te(i.then)?i.then(n):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||ni.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()||(ni.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(ni.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.ns()):this.ns(),te(this.config._onCapture)&&this.config._onCapture!==No&&(Ut.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Ut.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}rs(e){var t=performance.now();this.historyAutocapture=new ri(this),this.historyAutocapture.startIfEnabled();var r=[];r.push(()=>{new hi(this).startIfEnabledOrStop()}),r.push(()=>{var e;this.siteApps=new Co(this),null==(e=this.siteApps)||e.init()}),e||r.push(()=>{this.sessionRecording=new Fo(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||r.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.push(()=>{this.autocapture=new En(this),this.autocapture.startIfEnabled()}),r.push(()=>{this.surveys.loadIfEnabled()}),r.push(()=>{this.logs.loadIfEnabled()}),r.push(()=>{this.conversations.loadIfEnabled()}),r.push(()=>{this.productTours=new Ba(this),this.productTours.loadIfEnabled()}),r.push(()=>{this.heatmaps=new Ii(this),this.heatmaps.startIfEnabled()}),r.push(()=>{this.webVitalsAutocapture=new ji(this)}),r.push(()=>{this.exceptionObserver=new ei(this),this.exceptionObserver.startIfEnabledOrStop()}),r.push(()=>{this.deadClicksAutocapture=new Jn(this,Xn),this.deadClicksAutocapture.startIfEnabled()}),r.push(()=>{if(this.os){var e=this.os;this.os=void 0,this.wi(e)}}),this.ls(r,t)}ls(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.ls(e,t)},0);var r=e.shift();if(r)try{r()}catch(i){Ut.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:n}),this.config.__preview_deferred_init_extensions&&Ut.info("PostHog extensions initialized ("+n+"ms)")}wi(e){var t,r,n,i,a,o,s,l,c;if(!O||!O.body)return Ut.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.wi(e)},500);this.config.__preview_deferred_init_extensions&&(this.os=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Y(e.supportedCompression,Di.GZipJS)?Di.GZipJS:Y(e.supportedCompression,Di.Base64)?Di.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Vr?this.Vr:"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),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),null==(o=this.productTours)||o.onRemoteConfig(e),null==(s=this.webVitalsAutocapture)||s.onRemoteConfig(e),null==(l=this.exceptionObserver)||l.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(c=this.deadClicksAutocapture)||c.onRemoteConfig(e)}ns(){try{this.config.loaded(this)}catch(r){Ut.critical("`loaded` function failed",r)}if(this.us(),this.config.internal_or_test_user_hostname&&null!=I&&I.hostname){var e=I.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.hs()},1),new ho(this).load(),this.featureFlags.flags()}us(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Zr)||e.enable())}_dom_loaded(){this.is_capturing()&&Kt(this.__request_queue,e=>this.ts(e)),this.__request_queue=[],this.us()}_handle_unload(){var e,t;this.surveys.handlePageUnload(),this.config.request_batching?(this.ds()&&this.capture("$pageleave"),null==(e=this.Zr)||e.unload(),null==(t=this.es)||t.unload()):this.ds()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&($o?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.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=or(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)}}))))}ts(e){this.es?this.es.retriableRequest(e):this._send_request(e)}_execute_array(e){var t,r=[],n=[],i=[];Kt(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){Kt(e,function(e){if(ee(e[0])){var r=t;Xt(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)}ss(){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.Zr){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)&&(Ut.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=Dn(),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="$groupidentify"!==e,p=this.vs(null==r?void 0:r.$set_once,d);if(p&&(c.$set_once=p),(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=[],Kt(t,t=>{a.push(e(t))})):(a={},Xt(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===Ua.DISMISSED||e===Ua.SENT){var h=null==t?void 0:t[qa.SURVEY_ID],f=null==t?void 0:t[qa.SURVEY_ITERATION];u={id:h,current_iteration:f},localStorage.getItem(Xa(u))||localStorage.setItem(Xa(u),"true"),c.$set=B({},c.$set,{[Ka({id:h,current_iteration:f},e===Ua.SENT?"responded":"dismissed")]:!0})}else e===Ua.SHOWN&&(c.$set=B({},c.$set,{[qa.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));var g=B({},c.properties.$set,c.$set);if(ne(g)||this.setPersonPropertiesForFlags(g),!le(this.config.before_send)){var m=this.cs(c);if(!m)return;c=m}this.bi.emit("eventCaptured",c);var v={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.ts(v):this.Zr.enqueue(v),c}Ut.critical("This capture call is ignored due to client rate limiting.")}}else Ut.error("No event name provided to posthog.capture")}else Ut.uninitializedWarning("posthog.capture")}_addCaptureHook(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))&&Ut.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var l,c=function(e,t){if(!F)return{};var r,n,i,a=e?Zt([],gi,t||[]):[],[o,s]=function(e){for(var t=0;t<vt.length;t++){var[r,n]=vt[t],i=r.exec(e),a=i&&(te(n)?n(i,e):n);if(a)return a}return["",""]}(F);return Jt(nr({$os:o,$os_version:s,$browser:ft(F,navigator.vendor),$device:bt(F),$device_type:(n=F,i=bt(n),i===Te||i===ze||"Kobo"===i||"Kindle Fire"===i||i===at?Ee:i===Ge||i===Ke||i===Qe||i===rt?"Console":i===Re?"Wearable":i?Se:"Desktop"),$timezone:Pi(),$timezone_offset:Ei()}),{$current_url:_n(null==I?void 0:I.href,a,vi),$host:null==I?void 0:I.host,$pathname:null==I?void 0:I.pathname,$raw_user_agent:F.length>1e3?F.substring(0,997)+"...":F,$browser_version:mt(F,navigator.vendor),$browser_language:ki(),$browser_language_prefix:(r=ki(),"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&&Jt(o,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Jt(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=null==(p=this.es)?void 0:p.length}catch(m){o.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===Eo.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=Jt(o,l),"$pageview"===e&&O&&(o.title=O.title),!ie(a)){var h=r.getTime()-a;o.$duration=parseFloat((h/1e3).toFixed(3))}F&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=Jt({},c,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),ee(this.config.property_denylist)?Xt(this.config.property_denylist,function(e){delete o[e]}):Ut.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var f=this.config.sanitize_properties;f&&(Ut.error("sanitize_properties is deprecated. Use before_send instead"),o=f(o,e));var g=this.fs();return o.$process_person_profile=g,g&&!i&&this.ps("_calculate_event_properties"),o}vs(e,t){var r;if(void 0===t&&(t=!0),!this.persistence||!this.fs())return e;if(this.qr)return e;var n=this.persistence.get_initial_props(),i=null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps(),a=Jt({},n,i||{},e||{}),o=this.config.sanitize_properties;return o&&(Ut.error("sanitize_properties is deprecated. Use before_send instead"),a=o(a,"$set_once")),t&&(this.qr=!0),ne(a)?void 0:a}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)}gs(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,t,r){var n=null!=r&&r.merge?this.featureFlags.getFlagVariants():{},i=null!=r&&r.merge?this.featureFlags.getFlagPayloads():{},a=B({},n,e),o=B({},i,t),s={};for(var[l,c]of Object.entries(a)){var u="string"==typeof c;s[l]={key:l,enabled:!!u||Boolean(c),variant:u?c:void 0,reason:void 0,metadata:ie(null==o?void 0:o[l])?void 0:{id:0,version:void 0,description:void 0,payload:o[l]}}}this.featureFlags.receivedFeatureFlags({flags:s})}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.bi.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=Za),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}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 Ut.uninitializedWarning("posthog.identify");if(ce(e)&&(e=e.toString(),Ut.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()))Ut.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!==Lr){if(this.ps("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(cr)&&(this.unregister(cr),this.register({distinct_id:e}));var a="anonymous"===(this.persistence.get_property(jr)||"anonymous");e!==n&&a?(this.persistence.set_property(jr,"identified"),this.setPersonPropertiesForFlags(B({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Jr=_a(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(Tr))}}else Ut.critical('The string "'+Lr+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ut.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.ps("posthog.setPersonProperties")){var r=_a(this.get_distinct_id(),e,t);this.Jr!==r?(this.setPersonPropertiesForFlags(B({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Jr=r):Ut.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){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 Ut.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.ps("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,r,n,i;if(Ut.info("reset"),!this.__loaded)return Ut.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(jr,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.Jr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Lr,$device_id:null},"");else{var o=this.config.get_device_id(Dn());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(lr)?(Ut.critical("Attempting to create alias for existing People user - aborting."),-2):this.ps("posthog.alias")?(ie(t)&&(t=this.get_distinct_id()),e!==t?(this.gs(cr,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Ut.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,s,l;Jt(this.config,Ho(e));var c=this.Qr();null==(r=this.persistence)||r.update_config(this.config,t,c),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Na(B({},this.config,{persistence:"sessionStorage"}),c);var u=this.Kr(this.config.debug);de(u)&&(this.config.debug=u),de(this.config.debug)&&(this.config.debug?(N.DEBUG=!0,$n.H()&&$n.G("ph_debug","true"),Ut.info("set_config",{config:e,oldConfig:t,newConfig:B({},this.config)})):(N.DEBUG=!1,$n.H()&&$n.V("ph_debug"))),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(i=this.sessionRecording)||i.startIfEnabledOrStop(),null==(a=this.autocapture)||a.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),null==(s=this.exceptionObserver)||s.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this._s(),null==(l=this.externalIntegrations)||l.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))}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}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:Wo;return t!==Wo&&(t=Wo+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(jr))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(jr))}fs(){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[cr])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Mr]))}ds(){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.fs()||this.ps("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.ps("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}ps(e){return"never"===this.config.person_profiles?(Ut.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.gs(Mr,!0),!0)}Qr(){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}_s(){var e,t,r,n,i=this.Qr();return(null==(e=this.persistence)?void 0:e.Pi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.Pi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t,r,n,i;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(r=this.sessionManager)||r.destroy(),null==(n=this.pageViewManager)||n.destroy(),this.sessionManager=new ko(this),this.pageViewManager=new Ai(this),this.persistence&&(this.sessionPropsManager=new xo(this,this.sessionManager,this.persistence)),this.sessionRecording=new Fo(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this._s(),this.us(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(ie(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(i=null==e?void 0:e.captureEventName)&&void 0!==i?i:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.hs()):Ut.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t,r;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this._s(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Lr,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),null==(t=this.pageViewManager)||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(r=this.sessionRecording)||r.stopRecording(),this.sessionRecording=void 0,this.hs())):Ut.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===Yn.GRANTED?"granted":e===Yn.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._s()}_is_bot(){return R?Po(R,this.config.custom_blocked_useragents):void 0}hs(){O&&("visible"===O.visibilityState?this.Wr||(this.Wr=!0,this.capture("$pageview",{title:O.title},{send_instantly:!0}),this.Gr&&(O.removeEventListener("visibilitychange",this.Gr),this.Gr=null)):this.Gr||(this.Gr=this.hs.bind(this),sr(O,"visibilitychange",this.Gr)))}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.Yr||{};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?(Ut.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=Ut,i=(t="advanced_disable_flags")in(e=o)&&!le(e[t]),a=r in e&&!le(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]))}cs(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 pe(e.event)?Ut.warn(i+". This can cause unexpected behavior."):Ut.info(i),null}r.properties&&!ne(r.properties)||Ut.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.Kt)?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)})}Kr(e){var t=de(e)&&!e,r=$n.H()&&"true"===$n.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=rr(e.prototype[t[r]])}(Uo,["identify"]);var qo,Yo=(qo=Lo[Wo]=new Uo,function(){function e(){e.done||(e.done=!0,$o=!1,Xt(Lo,function(e){e._dom_loaded()}))}null!=O&&O.addEventListener?"complete"===O.readyState?e():sr(O,"DOMContentLoaded",e,{capture:!1}):P&&Ut.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),qo);let Go=null,Qo=!1,Ko=null;const Xo=()=>(Go||Qo||(Go=(()=>{if(Yo.__loaded)return Yo;if(Qo)return null;Qo=!0;try{return Yo.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(Ko)return Ko;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 Ko=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){}}}),Go=Yo,Yo}catch(e){return console.error("[PostHog] Failed to initialize:",e),null}finally{Qo=!1}})()),Go),Jo=(e,t)=>{const r=Xo();if(r)try{r.capture(e,t)}catch(n){}},Zo=(e,t)=>{const r=Xo();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)}},es=(e,t)=>(...r)=>{try{return console.log("withErrorHandling",e),t(...r)}catch(n){throw console.error("Error in withErrorHandling:",n),Zo(n,{context:e}),n}},ts=(e,t)=>(...r)=>{try{return t(...r).catch(t=>{throw"AbortError"!==t.name&&Zo(t,{context:e}),t})}catch(n){throw"AbortError"!==n.name&&Zo(n,{context:e}),n}};var rs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function is(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 as,os,ss={exports:{}},ls={};function cs(){if(as)return ls;as=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 ls.Fragment=t,ls.jsx=r,ls.jsxs=r,ls}function us(){return os||(os=1,ss.exports=cs()),ss.exports}var ds,ps,hs=us(),fs={exports:{}},gs={};function ms(){if(ds)return gs;ds=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(){}},h=Object.assign,f={};function g(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=f,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,h(b,g.prototype),b.isPureReactComponent=!0;var y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function k(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 E(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 E((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,"$&/")+"/"),E(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=k(l.type,c,void 0,0,0,l.props)),n.push(o)),1;p=0;var h,f=""===a?".":a+":";if(y(r))for(var g=0;g<r.length;g++)p+=E(a=r[g],n,i,s=f+C(a,g),o);else if("function"==typeof(g=null===(h=r)||"object"!=typeof h?null:"function"==typeof(h=d&&h[d]||h["@@iterator"])?h:null))for(r=g.call(r),g=0;!(a=r.next()).done;)p+=E(a=a.value,n,i,s=f+C(a,g++),o);else if("object"===s){if("function"==typeof r.then)return E(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 z(e,t,r){if(null==e)return e;var n=[],i=0;return E(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 gs.Children={map:z,forEach:function(e,t,r){z(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return z(e,function(){t++}),t},toArray:function(e){return z(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}},gs.Component=g,gs.Fragment=r,gs.Profiler=i,gs.PureComponent=v,gs.StrictMode=n,gs.Suspense=l,gs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,gs.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},gs.cache=function(e){return function(){return e.apply(null,arguments)}},gs.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=h({},e.props),i=e.key;if(null!=t)for(a in t.ref,void 0!==t.key&&(i=""+t.key),t)!_.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 k(e.type,i,void 0,0,0,n)},gs.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},gs.createElement=function(e,t,r){var n,i={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=""+t.key),t)_.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 k(e,a,void 0,0,0,i)},gs.createRef=function(){return{current:null}},gs.forwardRef=function(e){return{$$typeof:s,render:e}},gs.isValidElement=w,gs.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},gs.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},gs.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}},gs.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},gs.use=function(e){return x.H.use(e)},gs.useActionState=function(e,t,r){return x.H.useActionState(e,t,r)},gs.useCallback=function(e,t){return x.H.useCallback(e,t)},gs.useContext=function(e){return x.H.useContext(e)},gs.useDebugValue=function(){},gs.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},gs.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)},gs.useId=function(){return x.H.useId()},gs.useImperativeHandle=function(e,t,r){return x.H.useImperativeHandle(e,t,r)},gs.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},gs.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},gs.useMemo=function(e,t){return x.H.useMemo(e,t)},gs.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},gs.useReducer=function(e,t,r){return x.H.useReducer(e,t,r)},gs.useRef=function(e){return x.H.useRef(e)},gs.useState=function(e){return x.H.useState(e)},gs.useSyncExternalStore=function(e,t,r){return x.H.useSyncExternalStore(e,t,r)},gs.useTransition=function(){return x.H.useTransition()},gs.version="19.1.1",gs}function vs(){return ps||(ps=1,fs.exports=ms()),fs.exports}var bs=vs();const ys=ns(bs),xs=C({__proto__:null,default:ys},[bs]);var _s,ks,ws={exports:{}},Ss={},Cs={exports:{}},Ps={};function Es(){return _s||(_s=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,h=!1,f=!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 _(e){if(g=!1,x(e),!f)if(null!==r(l))f=!0,w||(w=!0,k());else{var t=r(c);null!==t&&R(_,t.startTime-e)}}var k,w=!1,S=-1,C=5,P=-1;function E(){return!(!m&&e.unstable_now()-P<C)}function z(){if(m=!1,w){var t=e.unstable_now();P=t;var i=!0;try{e:{f=!1,g&&(g=!1,b(S),S=-1),h=!0;var a=p;try{t:{for(x(t),d=r(l);null!==d&&!(d.expirationTime>t&&E());){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(_,u.startTime-t),i=!1}}break e}finally{d=null,p=a,h=!1}i=void 0}}finally{i?k():w=!1}}}if("function"==typeof y)k=function(){y(z)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,j=T.port2;T.port1.onmessage=z,k=function(){j.postMessage(null)}}else k=function(){v(z,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(_,a-o))):(n.sortIndex=s,t(l,n),f||h||(f=!0,w||(w=!0,k()))),n},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}}(Ps)),Ps}function zs(){return ks||(ks=1,Cs.exports=Es()),Cs.exports}var Ts,js,Rs,Os,Is={exports:{}},As={};function Ds(){if(Ts)return As;Ts=1;var e=vs();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 As.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,As.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)},As.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()}},As.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))},As.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},As.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})}},As.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)},As.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})}},As.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)},As.requestFormReset=function(e){n.d.r(e)},As.unstable_batchedUpdates=function(e,t){return e(t)},As.useFormState=function(e,t,r){return a.H.useFormState(e,t,r)},As.useFormStatus=function(){return a.H.useHostTransitionStatus()},As.version="19.1.1",As}function Ms(){return js||(js=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)}}(),Is.exports=Ds()),Is.exports}function Fs(){if(Rs)return Ss;Rs=1;var e=zs(),t=vs(),r=Ms();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"),h=Symbol.for("react.fragment"),f=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"),_=Symbol.for("react.suspense_list"),k=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 E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var z=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===z?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case x:return"Suspense";case _: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 k: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 F(e){0>D||(e.current=A[D],A[D]=null,D--)}function L(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(L($,t),L(W,e),L(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}}F(N),L(N,e)}function V(){F(N),F(W),F($)}function U(e){null!==e.memoizedState&&L(B,e);var t=N.current,r=sd(t,e.type);t!==r&&(L(W,e),L(N,r))}function q(e){W.current===e&&(F(N),F(W)),B.current===e&&(F(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,J=e.unstable_now,Z=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,he=256,fe=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=he;return!(4194048&(he<<=1))&&(he=256),e}function xe(){var e=fe;return!(62914560&(fe<<=1))&&(fe=4194304),e}function _e(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ke(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 Ee(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var ze=Math.random().toString(36).slice(2),Te="__reactFiber$"+ze,je="__reactProps$"+ze,Re="__reactContainer$"+ze,Oe="__reactEvents$"+ze,Ie="__reactListeners$"+ze,Ae="__reactHandles$"+ze,De="__reactResources$"+ze,Me="__reactMarker$"+ze;function Fe(e){delete e[Te],delete e[je],delete e[Oe],delete e[Ie],delete e[Ae]}function Le(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=_d(e);null!==e;){if(r=e[Te])return r;e=_d(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 Je(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 Ze(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 ht(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 ft(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 _t(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 kt(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&&_t(e,a,i)}else for(var o in t)t.hasOwnProperty(o)&&_t(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 Et=null;function zt(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(ht(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));ht(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 Ft={};Object.defineProperty(Ft,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch(Dp){Mt=!1}var Lt=null,Nt=null,Wt=null;function $t(){if(Wt)return Wt;var e,t,r=Nt,n=r.length,i="value"in Lt?Lt.value:Lt.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}),Jt=Ut(Xt),Zt=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(Zt),tr=Ut(c({},Zt,{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({},Zt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hr=Ut(c({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur})),fr=Ut(c({},Qt,{propertyName:0,elapsedTime:0,pseudoElement:0})),gr=Ut(c({},Zt,{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,_r=Dt&&(!br||yr&&8<yr&&11>=yr),kr=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,Er={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 zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Er[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){Lu(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 Fr="oninput"in document;if(!Fr){var Lr=document.createElement("div");Lr.setAttribute("oninput","return;"),Fr="function"==typeof Lr.oninput}Mr=Fr}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,zt(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 Jr=Dt&&"documentMode"in document&&11>=document.documentMode,Zr=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==Zr||Zr!==ut(n)||(n="selectionStart"in(n=Zr)&&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=Zr)))}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"),hn=cn("transitionrun"),fn=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 _n(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 kn=[],wn=0,Sn=0;function Cn(){for(var e=wn,t=Sn=wn=0;t<e;){var r=kn[t];kn[t++]=null;var n=kn[t];kn[t++]=null;var i=kn[t];kn[t++]=null;var a=kn[t];if(kn[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){kn[wn++]=e,kn[wn++]=t,kn[wn++]=r,kn[wn++]=n,Sn|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function En(e,t,r,n){return Pn(e,t,r,n),jn(e)}function zn(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 Fn(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 h:return Ln(r.children,a,o,t);case f: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 _:return(e=In(19,r,t,a)).elementType=_,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 k: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 Ln(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 Jn(e){null!==e.return&&(Kn(e,1),Xn(e,1,0))}function Zn(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(_n(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),ft(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||Ju(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=Zu),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===_c?_c=e:_c.push.apply(_c,e),ni=null),e}function pi(e){null===ni?ni=[e]:ni.push(e)}var hi=M(null),fi=null,gi=null;function mi(e,t,r){L(hi,t._currentValue),t._currentValue=r}function vi(e){e._currentValue=hi.current,F(hi)}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 _i(e){for(e=e.firstContext;null!==e;){if(!Ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){fi=e,gi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function wi(e){return Ci(fi,e)}function Si(e,t){return null===fi&&ki(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()})}},Ei=e.unstable_scheduleCallback,zi=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&&Ei(zi,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 Fi=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!==Fi&&Fi(e,t)};var Li=M(null);function Ni(){var e=Li.current;return null!==e?e:ac.pooledCache}function Wi(e,t){L(Li,null===t?Li.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 Ji=!1;function Zi(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;Ji=!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 h=-536870913&s.lane,f=h!==s.lane;if(f?(sc&h)===h:(n&h)===h){0!==h&&h===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;h=t;var v=r;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){p=g.call(v,p,h);break e}p=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(h="function"==typeof(g=m.payload)?g.call(v,p,h):g))break e;p=c({},p,h);break e;case 2:Ji=!0}}null!==(h=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=i.callbacks)?i.callbacks=[h]:f.push(h))}else f={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=f,l=p):d=d.next=f,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}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){L(da,e=hc),L(ua,t),hc=e|t.baseLanes}function ha(){L(da,hc),L(ua,ua.current)}function fa(){hc=da.current,F(ua),F(da)}var ga=0,ma=null,va=null,ba=null,ya=!1,xa=!1,_a=!1,ka=0,wa=0,Sa=null,Ca=0;function Pa(){throw Error(n(321))}function Ea(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 za(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,_a=!1,a=r(n,i),_a=!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||Ps||null!==(e=e.dependencies)&&_i(e)&&(Ps=!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?Fa(t):t,e=e.useState()[0],(null!==va?va.memoizedState:null)!==e&&(ma.flags|=1024),t}function Oa(){var e=0!==ka;return ka=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=ka=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 Fa(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 La(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Fa(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 h=u.revertLane;if(0===h)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&h)===h){u=u.next,h===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|=h,gc|=h}p=u.action,_a&&r(o,p),o=u.hasEagerState?u.eagerState:r(o,p)}else h={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,s=o):c=c.next=h,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)&&(Ps=!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)||(Ps=!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,Ps=!0),a=a.queue,fo(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=zn(e,2);null!==t&&Lc(t,0,2)}function Ka(e){var t=Da();if("function"==typeof e){var r=e;if(e=r(),_a){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 Ja(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,Za(t,o)):(o.next=r.next,t.pending=r.next=o)}}function Za(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,Za(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=Lo.bind(null,ma,!1,n.queue),i={state:t,dispatch:null,action:e,pending:null},(n=Da()).queue=i,r=Ja.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=Fa(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 ho(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 fo(e,t,r,n){var i=Ma();n=void 0===n?null:n;var a=i.memoizedState.inst;null!==va&&null!==n&&Ea(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){ho(8390656,8,e,t)}function mo(e,t){fo(2048,8,e,t)}function vo(e,t){return fo(4,2,e,t)}function bo(e,t){return fo(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,fo(4,4,yo.bind(null,t,e),r)}function _o(){}function ko(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;return null!==t&&Ea(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&&Ea(t,n[1]))return n[0];if(n=e(),_a){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=Fc(),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)||(Ps=!0),e):42&ga?(e=Fc(),ma.lanes|=e,gc|=e,t):(Ps=!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,Lo(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?Fo(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()):Fo(e,t,n,Mc())}catch(h){Fo(e,t,{then:function(){},status:"rejected",reason:h},Mc())}finally{O.p=a,R.T=c}}function Eo(){}function zo(e,t,r,i){if(5!==e.tag)throw Error(n(476));var a=To(e).queue;Po(e,a,t,I,null===r?Eo: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){Fo(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&&(Lc(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=En(e,t,r,n))&&(Lc(r,0,n),$o(r,t,n))}function Mo(e,t,r){Fo(e,t,r,Mc())}function Fo(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=En(e,t,i,n)))return Lc(r,0,n),$o(r,t,n),!0}return!1}function Lo(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=En(e,r,i,2))&&Lc(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:La,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:La,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,ho(4194308,4,yo.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ho(4194308,4,e,t)},useInsertionEffect:function(e,t){ho(4,2,e,t)},useMemo:function(e,t){var r=Da();t=void 0===t?null:t;var n=e();if(_a){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(_a){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:_o,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=ka++)&&(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=Lo.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:La,useCallback:ko,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:$a,useRef:po,useState:function(){return $a(Wa)},useDebugValue:_o,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:Fa(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:La,useCallback:ko,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:Ha,useRef:po,useState:function(){return Ha(Wa)},useDebugValue:_o,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:Fa(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 Jo(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===h?f(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=Fn(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 f(e,t,r,n,i){return null===t||7!==t.tag?((t=Ln(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=Fn(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)||E(t))return(t=Ln(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)||E(r))return null!==i?null:f(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)||E(n))return f(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,f){if("object"==typeof u&&null!==u&&u.type===h&&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)===h){if(7===c.tag){r(l,c.sibling),(f=a(c,u.props.children)).return=l,l=f;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===w&&Xo(x)===c.type){r(l,c.sibling),Qo(f=a(c,u.props),u),f.return=l,l=f;break e}r(l,c);break}t(l,c),c=c.sibling}u.type===h?((f=Ln(u.props.children,l.mode,f,u.key)).return=l,l=f):(Qo(f=Fn(u.type,u.key,u.props,null,l.mode,f),u),f.return=l,l=f)}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),(f=a(c,u.children||[])).return=l,l=f;break e}r(l,c);break}t(l,c),c=c.sibling}(f=Wn(u,l.mode,f)).return=l,l=f}return s(l);case w:return y(l,c,u=(x=u._init)(u._payload),f)}if(j(u))return function(n,a,s,l){for(var c=null,u=null,d=a,p=a=0,h=null;null!==d&&p<s.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var f=m(n,d,s[p],l);if(null===f){null===d&&(d=h);break}e&&d&&null===f.alternate&&t(n,d),a=o(f,a,p),null===u?c=f:u.sibling=f,u=f,d=h}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!==(h=v(d,n,p,s[p],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=o(h,a,p),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(n,e)}),ri&&Kn(n,p),c}(l,c,u,f);if(E(u)){if("function"!=typeof(x=E(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,h=s=0,f=null,b=l.next();null!==p&&!b.done;h++,b=l.next()){p.index>h?(f=p,p=null):f=p.sibling;var y=m(a,p,b.value,c);if(null===y){null===p&&(p=f);break}e&&p&&null===y.alternate&&t(a,p),s=o(y,s,h),null===d?u=y:d.sibling=y,d=y,p=f}if(b.done)return r(a,p),ri&&Kn(a,h),u;if(null===p){for(;!b.done;h++,b=l.next())null!==(b=g(a,b.value,c))&&(s=o(b,s,h),null===d?u=b:d.sibling=b,d=b);return ri&&Kn(a,h),u}for(p=i(p);!b.done;h++,b=l.next())null!==(b=v(p,a,h,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?h:b.key),s=o(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(a,e)}),ri&&Kn(a,h),u}(l,c,u=x.call(u),f)}if("function"==typeof u.then)return y(l,c,Go(u),f);if(u.$$typeof===b)return y(l,c,Si(l,u),f);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),(f=a(c,u)).return=l,l=f):(r(l,c),(f=Nn(u,l.mode,f)).return=l,l=f),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 Zo=Jo(!0),es=Jo(!1),ts=M(null),rs=null;function ns(e){var t=e.alternate;L(ss,1&ss.current),L(ts,e),null===rs&&(null===t||null!==ua.current||null!==t.memoizedState)&&(rs=e)}function is(e){if(22===e.tag){if(L(ss,ss.current),L(ts,e),null===rs){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rs=e)}}else as()}function as(){L(ss,ss.current),L(ts,ts.current)}function os(e){F(ts),rs===e&&(rs=null),F(ss)}var ss=M(0);function ls(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 cs(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 us={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))&&(Lc(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))&&(Lc(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))&&(Lc(t,0,r),na(t,e,r))}};function ds(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 ps(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&&us.enqueueReplaceState(t,t.state,null)}function hs(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 fs="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 gs(e){fs(e)}function ms(e){console.error(e)}function bs(e){fs(e)}function ys(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function xs(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 _s(e,t,r){return(r=ta(r)).tag=3,r.payload={element:null},r.callback=function(){ys(e,t)},r}function ks(e){return(e=ta(e)).tag=3,e}function ws(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(){xs(t,r,n)}}var o=r.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){xs(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 Cs=Error(n(461)),Ps=!1;function Es(e,t,r,n){t.child=null===e?es(t,null,r,n):Zo(t,e.child,r,n)}function Ts(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 ki(t),n=za(e,t,r,o,a,i),s=Oa(),null===e||Ps?(ri&&s&&Jn(t),t.flags|=1,Es(e,t,n,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function js(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=Fn(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Os(e,t,a,n,i))}if(a=e.child,!Js(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 Os(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(qr(a,n)&&e.ref===t.ref){if(Ps=!1,t.pendingProps=n=a,!Js(e,i))return t.lanes=e.lanes,Xs(e,t,i);131072&e.flags&&(Ps=!0)}}return Fs(e,t,r,n,i)}function Is(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 As(e,t,n,r)}if(!(536870912&r))return t.lanes=t.childLanes=536870912,As(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):ha(),is(t)}else null!==a?(Wi(0,a.cachePool),pa(t,a),as(),t.memoizedState=null):(null!==e&&Wi(0,null),ha(),as());return Es(e,t,i,r),t.child}function As(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),ha(),is(t),null!==e&&xi(e,t,n,!0),null}function Ds(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 Fs(e,t,r,n,i){return ki(t),r=za(e,t,r,n,void 0,i),n=Oa(),null===e||Ps?(ri&&n&&Jn(t),t.flags|=1,Es(e,t,r,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Ls(e,t,r,n,i,a){return ki(t),t.updateQueue=null,r=ja(t,n,r,i),Ta(e),n=Oa(),null===e||Ps?(ri&&n&&Jn(t),t.flags|=1,Es(e,t,r,a),t.child):(Ia(e,t,a),Xs(e,t,a))}function Ns(e,t,r,n,i){if(ki(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=us,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=n,a.state=t.memoizedState,a.refs={},Zi(t),o=r.contextType,a.context="object"==typeof o&&null!==o?wi(o):Rn,a.state=t.memoizedState,"function"==typeof(o=r.getDerivedStateFromProps)&&(cs(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&&us.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=hs(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)&&ps(t,a,n,o),Ji=!1;var p=t.memoizedState;a.state=p,sa(t,n,a,i),oa(),c=t.memoizedState,s||p!==c||Ji?("function"==typeof d&&(cs(t,r,d,n),c=t.memoizedState),(l=Ji||ds(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=hs(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)&&ps(t,a,n,l),Ji=!1,p=t.memoizedState,a.state=p,sa(t,n,a,i),oa();var h=t.memoizedState;o!==d||p!==h||Ji||null!==e&&null!==e.dependencies&&_i(e.dependencies)?("function"==typeof s&&(cs(t,r,s,n),h=t.memoizedState),(u=Ji||ds(t,r,u,n,p,h,l)||null!==e&&null!==e.dependencies&&_i(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,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=h),a.props=n,a.state=h,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,Ds(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=Zo(t,e.child,null,i),t.child=Zo(t,null,r,i)):Es(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,Es(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&ss.current)),i&&(o=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(ri){if(o?ns(t):as(),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;os(t)}return c=a.children,a=a.fallback,o?(as(),c=qs({mode:"hidden",children:c},o=t.mode),a=Ln(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?(as(),t.child=e.child,t.flags|=128,t=null):(as(),o=a.fallback,c=t.mode,a=qs({mode:"visible",children:a.children},c),(o=Ln(o,c,r,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Zo(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(Ps||xi(e,t,r,!1),i=0!==(r&e.childLanes),Ps||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,zn(e,a),Lc(i,0,a),Cs;"$?"===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?(as(),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=Ln(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 Zo(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(Es(e,t,n.children,r),2&(n=ss.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(L(ss,n),i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ls(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===ls(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 Js(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!_i(e))}function Zs(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ps=!0;else{if(!(Js(e,r)||128&t.flags))return Ps=!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),L(ss,ss.current),n)break;return null;case 22:case 23:return t.lanes=0,Is(e,t,r);case 24:mi(0,Ti,e.memoizedState.cache)}return Xs(e,t,r)}(e,t,r);Ps=!!(131072&e.flags)}else Ps=!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=Ts(null,t,i,e,r);break e}if(a===k){t.tag=14,t=js(null,t,i,e,r);break e}}throw t=T(i)||i,Error(n(306,t,""))}An(i)?(e=hs(i,e),t.tag=1,t=Ns(null,t,i,e,r)):(t.tag=0,t=Fs(null,t,i,e,r))}return t;case 0:return Fs(e,t,t.type,t.pendingProps,r);case 1:return Ns(e,t,i=t.type,a=hs(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=_n(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}Es(e,t,i,r)}t=t.child}return t;case 26:return Ds(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=kd(t.type,t.pendingProps,$.current),ei=t,ii=!0,a=ti,gd(t.type)?(xd=a,ti=yd(i.firstChild)):ti=a),Es(e,t,t.pendingProps.children,r),Ds(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=za(e,t,Ra,null,null,r),Kd._currentValue=a),Ds(e,t),Es(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=Zo(t,null,i,r):Es(e,t,i,r),t.child;case 11:return Ts(e,t,t.type,t.pendingProps,r);case 7:return Es(e,t,t.pendingProps,r),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,mi(0,t.type,i.value),Es(e,t,i.children,r),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,ki(t),i=i(a=wi(a)),t.flags|=1,Es(e,t,i,r),t.child;case 14:return js(e,t,t.type,t.pendingProps,r);case 15:return Os(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 Is(e,t,r);case 24:return ki(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},Zi(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))),Es(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(Zn(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=kd(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||Ju(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?(os(t),t):(os(t),null)}if(os(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(F(ss),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!==fc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=ls(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 L(ss,1&ss.current|2),t.child}e=e.sibling}null!==a.tail&&J()>Sc&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ls(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*J()-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=J(),t.sibling=null,e=ss.current,L(ss,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return os(t),fa(),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&&F(Li),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(Zn(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(os(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 F(ss),null;case 4:return V(),null;case 10:return vi(t.type),null;case 22:case 23:return os(t),fa(),null!==e&&F(Li),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(Zn(t),t.tag){case 3:vi(Ti),V();break;case 26:case 27:case 5:q(t);break;case 4:V();break;case 13:os(t);break;case 19:F(ss);break;case 10:vi(t.type);break;case 22:case 23:os(t),fa(),null!==e&&F(Li);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=hs(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 hl(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 fl(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(f in r){var p=r[f];if(r.hasOwnProperty(f)&&null!=p)switch(f){case"checked":case"value":break;case"defaultValue":c=p;default:i.hasOwnProperty(f)||ed(e,t,f,null,i,p)}}for(var h in i){var f=i[h];if(p=r[h],i.hasOwnProperty(h)&&(null!=f||null!=p))switch(h){case"type":o=f;break;case"name":a=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,t));break;default:f!==p&&ed(e,t,h,f,i,p)}}return void ht(e,s,l,c,u,d,o,a);case"select":for(o in f=s=l=h=null,r)if(c=r[o],r.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":f=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":h=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=f,void(null!=h?mt(e,!!r,h,!1):!!i!=!!r&&(null!=t?mt(e,!!r,t,!0):mt(e,!!r,r?[]:"",!1)));case"textarea":for(l in f=h=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":h=a;break;case"defaultValue":f=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,h,f);case"option":for(var g in r)h=r[g],r.hasOwnProperty(g)&&null!=h&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,h));for(c in i)h=i[c],f=r[c],!i.hasOwnProperty(c)||h===f||null==h&&null==f||("selected"===c?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:ed(e,t,c,h,i,f));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)h=r[m],r.hasOwnProperty(m)&&null!=h&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,h);for(u in i)if(h=i[u],f=r[u],i.hasOwnProperty(u)&&h!==f&&(null!=h||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,t));break;default:ed(e,t,u,h,i,f)}return;default:if(wt(t)){for(var v in r)h=r[v],r.hasOwnProperty(v)&&void 0!==h&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,h);for(d in i)h=i[d],f=r[d],!i.hasOwnProperty(d)||h===f||void 0===h&&void 0===f||td(e,t,d,h,i,f);return}}for(var b in r)h=r[b],r.hasOwnProperty(b)&&null!=h&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,h);for(p in i)h=i[p],f=r[p],!i.hasOwnProperty(p)||h===f||null==h&&null==f||ed(e,t,p,h,i,f)}(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=Zu));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 _l=!1,kl=!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=hs(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&&fl(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||_l)){t=null!==t&&null!==t.memoizedState||kl,i=_l;var a=kl;_l=n,(kl=t)&&!a?$l(e,r,!!(8772&r.subtreeFlags)):Nl(e,r),_l=i,kl=a}break;case 30:break;default:Nl(e,r)}}function El(e){var t=e.alternate;null!==t&&(e.alternate=null,El(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Fe(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 zl=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:kl||hl(r,t),jl(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode).parentNode.removeChild(r);break;case 27:kl||hl(r,t);var n=zl,i=Tl;gd(r.type)&&(zl=r.stateNode,Tl=!1),jl(e,t,r),wd(r.stateNode),zl=n,Tl=i;break;case 5:kl||hl(r,t);case 6:if(n=zl,i=Tl,zl=null,jl(e,t,r),Tl=i,null!==(zl=n))if(Tl)try{(9===zl.nodeType?zl.body:"HTML"===zl.nodeName?zl.ownerDocument.body:zl).removeChild(r.stateNode)}catch(o){pu(r,t,o)}else try{zl.removeChild(r.stateNode)}catch(o){pu(r,t,o)}break;case 18:null!==zl&&(Tl?(md(9===(e=zl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,r.stateNode),Tp(e)):md(zl,r.stateNode));break;case 4:n=zl,i=Tl,zl=r.stateNode.containerInfo,Tl=!0,jl(e,t,r),zl=n,Tl=i;break;case 0:case 11:case 14:case 15:kl||cl(2,r,t),kl||cl(4,r,t),jl(e,t,r);break;case 1:kl||(hl(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:kl=(n=kl)||null!==r.memoizedState,jl(e,t,r),kl=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)){zl=l.stateNode,Tl=!1;break e}break;case 5:zl=l.stateNode,Tl=!1;break e;case 3:case 4:zl=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===zl)throw Error(n(160));Rl(o,s,a),zl=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),Fl(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),64&i&&_l&&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),Fl(e),512&i&&(kl||null===r||hl(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),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),null!==r&&4&i&&gl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Al(t,e),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),32&e.flags){a=e.stateNode;try{yt(a,"")}catch(f){pu(e,e.return,f)}}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),Fl(e),4&i){if(null===e.stateNode)throw Error(n(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(f){pu(e,e.return,f)}}break;case 3:if(Wd=null,a=Dl,Dl=Pd(t.containerInfo),Al(t,e),Dl=a,Fl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Tp(t.containerInfo)}catch(f){pu(e,e.return,f)}wl&&(wl=!1,Ll(e));break;case 4:i=Dl,Dl=Pd(e.stateNode.containerInfo),Al(t,e),Fl(e),Dl=i;break;case 12:default:Al(t,e),Fl(e);break;case 13:Al(t,e),Fl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==r&&null!==r.memoizedState)&&(wc=J()),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=_l,d=kl;if(_l=u||a,kl=d||c,Al(t,e),kl=d,_l=u,Fl(e),8192&i)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===r||c||_l||kl||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,h=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(f){pu(c,c.return,f)}}}else if(6===t.tag){if(null===r){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(f){pu(c,c.return,f)}}}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),Fl(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));case 30:case 21:}}function Fl(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 Ll(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ll(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:hl(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:hl(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&&fl(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))&&Ld(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 Jl(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;)Zl(e),e=e.sibling}function Zl(e){switch(e.tag){case 0:case 11:case 15:Jl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Jl(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)):Jl(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(El(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,hc=0,fc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,_c=null,kc=!1,wc=0,Sc=1/0,Cc=null,Pc=null,Ec=0,zc=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():Ee()}function Fc(){0===bc&&(bc=536870912&sc&&!ri?536870912:ye());var e=ts.current;return null!==e&&(e.flags|=32),bc}function Lc(e,t,r){(e!==ac||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Bc(e,sc,bc,!1)),ke(e,r),2&ic&&e===ac||(e===ac&&(!(2&ic)&&(mc|=r),4===fc&&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=J()+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(),fc=6;break e;default:throw Error(n(462))}}Jc();break}catch(d){qc(e,d)}return gi=fi=null,R.H=i,R.A=a,ic=r,null!==oc?0:(ac=null,sc=0,Cn(),fc)}(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=_c,_c=a,null!==o&&(null===_c?_c=o:_c.push.apply(_c,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:_c=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&t)===t&&10<(a=wc+300-J())){if(Bc(i,t,bc,!uc),0!==me(i,0,!0))break e;i.timeoutHandle=ud(Wc.bind(null,i,r,_c,Cc,kc,t,bc,mc,yc,uc,o,2,-0,0),a)}else Wc(i,r,_c,Cc,kc,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,h,f){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,h,f)),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=fi=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=fc=0,_c=xc=null,kc=!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 hc=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===Cs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===oc&&(fc=1,ys(e,_n(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(){fc=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=fc;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=fc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,gi=fi=null,ic=n,R.H=i,R.A=a,null===oc&&(ac=null,sc=0,Cn()),o}function Xc(){for(;null!==oc;)Zc(oc)}function Jc(){for(;null!==oc&&!K();)Zc(oc)}function Zc(e){var t=Zs(e.alternate,e,hc);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=Ls(r,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=Ls(r,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:Aa(t);default:sl(r,t),t=Zs(r,t=oc=Mn(t,hc),hc)}e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function tu(e,t,r,i){gi=fi=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===fc&&(fc=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),hu(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),hu(e,i,a)),!1}throw Error(n(435,r.tag))}return hu(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(_n(e=Error(n(422),{cause:i}),r))):(i!==ai&&pi(_n(t=Error(n(423),{cause:i}),r)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,i=_n(i,r),ia(e,a=_s(e.stateNode,i,a)),4!==fc&&(fc=2)),!1;var o=Error(n(520),{cause:i});if(o=_n(o,r),null===xc?xc=[o]:xc.push(o),4!==fc&&(fc=2),null===t)return!0;i=_n(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,ia(r,e=_s(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,ws(a=ks(a),e,r,i),ia(r,a),!1}r=r.return}while(null!==r);return!1}(e,a,t,r,sc))return fc=1,ys(e,_n(r,e.current)),void(oc=null)}catch(o){if(null!==a)throw oc=a,o;return fc=1,ys(e,_n(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,hc);if(null!==r)return void(oc=r);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===fc&&(fc=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);fc=6,oc=null}function iu(e,t,r,i,a,o,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==Ec);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 h=p[u];null!==h&&(h.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,zc=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,h=null;e:for(;;){for(var f;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!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break e;if(h===r&&++u===a&&(l=s),h===o&&++d===i&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}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=hs(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}}Ec=1,au(),ou(),su()}}function au(){if(1===Ec){Ec=0;var e=zc,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 h=p.getSelection(),f=s.textContent.length,g=Math.min(l.start,f),m=void 0===l.end?g:Math.min(l.end,f);!h.extend&&g>m&&(o=m,m=g,g=o);var v=Gr(s,g),b=Gr(s,m);if(v&&b&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),h.removeAllRanges(),g>m?(h.addRange(y),h.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),h.addRange(y))}}}}for(d=[],h=s;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.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,Ec=2}}function ou(){if(2===Ec){Ec=0;var e=zc,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}}Ec=3}}function su(){if(4===Ec||3===Ec){Ec=0,X();var e=zc,t=Tc,r=jc,n=Ic;10256&t.subtreeFlags||10256&t.flags?Ec=5:(Ec=0,Tc=zc=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!==Ec)return!1;var e=zc,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=zc,s=jc;if(Ec=0,Tc=zc=null,jc=0,6&ic)throw Error(n(331));var l=ic;if(ic|=4,Zl(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=_n(r,t),null!==(e=ra(e,t=_s(e.stateNode,t,2),2))&&(ke(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=_n(r,e),null!==(n=ra(t,r=ks(2),2))&&(ws(r,n,t,e),ke(n,2),Su(n));break}}t=t.return}}function hu(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=fu.bind(null,e,t,r),t.then(e,e))}function fu(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===fc||3===fc&&(62914560&sc)===sc&&300>J()-wc?!(2&ic)&&Uc(e,0):vc|=r,yc===sc&&(yc=0)),Su(e)}function gu(e,t){0===t&&(t=xe()),null!==(e=zn(e,t))&&(ke(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,_u=!1,ku=!1,wu=0;function Su(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),_u=!0,xu||(xu=!0,hd(function(){6&ic?G(ee,Pu):Eu()}))}function Cu(e,t){if(!ku&&_u){ku=!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);ku=!1}}function Pu(){Eu()}function Eu(){_u=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=J(),n=null,i=bu;null!==i;){var a=i.next,o=zu(i,r);0===o?(i.next=null,null===n?bu=a:n.next=a,null===a&&(yu=n)):(n=i,(0!==t||3&o)&&(_u=!0)),i=a}Cu(t)}function zu(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!==Ec&&5!==Ec)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),zu(e,J()),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(hn,"onTransitionRun"),yn(fn,"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(" "),Fu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function Lu(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){fs(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){fs(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&&(Fu.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=Le(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=zt(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=hr;break;case un:case dn:case pn:c=nr;break;case mn:c=fr;break;case"scroll":case"scrollend":c=Jt;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),h=d?null!==l?l+"Capture":null:l;d=[];for(var f,g=n;null!==g;){var m=g;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===h||null!=(m=At(g,h))&&d.push(Uu(g,m,f)),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===Et||!(u=r.relatedTarget||r.fromElement)||!Le(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)?Le(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",h="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=pr,m="onPointerLeave",h="onPointerEnter",g="pointer"),p=null==c?l:We(c),f=null==u?l:We(u),(l=new d(m,g+"leave",c,r,i)).target=p,l.relatedTarget=f,m=null,Le(i)===n&&((d=new d(h,g+"enter",u,r,i)).target=f,d.relatedTarget=p,m=d),p=m,c&&u)e:{for(h=u,g=0,f=d=c;f;f=Yu(f))g++;for(f=0,m=h;m;m=Yu(m))f++;for(;0<g-f;)d=Yu(d),g--;for(;0<f-g;)h=Yu(h),f--;for(;g--;){if(d===h||null!==h&&d===h.alternate)break e;d=Yu(d),h=Yu(h)}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(zr(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":(zr(b)||"true"===b.contentEditable)&&(Zr=b,en=n,tn=null);break;case"focusout":tn=en=Zr=null;break;case"mousedown":rn=!0;break;case"contextmenu":case"mouseup":case"dragend":rn=!1,nn(s,r,i);break;case"selectionchange":if(Jr)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&&(_r&&"ko"!==r.locale&&(Pr||"onCompositionStart"!==x?"onCompositionEnd"===x&&Pr&&(y=$t()):(Nt="value"in(Lt=i)?Lt.value:Lt.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,kr);case"textInput":return(e=t.data)===kr&&wr?null:e;default:return null}}(e,r):function(e,t){if(Pr)return"compositionend"===e||!br&&Sr(e,t)?(e=$t(),Wt=Nt=Lt=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 _r&&"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);zo(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),zo(r,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(s,e,n,r,i)}Lu(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 Ju(e,t){return t=Xu(t),Xu(e)===t}function Zu(){}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":Ze(e,"class",i);break;case"tabIndex":Ze(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ze(e,r,i);break;case"style":kt(e,i,o);break;case"data":if("object"!==t){Ze(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=Zu);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),Je(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":Je(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])&&Je(e,r=St.get(r)||r,i)}}function td(e,t,r,i,a,o){switch(r){case"style":kt(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=Zu);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,""):Je(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 ft(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,hd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(fd)}:ud;function fd(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),Fe(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 _d(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 kd(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]);Fe(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 Ed=O.d;O.d={f:function(){var e=Ed.f(),t=Hc();return e||t},r:function(e){var t=Ne(e);null!==t&&5===t.tag&&"form"===t.type?jo(t):Ed.r(e)},D:function(e){Ed.D(e),Td("dns-prefetch",e,null)},C:function(e,t){Ed.C(e,t),Td("preconnect",e,t)},L:function(e,t,r){Ed.L(e,t,r);var n=zd;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){Ed.m(e,t);var r=zd;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){Ed.X(e,t);var r=zd;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){Ed.S(e,t,r);var n=zd;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))&&Ld(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,Fd(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){Ed.M(e,t);var r=zd;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 zd="undefined"==typeof document?null:document;function Td(e,t,r){var n=zd;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),Fd(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))&&Ld(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,Fd(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,Fd(i,r.precedence,e));return t.instance}function Fd(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 Ld(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=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(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 Jd(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},Zi(a),e}function Zd(e){return e?e=Rn:Rn}function ep(e,t,r,n,i,a){i=Zd(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))&&(Lc(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=zn(e,67108864);null!==t&&Lc(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 hp=_p(hp,e,t,r,n,i),!0;case"dragenter":return fp=_p(fp,e,t,r,n,i),!0;case"mouseover":return gp=_p(gp,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return mp.set(a,_p(mp.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,vp.set(a,_p(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=J()+500,Cu(0))}}break;case 13:null!==(s=zn(a,2))&&Lc(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=zt(e))}var cp=null;function up(e){if(cp=null,null!==(e=Le(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(Z()){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,hp=null,fp=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":hp=null;break;case"dragenter":case"dragleave":fp=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 _p(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 kp(e){var t=Le(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=zn(r,e);null!==t&&Lc(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);Et=n,r.target.dispatchEvent(n),Et=null,t.shift()}return!0}function Sp(e,t,r){wp(e)&&r.delete(t)}function Cp(){pp=!1,null!==hp&&wp(hp)&&(hp=null),null!==fp&&wp(fp)&&(fp=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 Ep=null;function zp(t){Ep!==t&&(Ep=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ep===t&&(Ep=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,zo(a,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function Tp(e){function t(t){return Pp(t,e)}null!==hp&&Pp(hp,e),null!==fp&&Pp(fp,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;)kp(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||zp(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),zp(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=Ee();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&&kp(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 Ss.createRoot=function(e,t){if(!i(e))throw Error(n(299));var r=!1,a="",o=gs,s=ms,l=bs;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=Jd(e,1,!1,null,0,r,a,o,s,l,0,null),e[Re]=t.current,Bu(e),new jp(t)},Ss.hydrateRoot=function(e,t,r){if(!i(e))throw Error(n(299));var a=!1,o="",s=gs,l=ms,c=bs,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=Jd(e,1,!0,t,0,a,o,s,l,c,0,u)).context=Zd(null),r=t.current,(o=ta(a=Ce(a=Mc()))).callback=null,ra(r,o,a),r=a,t.current.lanes=r,ke(t,r),Su(t),e[Re]=t.current,Bu(e),new Rp(t)},Ss.version="19.1.1",Ss}function Ls(){return Os||(Os=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)}}(),ws.exports=Fs()),ws.exports}const Ns=ns(Ls());function Ws(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var $s=/^((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|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)-.*))$/,Bs=Ws(function(e){return $s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Hs=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}(),Vs="-ms-",Us="-moz-",qs="-webkit-",Ys="comm",Gs="rule",Qs="decl",Ks="@keyframes",Xs=Math.abs,Js=String.fromCharCode,Zs=Object.assign;function el(e){return e.trim()}function tl(e,t,r){return e.replace(t,r)}function rl(e,t){return e.indexOf(t)}function nl(e,t){return 0|e.charCodeAt(t)}function il(e,t,r){return e.slice(t,r)}function al(e){return e.length}function ol(e){return e.length}function sl(e,t){return t.push(e),e}var ll=1,cl=1,ul=0,dl=0,pl=0,hl="";function fl(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ll,column:cl,length:o,return:""}}function gl(e,t){return Zs(fl("",null,null,"",null,null,0),e,{length:-e.length},t)}function ml(){return pl=dl>0?nl(hl,--dl):0,cl--,10===pl&&(cl=1,ll--),pl}function vl(){return pl=dl<ul?nl(hl,dl++):0,cl++,10===pl&&(cl=1,ll++),pl}function bl(){return nl(hl,dl)}function yl(){return dl}function xl(e,t){return il(hl,e,t)}function _l(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 kl(e){return ll=cl=1,ul=al(hl=e),dl=0,[]}function wl(e){return hl="",e}function Sl(e){return el(xl(dl-1,El(91===e?e+2:40===e?e+1:e)))}function Cl(e){for(;(pl=bl())&&pl<33;)vl();return _l(e)>2||_l(pl)>3?"":" "}function Pl(e,t){for(;--t&&vl()&&!(pl<48||pl>102||pl>57&&pl<65||pl>70&&pl<97););return xl(e,yl()+(t<6&&32==bl()&&32==vl()))}function El(e){for(;vl();)switch(pl){case e:return dl;case 34:case 39:34!==e&&39!==e&&El(pl);break;case 40:41===e&&El(e);break;case 92:vl()}return dl}function zl(e,t){for(;vl()&&e+pl!==57&&(e+pl!==84||47!==bl()););return"/*"+xl(t,dl-1)+"*"+Js(47===e?e:vl())}function Tl(e){for(;!_l(bl());)vl();return xl(e,dl)}function jl(e){return wl(Rl("",null,null,null,[""],e=kl(e),0,[0],e))}function Rl(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",x=i,_=a,k=n,w=y;m;)switch(f=b,b=vl()){case 40:if(108!=f&&58==nl(w,d-1)){-1!=rl(w+=tl(Sl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=Sl(b);break;case 9:case 10:case 13:case 32:w+=Cl(f);break;case 92:w+=Pl(yl()-1,7);continue;case 47:switch(bl()){case 42:case 47:sl(Il(zl(vl(),yl()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=al(w)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(w=tl(w,/\f/g,"")),h>0&&al(w)-d&&sl(h>32?Al(w+";",n,r,d-1):Al(tl(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(sl(k=Ol(w,t,r,c,u,i,s,y,x=[],_=[],d),a),123===b)if(0===u)Rl(w,t,k,k,x,a,d,s,_);else switch(99===p&&110===nl(w,3)?100:p){case 100:case 108:case 109:case 115:Rl(e,k,k,n&&sl(Ol(e,k,k,0,0,i,s,y,i,x=[],d),_),i,_,d,s,n?x:_);break;default:Rl(w,k,k,k,[""],_,0,s,_)}}c=u=h=0,g=v=1,y=w="",d=o;break;case 58:d=1+al(w),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ml())continue;switch(w+=Js(b),b*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(al(w)-1)*v,v=1;break;case 64:45===bl()&&(w+=Sl(vl())),p=bl(),u=d=al(y=w+=Tl(yl())),b++;break;case 45:45===f&&2==al(w)&&(g=0)}}return a}function Ol(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],h=ol(p),f=0,g=0,m=0;f<n;++f)for(var v=0,b=il(e,d+1,d=Xs(g=o[f])),y=e;v<h;++v)(y=el(g>0?p[v]+" "+b:tl(b,/&\f/g,p[v])))&&(l[m++]=y);return fl(e,t,r,0===i?Gs:s,l,c,u)}function Il(e,t,r){return fl(e,t,r,Ys,Js(pl),il(e,2,-2),0)}function Al(e,t,r,n){return fl(e,t,r,Qs,il(e,0,n),il(e,n+1,-1),n)}function Dl(e,t){for(var r="",n=ol(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Ml(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qs:return e.return=e.return||e.value;case Ys:return"";case Ks:return e.return=e.value+"{"+Dl(e.children,n)+"}";case Gs:e.value=e.props.join(",")}return al(r=Dl(e.children,n))?e.return=e.value+"{"+r+"}":""}var Fl=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}},Ll=function(e,t,r){for(var n=0,i=0;n=i,i=bl(),38===n&&12===i&&(t[r]=1),!_l(i);)vl();return xl(e,dl)},Nl=new WeakMap,Wl=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)||Nl.get(r))&&!n){Nl.set(e,!0);for(var i=[],a=function(e,t){return wl(function(e,t){var r=-1,n=44;do{switch(_l(n)){case 0:38===n&&12===bl()&&(t[r]=1),e[r]+=Ll(dl-1,t,r);break;case 2:e[r]+=Sl(n);break;case 4:if(44===n){e[++r]=58===bl()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Js(n)}}while(n=vl());return e}(kl(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]}}},$l=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Bl(e,t){switch(function(e,t){return 45^nl(e,0)?(((t<<2^nl(e,0))<<2^nl(e,1))<<2^nl(e,2))<<2^nl(e,3):0}(e,t)){case 5103:return qs+"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 qs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qs+e+Us+e+Vs+e+e;case 6828:case 4268:return qs+e+Vs+e+e;case 6165:return qs+e+Vs+"flex-"+e+e;case 5187:return qs+e+tl(e,/(\w+).+(:[^]+)/,qs+"box-$1$2"+Vs+"flex-$1$2")+e;case 5443:return qs+e+Vs+"flex-item-"+tl(e,/flex-|-self/,"")+e;case 4675:return qs+e+Vs+"flex-line-pack"+tl(e,/align-content|flex-|-self/,"")+e;case 5548:return qs+e+Vs+tl(e,"shrink","negative")+e;case 5292:return qs+e+Vs+tl(e,"basis","preferred-size")+e;case 6060:return qs+"box-"+tl(e,"-grow","")+qs+e+Vs+tl(e,"grow","positive")+e;case 4554:return qs+tl(e,/([^-])(transform)/g,"$1"+qs+"$2")+e;case 6187:return tl(tl(tl(e,/(zoom-|grab)/,qs+"$1"),/(image-set)/,qs+"$1"),e,"")+e;case 5495:case 3959:return tl(e,/(image-set\([^]*)/,qs+"$1$`$1");case 4968:return tl(tl(e,/(.+:)(flex-)?(.*)/,qs+"box-pack:$3"+Vs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qs+e+e;case 4095:case 3583:case 4068:case 2532:return tl(e,/(.+)-inline(.+)/,qs+"$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(al(e)-1-t>6)switch(nl(e,t+1)){case 109:if(45!==nl(e,t+4))break;case 102:return tl(e,/(.+:)(.+)-([^]+)/,"$1"+qs+"$2-$3$1"+Us+(108==nl(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rl(e,"stretch")?Bl(tl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nl(e,t+1))break;case 6444:switch(nl(e,al(e)-3-(~rl(e,"!important")&&10))){case 107:return tl(e,":",":"+qs)+e;case 101:return tl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qs+(45===nl(e,14)?"inline-":"")+"box$3$1"+qs+"$2$3$1"+Vs+"$2box$3")+e}break;case 5936:switch(nl(e,t+11)){case 114:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qs+e+Vs+e+e}return e}var Hl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qs:e.return=Bl(e.value,e.length);break;case Ks:return Dl([gl(e,{value:tl(e.value,"@","@"+qs)})],n);case Gs: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 Dl([gl(e,{props:[tl(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Dl([gl(e,{props:[tl(t,/:(plac\w+)/,":"+qs+"input-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,Vs+"input-$1")]})],n)}return""})}}],Vl=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||Hl,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=[Ml,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[Wl,$l].concat(a,p),u=ol(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,Dl(jl(e?e+"{"+t.styles+"}":t.styles),h),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Hs({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 f.sheet.hydrate(s),f};const Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"}));function ql(){return ql=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},ql.apply(null,arguments)}var Yl,Gl,Ql,Kl,Xl={exports:{}},Jl={};function Zl(){if(Yl)return Jl;Yl=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,h=e?Symbol.for("react.memo"):60115,f=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 f:case h:case o:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return Jl.AsyncMode=l,Jl.ConcurrentMode=c,Jl.ContextConsumer=s,Jl.ContextProvider=o,Jl.Element=t,Jl.ForwardRef=u,Jl.Fragment=n,Jl.Lazy=f,Jl.Memo=h,Jl.Portal=r,Jl.Profiler=a,Jl.StrictMode=i,Jl.Suspense=d,Jl.isAsyncMode=function(e){return x(e)||y(e)===l},Jl.isConcurrentMode=x,Jl.isContextConsumer=function(e){return y(e)===s},Jl.isContextProvider=function(e){return y(e)===o},Jl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Jl.isForwardRef=function(e){return y(e)===u},Jl.isFragment=function(e){return y(e)===n},Jl.isLazy=function(e){return y(e)===f},Jl.isMemo=function(e){return y(e)===h},Jl.isPortal=function(e){return y(e)===r},Jl.isProfiler=function(e){return y(e)===a},Jl.isStrictMode=function(e){return y(e)===i},Jl.isSuspense=function(e){return y(e)===d},Jl.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===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Jl.typeOf=y,Jl}function ec(){return Gl||(Gl=1,Xl.exports=Zl()),Xl.exports}function tc(){if(Kl)return Ql;Kl=1;var e=ec(),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 Ql=function e(t,n,i){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,i)}var h=s(n);l&&(h=h.concat(l(n)));for(var f=a(t),g=a(n),m=0;m<h.length;++m){var v=h[m];if(!(r[v]||i&&i[v]||g&&g[v]||f&&f[v])){var b=c(n,v);try{o(t,v,b)}catch(y){}}}}return t}}const rc=ns(tc());function nc(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var ic=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ac=function(e,t,r){ic(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)}},oc={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},sc=/[A-Z]|^ms/g,lc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cc=function(e){return 45===e.charCodeAt(1)},uc=function(e){return null!=e&&"boolean"!=typeof e},dc=Ws(function(e){return cc(e)?e:e.replace(sc,"-$&").toLowerCase()}),pc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lc,function(e,t,r){return fc={name:t,styles:r,next:fc},t})}return 1===oc[e]||cc(e)||"number"!=typeof t||0===t?t:t+"px"};function hc(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 fc={name:i.name,styles:i.styles,next:fc},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)fc={name:o.name,styles:o.styles,next:fc},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+=hc(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]+"}":uc(s)&&(n+=dc(a)+":"+pc(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=hc(e,t,o);switch(a){case"animation":case"animationName":n+=dc(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)uc(o[c])&&(n+=dc(a)+":"+pc(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=fc,l=r(e);return fc=s,hc(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var fc,gc=/label:\s*([^\s;{]+)\s*(;|$)/g;function mc(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="";fc=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=hc(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=hc(r,t,e[o]),n&&(i+=a[o]);gc.lastIndex=0;for(var s,l="";null!==(s=gc.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:fc}}var vc,bc,yc=!!xs.useInsertionEffect&&xs.useInsertionEffect,xc=yc||function(e){return e()},_c=yc||bs.useLayoutEffect,kc=bs.createContext("undefined"!=typeof HTMLElement?Vl({key:"css"}):null),wc=kc.Provider,Sc=function(e){return bs.forwardRef(function(t,r){var n=bs.useContext(kc);return e(t,n,r)})},Cc=bs.createContext({}),Pc=Fl(function(e){return Fl(function(t){return function(e,t){return"function"==typeof t?t(e):ql({},e,t)}(e,t)})}),Ec={}.hasOwnProperty,zc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ic(t,r,n),xc(function(){return ac(t,r,n)}),null},jc=Sc(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[zc],a=[n],o="";"string"==typeof e.className?o=nc(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=mc(a,void 0,bs.useContext(Cc));o+=t.key+"-"+s.name;var l={};for(var c in e)Ec.call(e,c)&&"css"!==c&&c!==zc&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),bs.createElement(bs.Fragment,null,bs.createElement(Tc,{cache:t,serialized:s,isStringTag:"string"==typeof i}),bs.createElement(i,l))}),Rc=jc,Oc=function(e,t){var r=arguments;if(null==t||!Ec.call(t,"css"))return bs.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Rc,i[1]=function(e,t){var r={};for(var n in t)Ec.call(t,n)&&(r[n]=t[n]);return r[zc]=e,r}(e,t);for(var a=2;a<n;a++)i[a]=r[a];return bs.createElement.apply(null,i)};vc=Oc||(Oc={}),bc||(bc=vc.JSX||(vc.JSX={}));var Ic=Sc(function(e,t){var r=mc([e.styles],void 0,bs.useContext(Cc)),n=bs.useRef();return _c(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]),_c(function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ac(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 Ac(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return mc(t)}var Dc=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},Mc=function(e){var t=e.cache,r=e.serializedArr;return xc(function(){for(var e=0;e<r.length;e++)ac(t,r[e],!1)}),null},Fc=Sc(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=mc(n,t.registered);return r.push(a),ic(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=nc(e,n,r);return n.length<2?r:i+t(n)}(t.registered,n,Dc(r))},theme:bs.useContext(Cc)},a=e.children(i);return bs.createElement(bs.Fragment,null,bs.createElement(Mc,{cache:t,serializedArr:r}),a)});const Lc=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:wc,ClassNames:Fc,Global:Ic,ThemeContext:Cc,ThemeProvider:function(e){var t=bs.useContext(Cc);return e.theme!==t&&(t=Pc(t)(e.theme)),bs.createElement(Cc.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return bs.useContext(kc)},get createElement(){return Oc},css:Ac,get jsx(){return Oc},keyframes:function(){var e=Ac.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 bs.useContext(Cc)},withEmotionCache:Sc,withTheme:function(e){var t=e.displayName||e.name||"Component",r=bs.forwardRef(function(t,r){var n=bs.useContext(Cc);return bs.createElement(e,ql({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",rc(r,e)}},Symbol.toStringTag,{value:"Module"}));function Nc(...e){return function(...t){e.forEach(e=>e?.(...t))}}const Wc=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),$c=/^on[A-Z]/;function Bc(...e){let t={};for(let r of e){for(let e in t)$c.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=Nc(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]??{}):Wc(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Hc(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}const Vc=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Uc=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),qc=e=>"string"==typeof e,Yc=e=>"function"==typeof e,Gc=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function Qc(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=bs.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=bs.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[Kc,Xc]=Qc({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Jc(e){const{value:t,children:r}=e;return hs.jsxs(Kc,{value:t,children:[!t._config.disableLayers&&hs.jsx(Ic,{styles:t.layers.atRule}),hs.jsx(Ic,{styles:t._global}),r]})}const Zc=(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,Yc(t)?t:e=>t.includes(e)),eu=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function tu(e){return"string"==typeof e&&eu.has(e)}var ru;const nu=(ru=Bs).default||ru,iu=e=>"theme"!==e;let au="undefined"!=typeof document;const ou=({cache:e,serialized:t,isStringTag:r})=>{ic(e,t,r);const n=xc(()=>ac(e,t,r));if(!au&&void 0!==n){let r=t.name,i=t.next;for(;void 0!==i;)r=Vc(r,i.name),i=i.next;return hs.jsx("style",{"data-emotion":Vc(e.key,r),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},su={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"]},lu=((e,t={},r={})=>{if(n=su,i=e,Object.prototype.hasOwnProperty.call(n,i)){r.forwardProps||(r.forwardProps=[]);const t=su[e];r.forwardProps=Gc([...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=Sc((n,i,s)=>{const{cva:u,isValidProperty:d}=Xc(),p=t.__cva__?t:u(t),h=du(e.__emotion_cva,p);var f;!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=(f=r.forwardProps,(e,t)=>!!f.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?nu:iu,i=!r?.includes(t)&&!d(t);return n(t)&&i}),m=bs.useMemo(()=>Object.assign({},r.defaultProps,Hc(n)),[n]),{props:v,styles:b}=function(e,t,r){const{css:n,isValidProperty:i}=Xc(),{children:a,...o}=e,s=bs.useMemo(()=>{const[e,n]=Zc(o,e=>r(e,t.variantKeys)),[a,s]=Zc(n,t.variantKeys),[l,c]=Zc(s,i);return{forwardedProps:e,variantProps:a,styleProps:l,elementProps:c}},[t.variantKeys,r,o,i]),{css:l,...c}=s.styleProps,u=bs.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:bs.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,h,g);let y="",x=[b],_=v;if(null==v.theme){_={};for(let e in v)_[e]=v[e];_.theme=bs.useContext(Cc)}"string"==typeof v.className?y=nc(i.registered,x,v.className):null!=v.className&&(y=Vc(y,v.className));const k=mc(c.concat(x),i.registered,_);k.styles&&(y=Vc(y,`${i.key}-${k.name}`)),void 0!==l&&(y=Vc(y,l));const w=!g("as");let S=w&&v.as||o,C={};for(let e in v)if(!w||"as"!==e){if(tu(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 E=r.forwardAsChild||r.forwardProps?.includes("asChild");if(v.asChild&&!E){const e=bs.isValidElement(v.children)?bs.Children.only(v.children):bs.Children.toArray(v.children).find(bs.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");S=e.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=Bc(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=bs.version;return qc(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return C.as&&E?(C.as=void 0,hs.jsxs(bs.Fragment,{children:[hs.jsx(ou,{cache:i,serialized:k,isStringTag:"string"==typeof S}),hs.jsx(S,{asChild:!0,...C,children:hs.jsx(v.as,{children:C.children})})]})):hs.jsxs(bs.Fragment,{children:[hs.jsx(ou,{cache:i,serialized:k,isStringTag:"string"==typeof S}),hs.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(),cu=new Map,uu=new Proxy(lu,{apply:(e,t,r)=>lu(...r),get:(e,t)=>(cu.has(t)||cu.set(t,lu(t)),cu.get(t))}),du=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),pu=uu("div");pu.displayName="Box";const hu=Object.freeze({}),fu=Object.freeze({});function gu(e){const{key:t,recipe:r}=e,n=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[a,o]=Qc({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=Xc();return bs.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]=bs.useMemo(()=>a.splitVariantProps(i),[a,i]);return{styles:n?hu:a(o),className:a.className,props:s}}return{withContext:(e,t)=>{const r=uu(e,{},t),n=bs.forwardRef((e,t)=>{const n=o(),i=bs.useMemo(()=>Bc(n,e),[e,n]),{styles:a,className:l,props:c}=s(i);return hs.jsx(r,{...c,ref:t,css:[a,i.css],className:Vc(l,i.className)})});return n.displayName=e.displayName||e.name,n},PropsProvider:a,withPropsProvider:function(){return a},usePropsContext:o,useRecipeResult:s}}const mu=bs.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 hs.jsx(uu.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 vu=e=>"string"==typeof e;Function.prototype.toString.call(Object);var bu=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function yu(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=bs.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=bs.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[xu,_u]=yu({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var ku=e=>"object"==typeof e&&null!==e,wu=e=>ku(e)&&9===e.nodeType;function Su(e){return wu(e)?e:(e=>ku(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function Cu(e){return(e=>(e=>ku(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?Cu(e.host):wu(e)?e.defaultView??window:(e=>ku(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var Pu=new WeakMap,Eu=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),zu=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Tu=e=>{const t={};let r;for(;r=zu.exec(e);)t[r[1]]=r[2];return t},ju=(e,t)=>{if(vu(e)){if(vu(t))return`${e};${t}`;e=Tu(e)}else vu(t)&&(t=Tu(t));return Object.assign({},e??{},t??{})};function Ru(...e){let t={};for(let r of e){for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=bu(r[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:ju(t[e],r[e]):Eu(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Ou(...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 Iu=e=>{const t=bs.memo(bs.forwardRef((t,r)=>{const{asChild:n,children:i,...a}=t;if(!n)return bs.createElement(e,{...a,ref:r},i);if(!bs.isValidElement(i))return null;const o=bs.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 bs.cloneElement(o,{...Ru(a,o.props),ref:r?Ou(r,s):s})}));return t.displayName=e.displayName||e.name,t},Au=(()=>{const e=new Map;return new Proxy(Iu,{apply:(e,t,r)=>Iu(r[0]),get(t,r){const n=r;return e.has(n)||e.set(n,Iu(n)),e.get(n)}})})();var Du=()=>e=>Array.from(new Set(e));const Mu=uu("span"),{withContext:Fu}=gu({key:"text"}),Lu=Fu("p");function Nu(e,t){const r=Xc().normalizeValue(e),n=function(e={}){e.fallback||(e.fallback="base");const t=Xc();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=bs.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return bs.useInsertionEffect(()=>{r.current=e}),bs.useCallback((...e)=>r.current?.(...e),t)}(i),o=Array.isArray(e)?e:[e],s=r?.filter(e=>null!=e),[l,c]=bs.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 bs.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 Wu=(e,t=[])=>({parts:(...r)=>{if(Bu(t))return Wu(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Wu(e,[...t,...r]),omit:(...r)=>Wu(e,t.filter(e=>!r.includes(e))),rename:e=>Wu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:[`&[data-scope="${$u(e)}"][data-part="${$u(r)}"]`,`& [data-scope="${$u(e)}"][data-part="${$u(r)}"]`].join(", "),attrs:{"data-scope":$u(e),"data-part":$u(r)}}}),{})}),$u=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Bu=e=>0===e.length,Hu=Wu("collapsible").parts("root","trigger","content","indicator");Hu.build(),Du()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Vu=Wu("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"]);Vu.build(),Du()(["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"]),Du()(["xChannel","yChannel"]),Du()(["channel","orientation"]),Du()(["value","disabled"]),Du()(["value","respectAlpha"]),Du()(["size"]);var Uu=Wu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Uu.build(),Du()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),Du()(["value","disabled"]);var qu=Wu("avatar").parts("root","image","fallback");qu.build(),Du()(["dir","id","ids","onStatusChange","getRootNode"]);var Yu=Wu("checkbox").parts("root","label","control","indicator");Yu.build(),Du()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Gu=Yu.extendWith("group"),[Qu,Ku]=yu({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Xu=Wu("clipboard").parts("root","control","trigger","indicator","input","label");Xu.build(),Du()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),Du()(["copied"]);const Ju=Vu.extendWith("view");var Zu=Wu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Zu.build(),Du()(["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"]),Du()(["htmlFor"]),Du()(["id"]),Du()(["item","persistFocus"]);var ed=Wu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");ed.build(),Du()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var td=Wu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");td.build(),Du()(["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 rd=Wu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");rd.build();var nd=e=>{if(!e)return;const t=function(e){return Pu.has(e)||Pu.set(e,Cu(e).getComputedStyle(e)),Pu.get(e)}(e),r=Cu(e),n=Su(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 id=bs.forwardRef((e,t)=>{const{autoresize:r,...n}=e,i=bs.useRef(null),a=Ku(),o=Ru(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return bs.useEffect(()=>{if(r)return nd(i.current)},[r]),hs.jsx(Au.textarea,{...o,ref:Ou(t,i)})});id.displayName="FieldTextarea";const ad=Wu("fieldset").parts("root","errorText","helperText","legend");ad.build();var od=Wu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");od.build(),Du()(["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"]),Du()(["file"]);const sd=Symbol(),ld=Object.getPrototypeOf,cd=new WeakMap,ud=(e,t=!0)=>{cd.set(e,t)};function dd(e,t){const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;return r?(r[e]||(r[e]=t()),r[e]):t()}var pd=dd("__zag__refSet",()=>new WeakSet),hd=e=>null!==e&&"object"==typeof e,fd=e=>hd(e)&&!pd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e)||(e=>"object"==typeof e&&null!==e&&"nodeType"in e&&"string"==typeof e.nodeName)(e))(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),gd=dd("__zag__proxyStateMap",()=>new WeakMap),[md]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=new WeakMap,n=(e,t)=>{const n=r.get(e);if(n?.[0]===t)return n[1];const i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return ud(i,!0),r.set(e,[t,i]),Reflect.ownKeys(e).forEach(t=>{const r=Reflect.get(e,t);pd.has(r)?(ud(r,!1),i[t]=r):gd.has(r)?i[t]=function(e){const t=gd.get(e),[r,n,i]=t;return i(r,n())}(r):i[t]=r}),Object.freeze(i)},i=new WeakMap,a=[1,1],o=r=>{if(!hd(r))throw new Error("object required");const o=i.get(r);if(o)return o;let s=a[0];const l=new Set,c=(e,t=++a[0])=>{s!==t&&(s=t,l.forEach(r=>r(e,t)))};let u=a[1];const d=e=>(t,r)=>{const n=[...t];n[1]=[e,...n[1]],c(n,r)},p=new Map,h=e=>{const t=p.get(e);t&&(p.delete(e),t[1]?.())},f=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),g=t(f,{deleteProperty(e,t){const r=Reflect.get(e,t);h(t);const n=Reflect.deleteProperty(e,t);return n&&c(["delete",[t],r]),n},set(t,r,n,a){const o=Reflect.has(t,r),s=Reflect.get(t,r,a);if(o&&(e(s,n)||i.has(n)&&e(s,i.get(n))))return!0;var u;h(r),hd(n)&&(n=(e=>e&&(cd.has(e)?cd.get(e):ld(e)===Object.prototype||ld(e)===Array.prototype))(u=n)&&u[sd]||null||n);let f=n;if(Object.getOwnPropertyDescriptor(t,r)?.set);else{!gd.has(n)&&fd(n)&&(f=vd(n));const e=!pd.has(f)&&gd.get(f);e&&((e,t)=>{if(l.size){const r=t[3](d(e));p.set(e,[t,r])}else p.set(e,[t])})(r,e)}return Reflect.set(t,r,f,a),c(["set",[r],n,s]),!0}});i.set(r,g);const m=[f,(e=++a[1])=>(u===e||l.size||(u=e,p.forEach(([t])=>{const r=t[1](e);r>s&&(s=r)})),s),n,e=>(l.add(e),1===l.size&&p.forEach(([e,t],r)=>{const n=e[3](d(r));p.set(r,[e,n])}),()=>{l.delete(e),0===l.size&&p.forEach(([e,t],r)=>{t&&(t(),p.set(r,[e]))})})];return gd.set(g,m),Reflect.ownKeys(r).forEach(e=>{const t=Object.getOwnPropertyDescriptor(r,e);t.get||t.set?Object.defineProperty(f,e,t):g[e]=r[e]}),g})=>[o,gd,pd,e,t,fd,r,n,i,a])();function vd(e={}){return md(e)}const bd=e=>{const{value:t,children:r}=e,[n,i]=bs.useState(),a=bs.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??n?.getRootNode()??document;var e},[t,n]),o=bs.useMemo(()=>({getRootNode:a,getWindow:()=>Cu(a()),getDocument:()=>Su(a())}),[a]);return hs.jsxs(xu,{value:o,children:[r,!t&&hs.jsx("span",{hidden:!0,ref:i})]})};var yd=Wu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");yd.build(),Du()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var xd=Wu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");xd.build(),Du()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),Du()(["node","indexPath"]);var _d=Wu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");_d.build(),Du()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),Du()(["closeOnSelect","disabled","value","valueText"]),Du()(["htmlFor"]),Du()(["id"]),Du()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var kd=Wu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");kd.build(),Du()(["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 wd=Wu("pinInput").parts("root","label","input","control");wd.build(),Du()(["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 Sd=Wu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Sd.build(),Du()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);var Cd=Wu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Cd.build(),Du()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Pd=Wu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Pd.build(),Du()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Ed=Wu("radio-group").parts("root","label","item","itemText","itemControl","indicator");Ed.build(),Du()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),Du()(["value","disabled","invalid"]);var zd=Wu("rating-group").parts("root","label","item","control");zd.build(),Du()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),Du()(["index"]);var Td=Wu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Td.build(),Du()(["dir","getRootNode","ids","id"]);const jd=Ed.rename("segment-group");jd.build();var Rd=Wu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Rd.build(),Du()(["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"]),Du()(["item","persistFocus"]),Du()(["id"]),Du()(["htmlFor"]);var Od=Wu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Od.build(),Du()(["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"]),Du()(["index","name"]);var Id=Wu("switch").parts("root","label","control","thumb");Id.build(),Du()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Ad=Wu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function Dd(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}Ad.build(),vd({id:null}),Du()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const Md=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 Fd(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>Fd(e));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Fd(e[r]);return t}function Ld(e,t){if(null==t)return e;for(const r of Object.keys(t))if(void 0!==t[r]&&"__proto__"!==r)if(!Uc(e[r])&&Uc(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Uc(t[r]))Ld(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Uc(e[r][n])&&Uc(t[r][n])?Ld(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function Nd(e,...t){for(const r of t)Ld(e,r);return e}const Wd=e=>null!=e;function $d(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,a=[]){if(Uc(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);Wd(d)&&(o[c]=d)}return o}return t(r,a)}(e)}function Bd(e,t){return Array.isArray(e)?e.map(e=>Wd(e)?t(e):e):Uc(e)?$d(e,e=>t(e)):Wd(e)?t(e):e}const Hd=["value","type","description"],Vd=(...e)=>{const t=Nd({},...e.map(Fd));return t.theme?.tokens&&$d(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!Hd.includes(e)).length>0,r=Hd.some(t=>null!=e[t]);return t&&r&&(e.DEFAULT||(e.DEFAULT={}),Hd.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=>Hd.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function Ud(){const e=e=>e;return new Proxy(e,{get:()=>e})}const qd=Ud(),Yd=Ud(),Gd=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Qd=/[A-Z]/g;function Kd(e,t={}){const{fallback:r="",prefix:n=""}=t,i=function(e){return e.replace(Qd,e=>`-${e.toLowerCase()}`)}(["-",n,(a=e,`${a}`.replace(Gd,e=>`\\${e}`))].filter(Boolean).join("-"));var a;return{var:i,ref:`var(${i}${r?`, ${r}`:""})`}}const Xd=(e,t)=>null!=t?`${e}(${t})`:t,Jd=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},Zd=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]??{}}}),ep=Md("borderColor"),tp=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),rp=Kd("bg-currentcolor"),np=e=>e===rp.ref||"currentBg"===e,ip=e=>({...e("colors"),currentBg:rp}),ap={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:ip,shorthand:["bg"],transform(e,t){if(np(t.raw))return{background:rp.ref};const r=Md("background")(e,t);return{...r,[rp.var]:r?.background}}},backgroundColor:{values:ip,shorthand:["bgColor"],transform(e,t){if(np(t.raw))return{backgroundColor:rp.ref};const r=Md("backgroundColor")(e,t);return{...r,[rp.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:ip,transform:Md("--gradient-from")},gradientTo:{values:ip,transform:Md("--gradient-to")},gradientVia:{values:ip,transform:(e,t)=>({...Md("--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:ip,transform:Md("borderColor")},borderTopColor:{values:ip,transform:Md("borderTopColor")},borderBlockStartColor:{values:ip,transform:Md("borderBlockStartColor")},borderBottomColor:{values:ip,transform:Md("borderBottomColor")},borderBlockEndColor:{values:ip,transform:Md("borderBlockEndColor")},borderLeftColor:{values:ip,transform:Md("borderLeftColor")},borderInlineStartColor:{values:ip,shorthand:["borderStartColor"],transform:Md("borderInlineStartColor")},borderRightColor:{values:ip,transform:Md("borderRightColor")},borderInlineEndColor:{values:ip,shorthand:["borderEndColor"],transform:Md("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:ip,transform:Md("color")},fill:{values:ip,transform:Md("fill")},stroke:{values:ip,transform:Md("stroke")},accentColor:{values:ip,transform:Md("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:ip,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":ep(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ip,transform:Md("--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":Xd("blur",e)})},brightness:{transform:e=>({"--brightness":Xd("brightness",e)})},contrast:{transform:e=>({"--contrast":Xd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Xd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Xd("hue-rotate",Jd(e))})},invert:{transform:e=>({"--invert":Xd("invert",e)})},saturate:{transform:e=>({"--saturate":Xd("saturate",e)})},sepia:{transform:e=>({"--sepia":Xd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Xd("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":Xd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Xd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Xd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Xd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Xd("hue-rotate",Jd(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Xd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Xd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Xd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Xd("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:ip,transform:Md("outlineColor")},focusRing:Zd("&:is(:focus, [data-focus])"),focusVisibleRing:Zd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ip,transform:Md("--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:ip,transform:Md("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:ip,transform:Md("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ip,transform:Md("--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:ip,transform:Md("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":Jd(e)})},skewY:{transform:e=>({"--skew-y":Jd(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:Jd(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Jd(e)})},rotateY:{transform:e=>({"--rotate-y":Jd(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 tp("all");case"position":return tp("left, right, top, bottom, inset-inline, inset-block");case"colors":return tp("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return tp("opacity");case"shadow":return tp("box-shadow");case"transform":return tp("transform");case"size":return tp("width, height");case"backgrounds":return tp("background, background-color, background-image, background-position");case"common":return tp("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=>op[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:ip,transform:Md("caretColor")},cursor:{values:"cursor"}}},op={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 sp="".split(","),lp="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(sp),cp=new Map(lp.map(e=>[e,!0]));function up(e){const t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}var dp,pp,hp=/&|@/,fp=up(e=>cp.has(e)||e.startsWith("--")||hp.test(e));function gp(e,t){const r={};return $d(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}function mp(){if(pp)return dp;pp=1,dp=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 h=p[d];s(r[h],h,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 h;if(d+=1,"object"==typeof n&&null!==n){for(h=0;h<s.length;h++)if(s[h]===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(h=0;h<n.length;h++)u(n[h],h,h,s,n,d,p);else{var f={},g=Object.keys(n).sort(l);for(h=0;h<g.length;h++){var m=g[h];u(n[m],m,h,s,n,d,p),f[m]=n[m]}if(void 0===c)return f;r.push([c,i,n]),c[i]=f}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 dp}const vp=ns(mp()),bp=e=>{const t=Object.create(null);return function(...r){const n=r.map(e=>vp(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}},yp="px",xp="em",_p="rem";function kp(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${yp}|${xp}|${_p}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n?.[1]}function wp(e=""){if("number"==typeof e)return`${e}px`;const t=kp(e);return t?t===yp?e:t===xp||t===_p?`${16*parseFloat(e)}${yp}`:void 0:e}function Sp(e=""){const t=kp(e);return t?t===_p?e:t===xp?`${parseFloat(e)}${_p}`:t===yp?`${parseFloat(e)/16}${_p}`:void 0:e}function Cp(e){return Sp(parseFloat(wp(e)??"")-.04+"px")}function Pp({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Ep=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")}),zp=Ep("width"),Tp=Ep("height"),jp=e=>({isMin:Bp(e.minMax,e.maxMin,e.min),isMax:Bp(e.maxMin,e.minMax,e.max)}),{isMin:Rp,isMax:Op}=jp(zp),{isMin:Ip,isMax:Ap}=jp(Tp),Dp=/print/i,Mp=/^print$/i,Fp=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Lp=/(\d)/,Np=Number.MAX_VALUE,Wp={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function $p(e){const t=Fp.exec(e)||(Rp(e)||Ip(e)?Lp.exec(e):null);if(!t)return Np;if("0"===t[0])return 0;const r=parseFloat(t[1]),n=t[2];return r*(Wp[n]||1)}function Bp(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}const Hp=bp((e,t)=>{const r=function(e,t){const r=Dp.test(e),n=Mp.test(e),i=Dp.test(t),a=Mp.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=Rp(e)||Ip(e),i=Op(e)||Ap(e),a=Rp(t)||Ip(t),o=Op(t)||Ap(t);if(n&&o)return-1;if(i&&a)return 1;const s=$p(e),l=$p(t);return s===Np&&l===Np?e.localeCompare(t):s===Np?1:l===Np?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function Vp(e){return e.sort(([e],[t])=>Hp(e,t))}function Up(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]):Uc(s)?n[o]=Up(s):n[o]=s;const i=Vp(t),a=Vp(r);return{...n,...Object.fromEntries(i),...Object.fromEntries(a)}}const qp=/\s*!(important)?/i;function Yp(e){const{transform:t,conditions:r,normalize:n}=e,i=(a=e,bp(function(...e){return Nd({},...function(e){const t=function(...e){return e.filter(e=>Uc(e)&&Object.keys(Hc(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>a.normalize(e))}(e))}));var a;return bp(function(...e){const a=i(...e),o=n(a),s=Object.create(null);return $d(o,(e,n)=>{const i=!!qc(a=e)&&qp.test(a);var a;if(null==e)return;const[o,...l]=r.sort(n).map(r.resolve);i&&(e=(e=>qc(e)?e.replace(qp,"").trim():e)(e));let c=t(o,e)??Object.create(null);c=$d(c,e=>qc(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]);Nd(n,r)}(s,l.flat(),c)}),Up(s)})}const Gp=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const Qp={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Kp={reset:0,base:1,tokens:2,recipes:3};const Xp=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Jp=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Zp=e=>(e+"").replace(Xp,Jp),eh=(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=th(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)??Zp(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=eh(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},th=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 rh(e){const t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}const nh=/({([^}]*)})/g,ih=/[{}]/g,ah=/\w+\.\w+/,oh=e=>{if(!qc(e))return[];const t=e.match(nh);return t?t.map(e=>e.replace(ih,"")).map(e=>e.trim()):[]};function sh(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=sh(n);return e.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function lh(e){return Uc(e)&&e.reference?e.reference:String(e)}const ch=(e,...t)=>t.map(lh).join(` ${e} `).replace(/calc/g,""),uh=(...e)=>`calc(${ch("+",...e)})`,dh=(...e)=>`calc(${ch("-",...e)})`,ph=(...e)=>`calc(${ch("*",...e)})`,hh=(...e)=>`calc(${ch("/",...e)})`,fh=e=>{const t=lh(e);return null==t||Number.isNaN(parseFloat(t))?ph(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},gh=Object.assign(e=>({add:(...t)=>gh(uh(e,...t)),subtract:(...t)=>gh(dh(e,...t)),multiply:(...t)=>gh(ph(e,...t)),divide:(...t)=>gh(hh(e,...t)),negate:()=>gh(fh(e)),toString:()=>e.toString()}),{add:uh,subtract:dh,multiply:ph,divide:hh,negate:fh}),mh={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(qc(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=gh.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)})}},vh=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),bh={enforce:"post",transform(e){e.allTokens.filter(e=>vh.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:wp(e.value)})})}},yh=[mh,{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")})}},bh,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],xh=[{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=oh(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}}}}],_h=e=>Uc(e)&&Object.prototype.hasOwnProperty.call(e,"value");function kh(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,h=new Map,f=new Map,g=[];function m(e,t){o.push(e),s.set(e.name,e),t&&f.forEach(r=>{r.enforce===t&&C(r,e)})}const v=function(e){return e?{breakpoints:Bd(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=Hc({...r,breakpoints:v.breakpoints,sizes:{...r.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const _=bp((e,t)=>d.get(e)??t),k=bp(e=>x[e]||null),w=bp(e=>eh(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=_(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 _(e)||(ah.test(e)?Zp(e):e)})),S={prefix:t,allTokens:o,tokenMap:s,registerToken:m,getByName:y,formatTokenName:a,formatCssVar:(e,t)=>Kd(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:h,colorPaletteMap:u,getVar:_,getCategoryValues:k,expandReferenceInValue:w};function C(e,t){if(t.extensions.references)return;if(Yc(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 E(e){f.forEach(t=>{t.enforce===e&&o.forEach(e=>{C(t,e)})})}return $d(b,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=wh(t))[0],i=a(t),o=qc(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:_h}),$d(n,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=Sh(wh(t)))[0],i=a(t),o=qc(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:_h}),function(...e){e.forEach(e=>{f.set(e.name,e)})}(...xh),function(...e){g.push(...e)}(...yh),P("pre"),E("pre"),o.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return $d(t,(t,n)=>{const i=Sh(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,!nh.test(t))return;var t;const r=function(e){return oh(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),o.forEach(e=>{sh(e)}),P("post"),E("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&&(h.has(t)||h.set(t,new Map),h.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=rh(p),S}function wh(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function Sh(e){return e.filter(e=>"base"!==e)}var Ch;Ch=["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(Ch));const Ph={};function Eh(...e){const t=Vd(...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??Qp,r=Object.values(t).sort((e,t)=>Kp[e]-Kp[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=kh({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=Cp(i)),[e,{name:e,min:Sp(t),max:i}]})}(e),r=Object.fromEntries(t);function n(e){return r[e]}function i(e){return Pp(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`,Pp({max:Cp(t.min)})];return[[e,Pp({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)}`,Pp({min:r.min,max:Cp(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 Pp({min:n(e).min})},down:function(e){return Pp({max:Cp(n(e).min)})}}}(r.breakpoints??Ph),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??Ph,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 qc(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):Yc(r)?r(t?i:n.getCategoryValues):r},d=bp((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),p=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),h=bp((e,r)=>{const i=g(e);qc(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=rh(n.colorPaletteMap);o("colorPalette",{values:Object.keys(e),transform:bp(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 f=i.size>0,g=bp(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:f,transform:h,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=Hc({textStyle:e,layerStyle:t,animationStyle:n});for(const[r,a]of Object.entries(i)){const e=gp(a??Ph,zh);p.register(r,{values:Object.keys(e),transform:t=>b(e[t])})}}(),p.addPropertyType("animationName",Object.keys(r.keyframes??Ph));const h=new Set(["css",...p.keys(),...d.keys()]),f=bp(e=>h.has(e)||fp(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 $d(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 $d(e,e=>e,{getKey:(e,n)=>Uc(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:f}),b=Yp({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}=Gp(o),d=Yp({conditions:r,normalize:n,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const r=n({...c,...Hc(e)});let a={...s};Nd(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))},h=Object.keys(l),f=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:f,variantKeys:h,raw:p,config:o,splitVariantProps:e=>{const t=Dd(e,["recipe"]),[r,n]=Zc(t,h);return h.includes("colorPalette")||(r.colorPalette=e.colorPalette||c.colorPalette),h.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return a(function(e){const{css:t}=e;return function(e,r){const n=Gp(r.config),i=Gc(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=Nd(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:Vc(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=Dd(t,["recipe"]),[n,a]=Zc(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 _(){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("@");Nd(e,b(v({[i]:o?{[a]:n}:n})))}return l.wrap("tokens",e)}function k(){const e=Object.fromEntries(Object.entries(r.keyframes??Ph).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"}=Uc(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??Ph,e)}function E(e){return Object.hasOwnProperty.call(r.slotRecipes??Ph,e)}C.var=(e,t)=>S.get(e)?.variable||t;const z=[w(),k(),_()],T={layerStyles:Th(r.layerStyles??Ph),textStyles:Th(r.textStyles??Ph),animationStyles:Th(r.animationStyles??Ph),tokens:jh(c,Object.keys(r.tokens??Ph),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:jh(c,Object.keys(r.semanticTokens??Ph),e=>!!e.extensions.conditions),keyframes:Rh(r.keyframes??Ph),breakpoints:Rh(r.breakpoints??Ph)};return{$$chakra:!0,_config:t,_global:z,breakpoints:u,tokens:c,conditions:d,utility:p,token:C,properties:h,layers:l,isValidProperty:f,splitCssProps:function(e){return Zc(e,f)},normalizeValue:g,getTokenCss:_,getGlobalCss:k,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)||E(e)},isRecipe:P,isSlotRecipe:E,query:T}}const zh=e=>Uc(e)&&"value"in e,Th=e=>({list:()=>Object.keys(gp(e,zh)),search(e){return this.list().filter(t=>t.includes(e))}}),jh=(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))}}),Rh=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),Oh="var(--chakra-empty,/*!*/ /*!*/)",Ih={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Oh,"--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}`,Oh])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Oh])),"--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"}},Ah={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"}},Dh={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"}}}},defaultVariants:{variant:"solid",size:"md"}},{variants:Mh,defaultVariants:Fh}=Ah,Lh={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"}},Nh={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"}},Wh={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"}}},defaultVariants:{variant:"solid",size:"md"}},$h={badge:Ah,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:Mh,defaultVariants:Fh},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:Nh,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Nh.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:Dh,radiomark:Wh,colorSwatch:Lh},Bh=Yd.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}"}}}}),Hh=Yd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Vh=Yd.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}"}}}),Uh=Uu.extendWith("itemBody"),qh=Wu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Yh=Wu("alert").parts("title","description","root","indicator","content"),Gh=Wu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Qh=Wu("blockquote").parts("root","icon","content","caption"),Kh=Wu("card").parts("root","header","body","footer","title","description"),Xh=Wu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Jh=Wu("data-list").parts("root","item","itemLabel","itemValue"),Zh=ed.extendWith("header","body","footer","backdrop"),ef=ed.extendWith("header","body","footer","backdrop"),tf=td.extendWith("textarea"),rf=Wu("empty-state",["root","content","indicator","title","description"]),nf=rd.extendWith("requiredIndicator"),af=ad.extendWith("content"),of=od.extendWith("itemContent","dropzoneContent","fileText"),sf=Wu("list").parts("root","item","indicator"),lf=_d.extendWith("itemCommand"),cf=Wu("select").parts("root","field","indicator"),uf=Sd.extendWith("header","body","footer"),df=Ed.extendWith("itemAddon","itemIndicator"),pf=df.extendWith("itemContent","itemDescription"),hf=zd.extendWith("itemIndicator"),ff=Rd.extendWith("indicatorGroup"),gf=Zu.extendWith("indicatorGroup","empty"),mf=Od.extendWith("markerIndicator"),vf=Wu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),bf=Wu("status").parts("root","indicator"),yf=Wu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),xf=Id.extendWith("indicator"),_f=Wu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),kf=Wu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),wf=Wu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Sf=Wu("tag").parts("root","label","closeTrigger","startElement","endElement"),Cf=Wu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Pf=Ju.extendWith("channelText"),Ef=Wu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Xu.extendWith("valueText");const zf={className:"chakra-accordion",slots:Uh.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"}},Tf={className:"chakra-action-bar",slots:qh.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"}}},jf={slots:Yh.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}},Rf={slots:qu.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"}},Of={className:"chakra-blockquote",slots:Qh.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"}},If={className:"chakra-breadcrumb",slots:Gh.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"}},Af={className:"chakra-card",slots:Kh.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"}},Df={slots:Gu.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Dh.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Dh.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Dh.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Dh.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Dh.variants?.size?.lg}},variant:{outline:{control:Dh.variants?.variant?.outline},solid:{control:Dh.variants?.variant?.solid},subtle:{control:Dh.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},Mf={slots:Xh.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:Dh.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:Dh.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dh.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dh.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:Dh.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Dh.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:Dh.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Dh.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"}},Ff={slots:Ef.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",overflow:"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",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"}},Lf={slots:Hu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},Nf={className:"colorPicker",slots:Pf.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:{...Lh.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:{...Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:Nh.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},Wf={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"}},$f={slots:Jh.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"}},Bf={slots:Zh.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"}},Hf={slots:ef.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"}},Vf={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Uf={slots:tf.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Vf,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Vf,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"}},qf={slots:rf.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"}},Yf={className:"chakra-field",slots:nf.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"}},Gf={className:"fieldset",slots:af.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"}},Qf={className:"chakra-file-upload",slots:of.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:{}},Kf={className:"chakra-hover-card",slots:yd.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"}},Xf={className:"chakra-list",slots:sf.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"}},Jf={className:"chakra-menu",slots:lf.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"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Zf={className:"chakra-select",slots:ff.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"}},eg={className:"chakra-native-select",slots:cf.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:Zf.variants?.variant.outline.trigger},subtle:{field:Zf.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:Zf.defaultVariants};function tg(e,t){const r={};for(const n in e){const i=t(n,e[n]);r[i[0]]=i[1]}return r}const rg={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"}},ng={className:"chakra-number-input",slots:kd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Nh.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:{...rg,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...rg,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Nh.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Nh.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Nh.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Nh.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:tg(Nh.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:ig,defaultVariants:ag}=Nh,og={className:"chakra-pin-input",slots:wd.keys(),base:{input:{...Nh.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:tg(ig.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:tg(ig.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ag},sg={className:"chakra-popover",slots:uf.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"}},lg={slots:Cd.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"}},cg={className:"chakra-progress-circle",slots:Cd.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"}},ug={slots:Pd.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"}},dg={className:"chakra-radio-card",slots:pf.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:Wh.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:Wh.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Wh.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Wh.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Wh.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Wh.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Wh.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Wh.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"}},pg={className:"chakra-radio-group",slots:df.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Wh.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Wh.variants?.variant?.outline},subtle:{itemControl:Wh.variants?.variant?.subtle},solid:{itemControl:Wh.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Wh.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Wh.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Wh.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Wh.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},hg={className:"chakra-rating-group",slots:hf.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"}},fg={className:"chakra-scroll-area",slots:Td.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"}},gg={className:"chakra-segment-group",slots:jd.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"}},mg={className:"chakra-slider",slots:mf.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"}},vg={className:"chakra-stat",slots:vf.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"}},bg={className:"chakra-status",slots:bf.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"}},yg={className:"chakra-steps",slots:yf.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"}},xg={slots:xf.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"}},_g={className:"chakra-table",slots:_f.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"}},kg={slots:wf.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"}},wg=Ah.variants?.variant,Sg={slots:Sf.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:wg?.subtle},solid:{root:wg?.solid},outline:{root:wg?.outline},surface:{root:wg?.surface}}},defaultVariants:{size:"md",variant:"surface"}},Cg={slots:Cf.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"}},Pg={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"}},Eg={flex:"1"},zg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},Tg={_selected:{layerStyle:"fill.solid"}},jg={accordion:zf,actionBar:Tf,alert:jf,avatar:Rf,blockquote:Of,breadcrumb:If,card:Af,checkbox:Df,checkboxCard:Mf,codeBlock:Ff,collapsible:Lf,dataList:$f,dialog:Bf,drawer:Hf,editable:Uf,emptyState:qf,field:Yf,fieldset:Gf,fileUpload:Qf,hoverCard:Kf,list:Xf,menu:Jf,nativeSelect:eg,numberInput:ng,pinInput:og,popover:sg,progress:lg,progressCircle:cg,radioCard:dg,radioGroup:pg,ratingGroup:hg,scrollArea:fg,segmentGroup:gg,select:Zf,combobox:Wf,slider:mg,stat:vg,steps:yg,switch:xg,table:_g,tabs:kg,tag:Sg,toast:{slots:kf.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:Ad.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:bg,timeline:Cg,colorPicker:Nf,qrCode:ug,treeView:{slots:xd.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:Pg,item:Pg,itemText:Eg,branchText:Eg,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:zg,item:zg},solid:{branchControl:Tg,item:Tg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},Rg=qd.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"}}),Og=qd.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"}}),Ig=qd.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Ag=qd.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Dg=qd.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"}}}),Mg=qd.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"}}),Fg=qd.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Lg=qd.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)"}}),Ng=qd.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"}}),Wg=qd.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"',Bg=qd.fonts({heading:{value:`Inter, ${$g}`},body:{value:`Inter, ${$g}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Hg=qd.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Vg=qd.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Ug=qd.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"}}),qg=qd.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"}}),Yg=qd.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"}}),Gg=qd.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"}}),Qg=qd.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%"}}),Kg=qd.sizes({...Yg,...qg,...Qg,...Gg}),Xg=qd.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}}),Jg=Vd(ap,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Ih,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:Og,animations:Rg,blurs:Ig,borders:Ag,colors:Dg,durations:Fg,easings:Lg,fonts:Bg,fontSizes:Ng,fontWeights:Wg,letterSpacings:Hg,lineHeights:Vg,radii:Ug,spacing:qg,sizes:Kg,zIndex:Xg,cursor:Mg},semanticTokens:{colors:Bh,shadows:Vh,radii:Hh},recipes:$h,slotRecipes:jg,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 Zg(e,t){const r=Xc();return bs.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>r.token(`${e}.${t}`,t)),[r,e,t])}Eh(Jg);const em=uu("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"}});em.displayName="AbsoluteCenter";const{withContext:tm}=gu({key:"badge"}),rm=tm("span"),{withContext:nm}=gu({key:"spinner"}),im=nm("span"),am=bs.forwardRef(function(e,t){const{spinner:r=hs.jsx(im,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:i,text:a,visible:o=!0,...s}=e;return o?a?hs.jsxs(Mu,{ref:t,display:"contents",...s,children:["start"===n&&r,a,"end"===n&&r]}):r?hs.jsxs(Mu,{ref:t,display:"contents",...s,children:[hs.jsx(em,{display:"inline-flex",children:r}),hs.jsx(Mu,{visibility:"hidden",display:"contents",children:i})]}):hs.jsx(Mu,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:om,usePropsContext:sm}=gu({key:"button"}),lm=bs.forwardRef(function(e,t){const r=sm(),n=bs.useMemo(()=>Bc(r,e),[r,e]),i=om(n),{loading:a,loadingText:o,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return hs.jsx(uu.button,{type:"button",ref:t,...u,"data-loading":(d=a,d?"":void 0),disabled:a||u.disabled,className:Vc(i.className,n.className),css:[i.styles,n.css],children:!n.asChild&&a?hs.jsx(am,{spinner:l,text:o,spinnerPlacement:c,children:s}):s});var d}),cm=bs.forwardRef(function(e,t){return hs.jsx(lm,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),um=bs.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=bs.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{"&":Bd(r,e=>n[e])}}({gap:a,direction:r}),[a,r]),p=bs.useMemo(()=>bs.isValidElement(l)?function(e){return bs.Children.toArray(e).filter(e=>bs.isValidElement(e))}(s).map((e,t,r)=>{const n=void 0!==e.key?e.key:t,i=l,a=bs.cloneElement(i,{css:[d,i.props.css]});return hs.jsxs(bs.Fragment,{children:[e,t===r.length-1?null:a]},n)}):s,[s,l,d]);return hs.jsx(uu.div,{ref:t,display:"flex",alignItems:n,justifyContent:i,flexDirection:r,flexWrap:o,gap:l?void 0:a,className:Vc("chakra-stack",c),...u,children:p})}),{useRecipeResult:dm}=gu({key:"icon"}),pm=bs.forwardRef(function(e,t){const{styles:r,className:n,props:i}=dm({asChild:!e.as,...e});return hs.jsx(uu.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[r,e.css],className:Vc(n,e.className)})});function hm(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=bs.Children.toArray(e.path),o=bs.forwardRef((e,n)=>hs.jsx(pm,{ref:n,asChild:!1,viewBox:t,...i,...e,children:a.length?a:hs.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}const fm=bs.forwardRef(function(e,t){const{direction:r,align:n,justify:i,wrap:a,basis:o,grow:s,shrink:l,inline:c,...u}=e;return hs.jsx(uu.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}})}),gm=bs.forwardRef(function(e,t){const{align:r,fit:n="cover",...i}=e;return hs.jsx(uu.img,{ref:t,objectFit:n,objectPosition:r,className:Vc("chakra-image",e.className),...i})}),{withContext:mm}=gu({key:"link"}),vm=mm("a"),bm=bs.forwardRef(function(e,t){const{columns:r,minChildWidth:n,...i}=e,a=Xc(),o=n?function(e,t){return Bd(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):Bd(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return hs.jsx(mu,{ref:t,templateColumns:o,...i})}),ym=bs.forwardRef(function(e,t){return hs.jsx(um,{align:"center",...e,direction:"row",ref:t})}),xm=bs.forwardRef(function(e,t){return hs.jsx(um,{align:"center",...e,direction:"column",ref:t})}),{withContext:_m}=gu({key:"textarea"}),km=_m(id),wm=()=>{const[e,t]=bs.useState(!1),r=bs.useCallback(()=>{const e=window.innerWidth;t(e<=768)},[]);return bs.useEffect(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),{isMobile:e}},Sm={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`,messageFeedback:`${r}/feedback/message`,generateWelcomeMessage:`${r}/generate-welcome-message`,generateFollowupNudge:`${r}/generate-followup-nudge`,generateNudgeChips:`${r}/generate-nudge-chips`,storeQuizzes:`${r}/store-quizzes`},Cm=ts("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(Sm.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] Subscription expired:",{status:402,assistant_id:c,thread_id:r}),void i("Hello 😊 The smart assistant for this business is currently inactive because the subscription has expired. If you have any questions, please contact the business directly. We hope to be back in service soon!");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 h;try{h=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 f=h.thread_id;if(!f)throw new Error("No thread_id received from run assistant");const g=`${Sm.streamV2}/${f}`;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:f})},t.onerror=()=>{console.log("[Dori Widget] SSE stream error, EventSource will auto-reconnect",{thread_id:f,readyState:t.readyState})},t.onmessage=e=>{es("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:f})}),t.addEventListener("end",()=>{console.log("[Dori Widget] SSE stream ended",{thread_id:f}),o&&o.signal.removeEventListener("abort",r),t.close(),a(),e()})})}),Pm=ts("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(Sm.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})}),Em=ts("trackProductViewsBatch",async(e,t,r,n,i,a,o)=>{if(0===e.length)return;const s={customer_email:a||null,customer_id:o||null,external_product_ids:e,thread_id:t,platform:n,session_key:r,sharing_id:i};await fetch(Sm.trackProductView,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)})});async function zm(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(Sm.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}}}function Tm(){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 jm(){if("undefined"==typeof document)return"";const e=document.querySelector("h1");return e?.textContent?.trim()||document.title||""}function Rm(){return{page_link:"undefined"!=typeof window?window.location.href:"",page_type:Tm(),h1:jm()}}function Om(){const e=Rm(),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 Im=0;function Am(e){return"shopify"===String(e?.platform||"").toLowerCase()}function Dm(){if("undefined"==typeof window)return"/";const e=window.Shopify?.routes?.root||"/";return e.endsWith("/")?e:`${e}/`}function Mm(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}_${Math.random().toString(36).slice(2,10)}`}function Fm(){if("undefined"==typeof window)return`anon_${Mm()}`;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=Mm();return window.localStorage.setItem(n.SHOPIFY_END_USER_SESSION,t),t}catch{return Mm()}}();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_${Mm()}`;return window.localStorage.setItem(n.SHOPIFY_END_USER_ID,t),t}catch{return`anon_${Mm()}`}}async function Lm(e){const t=Date.now();if(t-Im<800)return null;Im=t;const r=await async function(){try{const e=Dm(),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(Sm.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 Nm(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 Wm(e){if(null!=e)return String(e).trim()||void 0}function $m(e){const t=Wm(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 Bm(e){const t=Wm(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}}function Hm(e){return(Array.isArray(e.options)?e.options:[]).map((e,t)=>"string"==typeof e?{name:e,values:[]}:{name:Wm(e?.name)||`Option ${t+1}`,values:Array.isArray(e?.values)?e.values.map(e=>Wm(e)).filter(e=>Boolean(e)):[]}).filter(e=>Boolean(e.name))}function Vm(e,t){return 1===t?Wm(e.option1):2===t?Wm(e.option2):3===t?Wm(e.option3):void 0}function Um(e,t){return Hm(e).map((e,r)=>{const n=r+1,i=Array.from(new Set(t.map(e=>Vm(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)}async function qm(e,t,r){const n=Dm(),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=Wm(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||422===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:Wm(s?.title),quantity:t}}async function Ym(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=$m(e.variant_id);if(n)return{...await qm(n,r,t),product_title:Wm(e.product_name)};const i=Wm(e.product_handle)||Bm(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:Wm(e.product_name)};let a=null;try{a=await async function(e){const t=Dm(),r=await fetch(`${t}products/${encodeURIComponent(e)}.js`,{method:"GET",credentials:"include",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}(i)}catch{return{type:"failed",reason:"network",message:"I couldn't load product details right now. Please try again.",product_title:Wm(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:Wm(e.product_name)};const o=function(e,t){const r=$m(t.variant_id);if(r){const t=e.variants.find(e=>$m(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=function(e,t){if(!t||0===Object.keys(t).length)return[];const r=Object.entries(t).map(([e,t])=>{const r=Wm(e)?.toLowerCase(),n=Wm(t)?.toLowerCase();return r&&n?{key:r,value:n}:null}).filter(e=>Boolean(e));if(0===r.length)return[];const n=Hm(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=Vm(e,i)?.toLowerCase();return a===r}))}(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:Um(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=Um(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:Um(e,i)}}(a,e);if("type"in o)return o;const s=$m(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 qm(s,r,t);return"success"!==l.type?{...l,product_title:a.title}:{...l,product_title:a.title,variant_title:l.variant_title||Wm(o.title)}}function Gm(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 Qm(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 Km(){try{const e=Dm(),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 Xm(e,t){const r=Dm();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 Jm(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 Zm(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 ev={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"},tv=(e,t)=>{if(e&&e in ev){const r=ev[e];if(r)return t[r]}return t.typing},rv={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"},nv={English:rv,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:rv,Bulgarian:rv,Burmese:rv,Croatian:rv,Estonian:rv,Filipino:rv,Gujarati:rv,Hausa:rv,Hungarian:rv,Igbo:rv,Kannada:rv,Khmer:rv,Lao:rv,Latvian:rv,Lithuanian:rv,Malayalam:rv,Marathi:rv,Mongolian:rv,Nepali:rv,Pashto:rv,Persian:rv,Punjabi:rv,Sinhala:rv,Somali:rv,Iraqi:rv,Swahili:rv,Urdu:rv,Yoruba:rv,Zulu:rv},iv=e=>{const t=nv[e]||nv.English;return{...rv,...t}};function av(){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 ov={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"},sv="dori-quiz-completed",lv=bs.createContext(void 0);function cv({children:e}){const[r,n]=bs.useState(null),[y,x]=bs.useState(!1),[_,k]=bs.useState(null),[w,S]=bs.useState(()=>av());bs.useEffect(()=>function(){if("undefined"==typeof window||"undefined"==typeof MutationObserver)return()=>{};const e=new MutationObserver(()=>{var e;e=av(),S(t=>t===e?t:e)});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>e.disconnect()}(),[]);const C=bs.useRef(null);bs.useEffect(()=>{const e=C.current;C.current=w,null!==e&&e!==w&&fe(e=>e+1)},[w]);const P=bs.useMemo(()=>{return((e=w)?ov[e.toLowerCase()]??null:null)??r?.language??"English";var e},[w,r?.language]),E=bs.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=[P,w,w?w.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,P,w]),[z,T]=bs.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[j,R]=bs.useState([]),[O,I]=bs.useState("welcome"),[A,D]=bs.useState(!1),[M,F]=bs.useState("starting"),L=bs.useRef(null),[N,W]=bs.useState(!0),$=bs.useRef(null),B=bs.useCallback(()=>{N&&p(L.current)},[N]);bs.useEffect(()=>{B()},[j,B]),function({botData:e,chatState:r,messages:n,currentStep:p,setBotData:h,setChatState:f,setMessages:g,setCurrentStep:m}){const[v,b]=bs.useState(!1);bs.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)]))}h({...t,suggestedReply:r(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}})}else h(e.botData);const t=u(),r={...e.chatState,threadId:t||e.chatState.threadId};f(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&&(f({repliedProduct:null,threadId:e,isRequestInProgress:!1}),d()),b(!0)}})()},[h,f,g,m]),bs.useEffect(()=>{v&&e&&(i(),a(e))},[e,v]),bs.useEffect(()=>{v&&o(r)},[r,v]),bs.useEffect(()=>{v&&s(n)},[n,v]),bs.useEffect(()=>{v&&l(p)},[p,v])}({botData:r,chatState:z,messages:j,currentStep:O,setBotData:n,setChatState:T,setMessages:R,setCurrentStep:I});const[H,V]=bs.useState(null),[U,q]=bs.useState(null),Y=bs.useRef(!1),[G,Q]=bs.useState(null),[K,X]=bs.useState(null),[J,Z]=bs.useState(null),[ee,te]=bs.useState(()=>{try{return"true"===sessionStorage.getItem("dori-proactive-v2-suppressed")}catch{return!1}}),re=bs.useCallback((e,t)=>{Q(e),X(t)},[]),ne=bs.useCallback(()=>{Q(null),X(null)},[]),ie=bs.useRef(null),ae=bs.useRef(null);bs.useEffect(()=>{K&&(ie.current=K,ae.current=Date.now())},[K]);const oe=bs.useCallback(()=>{te(!0);try{sessionStorage.setItem("dori-proactive-v2-suppressed","true")}catch{}},[]),[se,le]=bs.useState(null),[ce,ue]=bs.useState(()=>{try{return"true"===sessionStorage.getItem(sv)}catch{return!1}}),de=bs.useRef(!1),pe=bs.useCallback(()=>{ue(!0);try{sessionStorage.setItem(sv,"true")}catch{}},[]),[he,fe]=bs.useState(0),ge=bs.useRef(!1),me=bs.useRef(r);bs.useEffect(()=>{me.current=r},[r]);const ve=bs.useRef(O);bs.useEffect(()=>{ve.current=O},[O]),bs.useEffect(()=>{if(!r)return;if(!1===r.customization?.enable_proactive_engagement)return;if(!r.business_description)return;if(0===he){if(Y.current)return;Y.current=!0}else if("welcome"!==O&&"initial-greeting"!==O)return;const e=new AbortController,t=P||r.language||"en",n=Rm();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(Sm.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&&V(t)}),()=>{e.abort()}},[r,he]),bs.useEffect(()=>{if(!r)return;if(!0!==r.customization?.enable_standalone_quiz)return;if(ce)return;if(!r.sharing_id)return;if(0===he){if(de.current)return;de.current=!0}else if("welcome"!==O&&"initial-greeting"!==O)return;const e=new AbortController,t=P||r.language||"English";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(`${Sm.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}}(r.sharing_id,t,e.signal).then(t=>{if(t&&t.length>0&&!e.signal.aborted){const e=Math.floor(Math.random()*t.length);le(t[e])}}),()=>{e.abort()}},[r,he,ce]),bs.useEffect(()=>{let e=window.location.href,t=null;const r=()=>{const r=window.location.href;if(r===e)return;e=r,ge.current=!1;const n=me.current;!1!==n?.customization?.enable_proactive_engagement&&n?.business_description&&"welcome"===ve.current&&(t&&clearTimeout(t),t=setTimeout(()=>{V(null),Z(null);try{ue("true"===sessionStorage.getItem(sv))}catch{}le(null),de.current=!1,fe(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 be=bs.useRef(new Set),ye=bs.useRef([]),xe=bs.useRef(null),[_e,ke]=bs.useState(0),[we,Se]=bs.useState(null),Ce=bs.useRef(null),Pe=bs.useRef(!1),Ee=bs.useCallback(()=>{Se(null),null!==Ce.current&&(window.clearTimeout(Ce.current),Ce.current=null)},[]),ze=bs.useCallback(async()=>{if(!we)return;const{variantId:e,previousQuantity:t}=we;Ee();try{const n=await Km();if(!n)return;const i=n.items||[],a=Gm(e)||e,o=i.findIndex(e=>String(e.variant_id)===a);if(-1!==o?await Xm(o+1,t):t>0&&await qm(a,t),r&&Am(r)){const e=await Lm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:Fm(),threadId:z.threadId});e&&T(t=>({...t,threadId:e}));const t=await Km();t&&ke(t.item_count)}}catch{}},[we,Ee,r,z.threadId]),Te=bs.useCallback(()=>{if($.current)return;const e=ye.current.shift();e&&xe.current&&window.setTimeout(()=>{xe.current?.({message:"",apiMessage:e,silent:!0})},0)},[]),je=bs.useCallback(async(e,t)=>{if(be.current.has(e.action_id))return;if(be.current.add(e.action_id),be.current.size>300){const e=Array.from(be.current).slice(-200);be.current.clear(),e.forEach(e=>be.current.add(e))}const n=t||z.threadId||void 0;let i;try{i=await Ym(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&&Am(r)){const e=Fm(),n=t||z.threadId||void 0,i=await Lm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:n,src:"undefined"!=typeof window?window.location.href:""});i&&T(e=>({...e,threadId:i}));const a=await Km();a&&ke(a.item_count)}"success"===i.type?(Pe.current=!0,ye.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?ye.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})}`):ye.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})}`),$.current||Te()},[r,z.threadId,Te]),Re=bs.useCallback(async(e,t)=>{if(be.current.has(e.action_id))return;if(be.current.add(e.action_id),be.current.size>300){const e=Array.from(be.current).slice(-200);be.current.clear(),e.forEach(e=>be.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=Dm();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 Km(),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:Qm(r,n),currency:n}}if("set_note"===e.operation){const t=e.note??"",r=await async function(e){const t=Dm();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 Km(),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:Qm(i,a),currency:a}}const t=await Km();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=Gm(t.variant_id);if(r){const n=[];for(let t=0;t<e.length;t++)Gm(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=Jm(n,t.selected_options);return 1===e.length?e[0]:Zm(e,"Multiple items match this variant. Which one do you mean?")}}const n=t.product_handle?.trim().toLowerCase()||Bm(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=Jm(r,t.selected_options);return 1===e.length?e[0]:Zm(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=Jm(n,t.selected_options);return 1===e.length?e[0]:Zm(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 Xm(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 Km(),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:Qm(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&&Am(r)){ke(n.item_count);const e=await Lm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:Fm(),threadId:t||z.threadId||void 0});e&&T(t=>({...t,threadId:e}))}"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(Pe.current=!0),"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(null!==Ce.current&&window.clearTimeout(Ce.current),Se({productName:n.product_name||e.payload.product_name||"",variantId:n.variant_id||String(e.payload.variant_id||""),previousQuantity:n.previousQuantity,operation:n.operation}),Ce.current=window.setTimeout(()=>{Se(null),Ce.current=null},8e3)),"success"===n.type?ye.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?ye.current.push(`DORI_INTERNAL_EVENT:cart_update_needs_selection:${JSON.stringify({action_id:e.action_id,candidates:n.candidates,message:n.message})}`):ye.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})}`),$.current||Te()},[r,z.threadId,Te]),Oe=bs.useCallback(e=>{T(t=>({...t,repliedProduct:e}))},[]),Ie=bs.useCallback(es("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),[]}}),[]),Ae=bs.useCallback(()=>{$.current&&($.current.abort(),$.current=null),Pe.current=!1,T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),I("ongoing"),R(e=>e.filter(e=>"loading"!==e.type))},[]),De=bs.useCallback(ts("initializeBot",async e=>{if(!e||""===e.trim())return k("Invalid sharing ID provided"),void console.error("Invalid sharing ID provided");let t;x(!0),k(null);try{t=await new Promise((e,t)=>{const r=b();if(r)return console.log("[Dori Widget] Bot data already in localStorage"),void e(r);const n=()=>{const r=b();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 k(e),console.error("[Dori Widget] Failed to load bot data:",o),void x(!1)}if(!t)return k("No bot data received"),console.error("[Dori Widget] No bot data received"),void x(!1);f();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,Ie(t)]))}const a={...t,sharing_id:e,suggestedReply:Ie(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}};n(a),x(!1),I("initial-greeting")}),[Ie]),Me=bs.useCallback(es("addWelcomeMessage",()=>{const e=iv(P),t={id:`${Date.now()}-welcome-${Math.random().toString(36).slice(2,8)}`,type:"welcome",timestamp:new Date,content:r?.wellcomeMessage||e.imHereToHelp};R(e=>[...e,t])}),[r?.wellcomeMessage,P]);bs.useEffect(()=>{if(!r||!Am(r))return;Km().then(e=>{null!=e?.item_count&&ke(e.item_count)}).catch(()=>{});const e=Fm();return function(){if("undefined"==typeof window)return()=>{};let t=null;const n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{(async()=>{const t=await Lm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:z.threadId,src:"undefined"!=typeof window?window.location.href:""});t&&T(e=>e.threadId===t?e:{...e,threadId:t});try{const e=await Km();e&&ke(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];Nm((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{Nm(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,z.threadId]);const Fe=bs.useCallback(ts("sendMessage",async({message:e,imageUrl:t,apiMessage:n,silent:i},a)=>{if(!r||A&&!i)return;let o=n||e;if(!o||!o.trim())return;if(W(!0),!i&&!ge.current){ge.current=!0;const e=Om();e&&!o.includes("[USER_PAGE_CONTEXT:")&&(o=e+o)}const s=iv(P);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};R(e=>[...e.filter(e=>"suggestions"!==e.type),r]);const n=ie.current,i=ae.current;n&&i&&Date.now()-i<=3e4&&(Jo("nudge.in_chat.user_typed_after",{nudge_position:n}),ie.current=null,ae.current=null),G&&(Q(null),X(null))}if($.current){if(i)return void ye.current.unshift(o);$.current.abort(),$.current=null}I("thinking"),D(!0),F("generating"),T(e=>({...e,isRequestInProgress:!0})),$.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||R(e=>[...e,l]),a&&(o=`this message is replied to product with id ${a.id}: ${e}`);let c,u="",d=null,p=[],h=null,b=[];const y=Am(r),x=y?Fm():void 0;let _=z.threadId;try{if(y&&!_&&x){const e=await Lm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:x,src:"undefined"!=typeof window?window.location.href:""});e&&(_=e,T(t=>({...t,threadId:e})))}await Cm(o,r,_,e=>{es("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!==z.threadId&&f(),g(e.thread_id),m(e.thread_id),T(t=>({...t,threadId:e.thread_id||null}))),"shopify_add_to_cart"===e.action?.type&&je(e.action,e.thread_id||_||z.threadId),"shopify_update_cart"===e.action?.type&&Re(e.action,e.thread_id||_||z.threadId),e.wait)console.log("[StreamChatResponse] wait received, creating new message session"),d&&u.trim()&&R(e=>e.map(e=>e.id===d?.id?{...e,content:v(u)}:e)),d=null,u="",p=[],c=void 0,h=null,R(t=>[...t.filter(e=>"loading"!==e.type),{id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:tv(e.tool_name,s),timestamp:new Date}]);else if(e.text){console.log("[StreamChatResponse] text chunk received:",e.text),u+=e.text;const t=v(u);if(d)console.log("[StreamChatResponse] Updating existing bot message with:",t),R(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=Pe.current;e&&(Pe.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}};R(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),f(),p=[...p,...e.products],e.shape&&(c=e.shape);const t=h||`${Date.now()}-products-${Math.random().toString(36).slice(2,8)}`;h=t,R(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&&(b=[...b,...e.suggestions])})()},e=>{if($.current?.signal.aborted)return $.current=null,T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),I("ongoing"),R(e=>e.filter(e=>"loading"!==e.type)),void Te();const t=e.includes("exceeded the request limit")||e.includes("rate limit")?s.rateLimitError:e;R(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}]),$.current=null,T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),I("ongoing"),Te()},()=>{b.length>0&&R(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:b};return-1!==r?t.splice(r+1,0,n):t.push(n),t}),$.current=null,T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),I("ongoing"),Te()},$.current,t,x)}catch(k){$.current?.signal.aborted||"AbortError"===k.name?($.current=null,T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),I("ongoing"),R(e=>e.filter(e=>"loading"!==e.type)),Te()):(console.error("Error in sendMessage:",k),R(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}]),I("ongoing"),T(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),D(!1),F("starting"),$.current=null,Te())}}),[r,A,z.threadId,je,Re,Te]);bs.useEffect(()=>{xe.current=Fe},[Fe]);const Le=bs.useCallback(()=>{$.current&&($.current.abort(),$.current=null),h(),R([]),I("welcome"),D(!1),F("starting"),T({repliedProduct:null,threadId:null,isRequestInProgress:!1}),be.current.clear(),ye.current=[],Pe.current=!1},[]),Ne=bs.useCallback(e=>{n(t=>t?{...t,...e}:null)},[]),We=bs.useMemo(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")},[]),$e=bs.useCallback(async(e,t,r)=>{if(!We)return;const n=z.threadId;if(!n)return;const i=document.querySelector("script#dori-side-widget"),a=i?.getAttribute("data-sharing-id")||"",o=j.filter(e=>"dori"===e.type)[e];if(!o)return;const s=o.feedback;R(e=>e.map(e=>e.id===o.id?{...e,feedback:{rating:t,feedbackText:r}}:e));try{const i=await fetch(Sm.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),R(e=>e.map(e=>e.id===o.id?{...e,feedback:s}:e))}},[z.threadId,We,j]),Be={botData:r,isLoadingBot:y,botError:_,chatState:z,messages:j,currentStep:O,isInputDisabled:A,inputState:M,cartItemCount:_e,cartUndoState:we,dismissCartUndo:Ee,handleCartUndo:ze,initializeBot:De,sendMessage:Fe,stopCurrentRequest:Ae,setCurrentStep:I,setInputState:F,messagesEndRef:L,addWelcomeMessage:Me,setRepliedProduct:Oe,resetBot:Le,updateBotData:Ne,setAutoScrollEnabled:W,dynamicWelcomeMessage:H,pendingBubbleSuggestion:U,setPendingBubbleSuggestion:q,proactiveChips:G,proactiveChipsPosition:K,setProactiveChips:re,dismissProactiveChips:ne,proactiveSuppressedThisSession:ee,suppressProactiveForSession:oe,dynamicFollowupNudgeMessage:J,setDynamicFollowupNudgeMessage:Z,diagnosticFlow:se,diagnosticShown:ce,markDiagnosticShown:pe,isTestMode:We,submitFeedback:$e,effectiveLanguage:P,effectiveSuggestedReplies:E};return hs.jsx(lv.Provider,{value:Be,children:e})}function uv(){const e=bs.useContext(lv);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}const dv=()=>{const{effectiveLanguage:e}=uv(),t=e||"English",r=iv(t);return{t:e=>r[e],language:t,translations:r}};function pv(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 hv(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 fv(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 gv(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 mv(e){const t=Array.isArray(e)?e[0]:e;return`linear-gradient(126deg, ${fv(t,5)} 16%, ${hv(t,10)} 88%)`}const vv=hm({displayName:"CloseIcon",viewBox:"0 0 24 24",path:hs.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"})}),bv=hm({displayName:"ExpandIcon",viewBox:"0 0 24 24",path:hs.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z",fill:"currentColor"})}),yv=hm({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:hs.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"})}),xv=hm({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:hs.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"})}),_v=hm({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:hs.jsxs(hs.Fragment,{children:[hs.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"}),hs.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),kv=hm({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),hs.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),wv=hm({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),hs.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"})]})}),Sv=hm({displayName:"ArrowLeftIcon",viewBox:"0 0 32 32",path:hs.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"})}),Cv=hm({displayName:"ReloadIcon",viewBox:"0 0 24 24",path:hs.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"})}),Pv=hm({displayName:"CartBagIcon",viewBox:"0 0 24 24",path:hs.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"})}),Ev=hm({displayName:"ArrowRightIcon",viewBox:"0 0 24 24",path:hs.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"})}),zv=hm({displayName:"AiBigIcon",viewBox:"0 0 24 24",path:hs.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"})});hm({displayName:"AiRainbowIconBase",viewBox:"0 0 24 24",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("g",{clipPath:"url(#clip0_497_8063)",children:hs.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)"})}),hs.jsxs("defs",{children:[hs.jsxs("linearGradient",{id:"paint0_linear_497_8063",x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[hs.jsx("stop",{stopColor:"#FF7E90"}),hs.jsx("stop",{offset:"0.463542",stopColor:"#A939FF"}),hs.jsx("stop",{offset:"1",stopColor:"#0020FF"})]}),hs.jsx("clipPath",{id:"clip0_497_8063",children:hs.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})});const Tv=e=>{const t=Zg("colors","primary"),[r,n,i]=function(e){const t=Array.isArray(e)?e[0]:e;return[hv(t,15),t,fv(t,10)]}(t),a=ys.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 hs.jsx(pu,{position:"relative",display:"inline-block",width:c,height:c,transform:l,children:hs.jsxs("svg",{viewBox:"0 0 24 24",width:c,height:c,style:{display:"block"},children:[hs.jsxs("defs",{children:[hs.jsxs("linearGradient",{id:a,x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[hs.jsx("stop",{stopColor:r}),hs.jsx("stop",{offset:"0.463542",stopColor:n}),hs.jsx("stop",{offset:"1",stopColor:i})]}),hs.jsx("clipPath",{id:`clip-${a}`,children:hs.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),hs.jsx("g",{clipPath:`url(#clip-${a})`,children:hs.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})`})})]})})},jv=""+new URL("dori.ico",import.meta.url).href,Rv=({onClose:e,isMobile:t=!1,isExpanded:r=!1,onToggleExpand:n,onReload:i})=>{const{botData:a,cartItemCount:o}=uv(),{t:s}=dv(),l=Am(a)&&o>0;return hs.jsxs(fm,{justify:"space-between",align:"center",flexShrink:0,children:[hs.jsx(gm,{src:a?.bot_image?a?.bot_image:jv,alt:"",role:"presentation",w:"40px",h:"40px",borderRadius:"50%"}),hs.jsxs(ym,{gap:3,children:[l&&hs.jsxs(lm,{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(`${Dm()}cart`,"_blank","noopener,noreferrer")},fontFamily:"system-ui, sans-serif",children:[hs.jsx(Pv,{boxSize:"16px",color:"text"}),hs.jsx(Lu,{fontSize:"13px",fontWeight:"500",color:"text",children:o})]}),!t&&n&&hs.jsxs(lm,{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:[hs.jsx(bv,{boxSize:"16px",color:"text"}),s(r?"minimize":"showFullScreen")]}),i&&hs.jsx(cm,{size:"sm",variant:"ghost","aria-label":s("reload"),onClick:i,color:"text",_hover:{bgColor:"mutedText"},children:hs.jsx(Cv,{boxSize:t?"16px":"24px",color:"text"})}),hs.jsx(cm,{size:"sm",variant:"ghost","aria-label":s("close"),onClick:()=>{r&&n?.(),e()},color:"text",_hover:{bgColor:"mutedText"},children:hs.jsx(vv,{boxSize:t?"16px":"24px",color:"text"})})]})]})};class Ov{static async getUploadCredentials(e){const t={file_extension:e,expires_in:3600,content_length_range:{min_bytes:1024,max_bytes:10485760}},r=await fetch(Sm.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 Iv=()=>{const[e,t]=bs.useState(null),[r,n]=bs.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 Ov.compressImage(e),i=await Ov.getUploadCredentials(r.format),a=await Ov.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 Av={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dv=ys.createContext&&ys.createContext(Av),Mv=["attr","size","title"];function Fv(){return Fv=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},Fv.apply(this,arguments)}function Lv(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 Nv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lv(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)):Lv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Wv(e){return e&&e.map((e,t)=>ys.createElement(e.tag,Nv({key:t},e.attr),Wv(e.child)))}function $v(e){return t=>ys.createElement(Bv,Fv({attr:Nv({},e.attr)},t),Wv(e.child))}function Bv(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,Mv),s=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),ys.createElement("svg",Fv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:r,style:Nv(Nv({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&ys.createElement("title",null,a),e.children)};return void 0!==Dv?ys.createElement(Dv.Consumer,null,e=>t(e)):t(Av)}function Hv(e){return $v({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 Vv=({imageUrl:e,onRemove:t})=>hs.jsxs("div",{style:{position:"relative",display:"inline-block",background:"transparent"},children:[hs.jsx(gm,{src:e,alt:"Uploaded image",w:"80px",h:"80px",borderRadius:"12px",objectFit:"cover",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.11)"}),hs.jsx(cm,{position:"absolute",top:"6px",right:"6px",bg:"primary","aria-label":"Remove image",onClick:t,size:"sm",borderRadius:"50%",minW:"24px",h:"24px",children:hs.jsx(vv,{boxSize:"14px",filter:"brightness(0) invert(1) drop-shadow(0 0 1px white)"})})]}),Uv=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n,isMobileView:i})=>{const{chatState:{repliedProduct:a},setRepliedProduct:o}=uv(),[s,l]=bs.useState(t),{uploadedImage:c,isUploading:u,handleFileSelect:d,removeImage:p}=Iv();bs.useEffect(()=>{l(f(t))},[t]);const h=e=>{(s.trim()||e||c)&&(n?.({message:e??s.trim(),imageUrl:c?.url},a?.product),o?.(null),l(""),p())},f=e=>e.trimStart();return hs.jsxs(xm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:[c&&hs.jsx(pu,{position:"absolute",bottom:a?i?"300px":"190px":"90px",left:"12px",zIndex:1e6,bg:"transparent",pointerEvents:"auto",children:hs.jsx(Vv,{imageUrl:c.preview,onRemove:p})}),hs.jsx(pu,{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:hs.jsxs(pu,{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&&hs.jsxs(xm,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",borderColor:"borderColor",bgColor:"lightBackground",children:[hs.jsxs(ym,{justify:"space-between",align:"center",w:"full",children:[hs.jsx(gm,{src:a?.product?.image,alt:"product",w:"40px",h:"40px"}),hs.jsx(Lu,{fontSize:"12px",fontWeight:400,color:"text",children:a?.product?.name}),hs.jsx(cm,{bg:"transparent","aria-label":"Remove product",onClick:()=>o?.(null),children:hs.jsx(vv,{boxSize:"24px",color:"text"})})]}),a?.suggestions&&a.suggestions.length>0&&hs.jsxs(hs.Fragment,{children:[hs.jsx(pu,{display:{base:"none",md:"block"},w:"full",children:hs.jsx(ym,{w:"full",justify:"flex-start",align:"center",gap:2,children:a.suggestions.map(e=>hs.jsx(lm,{variant:"outline",bg:"transparent",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>h(e),h:"32px",px:3,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:hs.jsx(pu,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),hs.jsx(pu,{display:{base:"block",md:"none"},w:"full",children:hs.jsx(xm,{w:"full",align:"stretch",gap:"8px",children:a.suggestions.map(e=>hs.jsx(lm,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"14px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>h(e),children:e},e))})})]})]}),hs.jsx(km,{value:s,onChange:e=>(e=>{const t=f(e);l(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),h())},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)"}),hs.jsx(cm,{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?hs.jsx(im,{size:"sm",color:"text"}):hs.jsx(Hv,{size:"full",color:"text"})}),hs.jsx(cm,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Send",onClick:()=>h(),_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:hs.jsx(wv,{boxSize:"30px",color:"primary"})})]})})]})},qv=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:r}=uv();return hs.jsx(xm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:hs.jsx(pu,{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:hs.jsx(pu,{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:hs.jsxs(ym,{justify:"space-between",align:"center",h:"full",children:[hs.jsx(Lu,{color:"mutedText",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),hs.jsx(cm,{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:hs.jsx(kv,{boxSize:"30px",color:"primary"})})]})})})})},Yv=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n})=>{const[i,a]=bs.useState(t),[o,s]=bs.useState(!1),{uploadedImage:l,isUploading:c,handleFileSelect:u,removeImage:d}=Iv(),p=bs.useRef(null);bs.useEffect(()=>{a(g(t))},[t]);const h=()=>{(i.trim()||l)&&(n?.({message:i.trim(),imageUrl:l?.url}),a(""),d())},f=e=>` ${e}`,g=e=>e.trimStart();return hs.jsxs(xm,{gap:2,align:"stretch",children:[l&&hs.jsx(pu,{mb:2,alignSelf:"flex-start",bg:"transparent",children:hs.jsx(Vv,{imageUrl:l.preview,onRemove:d})}),hs.jsxs(pu,{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:[hs.jsx(pu,{position:"absolute",top:"8px",left:"8px",zIndex:2,children:hs.jsx(Tv,{w:"24px",h:"24px",transform:"rotate(2700deg)",color:"primary"})}),hs.jsx(pu,{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:hs.jsx(ym,{justify:"space-between",align:"center",h:"full",children:hs.jsx(Lu,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),hs.jsx(cm,{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?hs.jsx(im,{size:"sm"}):hs.jsx(Hv,{size:"24px"})}),hs.jsx(cm,{position:"absolute",bottom:"8px",right:"12px",size:"xs",borderRadius:"full",bg:"primary","aria-label":"Send",onClick:e=>{e.stopPropagation(),h()},_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:hs.jsx(Sv,{boxSize:"30px",color:"text"})}),hs.jsx(pu,{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:hs.jsx(km,{ref:p,value:f(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(),h())},placeholder:f(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"})})]})]})},Gv=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:r="",onChange:n,onSend:i,onStop:a})=>{const[o,s]=bs.useState(!1);return bs.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?hs.jsx(Uv,{placeholder:t,value:r,onChange:n,onSend:i,isMobileView:o}):"generating"===e?hs.jsx(qv,{placeholder:t,onStop:a,isMobileView:o}):hs.jsx(Yv,{placeholder:t,value:r,onChange:n,onSend:i})},Qv=(e,t)=>{const r=e.includes("?")?"&":"?";return`${e}${r}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},Kv=()=>{const{botData:e}=uv(),{isMobile:t}=wm(),{t:r}=dv();return hs.jsxs(ym,{gapX:2,justifyContent:t?"start":"center",align:"center",alignContent:"center",alignItems:"center",w:"full",wrap:t?"wrap":"nowrap",children:[hs.jsxs(vm,{href:Qv("https://dori.tech/",e?.sharing_id||""),target:"_blank",rel:"noopener noreferrer",children:[hs.jsxs(Lu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",fontFamily:"system-ui, sans-serif",lineHeight:"1.4",children:[r("poweredBy")," "]}),hs.jsx(gm,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori-16px.webp",alt:"",role:"presentation",h:{base:"14px",md:"16px"}}),!t&&hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",lineHeight:"1.4",children:"-"})]}),hs.jsx(pu,{fontSize:"10px",color:"mutedText",px:0,py:0,bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1,children:hs.jsx(pu,{as:"span",children:r("aiCanMakeMistakes")})})]})};function Xv(e){return $v({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 Jv(e){return $v({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 Zv=(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,h]=bs.useState(1),[f,g]=bs.useState(0),[m,v]=bs.useState(0),[b,y]=bs.useState(1);return bs.useEffect(()=>{if(!t)return;const e=setInterval(()=>{h(e=>1===e?.2:1)},a);return()=>clearInterval(e)},[t,a]),bs.useEffect(()=>{if(!r)return;const e=setInterval(()=>{g(e=>0===e?c:0)},o);return()=>clearInterval(e)},[r,o,c]),bs.useEffect(()=>{if(!n)return;const e=setInterval(()=>{v(e=>0===e?u:0)},s);return()=>clearInterval(e)},[n,s,u]),bs.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:f,rotationAngle:m,scaleFactor:b}},eb=(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 tb(){return"undefined"!=typeof window&&!!window.$crisp}function rb(){tb()&&window.$crisp.push(["do","chat:hide"])}function nb(){console.log("trying to open"),tb()&&(console.log("trying to open2"),window.$crisp.push(["do","chat:show"]),window.$crisp.push(["do","chat:open"]))}const ib=15e3,ab="chatra";let ob=!1,sb=!1,lb=null,cb=0,ub=null,db=0,pb=!1;function hb(...e){console.log("[Dori-Chatra]",...e)}function fb(){return"undefined"!=typeof window&&"function"==typeof window.Chatra}function gb(){return!!fb()&&!!document.getElementById(ab)}function mb(e){if(fb())try{window.Chatra("hide"),hb("called Chatra('hide') —",e)}catch(t){hb("error calling hide:",t)}}function vb(){null!==lb&&(clearInterval(lb),lb=null,hb("stopped maintain loop"))}function bb(){sb||Date.now()-cb>3e4?vb():ob&&fb()&&mb("maintain loop")}function yb(){if(!sb)return;const e=document.getElementById(ab);if(!e)return;const t=e.className||"",r=-1!==t.indexOf("chatra--visible");-1!==t.indexOf("chatra--expanded")?pb=!0:pb&&(Date.now()-db<1500||r&&mb("user closed chat"))}function xb(){hb("openChatraChat invoked"),sb=!0,pb=!1,vb(),function(){if(ub||"undefined"==typeof document)return;const e=()=>{const e=document.getElementById(ab);return!!e&&(ub=new MutationObserver(yb),ub.observe(e,{attributes:!0,attributeFilter:["class","style"]}),hb("attached close observer to #chatra"),!0)};if(e())return;const t=Date.now(),r=setInterval(()=>{(e()||Date.now()-t>ib)&&clearInterval(r)},200)}(),function(e){if(gb())return void e();const t=Date.now(),r=setInterval(()=>{gb()?(clearInterval(r),e()):Date.now()-t>ib&&(clearInterval(r),hb("Chatra never fully loaded within",ib,"ms"))},200)}(()=>{db=Date.now();try{window.Chatra("show"),hb("called Chatra('show')"),setTimeout(()=>{try{window.Chatra("openChat"),hb("called Chatra('openChat')")}catch(e){hb("error calling openChat:",e)}},50)}catch(e){hb("error calling show:",e)}})}const _b=(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":nb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":xb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"dori":r&&r()}},kb=({channels:e,isOpen:t,onToggle:r,isMobile:n,onMouseEnter:i,onChatClick:a})=>{const{botData:o}=uv(),s=Nu({base:!0,md:!1})??!1,l=eb(o,s),c=!0!==o?.customization?.disable_idle_animation,{getStarfieldTransform:u,getIconStyle:d}=Zv({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:hs.jsxs(xm,{gap:2,align:"flex-end",alignItems:"center",position:"absolute",bottom:"100%",right:0,children:[n&&t&&hs.jsx(cm,{"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:hs.jsx(Xv,{size:20})}),hs.jsx(pu,{mb:3,opacity:t?1:0,transform:t?"translateY(0)":"translateY(10px)",transition:"all 0.2s ease",pointerEvents:t?"auto":"none",onMouseEnter:i,children:hs.jsxs(xm,{gap:2,align:"flex-end",children:[hs.jsx(pu,{borderRadius:"full",cursor:"pointer",onClick:()=>_b("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:hs.jsx(zv,{boxSize:{base:"24px",md:"32px"},color:"background",transform:u("expanded",l),...d()})}),p.map((e,t)=>hs.jsx(pu,{borderRadius:"full",cursor:"pointer",onClick:()=>_b(e.type,e.data,a),_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)"}},transition:"all 0.2s ease",children:hs.jsx(gm,{src:e.icon,alt:e.name,boxSize:{base:"36px",md:"48px"},borderRadius:"full",objectFit:"fill"})},`${e.type}-${t}`))]})}),n&&!t&&hs.jsx(cm,{"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:hs.jsx(Jv,{size:20})})]})},wb=({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:hs.jsx(ym,{gap:3,w:"full",alignItems:"center",justifyContent:"start",wrap:"wrap",children:t.map((e,t)=>hs.jsxs(pu,{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":nb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":xb(),window.dispatchEvent(new Event("dori:close-widget"))}})(e.type,e.data),flexShrink:0,children:[hs.jsx(gm,{src:e.icon,alt:e.name,boxSize:{base:"22px",md:"24px"},borderRadius:"full",objectFit:"cover"}),hs.jsx(Lu,{fontSize:{base:"12px",md:"14px"},fontWeight:"400",color:"text",whiteSpace:"nowrap",children:e.name})]},`${e.type}-${t}`))})},Sb=({flow:e,onComplete:t})=>{const[r,n]=bs.useState(0),[i,a]=bs.useState([]),[o,s]=bs.useState("active"),[l,c]=bs.useState(!1),[u,d]=bs.useState(!1),[p,h]=bs.useState(!1),f=bs.useRef(null),g=bs.useRef(null),m=bs.useRef(null),v=bs.useRef(null),b=Zg("colors","primary"),y=mv(b);bs.useEffect(()=>{if("active"!==o)return;c(!1);const e=requestAnimationFrame(()=>{c(!0)});return()=>cancelAnimationFrame(e)},[r,o]),bs.useEffect(()=>()=>{f.current&&clearTimeout(f.current),g.current&&clearTimeout(g.current),m.current&&clearTimeout(m.current),v.current&&clearTimeout(v.current)},[]);const x=bs.useCallback(o=>{if(p)return;h(!0);const l=[...i,{stepIndex:r,option:o}];a(l),r<e.steps.length-1?(c(!1),f.current=setTimeout(()=>{n(e=>e+1),h(!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=Om(),a=l.map(e=>e.option.label).join(", ");t(r,`${i}[Quiz selections: ${a}] ${n}`)},r)},300))},[p,i,r,e,t]),_=bs.useCallback(()=>{r<=0||u||(c(!1),g.current=setTimeout(()=>{a(e=>e.slice(0,-1)),n(e=>e-1),h(!1)},250))},[r,u]),k=e.steps[r];return"analyzing"===o?hs.jsxs(xm,{gap:3,align:"center",flex:1,justify:"center",transition:"opacity 0.3s ease",children:[hs.jsx(ym,{gap:2,flexWrap:"wrap",justify:"center",children:i.map((e,t)=>hs.jsx(Cb,{label:e.option.label},t))}),hs.jsxs(xm,{gap:2,align:"center",py:4,children:[hs.jsx(_v,{boxSize:"20px",color:"primary",opacity:.6}),hs.jsx(Lu,{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})]}),hs.jsx("style",{children:"\n @keyframes dori-shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n }\n "})]}):hs.jsxs(xm,{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&&hs.jsxs(ym,{gap:2,flexWrap:"wrap",align:"center",children:[hs.jsx(pu,{as:"button",onClick:_,"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)=>hs.jsx(Cb,{label:e.option.label},t))]}),hs.jsxs(pu,{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:[hs.jsxs(xm,{align:"stretch",gap:3,mb:3,children:[hs.jsxs(ym,{justify:"space-between",align:"center",gap:3,children:[hs.jsxs(ym,{gap:2,align:"center",minW:0,children:[hs.jsx(pu,{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"24px",borderRadius:"12px",bg:"background",border:"1px solid",borderColor:"primary",flexShrink:0,children:hs.jsx(_v,{boxSize:"12px",color:"primary"})}),hs.jsx(Lu,{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})]}),hs.jsxs(pu,{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]})]}),hs.jsx(Lu,{fontSize:"17px",fontWeight:700,color:"text",lineHeight:"1.45",fontFamily:"system-ui, sans-serif",children:k.question}),hs.jsx(pu,{bg:"background",border:"1px solid",borderColor:"borderColor",borderRadius:"16px",px:3,py:2.5,children:hs.jsxs(ym,{gap:2,align:"start",children:[hs.jsx(pu,{boxSize:"7px",borderRadius:"full",bg:"primary",mt:"7px",flexShrink:0}),hs.jsx(Lu,{fontSize:"12px",color:"textSecondary",fontWeight:500,lineHeight:"1.65",fontFamily:"system-ui, sans-serif",opacity:.9,children:k.reason})]})})]}),hs.jsx(pu,{display:"grid",gridTemplateColumns:{base:"1fr 1fr"},gap:2,children:k.options.map((e,t)=>hs.jsx(pu,{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:hs.jsxs(pu,{flex:"1",minW:0,children:[hs.jsx(Lu,{fontSize:"13px",fontWeight:500,color:"text",lineHeight:"1.4",whiteSpace:"normal",wordBreak:"break-word",children:e.label}),e.subtitle&&hs.jsx(Lu,{fontSize:"10px",color:"textSecondary",opacity:.6,lineHeight:"1.2",children:e.subtitle})]})},e.value))})]})]})},Cb=({label:e})=>hs.jsxs(pu,{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]}),Pb=({chips:e,onChipClick:t,onDismiss:r})=>{const[n,i]=bs.useState(!1);return bs.useEffect(()=>{const e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]),0===e.length?null:hs.jsx(pu,{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:hs.jsxs(ym,{gap:2,wrap:"wrap",align:"center",children:[e.map((e,r)=>hs.jsx(lm,{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}`)),hs.jsx(cm,{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:hs.jsx(vv,{boxSize:"11px"})})]})})},Eb=({onStartChat:e,isMobile:t,isExpanded:r=!1,onToggleExpand:n,onClose:i})=>{const{inputValue:a,handleInputChange:o}=((e="")=>{const[t,r]=bs.useState(e),n=bs.useCallback(e=>{r(e)},[]),i=bs.useCallback(e=>{t.trim()&&e&&(e(t.trim()),r(""))},[t]),a=bs.useCallback((e,t)=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(t))},[i]),o=bs.useCallback(()=>{r("")},[]),s=bs.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:h}=uv(),{t:f,translations:g}=dv(),m=s?.white_label?.is_white_labeled??!1,v=mv(Zg("colors","primary")),b=c,x=!1,_=!!(u&&u.length>0),k=bs.useMemo(()=>{const e=[];return l&&e.push({text:l,isDynamic:!0}),_||b.forEach(t=>e.push({text:t,isDynamic:!1})),e},[l,b,_]);bs.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 hs.jsxs(hs.Fragment,{children:[hs.jsx(Rv,{onClose:i,isMobile:t,isExpanded:r,onToggleExpand:n}),hs.jsxs(xm,{h:"full",minH:0,justify:"flex-start",align:"stretch",gap:4,children:[hs.jsx(xm,{gap:3,w:"full",align:"start",mb:"16px",flexShrink:0,children:hs.jsx(Lu,{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:y(s?.agent_name,g)})}),hs.jsx(pu,{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:hs.jsxs(xm,{gap:4,align:"stretch",justify:"start",pb:3,children:[hs.jsx(pu,{children:hs.jsx(Gv,{state:"minimized",placeholder:f("askAnything"),value:a,onChange:o,onSend:w})}),u&&u.length>0&&hs.jsx(Pb,{chips:u,onChipClick:t=>{Jo("post_answer"===d?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:t}),e(t),p()},onDismiss:()=>{Jo("post_answer"===d?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),p(),h()}}),x,x,k.length>0&&hs.jsx(pu,{w:"full",children:hs.jsx(pu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:3,w:"full",children:k.map((t,r)=>hs.jsxs(lm,{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=`${Om()}[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:[hs.jsx(_v,{boxSize:"16px",color:t.isDynamic?"primary":"text"}),hs.jsx(pu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"system-ui, sans-serif",children:t.text})]},t.isDynamic?"dynamic":r))})})]})}),hs.jsx(pu,{w:"full",flexShrink:0,children:hs.jsx(wb,{channels:s?.merchant_support_channels})}),!m&&hs.jsx(pu,{flexShrink:0,transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:hs.jsx(Kv,{variant:"default"})})]})]})},zb=({message:e,type:t="default"})=>{const r="loading"===t,{botData:n}=uv(),i=e.replace(/\\([!?.,'":;\-\[\](){}#*_~`>+])/g,"$1"),a=r?i.replace(/[.\u2026]{1,3}\s*$/u,"").trim():i;return hs.jsxs(pu,{position:"relative",width:"full",children:[hs.jsx(pu,{opacity:"0",bg:"lightBackground",borderRadius:"24px",padding:"16px",children:hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",fontFamily:"system-ui, sans-serif",children:i})}),hs.jsx(pu,{h:"50px"}),hs.jsx(pu,{position:"absolute",left:0,bottom:0,children:hs.jsx(gm,{src:n?.agent_image||jv,alt:"",role:"presentation",w:"24px",h:"24px",borderRadius:"50%"})}),hs.jsx(pu,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),hs.jsx(pu,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),hs.jsx(pu,{position:"absolute",left:"35px",bottom:"35px",bg:"lightBackground",borderRadius:"24px",padding:"16px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:r?hs.jsxs(ym,{gap:"8px",align:"center",children:[a&&hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:a}),hs.jsx(ym,{gap:"3px",align:"center","aria-hidden":"true",children:[0,1,2].map(e=>hs.jsx(pu,{w:"4px",h:"4px",borderRadius:"full",bg:"mutedText",css:{animation:`dori-typing-dot 1.2s ease-in-out ${.15*e}s infinite`}},e))}),hs.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 "})]}):hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"text",fontFamily:"system-ui, sans-serif",children:i})})]})};var Tb=(e=>(e.OTHER="other",e.SHOPIFY="shopify",e.WORDPRESS_WOOCOMMERCE="wordpress_woocommerce",e))(Tb||{});const jb={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"},Rb=({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}=uv(),{t:p}=dv(),h=(u?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",f=jb[h]||h,{name:g,price:m,originalPrice:v,discount:b,image:y,id:x,url:_}=e,k=Am(u),w=Boolean(e.is_on_sale&&null!=e.sale_price&&e.sale_price>0&&null!=m&&e.sale_price<m),S=w&&e.sale_price?e.sale_price:m,C=w?m:v,P=w&&null!=e.sale_percent_off&&e.sale_percent_off>0?e.sale_percent_off:b,E=w&&null!=e.sale_amount_off&&e.sale_amount_off>0?e.sale_amount_off:void 0,z=!!C&&!!S&&C>S,T=w?e.sale_label:void 0,[j,R]=bs.useState(!1),[O,I]=bs.useState(!1),A=Zg("colors","background"),D=Array.isArray(A)?A[0]:A,[M,F]=bs.useState(D),L=bs.useRef(null),N=e.description?.length&&e.description?.length>o;bs.useEffect(()=>{(()=>{if(!L.current)return;const e=L.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 F(D);if(0===i.length)return void F(D);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);F(s)}catch(t){console.error("Error extracting corner colors:",t),F(D)}};if(!(e.complete&&e.naturalWidth>0))return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)};t()})()},[y,D]);const W=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"),Pm(e,u,d.threadId)},$=O||d.isRequestInProgress;return hs.jsxs(xm,{gap:1,children:[hs.jsx(pu,{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:hs.jsxs(xm,{gap:a?1.5:2,align:"stretch",children:[hs.jsxs(pu,{position:"relative",cursor:"pointer",onClick:W,_hover:{opacity:.9},transition:"all 0.3s ease",bg:M,borderRadius:"md",children:[i&&n&&hs.jsx(pu,{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}),hs.jsx(gm,{ref:L,src:y,alt:g,w:"full",h:s,objectFit:"contain",borderRadius:"md",crossOrigin:"anonymous"})]}),hs.jsx(Lu,{fontWeight:600,fontSize:a?"11px":"12px",lineHeight:a?"18px":"24px",color:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:g,fontFamily:"system-ui, sans-serif",cursor:"pointer",onClick:W,_hover:{color:"primary"},transition:"color 0.2s",children:g}),!a&&e.description&&hs.jsx(pu,{borderRadius:"8px",borderLeft:"2px solid",borderLeftColor:"primary",padding:"6px 10px",w:"full",bg:"lightBackground",cursor:j?"default":"pointer",onClick:j?void 0:()=>{R(!0)},_hover:j?{}:{bg:"veryLightBackground"},transition:"background-color 0.2s",children:hs.jsxs(Lu,{fontSize:"12px",fontWeight:400,color:"text",lineHeight:"20px",overflow:"hidden",title:e.description,fontFamily:"system-ui, sans-serif",children:[N&&!j?e.description?.substring(0,o)+"... ":e.description,N&&!j&&hs.jsx(Lu,{as:"span",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"system-ui, sans-serif",children:p("more")})]})}),hs.jsx(ym,{justify:"space-between",align:"end",children:hs.jsxs(xm,{gap:1,align:"start",children:[(z||P||E)&&hs.jsxs(ym,{gap:1,children:[z&&hs.jsxs(Lu,{fontSize:"xs",color:"mutedText",textDecoration:"line-through",fontFamily:"system-ui, sans-serif",children:[f,C?.toLocaleString()]}),(P||E)&&hs.jsx(rm,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"24px",title:T||void 0,children:P?`${P}%`:`-${f}${E?.toLocaleString()}`})]}),!!S&&S>0&&hs.jsxs(Lu,{fontSize:"12px",fontWeight:"700",color:"text",fontFamily:"system-ui, sans-serif",children:[f,S?.toLocaleString()||0]})]})})]})}),hs.jsx(xm,{gap:1,w:"full",align:"stretch",children:hs.jsxs(ym,{gap:.5,children:[hs.jsx(cm,{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:[p("doesProductHaveDiscount"),p("whatFeaturesSpecial"),p("otherColorsAvailable")]})},"aria-label":"Reply to product",children:hs.jsx(yv,{boxSize:a?"14px":"16px"})}),!a&&hs.jsxs(lm,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:"4px",flex:1,fontWeight:400,onClick:()=>{const e=`${p("doYouHaveSimilar")} ${g}`;l({message:e,apiMessage:`${e} (product id: ${x})`})},_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",minW:0,overflow:"hidden",textOverflow:"ellipsis",children:[hs.jsx(xv,{boxSize:"16px"}),p("similar")]}),!a&&k&&hs.jsxs(lm,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:t?"4px":"6px",flex:1,minW:0,fontWeight:400,onClick:async()=>{if(O||d.isRequestInProgress)return;I(!0);const e=p("addToCartMessage").replace("{product}",g),t=Bm(_),r=`DORI_INTERNAL_EVENT:add_to_cart_request:${JSON.stringify({product_name:g,product_url:_||null,product_handle:t||null,quantity:1})}`;try{await l({message:e,apiMessage:r})}finally{I(!1)}},disabled:$,loading:$,_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:[hs.jsx(Pv,{boxSize:"16px"}),p($?"addToCartAdding":"addToCartButton")]})]})})]})},Ob=({index:e,delay:t=70,children:r})=>{const[n,i]=bs.useState(!1);return bs.useEffect(()=>{const r=setTimeout(()=>i(!0),e*t);return()=>clearTimeout(r)},[e,t]),hs.jsx(pu,{opacity:n?1:0,transform:n?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:r})},Ib=({products:e,isDesktop:t})=>hs.jsx(bm,{dir:"ltr",columns:t?2:1,gapX:t?2:1,gapY:t?4:2,w:"full",children:e.map((e,r)=>hs.jsx(Ob,{index:r,children:hs.jsx(Rb,{product:e,isDesktop:t})},e.id))}),Ab=({product:e,index:t,isLast:r,isDesktop:n,delay:i})=>{const[a,o]=bs.useState(!1);bs.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 hs.jsx(pu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(10px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:hs.jsxs(ym,{align:"stretch",gap:0,children:[hs.jsxs(xm,{align:"center",gap:0,w:"28px",flexShrink:0,children:[hs.jsx(pu,{w:"28px",h:"28px",borderRadius:"full",bg:"primary",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:hs.jsx(Lu,{fontSize:"12px",fontWeight:"700",color:"white",lineHeight:"1",children:t+1})}),!r&&hs.jsx(pu,{flex:1,w:"2px",bg:"borderColor",minH:"8px",opacity:a?1:0,transition:"opacity 0.3s ease-out 0.2s"})]}),hs.jsxs(xm,{align:"stretch",gap:1.5,flex:1,minW:0,pl:2.5,pb:r?0:3,children:[s&&hs.jsx(Lu,{fontSize:"13px",fontWeight:"600",color:"text",fontFamily:"system-ui, sans-serif",pt:.5,children:s}),hs.jsx(Rb,{product:e,isDesktop:n})]})]})})},Db={single_pick:({products:e,isDesktop:t})=>{const r=e[0],n=e.slice(1,3),{t:i}=dv(),[a,o]=bs.useState(!1),[s,l]=bs.useState(!1);return bs.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?hs.jsxs(xm,{gap:3,w:"full",align:"stretch",children:[hs.jsx(pu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(8px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:hs.jsx(Rb,{product:r,isDesktop:t,variant:"hero",badgeLabel:i("topPick")})}),n.length>0&&hs.jsxs(pu,{opacity:s?1:0,transform:s?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:[hs.jsx(Lu,{fontSize:"11px",fontWeight:500,color:"mutedText",fontFamily:"system-ui, sans-serif",mb:2,px:1,children:i("alsoConsider")}),hs.jsx(bm,{dir:"ltr",columns:1===n.length?1:2,gapX:2,gapY:2,w:"full",children:n.map(e=>hs.jsx(pu,{children:hs.jsx(Rb,{product:e,isDesktop:t,variant:1===n.length?"default":"compact"})},e.id))})]})]}):null},shortlist:({products:e,isDesktop:t})=>{const{t:r}=dv();return hs.jsx(xm,{gap:3,w:"full",align:"stretch",children:e.map((e,n)=>hs.jsx(Ob,{index:n,delay:120,children:hs.jsx(Rb,{product:e,isDesktop:t,variant:0===n?"hero":"default",badgeLabel:0===n?r("topPick"):void 0})},e.id))})},routine:({products:e,isDesktop:t})=>hs.jsx(xm,{gap:0,w:"full",align:"stretch",children:e.map((r,n)=>hs.jsx(Ab,{product:r,index:n,isLast:n===e.length-1,isDesktop:t,delay:200*n},r.id))}),explore:Ib},Mb=({products:e,shape:t="explore"})=>{const{chatState:r,botData:n}=uv(),i=bs.useRef(new Set),a=bs.useRef(null),[o,s]=bs.useState(!1),l=bs.useCallback(()=>{a.current&&s(a.current.offsetWidth>=600)},[]);bs.useEffect(()=>{l();const e=new ResizeObserver(l);return a.current&&e.observe(a.current),()=>e.disconnect()},[l]),bs.useEffect(()=>{const t=void 0!==window.wp||void 0!==window.wc||document.querySelector('meta[name="generator"][content*="WordPress"]')?Tb.WORDPRESS_WOOCOMMERCE:void 0!==window.Shopify||document.querySelector('meta[name="shopify-checkout-api-token"]')||document.querySelector('script[src*="cdn.shopify.com"]')?Tb.SHOPIFY:Tb.OTHER;if(t===Tb.OTHER)return;if(!r.threadId||!n?.sharing_id)return;if(x())return;const a=_(),o=[];e.forEach(e=>{const t=e.external_product_id||"-";i.current.has(t)||(i.current.add(t),o.push(t))}),o.length>0&&Em(o,r.threadId||"",a,t,n.sharing_id)},[e,r.threadId,n?.sharing_id]);const c=Db[t]||Ib;return hs.jsx(xm,{ref:a,align:"stretch",gap:2,w:"full",children:hs.jsx(pu,{px:1,w:"full",children:hs.jsx(c,{products:e,isDesktop:o})})})},Fb=({index:e,children:t})=>{const[r,n]=bs.useState(!1);return bs.useEffect(()=>{const t=setTimeout(()=>n(!0),70*e);return()=>clearTimeout(t)},[e]),hs.jsx(pu,{opacity:r?1:0,transform:r?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:t})},Lb=({suggestions:e})=>{const{sendMessage:t}=uv(),r=e.length>0&&e.every(e=>e.length<=18);return hs.jsx(fm,{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)=>hs.jsx(Fb,{index:n,children:hs.jsx(lm,{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:hs.jsx(Lu,{fontSize:{base:"14px",md:"12px"},fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",lineClamp:r?1:2,children:e})})},n))})},Nb=()=>{const{t:e}=dv();return hs.jsxs(ym,{mt:3,gap:2,justify:"flex-start",children:[hs.jsxs(lm,{size:"xs",variant:"outline",borderColor:"borderColor",color:"textSecondary",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.open(`${Dm()}cart`,"_blank","noopener,noreferrer")},_hover:{borderColor:"primary"},children:[hs.jsx(Pv,{boxSize:"14px"}),e("cartViewCart")]}),hs.jsxs(lm,{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=`${Dm()}checkout`},_hover:{opacity:.85},children:[e("cartCheckout"),hs.jsx(Ev,{boxSize:"14px"})]})]})},Wb=({onSubmit:e,onClose:t,existingText:r})=>{const[n,i]=bs.useState(r||""),[a,o]=bs.useState(!1);return bs.useEffect(()=>{i(r||"")},[r]),hs.jsx(pu,{mt:2,bg:"background",borderRadius:"10px",p:3,borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:hs.jsxs(xm,{gap:3,align:"stretch",children:[hs.jsxs(xm,{gap:.5,align:"start",children:[hs.jsx(Lu,{fontSize:"13px",fontWeight:"600",color:"text",lineHeight:"1.4",children:"Tell us what was wrong"}),hs.jsx(Lu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:"Your comment is optional and helps us improve responses."})]}),hs.jsx(km,{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"}}),hs.jsxs(ym,{gap:2,justify:"flex-end",children:[hs.jsx(lm,{size:"sm",variant:"ghost",onClick:t,disabled:a,fontSize:"12px",color:"mutedText",px:3,h:"30px",_hover:{bg:"lightBackground"},children:"Cancel"}),hs.jsx(lm,{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"}),hs.jsx(lm,{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"})]})]})})},$b=({messageIndex:e,feedback:t})=>{const{submitFeedback:r}=uv(),[n,i]=bs.useState(!1),a="like"===t?.rating,o="dislike"===t?.rating;return hs.jsxs(pu,{mt:1,children:[hs.jsxs(ym,{gap:1,align:"center",children:[hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"12px",lineHeight:"1",children:"👍"})}),hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"12px",lineHeight:"1",children:"👎"})})]}),t?.feedbackText&&hs.jsxs(pu,{mt:1,px:2.5,py:2,bg:"lightBackground",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:[hs.jsx(Lu,{fontSize:"10px",color:"mutedText",lineHeight:"1.2",fontWeight:"600",textTransform:"uppercase",mb:1,children:"Submitted Feedback"}),hs.jsx(Lu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:t.feedbackText})]}),n&&hs.jsx(pu,{maxW:"280px",children:hs.jsx(Wb,{onSubmit:async t=>{await r(e,"dislike",t),i(!1)},onClose:()=>{i(!1)},existingText:t?.feedbackText})})]})},Bb=ys.lazy(()=>k(()=>import("./MarkdownContent-BNhXJr_w.js"),__vite__mapDeps([0,1]),import.meta.url)),Hb=({message:e,isStreaming:t=!1,doriMessageIndex:r,isAfterProducts:n=!1})=>{const{isTestMode:i}=uv(),a=mv(Zg("colors","primary")),o=function(e){const t=Date.now()-new Date(e).getTime()<2e3,[r,n]=bs.useState(!t);return bs.useEffect(()=>{if(!t)return;const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[t]),r}(e.timestamp),s=function(e,t){const r=bs.useRef(e),n=bs.useRef(t?0:e.length),[i,a]=bs.useState(t?"":e),o=bs.useRef(null),s=bs.useRef(t);r.current=e,s.current=t;const l=bs.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=bs.useCallback(()=>{null===o.current&&(o.current=requestAnimationFrame(l))},[l]),u=bs.useCallback(()=>{null!==o.current&&(cancelAnimationFrame(o.current),o.current=null)},[]);return bs.useEffect(()=>(t?n.current<e.length&&c():(u(),n.current=e.length,a(e)),u),[t]),bs.useEffect(()=>{t&&n.current<e.length&&c()},[e,t,c]),i}(e.content,t);if("welcome"===e.type)return hs.jsx(zb,{message:e.content});if("loading"===e.type)return e.content&&hs.jsx(zb,{message:e.content,type:"loading"});if("user"===e.type)return hs.jsxs(pu,{maxW:"220px",alignSelf:"flex-end",mb:2,children:[e.imageUrl&&hs.jsx(pu,{w:"120px",h:"120px",mb:2,borderRadius:"12px",background:a,children:hs.jsx(gm,{src:e.imageUrl,alt:"Uploaded image",w:"100%",h:"100%",borderRadius:"12px",objectFit:"cover"})}),(e.content.length>0||e.repliedProduct)&&hs.jsxs(xm,{bg:"lightBackground",borderRadius:"24px",px:3,py:2,gap:2,alignItems:"start",w:"full",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:[e.repliedProduct&&hs.jsxs(ym,{bg:"background",borderRadius:"12px",p:2,gap:2,w:"full",children:[hs.jsx(gm,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"text",children:e.repliedProduct.name})]}),hs.jsx(bs.Suspense,{fallback:hs.jsx(Lu,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"text",fontFamily:"system-ui, sans-serif",whiteSpace:"pre-wrap",children:e.content}),children:hs.jsx(Bb,{variant:"user",children:e.content})})]})]});if("products"===e.type)return hs.jsx(pu,{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:hs.jsx(Mb,{products:e.products||[],shape:e.shape})});if("suggestions"===e.type)return hs.jsx(Lb,{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 hs.jsxs(xm,{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:[hs.jsx(pu,{w:"full",alignSelf:"flex-start",children:hs.jsx(bs.Suspense,{fallback:hs.jsx(Lu,{fontSize:c,fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.6",whiteSpace:"pre-wrap",children:s}),children:hs.jsx(Bb,{variant:"dori",textSize:c,children:s})})}),e.showCartActions&&hs.jsx(Nb,{}),l&&void 0!==r&&hs.jsx($b,{messageIndex:r,feedback:e.feedback})]})},Vb=({chat:e,t:t})=>{const[r,n]=bs.useState(!1);return bs.useEffect(()=>{const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[]),hs.jsxs(ym,{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:[hs.jsx(Lu,{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)}),hs.jsxs(ym,{gap:1,children:[hs.jsx(lm,{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")}),hs.jsx(cm,{size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:e.dismissCartUndo,color:"textSecondary",_hover:{bg:"transparent",opacity:.7},minW:"auto",h:"auto",p:.5,children:hs.jsx(vv,{boxSize:"12px"})})]})]})},Ub=({header:e})=>{const t=uv(),{botData:r,pendingBubbleSuggestion:n,setPendingBubbleSuggestion:i,proactiveChips:a,proactiveChipsPosition:o,dismissProactiveChips:s,suppressProactiveForSession:l}=t,{t:c,translations:u}=dv(),d=bs.useRef(null),p=bs.useCallback(()=>{const e=d.current;if(!e)return;const r=e.scrollHeight-e.scrollTop-e.clientHeight<80;t.setAutoScrollEnabled(r)},[t.setAutoScrollEnabled]),[h,f]=bs.useState(!1),g=bs.useRef(null);bs.useEffect(()=>{if(n&&n!==g.current){g.current=n;const e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)}n||(f(!1),g.current=null)},[n]);const m=mv(Zg("colors","primary")),v=bs.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 hs.jsxs(hs.Fragment,{children:[e,hs.jsx(Lu,{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:y(r?.agent_name,u)}),hs.jsxs(xm,{flex:1,justify:"center",align:"stretch",gap:4,minH:0,transition:"opacity 0.5s ease",opacity:1,children:[hs.jsx(pu,{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:hs.jsxs(xm,{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(hs.jsx(Hb,{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,hs.jsx("div",{ref:t.messagesEndRef,style:{height:"1px"}})]})}),t.cartUndoState&&hs.jsx(Vb,{chat:t,t:c}),n&&hs.jsxs(pu,{flexShrink:0,position:"relative",opacity:h?1:0,transform:h?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[hs.jsxs(lm,{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=`${Om()}[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:[hs.jsx(_v,{boxSize:"15px",color:"primary",flexShrink:0}),hs.jsx(pu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",fontFamily:"system-ui, sans-serif",children:n})]}),hs.jsx(cm,{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:hs.jsx(vv,{boxSize:"9px"})})]}),a&&a.length>0&&hs.jsx(Pb,{chips:a,onChipClick:e=>{Jo("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:()=>{Jo("post_answer"===o?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),s(),l()}}),hs.jsx(pu,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:hs.jsx(Gv,{state:t.inputState,placeholder:"generating"===t.inputState?c("processing"):c("whatsYourQuestion"),onSend:t.isInputDisabled?void 0:t.sendMessage,onStop:t.stopCurrentRequest})})]})]})},qb=({containerRef:e,isOpen:t,showSuggestionScreen:r,scrollableSelector:n='[data-scroll-container="chat-messages"]'})=>{bs.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)},h=e=>{p(),o=e.touches[0].clientY,s=e.touches[0].clientX},f=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",h,{passive:!1}),r.addEventListener("touchmove",f,{passive:!1}),r.addEventListener("touchend",g,{passive:!1}),r.addEventListener("touchcancel",g,{passive:!1}),()=>{r.removeEventListener("wheel",a),r.removeEventListener("touchstart",h),r.removeEventListener("touchmove",f),r.removeEventListener("touchend",g),r.removeEventListener("touchcancel",g),p(),null!==c&&cancelAnimationFrame(c)}},[t,r,n])},Yb=({children:e,showSuggestionScreen:t,isOpen:r,isExpanded:n=!1})=>{const{isMobile:i}=wm(),{botData:a}=uv(),o=bs.useRef(null),s=a?.white_label?.is_white_labeled??!1,l=a?.customization?.position?.align??"right",c=Zg("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},h=i?d:p;return qb({containerRef:o,isOpen:r,showSuggestionScreen:t}),hs.jsx(pu,{ref:o,...h,children:hs.jsxs(xm,{p:6,pb:2,h:"full",justify:"flex-start",align:"stretch",gap:2,children:[e,!t&&!s&&hs.jsx(pu,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:hs.jsx(Kv,{variant:"default"})})]})})},Gb=({isOpen:r,onClose:n,isExpanded:i=!1,onToggleExpand:a,pendingChat:o,onPendingChatConsumed:s})=>{const{sendMessage:l,addWelcomeMessage:c,resetBot:u}=uv(),{showSuggestionScreen:d,goToChat:p,goToSuggestion:h}=(r=>{const[n,i]=bs.useState(!0),a=bs.useRef(!1),o=bs.useRef(!1);return bs.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}},[]),bs.useEffect(()=>{r&&!a.current?i(!0):r&&a.current&&i(!1)},[r]),{showSuggestionScreen:n,goToChat:bs.useCallback(()=>{a.current=!0,i(!1)},[]),goToSuggestion:bs.useCallback(()=>{a.current=!1,i(!0)},[])}})(r),{isMobile:f}=wm(),g=bs.useRef(!1);bs.useEffect(()=>{r&&!g.current&&(Xo(),g.current=!0)},[r]);const m=f,v=(e,t,r)=>{p(),c(),l({message:e,imageUrl:t,apiMessage:r})};bs.useEffect(()=>{if(r&&o){const e=setTimeout(()=>{v(o.message,o.imageUrl,o.apiMessage),s?.()},100);return()=>clearTimeout(e)}},[r,o]);return hs.jsx(Yb,{showSuggestionScreen:d,isOpen:r,isExpanded:i,children:d?hs.jsx(Eb,{onStartChat:v,isMobile:m,isExpanded:i,onToggleExpand:a,onClose:n}):hs.jsx(Ub,{header:hs.jsx(Rv,{onClose:n,isMobile:m,isExpanded:i,onToggleExpand:a,onReload:()=>{u(),h()}})})})},Qb=({onClick:e,suppressBubble:t=!1})=>{const{botData:r,dynamicWelcomeMessage:n,dynamicFollowupNudgeMessage:i,diagnosticFlow:a,diagnosticShown:o,setPendingBubbleSuggestion:s}=uv(),{t:l}=dv(),c=Zg("colors","primary"),u=Zg("colors","background"),d=Zg("colors","lightBackground"),p=mv(c),h=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%, ${hv(n,3)} 50%, ${n} 76%, ${r} 100%)`}(u,d),[f,g]=bs.useState("expanded"),[m,v]=bs.useState(!1),[b,y]=bs.useState(!0),[x,_]=bs.useState(!1),[k,C]=bs.useState(!1),[P,E]=bs.useState(!1),z=bs.useRef(null),T=()=>{z.current&&(clearTimeout(z.current),z.current=null)},j=()=>{T(),F||(_(!0),C(!0))};bs.useEffect(()=>()=>T(),[]);const R=!0!==r?.customization?.disable_idle_animation,{getStarfieldTransform:O,getIconStyle:I}=Zv({enableTwinkling:R,enableFloating:R,enableRotation:R,enableScaling:R}),A=bs.useRef(!1),D=bs.useRef(0),M=bs.useRef(null),F=Nu({base:!0,md:!1})??!1,L=eb(r,F),N=!(!r?.customization?.enable_avatar_in_fab||!r?.bot_image),W=r?.agent_name?l("askAgent").replace("{name}",r.agent_name):l("askDori"),$=!1!==r?.customization?.enable_proactive_engagement,B=!0===r?.customization?.enable_standalone_quiz&&a&&!o?a.welcome_hook:null,H=i||B||n,V=$&&!t?H||r?.wellcomeMessage||l("imHereToHelp"):null,U=()=>{S();const e=++D.current;g("expanded"),y(!1),E(!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)};bs.useEffect(()=>{A.current||(A.current=!0,H&&!r?.customization?.disable_welcome_popup||!w()?(()=>{g("minimized"),y(!1);const e=setTimeout(()=>{v(!0)},0)})():U())},[]),bs.useEffect(()=>{const e=setInterval(()=>{w()&&U()},1e3);return()=>clearInterval(e)},[]),bs.useEffect(()=>{if(!H)return;if(r?.customization?.disable_welcome_popup)return;D.current++,M.current&&(clearTimeout(M.current),M.current=null),E(!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)}},[H]);const q=()=>{const t=i||n;t&&s(t),i&&Jo("nudge.page_followup.clicked"),e&&(e(),"minimized"===f&&(y(!1),setTimeout(()=>{g("expanded"),setTimeout(()=>{r?.customization?.disable_welcome_popup||setTimeout(()=>{y(!0)},50)},100)},0)))},Y=q,G="minimized"===f||N,Q=N&&F,K="right"===L.align?"32px 0px 32px 32px":"0px 32px 32px 32px";return hs.jsxs(pu,{position:"relative",transform:m?Q?"translateY(0) scale(1)":`translateY(calc(-50% + ${L.bottomSpacing}px)) scale(1)`:Q?"translateY(100px) scale(0.9)":`translateY(calc(-50% + ${L.bottomSpacing}px + 100px)) scale(0.9)`,opacity:m?1:0,onMouseLeave:()=>{F||(T(),z.current=setTimeout(()=>{_(!1),C(!1)},100))},children:[hs.jsx(kb,{channels:r?.merchant_support_channels,isOpen:x,onToggle:()=>_(!x),isMobile:F,onMouseEnter:j,onChatClick:e}),"expanded"===f&&V&&!r?.customization?.disable_welcome_popup&&hs.jsx(pu,{position:"absolute",bottom:"100%",[L.align]:"0",mb:2,w:{base:"90vw",md:"25vw"},maxW:{base:"90vw",md:"300px"},bg:h,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:Y,children:hs.jsxs(ym,{gap:1,align:"center",width:"100%",justifyContent:"flex-start",children:[hs.jsx(cm,{size:"xs",variant:"ghost","aria-label":"Close",onClick:e=>{e.stopPropagation(),i&&Jo("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:hs.jsx(vv,{boxSize:"16px"})}),hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"text",lineHeight:"1.75",flex:1,width:"100%",fontFamily:"system-ui, sans-serif",children:V})]})}),hs.jsx(lm,{borderRadius:G?"50%":K,borderWidth:0,bg:p,color:"text",border:"none !important",w:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"230px",md:"270px"}:{base:"120px",md:"150px"},minW:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"230px",md:"270px"}:{base:"120px",md:"150px"},h:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"96px",md:"112px"}:"auto",p:G?"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:G?"50%":K,cursor:"pointer",touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},onMouseEnter:j,justifyContent:"center",children:hs.jsxs(ym,{gap:G?0:2,position:"relative",w:"full",justify:G?"center":"space-between",overflow:"hidden",children:[hs.jsx(Lu,{fontSize:{base:"14px",md:"16px"},fontWeight:{base:"500",md:"600"},lineHeight:"1.5",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",color:"background",opacity:G?0:1,maxW:G?"0px":"200px",transition:"opacity 0.2s ease, max-width 0.35s ease",overflow:"hidden",children:W}),!x&&(r?.customization?.enable_avatar_in_fab&&r?.bot_image?hs.jsx(gm,{src:r.bot_image,alt:"",role:"presentation",boxSize:G?{base:"100px",md:"116px"}:{base:"80px",md:"92px"},borderRadius:"full",objectFit:"cover",flexShrink:0}):hs.jsx(zv,{boxSize:{base:"20px",md:"24px"},color:"background",transform:O(f,L),...I(),flexShrink:0}))]})})]})},Kb={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=>`Beantworte ${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"}},Xb=({hookText:e,stepCount:t,language:r,onStart:n,onSkipToChat:i,onDismiss:a})=>{const o=function(e){return Kb[e]||Kb.English}(r);return hs.jsxs(xm,{gap:3,align:"stretch",w:"full",children:[hs.jsxs(ym,{justify:"space-between",align:"start",children:[hs.jsxs(ym,{gap:2,align:"center",children:[hs.jsx(_v,{boxSize:"18px",color:"primary"}),hs.jsx(Lu,{fontSize:"16px",fontWeight:600,color:"text",lineHeight:"1.3",fontFamily:"system-ui, sans-serif",children:e})]}),hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"16px",color:"text",lineHeight:"1",children:"×"})})]}),hs.jsx(Lu,{fontSize:"13px",color:"mutedText",lineHeight:"1.5",fontFamily:"system-ui, sans-serif",children:o.subtitle(t)}),hs.jsx(lm,{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}),hs.jsx(pu,{as:"button",onClick:i,cursor:"pointer",alignSelf:"center",children:hs.jsx(Lu,{fontSize:"12px",color:"mutedText",fontFamily:"system-ui, sans-serif",_hover:{color:"text"},transition:"color 0.15s ease",children:o.skip})})]})},Jb="dori-quiz-dismissed";function Zb(){try{return"true"===sessionStorage.getItem(Jb)}catch{return!1}}function ey(){try{sessionStorage.setItem(Jb,"true")}catch{}}const ty=({onOpenWidget:e,onStartChat:t,onDismissed:r})=>{const{diagnosticFlow:n,diagnosticShown:i,markDiagnosticShown:a,effectiveLanguage:o}=uv(),s=o||"English",[l,c]=bs.useState("hidden"),[u,d]=bs.useState(!1),p=bs.useRef(null),h=bs.useRef(!1),f=!!n&&!i&&!Zb();return bs.useEffect(()=>(f&&"hidden"===l&&(p.current=setTimeout(()=>{c("teaser"),requestAnimationFrame(()=>{requestAnimationFrame(()=>d(!0))}),h.current||(h.current=!0,Xo()?.capture("quiz_card_impression"))},800)),f||"hidden"===l||(c("hidden"),d(!1)),()=>{p.current&&clearTimeout(p.current)}),[f]),"hidden"!==l&&n?hs.jsx(pu,{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:hs.jsxs(pu,{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&&hs.jsx(Xb,{hookText:n.welcome_hook,stepCount:n.steps.length,language:s,onStart:()=>{c("expanded"),Xo()?.capture("quiz_card_started")},onSkipToChat:()=>{d(!1),ey(),a(),Xo()?.capture("quiz_card_skip_to_chat"),setTimeout(()=>{c("hidden"),r?.(),e()},300)},onDismiss:()=>{d(!1),ey(),Xo()?.capture("quiz_card_dismiss"),setTimeout(()=>{c("hidden"),r?.()},300)}}),"expanded"===l&&hs.jsx(Sb,{flow:n,onComplete:(e,r)=>{a(),Xo()?.capture("quiz_card_completed"),d(!1),setTimeout(()=>{c("hidden"),t(e,void 0,r),Xo()?.capture("quiz_card_widget_opened")},350)}})]})}):null},ry="dori-session-context-v1";function ny(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 iy(){const[e,t]=bs.useState(()=>Rm()),[r,n]=bs.useState(()=>function(){try{const e=sessionStorage.getItem(ry);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=bs.useRef(null),a=bs.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(ry,JSON.stringify(e))}catch{}}(r),r})},[]);return bs.useEffect(()=>{a(Rm())},[a]),bs.useEffect(()=>{let e=window.location.href;const t=()=>{const t=window.location.href;t!==e&&(e=t,a(Rm()))};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:bs.useCallback(()=>a(Rm()),[a])}}function ay(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 oy(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 sy(e){return{title:e.name,brand:oy(e),price:ay(e),category:e.category||e.sub_category}}const ly="dori-page-followup-fired-count";function cy(){try{return parseInt(sessionStorage.getItem(ly)||"0",10)||0}catch{return 0}}function uy(){return"undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches}function dy(){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 py=({isWidgetOpen:e})=>(function({isWidgetOpen:e}){const t=uv(),{session:r,pageContext:n}=iy(),{botData:i,messages:a,chatState:o,isInputDisabled:s,setProactiveChips:l,proactiveChips:c,proactiveSuppressedThisSession:u,effectiveLanguage:d}=t,p=bs.useRef(0),h=bs.useRef(null),f=bs.useRef(null),g=bs.useRef(null),m=bs.useRef(!1),v=bs.useRef(null),b=bs.useRef(null),y=bs.useRef(null);bs.useEffect(()=>{e?(v.current=Date.now(),m.current=!1):(p.current=0,h.current=null,m.current=!1,v.current=null,null!==f.current&&(window.clearTimeout(f.current),f.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=bs.useCallback(()=>{null!==f.current&&(window.clearTimeout(f.current),f.current=null),g.current&&(g.current.abort(),g.current=null)},[]),_=bs.useCallback(()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null)},[]);bs.useEffect(()=>()=>{x(),_()},[x,_]),bs.useEffect(()=>{o.isRequestInProgress&&(x(),_())},[o.isRequestInProgress,x,_]);const k=!!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(sy(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;bs.useEffect(()=>{e&&k&&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&&h.current!==S&&(h.current=S,x(),f.current=window.setTimeout(async()=>{if(f.current=null,!e||u||p.current>=3||!i.business_description)return;const t=new AbortController;g.current=t;const a=ny({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 zm(a,"post_answer",o,t.signal,{lastUserMessage:w.lastUserMessage,lastAnswerProducts:w.products.length>0?w.products:null});g.current=null,c&&Jo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:a.suggested_intent,nudge_position:"post_answer"}),s&&(p.current+=1,l(s,"post_answer"),Jo("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,k]),bs.useEffect(()=>{if(!e)return;if(!k)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=ny({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 zm(o,"pre_message",null,t.signal);y.current=null,c&&Jo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:o.suggested_intent,nudge_position:"pre_message"}),s&&(m.current=!0,l(s,"pre_message"),Jo("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,k])}({isWidgetOpen:e}),function({isWidgetOpen:e}){const t=uv(),{session:r,pageContext:n}=iy(),{botData:i,dynamicWelcomeMessage:a,setDynamicFollowupNudgeMessage:o,proactiveSuppressedThisSession:s,effectiveLanguage:l,diagnosticFlow:c,diagnosticShown:u}=t,d=bs.useRef(!1),p=bs.useRef(Date.now()),h=bs.useRef(Date.now()),f=bs.useRef(null),g=bs.useRef(null),m=bs.useCallback(()=>{null!==f.current&&(window.clearInterval(f.current),f.current=null),g.current&&(g.current.abort(),g.current=null)},[]);bs.useEffect(()=>{d.current=!1,p.current=Date.now(),h.current=Date.now()},[n.page_link]);const v=bs.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(cy()>=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 f=Math.floor((Date.now()-p.current)/1e3),v=Math.floor((Date.now()-h.current)/1e3),b=ny({businessDescription:i.business_description,lang:String(l??"English"),pageContext:n,session:r,dwellSec:f,scrollPercent:dy(),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(Sm.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=cy()+1;try{sessionStorage.setItem(ly,String(e))}catch{}}(),Jo("nudge.page_followup.fired",{page_type:b.page_type,suggested_intent:b.suggested_intent,trigger_signal:t,dwell_sec:f}))},[i,e,s,n,r,a,o,l,m,c,u]),b=bs.useRef(v);bs.useEffect(()=>{b.current=v},[v]),bs.useEffect(()=>{if(i){if(!e)return f.current=window.setInterval(()=>{if(d.current)return void m();const e=Date.now()-p.current,t=dy();if(e>=2e4)b.current("dwell");else if(e>=8e3&&t>=60)b.current("scroll");else if(!uy()&&Date.now()-h.current>=1e4)return void b.current("idle")},500),()=>{null!==f.current&&(window.clearInterval(f.current),f.current=null)};m()}},[i,e,n.page_link,m]),bs.useEffect(()=>{if(uy())return;const e=()=>{h.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]),bs.useEffect(()=>m,[m])}({isWidgetOpen:e}),null);function hy(){const[e,r]=bs.useState(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")}),[n,i]=bs.useState(!1),[a,o]=bs.useState(""),{botData:s,updateBotData:l,diagnosticFlow:c,diagnosticShown:u}=uv(),[d,p]=bs.useState(null),[h,f]=bs.useState(!1),g=!0===s?.customization?.disable_welcome_popup,m=!(!0!==s?.customization?.enable_standalone_quiz||!c||u||h||e||Zb()||g),{isCurrentPathBanned:v}=(e=>{const[t,r]=bs.useState("");return bs.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||[]);bs.useEffect(()=>{s?.merchant_support_channels?.crisp?.enabled&&(rb(),tb()&&window.$crisp.push(["on","chat:closed",()=>{rb()}]))},[s?.merchant_support_channels?.crisp?.enabled]),bs.useEffect(()=>{s?.merchant_support_channels?.chatra?.enabled&&(hb("hideChatraWidget invoked"),ob=!0,function(e){if(fb())return void e();const t=Date.now(),r=setInterval(()=>{fb()?(clearInterval(r),e()):Date.now()-t>ib&&(clearInterval(r),hb("Chatra never became ready within",ib,"ms"))},200)}(()=>{sb||mb("initial hide")}),null!==lb||"undefined"==typeof window||sb||(cb=Date.now(),lb=setInterval(bb,1e3)))},[s?.merchant_support_channels?.chatra?.enabled]),function({sharingId:e}){const{initializeBot:r,resetBot:n}=uv(),i=bs.useRef(void 0);bs.useEffect(()=>{i.current&&e&&i.current!==e&&n?.(),i.current=e,e&&!t()&&r(e)},[e,r,n])}({sharingId:a});const b=Nu({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`}})(eb(s,b),!(!s?.customization?.enable_avatar_in_fab||!s?.bot_image)&&b);bs.useEffect(()=>{window.chatbotData?o(window.chatbotData.sharingID):es("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()}})()},[]),bs.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=bs.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 _=bs.useCallback((e,t,n)=>{f(!0),p({message:e,imageUrl:t,apiMessage:n}),r(!0)},[]),k=bs.useCallback(()=>{p(null)},[]);return hs.jsx(pu,{fontFamily:"system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:!x&&hs.jsxs(hs.Fragment,{children:[hs.jsx(py,{isWidgetOpen:e}),hs.jsx(Gb,{isOpen:e,onClose:()=>r(!1),isExpanded:n,onToggleExpand:e=>i(void 0===e?!n:e),pendingChat:d,onPendingChatConsumed:k}),m&&hs.jsx(ty,{onOpenWidget:()=>r(!0),onStartChat:_,onDismissed:()=>f(!0)}),!e&&hs.jsx(pu,{position:"fixed",zIndex:"1000000",...y,children:hs.jsx(Qb,{onClick:()=>{r(!e)},suppressBubble:m})})]})})}function fy(){return hs.jsx(hy,{})}console.log("isDevelopment",!1);var gy={};const my=is(Lc),vy=is(Ul);function by(){throw new Error("[Dori Widget] react-dom/server is excluded from this build (see react-dom-server-stub.ts)")}const yy=by,xy=by,_y={renderToString:yy,renderToStaticMarkup:xy},ky=is(Object.freeze(Object.defineProperty({__proto__:null,default:_y,renderToStaticMarkup:xy,renderToString:yy},Symbol.toStringTag,{value:"Module"})));var wy,Sy,Cy,Py,Ey,zy,Ty={exports:{}};function jy(){return Sy?wy:(Sy=1,wy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Ry(){if(Py)return Cy;Py=1;var e=jy();function t(){}function r(){}return r.resetWarningCache=t,Cy=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 Oy(){return Ey||(Ey=1,Ty.exports=Ry()()),Ty.exports}function Iy(){if(zy)return gy;zy=1,Object.defineProperty(gy,"__esModule",{value:!0});var e=vs(),t=my,r=vy,n=Ms(),i=ky,a=Oy();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!==rs?rs:"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,h,f,g,m;t=u,r=function(e,t,n){if(!l(t)||d(t)||p(t)||h(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 f(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)},h=function(e){return"[object Boolean]"==o.call(e)},f=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,h=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},f=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",f({},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,_=void 0!==x&&x,k=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 h(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)?h(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],E=C[1],z="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(S.current)try{if("function"==typeof i&&i(S.current),_){var e=S.current.shadowRoot;return void E(e)}var t=S.current.attachShadow({mode:c,delegatesFocus:d});y.length>0&&(t.adoptedStyleSheets=y),E(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,f({key:z,ref:S},w),(P||_)&&s.default.createElement(m.Provider,{value:P},_?s.default.createElement(v,{shadowroot:c,shadowrootmode:c},t.render({root:P,ssr:_,children:k})):s.default.createElement(b,{root:P},t.render({root:P,ssr:_,children:k})))))});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 _=new WeakMap,k=x({},"emotion",function(e){var r,n=e.root,i=e.children,a=_.get(n)||(r=l.default({container:n,key:"react-shadow"}),_.set(n,r),r);return s.default.createElement(t.CacheProvider,{value:a},s.default.createElement(s.default.Fragment,null,i))});return gy.default=k,gy}const Ay=ns(Iy()),Dy=":host",My=(e,t,r)=>e?.[t]||r,Fy=e=>{const t={cssVarsRoot:Dy,conditions:{light:`${Dy} &, .light &`},preflight:{scope:Dy},globalCss:{[Dy]:Jg.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:My(e,"primary","#0070f3"),background:My(e,"background","#f7fafc"),text:My(e,"textPrimary","#1a202c"),accent:My(e,"error","#ff383c")}))(e),a=gv(r,n,.05),o=pv(n,.6),s=gv(r,n,.1),l=fv(t,10),c=fv(t,15);return{primary:{value:t},background:{value:r},text:{value:n},error:{value:i},errorBackground:{value:pv(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:a},veryLightBackground:{value:hv(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 Eh(Jg,t)};Fy();const Ly={primary:"#0070f3",background:"#ffffff",textPrimary:"#1a202c",error:"#ff383c"};function Ny({children:e}){const{botData:t}=uv(),r=bs.useMemo(()=>Fy(t?.theme??Ly),[t?.theme]);return hs.jsx(Jc,{value:r,children:e})}function Wy({children:e}){const[t,r]=bs.useState(null),[n,i]=bs.useState(null);return bs.useEffect(()=>{if(!t?.shadowRoot||n)return;const e=Vl({key:"root",container:t.shadowRoot});i(e)},[t,n]),hs.jsx(Ay.div,{ref:r,style:{backgroundColor:"transparent",display:"block"},"data-nosnippet":"",children:t&&n&&hs.jsx(bd,{value:()=>t.shadowRoot??document,children:hs.jsx(wc,{value:n,children:hs.jsx(cv,{children:hs.jsx(Ny,{children:e})})})})})}class $y extends bs.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),Zo(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}let By=!1;const Hy=Object.freeze(Object.defineProperty({__proto__:null,initializeDoriWidget:function(){if(By)return console.log("[Dori Widget] Already initialized, skipping"),()=>{};By=!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=Ns.createRoot(t);r.render(hs.jsx(ys.StrictMode,{children:hs.jsx($y,{children:hs.jsx(Wy,{children:hs.jsx(fy,{})})})})),e.push(r);const n=()=>{k(()=>import("./MarkdownContent-BNhXJr_w.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()),By=!1}}},Symbol.toStringTag,{value:"Module"}));export{pu as B,fu as E,gm as I,vm as L,Lu as T,uu as a,Vc as b,Qc as c,Zg as d,Hy as e,ns as g,hs as j,Bc as m,bs as r,Xc as u};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MarkdownContent-C1UsAsh-.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 as h,i as f,j as g,k as m,n as v,o as b,p as y,q as x,r as _,_ 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,E="undefined"!=typeof globalThis?globalThis:P;"undefined"==typeof self&&(E.self=E),"undefined"==typeof File&&(E.File=function(){});var z=Array.prototype,T=z.forEach,j=z.indexOf,R=null==E?void 0:E.navigator,O=null==E?void 0:E.document,I=null==E?void 0:E.location,A=null==E?void 0:E.fetch,D=null!=E&&E.XMLHttpRequest&&"withCredentials"in new E.XMLHttpRequest?E.XMLHttpRequest:void 0,M=null==E?void 0:E.AbortController,F=null==R?void 0:R.userAgent,L=null!=P?P:{},N={DEBUG:!1,LIB_VERSION:"1.343.2"};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,J=X.hasOwnProperty,Z=X.toString,ee=K||function(e){return"[object Array]"===Z.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(J.call(e,t))return!1;return!0}return!1},ie=e=>void 0===e,ae=e=>"[object String]"==Z.call(e),oe=e=>ae(e)&&0===e.trim().length,se=e=>null===e,le=e=>ie(e)||se(e),ce=e=>"[object Number]"==Z.call(e)&&e==e,ue=e=>ce(e)&&e>0,de=e=>"[object Boolean]"===Z.call(e),pe=e=>Y(q,e);function he(e){return null===e||"object"!=typeof e}function fe(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function ge(e){return!ie(Event)&&function(e,t){try{return e instanceof t}catch(r){return!1}}(e,Event)}var me=[!0,"true",1,"1","yes"],ve=e=>Y(me,e),be=[!1,"false",0,"0","no"];function ye(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),ye(i||r,t,r,n))}class xe{constructor(e){this.t={},this.i=e.i,this.o=ye(e.bucketSize,0,100,e.h),this.m=ye(e.refillRate,0,this.o,e.h),this.$=ye(e.refillInterval,0,864e5,e.h)}S(e,t){var r=t-e.lastAccess,n=Math.floor(r/this.$);if(n>0){var i=n*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+n*this.$}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.S(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 _e,ke,we,Se="Mobile",Ce="iOS",Pe="Android",Ee="Tablet",ze=Pe+" "+Ee,Te="iPad",je="Apple",Re=je+" Watch",Oe="Safari",Ie="BlackBerry",Ae="Samsung",De=Ae+"Browser",Me=Ae+" Internet",Fe="Chrome",Le=Fe+" OS",Ne=Fe+" "+Ce,We="Internet Explorer",$e=We+" "+Se,Be="Opera",He=Be+" Mini",Ve="Edge",Ue="Microsoft "+Ve,qe="Firefox",Ye=qe+" "+Ce,Ge="Nintendo",Qe="PlayStation",Ke="Xbox",Xe=Pe+" "+Se,Je=Se+" "+Oe,Ze="Windows",et=Ze+" Phone",tt="Nokia",rt="Ouya",nt="Generic",it=nt+" "+Se.toLowerCase(),at=nt+" "+Ee.toLowerCase(),ot="Konqueror",st="(\\d+(\\.\\d+)?)",lt=new RegExp("Version/"+st),ct=new RegExp(Ke,"i"),ut=new RegExp(Qe+" \\w+","i"),dt=new RegExp(Ge+" \\w+","i"),pt=new RegExp(Ie+"|PlayBook|BB10","i"),ht={"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"},ft=function(e,t){return t=t||"",Y(e," OPR/")&&Y(e,"Mini")?He:Y(e," OPR/")?Be:pt.test(e)?Ie:Y(e,"IE"+Se)||Y(e,"WPDesktop")?$e:Y(e,De)?Me:Y(e,Ve)||Y(e,"Edg/")?Ue:Y(e,"FBIOS")?"Facebook "+Se:Y(e,"UCWEB")||Y(e,"UCBrowser")?"UC Browser":Y(e,"CriOS")?Ne:Y(e,"CrMo")||Y(e,Fe)?Fe:Y(e,Pe)&&Y(e,Oe)?Xe:Y(e,"FxiOS")?Ye:Y(e.toLowerCase(),ot.toLowerCase())?ot:((e,t)=>{return t&&Y(t,je)||Y(r=e,Oe)&&!Y(r,Fe)&&!Y(r,Pe);var r})(e,t)?Y(e,Se)?Je:Oe:Y(e,qe)?qe:Y(e,"MSIE")||Y(e,"Trident/")?We:Y(e,"Gecko")?qe:""},gt={[$e]:[new RegExp("rv:"+st)],[Ue]:[new RegExp(Ve+"?\\/"+st)],[Fe]:[new RegExp("("+Fe+"|CrMo)\\/"+st)],[Ne]:[new RegExp("CriOS\\/"+st)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+st)],[Oe]:[lt],[Je]:[lt],[Be]:[new RegExp("(Opera|OPR)\\/"+st)],[qe]:[new RegExp(qe+"\\/"+st)],[Ye]:[new RegExp("FxiOS\\/"+st)],[ot]:[new RegExp("Konqueror[:/]?"+st,"i")],[Ie]:[new RegExp(Ie+" "+st),lt],[Xe]:[new RegExp("android\\s"+st,"i")],[Me]:[new RegExp(De+"\\/"+st)],[We]:[new RegExp("(rv:|MSIE )"+st)],Mozilla:[new RegExp("rv:"+st)]},mt=function(e,t){var r=ft(e,t),n=gt[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},vt=[[new RegExp(Ke+"; "+Ke+" (.*?)[);]","i"),e=>[Ke,e&&e[1]||""]],[new RegExp(Ge,"i"),[Ge,""]],[new RegExp(Qe,"i"),[Qe,""]],[pt,[Ie,""]],[new RegExp(Ze,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[et,""];if(new RegExp(Se).test(t)&&!/IEMobile\b/.test(t))return[Ze+" "+Se,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=ht[n]||"";return/arm/i.test(t)&&(i="RT"),[Ze,i]}return[Ze,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[Ce,t.join(".")]}return[Ce,""]}],[/(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("("+Pe+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Pe+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Pe,t.join(".")]}return[Pe,""]}],[/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/,[Le,""]],[/Linux|debian/i,["Linux",""]]],bt=function(e){return dt.test(e)?Ge:ut.test(e)?Qe:ct.test(e)?Ke:new RegExp(rt,"i").test(e)?rt:new RegExp("("+et+"|WPDesktop)","i").test(e)?et:/iPad/.test(e)?Te:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Re:pt.test(e)?Ie:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(tt,"i").test(e)?tt:/(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(Se).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)?Pe:ze:new RegExp("(pda|"+Se+")","i").test(e)?it:new RegExp(Ee,"i").test(e)&&!new RegExp(Ee+" pc","i").test(e)?at:""},yt=e=>e instanceof Error;function xt(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return we&&r.length===ke||(ke=r.length,we=r.reduce((r,n)=>{_e||(_e={});var i=_e[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,_e[n]=[l,c];break}}return r},{})),we}}class _t{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}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(t),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?t.skipFirstLines: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(e){var t;return{chunkIdMap:xt(this.stackParser),skipFirstLines:null!==(t=e.skipFirstLines)&&void 0!==t?t:1}}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)})}}var kt="?";function wt(e,t,r,n,i){var a={platform:e,filename:t,function:"<anonymous>"===r?kt:r,in_app:!0};return ie(n)||(a.lineno=n),ie(i)||(a.colno=i),a}var St=(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]:kt,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Ct=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Pt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Et=/\((\S*)(?::(\d+))(?::(\d+))\)/,zt=(e,t)=>{var r=Ct.exec(e);if(r){var[,n,i,a]=r;return wt(t,n,kt,+i,+a)}var o=Pt.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var s=Et.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[l,c]=St(o[1]||kt,o[2]);return wt(t,c,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},Tt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rt=(e,t)=>{var r=Tt.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=jt.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],a=r[1]||kt;return[a,i]=St(a,i),wt(t,i,a,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},Ot=/\(error: (.*)\)/;class It{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 At{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 Dt{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 Mt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Ft{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(Mt);return n&&(t=n[1],r=n[2]),[t,r]}}var Lt=["fatal","error","warning","log","info","debug"];function Nt(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 Wt{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 ge(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: "+Nt(e)}isSeverityLevel(e){return ae(e)&&!oe(e)&&Lt.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(yt(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(r){return}}}class $t{match(e){return ge(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+Nt(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Bt{match(e){return he(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 Ht{match(e){return fe(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return he(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(he(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 Vt=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,n={k:function(t){if(P&&(N.DEBUG||L.POSTHOG_DEBUG||r)&&!ie(P.console)&&P.console){for(var n=("__rrweb_original__"in P.console[t]?P.console[t].__rrweb_original__:P.console[t]),i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n(e,...a)}},info:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("log",...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("warn",...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("error",...t)},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=>{n.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>Vt(e+" "+t,r)};return n},Ut=Vt("[PostHog.js]"),qt=Ut.createLogger,Yt=qt("[ExternalScriptsLoader]"),Gt=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Yt.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");if("head"===e.config.external_scripts_inject_target)O.head.appendChild(n);else{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)};L.__PosthogExtensions__=L.__PosthogExtensions__||{},L.__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);Gt(e,a,r)},L.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Gt(e,n,r)};var Qt={};function Kt(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)===Qt)return}function Xt(e,t,r){if(!le(e)){if(ee(e))return Kt(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Qt)return}else for(var i in e)if(J.call(e,i)&&t.call(r,e[i],i)===Qt)return}}var Jt=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 Kt(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},Zt=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 Kt(r,function(t){Kt(t,function(t){e.push(t)})}),e};function er(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 tr=function(e){try{return e()}catch(t){return}},rr=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){Ut.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ut.critical(i)}}},nr=function(e){var t={};return Xt(e,function(e,r){(ae(e)&&e.length>0||ce(e))&&(t[r]=e)}),t},ir=["herokuapp.com","vercel.app","netlify.app"];function ar(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 ir)if(r===n)return!1;return!0}function or(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function sr(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 lr="$people_distinct_id",cr="__alias",ur="__timers",dr="$autocapture_disabled_server_side",pr="$heatmaps_enabled_server_side",hr="$exception_capture_enabled_server_side",fr="$error_tracking_suppression_rules",gr="$error_tracking_capture_extension_exceptions",mr="$web_vitals_enabled_server_side",vr="$dead_clicks_enabled_server_side",br="$product_tours_enabled_server_side",yr="$web_vitals_allowed_metrics",xr="$session_recording_remote_config",_r="$sesid",kr="$session_is_sampled",wr="$enabled_feature_flags",Sr="$early_access_features",Cr="$feature_flag_details",Pr="$stored_person_properties",Er="$stored_group_properties",zr="$surveys",Tr="$flag_call_reported",jr="$user_state",Rr="$client_session_props",Or="$capture_rate_limit",Ir="$initial_campaign_params",Ar="$initial_referrer_info",Dr="$initial_person_info",Mr="$epp",Fr="__POSTHOG_TOOLBAR__",Lr="$posthog_cookieless",Nr=[lr,cr,"__cmpns",ur,"$session_recording_enabled_server_side",pr,_r,wr,fr,jr,Sr,Cr,Er,Pr,zr,Tr,Rr,Or,Ir,Ar,Mr,Dr,"$conversations_widget_session_id","$conversations_ticket_id","$conversations_widget_state","$conversations_user_traits"];function Wr(e){return e instanceof Element&&(e.id===Fr||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function $r(e){return!!e&&1===e.nodeType}function Br(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Hr(e){return!!e&&3===e.nodeType}function Vr(e){return!!e&&11===e.nodeType}function Ur(e){return e?G(e).split(/\s+/):[]}function qr(e){var t=null==P?void 0:P.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Yr(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 Ur(t)}function Gr(e){return le(e)?null:G(e).split(/(\s+)/).filter(e=>hn(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qr(e){var t="";return an(e)&&!on(e)&&e.childNodes&&e.childNodes.length&&Xt(e.childNodes,function(e){var r;Hr(e)&&e.textContent&&(t+=null!==(r=Gr(e.textContent))&&void 0!==r?r:"")}),G(t)}function Kr(e){return ie(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Xr=["a","button","form","input","select","textarea","label"];function Jr(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 Zr(e){var t=e.parentNode;return!(!t||!$r(t))&&t}var en=["next","previous","prev",">","<"],tn=[".ph-no-rageclick",".ph-no-capture"],rn=e=>!e||Br(e,"html")||!$r(e),nn=(e,t)=>{if(!P||rn(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!Br(i,"body");)if(Vr(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var a=Zr(i);if(!a)break;if(t||Xr.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 an(e){for(var t=e;t.parentNode&&!Br(t,"body");t=t.parentNode){var r=Yr(t);if(Y(r,"ph-sensitive")||Y(r,"ph-no-capture"))return!1}if(Y(Yr(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 on(e){return!!(Br(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Br(e,"select")||Br(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var sn="(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})",ln=new RegExp("^(?:"+sn+")$"),cn=new RegExp(sn),un="\\d{3}-?\\d{2}-?\\d{4}",dn=new RegExp("^("+un+")$"),pn=new RegExp("("+un+")");function hn(e,t){if(void 0===t&&(t=!0),le(e))return!1;if(ae(e)){if(e=G(e),(t?ln:cn).test((e||"").replace(/[- ]/g,"")))return!1;if((t?dn:pn).test(e))return!1}return!0}function fn(e){var t=Qr(e);return hn(t=(t+" "+gn(e)).trim())?t:""}function gn(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Xt(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Qr(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+gn(e)).trim())}catch(i){Ut.error("[AutoCapture]",i)}}),t}function mn(e){return e.replace(/"|\\"/g,'\\"')}function vn(e){var t=e.attr__class;return t?ee(t)?t:Ur(t):void 0}class bn{constructor(e){this.disabled=!1===e;var t=re(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&r-n.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var yn=e=>{var t=null==O?void 0:O.createElement("a");return ie(t)?null:(t.href=e,t)},xn=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){Ut.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},_n=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 h=l;return null!=s&&(h+="?"+u.join("&")),null!=a&&(h+="#"+a),h},kn=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},wn="$copy_autocapture",Sn=qt("[AutoCapture]");function Cn(e,t){return t.length>e?t.slice(0,e)+"...":t}function Pn(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!$r(t));return t}class En{constructor(e){this.P=!1,this.T=null,this.I=!1,this.instance=e,this.rageclicks=new bn(e.config.rageclick),this.C=null}get R(){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}F(){if(this.isBrowserSupported()){if(P&&O){var e=e=>{e=e||(null==P?void 0:P.event);try{this.O(e)}catch(An){Sn.error("Failed to capture event",An)}};if(sr(O,"submit",e,{capture:!0}),sr(O,"change",e,{capture:!0}),sr(O,"click",e,{capture:!0}),this.R.capture_copied_text){var t=e=>{e=e||(null==P?void 0:P.event),this.O(e,wn)};sr(O,"copy",t,{capture:!0}),sr(O,"cut",t,{capture:!0})}}}else Sn.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.I=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[dr]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.C=e}getElementSelectors(e){var t,r=[];return null==(t=this.C)||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[dr],n=this.T;if(se(n)&&!de(r)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!r;return!!this.instance.config.autocapture&&!i}O(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=Kr(e);Hr(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,e.timeStamp||(new Date).getTime())&&function(e,t){if(!P||rn(e))return!1;var r,n,i;if(de(t)?(r=!!t&&tn,n=void 0):(r=null!==(i=null==t?void 0:t.css_selector_ignorelist)&&void 0!==i?i:tn,n=null==t?void 0:t.content_ignorelist),!1===r)return!1;var{targetElementList:a}=nn(e,!1);return!function(e,t){if(!1===e||ie(e))return!1;var r;if(!0===e)r=en;else{if(!ee(e))return!1;if(e.length>10)return Ut.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:n}=e;return r.some(e=>t.includes(e)||n.includes(e))})}(n,a.map(e=>{var t;return{safeText:Qr(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!Jr(a,r)}(n,this.instance.config.rageclick)&&this.O(e,"$rageclick");var i=t===wn;if(n&&function(e,t,r,n,i){var a,o,s,l;if(void 0===r&&(r=void 0),!P||rn(e))return!1;if(null!=(a=r)&&a.url_allowlist&&!qr(r.url_allowlist))return!1;if(null!=(o=r)&&o.url_ignorelist&&qr(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}=nn(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(!Jr(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 h=e.tagName.toLowerCase();switch(h){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&&(Xr.indexOf(h)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.R,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&&!Br(u,"body");)Vr(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p,h,f=[],g={},m=!1,v=!1;if(Xt(c,e=>{var t=an(e);"a"===e.tagName.toLowerCase()&&(m=e.getAttribute("href"),m=t&&m&&hn(m)&&m),Y(Yr(e),"ph-no-capture")&&(v=!0),f.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),a={tag_name:i};Xr.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?a.$el_text=Cn(1024,fn(e)):a.$el_text=Cn(1024,Qr(e)));var o=Yr(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),Xt(e.attributes,function(r){var i;if((!on(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&hn(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=Ur(o).join(" ")),a["attr__"+r.name]=Cn(1024,o)}});for(var s=1,l=1,c=e;c=Pn(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(!an(e))return{};var t={};return Xt(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&&hn(n)&&(t[r]=n)}}),t}(e);Jt(g,r)}),v)return{props:{},explicitNoCapture:v};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?f[0].$el_text=fn(e):f[0].$el_text=Qr(e)),m){var b,y;f[0].attr__href=m;var x=null==(b=yn(m))?void 0:b.host,_=null==P||null==(y=P.location)?void 0:y.host;x&&_&&x!==_&&(d=m)}return{props:Jt({$event_type:i.type,$ce_version:1},l?{}:{$elements:f},{$elements_chain:(h=f,p=h.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:vn(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return er(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return n.attributes[t]=r}),n}),p.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 er(a).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[mn(t.toString())]=mn(r.toString())}),(n+=":")+er(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";"))},null!=(r=f[0])&&r.$el_text?{$el_text:null==(n=f[0])?void 0:n.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},g)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.R.element_attribute_ignorelist,elementsChainAsString:this.I});if(o)return!1;var s=this.getElementSelectors(n);if(s&&s.length>0&&(a.$element_selectors=s),t===wn){var l,c=Gr(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 zn="0123456789abcdef";class Tn{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 Tn(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+zn.charAt(this.bytes[t]>>>4)+zn.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 Tn(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 jn{constructor(){this.A=0,this.j=0,this.D=new In}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.j++,this.j>4398046511103&&(this.A++,this.L())}return Tn.fromFieldsV7(this.A,Math.trunc(this.j/Math.pow(2,30)),this.j&Math.pow(2,30)-1,this.D.nextUint32())}L(){this.j=1024*this.D.nextUint32()+(1023&this.D.nextUint32())}}var Rn,On=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&&(On=e=>crypto.getRandomValues(e));class In{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(On(this.N),this.U=0),this.N[this.U++]}}var An,Dn=()=>Mn().toString(),Mn=()=>(Rn||(Rn=new jn)).generate(),Fn="",Ln=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Nn={H:()=>!!O,B:function(e){Ut.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(Nn.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),Fn)return Fn;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_"+Dn();!Fn&&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",Fn=a)}return Fn}(e);if(!r){var n=(i=e.match(Ln))?i[0]:"";n!==r&&Ut.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&&Ut.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{Nn.G(e,"",-1,t)}catch(r){return}}},Wn=null,$n={H:function(){if(!se(Wn))return Wn;var e=!0;if(ie(P))e=!1;else try{var t="__mplssupport__";$n.G(t,"xyz"),'"xyz"'!==$n.q(t)&&(e=!1),$n.V(t)}catch(An){e=!1}return e||Ut.error("localStorage unsupported; falling back to cookie store"),Wn=e,e},B:function(e){Ut.error("localStorage error: "+e)},q:function(e){try{return null==P?void 0:P.localStorage.getItem(e)}catch(An){$n.B(An)}return null},W:function(e){try{return JSON.parse($n.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==P||P.localStorage.setItem(e,JSON.stringify(t))}catch(An){$n.B(An)}},V:function(e){try{null==P||P.localStorage.removeItem(e)}catch(An){$n.B(An)}}},Bn=["$device_id","distinct_id",_r,kr,Mr,Dr],Hn={},Vn={H:function(){return!0},B:function(e){Ut.error("memoryStorage error: "+e)},q:function(e){return Hn[e]||null},W:function(e){return Hn[e]||null},G:function(e,t){Hn[e]=t},V:function(e){delete Hn[e]}},Un=null,qn={H:function(){if(!se(Un))return Un;if(Un=!0,ie(P))Un=!1;else try{var e="__support__";qn.G(e,"xyz"),'"xyz"'!==qn.q(e)&&(Un=!1),qn.V(e)}catch(An){Un=!1}return Un},B:function(e){Ut.error("sessionStorage error: ",e)},q:function(e){try{return null==P?void 0:P.sessionStorage.getItem(e)}catch(An){qn.B(An)}return null},W:function(e){try{return JSON.parse(qn.q(e))||null}catch(t){}return null},G:function(e,t){try{null==P||P.sessionStorage.setItem(e,JSON.stringify(t))}catch(An){qn.B(An)}},V:function(e){try{null==P||P.sessionStorage.removeItem(e)}catch(An){qn.B(An)}}},Yn=((An={})[An.PENDING=-1]="PENDING",An[An.DENIED=0]="DENIED",An[An.GRANTED=1]="GRANTED",An);class Gn{constructor(e){this._instance=e}get R(){return this._instance.config}get consent(){return this.J()?Yn.DENIED:this.K}isOptedOut(){return"always"===this.R.cookieless_mode||this.consent===Yn.DENIED||this.consent===Yn.PENDING&&(this.R.opt_out_capturing_by_default||"on_reject"===this.R.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Yn.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.R.cookie_expiration,this.R.cross_subdomain_cookie,this.R.secure_cookie)}reset(){this.Y.V(this.X,this.R.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 ve(e)?Yn.GRANTED:Y(be,e)?Yn.DENIED:Yn.PENDING}get Y(){if(!this.Z){var e=this.R.opt_out_capturing_persistence_type;this.Z="localStorage"===e?$n:Nn;var t="localStorage"===e?Nn:$n;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(ve(t.q(this.X))),t.V(this.X,this.R.cross_subdomain_cookie))}return this.Z}J(){return!!this.R.respect_dnt&&!!or([null==R?void 0:R.doNotTrack,null==R?void 0:R.msDoNotTrack,L.doNotTrack],e=>ve(e))}}var Qn=qt("[Dead Clicks]"),Kn=()=>!0,Xn=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(vr)),n=e.instance.config.capture_dead_clicks;return de(n)?n:!!re(n)||r};class Jn{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({[vr]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Qn.error("failed to load script",t):e()})}et(){var e;if(O){if(!this.tt&&null!=(e=L.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=re(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=L.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(O),Qn.info("starting...")}}else Qn.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Qn.info("stopping..."))}}var Zn=qt("[ExceptionAutocapture]");class ei{constructor(e){var t,r,n;this.rt=()=>{var e;if(P&&this.isEnabled&&null!=(e=L.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=L.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=L.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=L.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.R.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.R.capture_unhandled_rejections&&(this.nt=r(this.captureException.bind(this))),!this.ot&&this.R.capture_console_errors&&(this.ot=n(this.captureException.bind(this)))}catch(An){Zn.error("failed to start",An),this.ut()}}},this._instance=e,this.ht=!(null==(t=this._instance.persistence)||!t.props[hr]),this.dt=new xe({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:Zn}),this.R=this.vt(),this.startIfEnabledOrStop()}vt(){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.ht:e)&&(t=B({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.R.capture_console_errors||this.R.capture_unhandled_errors||this.R.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Zn.info("enabled"),this.ut(),this.it(this.rt)):this.ut()}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return Zn.error("failed to load script",t);e()})}ut(){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.ht=!!t||!1,this._instance.persistence&&this._instance.persistence.register({[hr]:this.ht}),this.R=this.vt(),this.startIfEnabledOrStop()}onConfigChange(){this.R=this.vt()}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)?Zn.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function ti(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 ri{constructor(e){var t;this._instance=e,this.ct=(null==P||null==(t=P.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Ut.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ft&&this.ft(),this.ft=void 0,Ut.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(P&&P.history){var r=this;null!=(e=P.history.pushState)&&e.__posthog_wrapped__||ti(P.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r._t("pushState")}),null!=(t=P.history.replaceState)&&t.__posthog_wrapped__||ti(P.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r._t("replaceState")}),this.bt()}}_t(e){try{var t,r=null==P||null==(t=P.location)?void 0:t.pathname;if(!r)return;r!==this.ct&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.ct=r}catch(An){Ut.error("Error capturing "+e+" pageview",An)}}bt(){if(!this.ft){var e=()=>{this._t("popstate")};sr(P,"popstate",e),this.ft=()=>{P&&P.removeEventListener("popstate",e)}}}}var ni=qt("[SegmentIntegration]"),ii="posthog-js";function ai(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 h=(null==(s=t.exception)?void 0:s.values)||[],f=h.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=h[0])?void 0:l.value)||t.message,$exception_type:null==(c=h[0])?void 0:c.type,$exception_level:t.level,$exception_list:f,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=h[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=h[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 oi{constructor(e,t,r,n,i,a){this.name=ii,this.setupOnce=function(o){o(ai(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==a||a}))}}}var si=null!=P&&P.location?kn(P.location.hash,"__posthog")||kn(location.hash,"state"):null,li="_postHogToolbarParams",ci=qt("[Toolbar]"),ui=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(ui||{});class di{constructor(e){this.instance=e}yt(e){L.ph_toolbar_state=e}wt(){var e;return null!==(e=L.ph_toolbar_state)&&void 0!==e?e:ui.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(An){return!1}t=null==P?void 0:P.localStorage}var n,i=si||kn(e.hash,"__posthog")||kn(e.hash,"state"),a=i?tr(()=>JSON.parse(atob(decodeURIComponent(i))))||tr(()=>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(li)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(An){return!1}}xt(e){var t=L.ph_load_toolbar||L.ph_load_editor;!le(t)&&te(t)?t(e,this.instance):ci.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==O||!O.getElementById(Fr));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(li,JSON.stringify(B({},n,{source:void 0}))),this.wt()===ui.LOADED)this.xt(n);else if(this.wt()===ui.UNINITIALIZED){var i;this.yt(ui.LOADING),null==(i=L.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return ci.error("[Toolbar] Failed to load",e),void this.yt(ui.UNINITIALIZED);this.yt(ui.LOADED),this.xt(n)}),sr(P,"turbolinks:load",()=>{this.yt(ui.UNINITIALIZED),this.loadToolbar(n)})}return!0}Et(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 pi=qt("[TracingHeaders]");class hi{constructor(e){this.$t=void 0,this.St=void 0,this.rt=()=>{var e,t;ie(this.$t)&&(null==(e=L.__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=L.__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=L.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return pi.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.$t)||e.call(this),null==(t=this.St)||t.call(this),this.$t=void 0,this.St=void 0)}}var fi="https?://(.*)",gi=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],mi=Zt(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],gi),vi="<masked>",bi=["li_fat_id"];function yi(e,t,r){if(!O)return{};var n,i=t?Zt([],gi,r||[]):[],a=xi(_n(O.URL,i,vi),e),o=(n={},Xt(bi,function(e){var t=Nn.q(e);n[e]=t||null}),n);return Jt(o,a)}function xi(e,t){var r=mi.concat(t||[]),n={};return Xt(r,function(t){var r=xn(e,t);n[t]=r||null}),n}function _i(e){var t,r=(t=e)?0===t.search(fi+"google.([^/?]*)")?"google":0===t.search(fi+"bing.com")?"bing":0===t.search(fi+"yahoo.com")?"yahoo":0===t.search(fi+"duckduckgo.com")?"duckduckgo":null:null,n="yahoo"!=r?"q":"p",i={};if(!se(r)){i.$search_engine=r;var a=O?xn(O.referrer,n):"";a.length&&(i.ph_keyword=a)}return i}function ki(){return navigator.language||navigator.userLanguage}function wi(){return(null==O?void 0:O.referrer)||"$direct"}function Si(e,t){var r=e?Zt([],gi,t||[]):[],n=null==I?void 0:I.href.substring(0,1e3);return{r:wi().substring(0,1e3),u:n?_n(n,r,vi):void 0}}function Ci(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=yn(r))?void 0:t.host};if(n){i.$current_url=n;var a=yn(n);i.$host=null==a?void 0:a.host,i.$pathname=null==a?void 0:a.pathname;var o=xi(n);Jt(i,o)}if(r){var s=_i(r);Jt(i,s)}return i}function Pi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(An){return}}function Ei(){try{return(new Date).getTimezoneOffset()}catch(An){return}}var zi=qt("[Web Vitals]"),Ti=9e5;class ji{constructor(e){var t;this.kt=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Pt=()=>{clearTimeout(this.Tt),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.It=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(ie(r))zi.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Ct();ie(n)||(le(null==e?void 0:e.name)||le(null==e?void 0:e.value)?zi.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?zi.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.Pt(),this.Tt=setTimeout(this.Pt,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.Pt()))}},this.rt=()=>{if(!this.P){var e,t,r,n,i=L.__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.It.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.It.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.It.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.It.bind(this)),this.P=!0):zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.kt=!(null==(t=this._instance.persistence)||!t.props[mr]),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 le(r)?(null==(t=this._instance.persistence)?void 0:t.props[yr])||["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 useAttribution(){var e=re(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return null!=e&&e}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:Ti;return 0<e&&e<=6e4?Ti:e}get isEnabled(){var e=null==I?void 0:I.protocol;if("http:"!==e&&"https:"!==e)return zi.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:de(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return de(t)?t:this.kt}startIfEnabled(){this.isEnabled&&!this.P&&(zi.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({[mr]:t}),this._instance.persistence.register({[yr]:r})),this.kt=t,this.startIfEnabled()}it(e){var t,r;if(null!=(t=L.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks)e();else{var n=this.useAttribution?"web-vitals-with-attribution":"web-vitals";null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,n,t=>{t?zi.error("failed to load script",t):e()})}}Ct(){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?Zt([],gi,r||[]):[];return _n(e,n,vi)}zi.error("Could not determine current URL")}}var Ri=qt("[Heatmaps]");function Oi(e){return re(e)&&"clientX"in e&&"clientY"in e&&ce(e.clientX)&&ce(e.clientY)}class Ii{constructor(e){var t;this.kt=!1,this.P=!1,this.Ft=null,this.instance=e,this.kt=!(null==(t=this.instance.persistence)||!t.props[pr]),this.rageclicks=new bn(e.config.rageclick)}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 le(this.instance.config.capture_heatmaps)?le(this.instance.config.enable_heatmaps)?this.kt:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;Ri.info("starting..."),this.Ot(),this.Mt()}else{var e;clearInterval(null!==(e=this.Ft)&&void 0!==e?e:void 0),this.At(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[pr]:t}),this.kt=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}jt(e){this.Dt(e.originalEvent,"deadclick")}Mt(){this.Ft&&clearInterval(this.Ft),this.Ft="visible"===(null==O?void 0:O.visibilityState)?setInterval(this.Lt.bind(this),this.flushIntervalMilliseconds):null}Ot(){P&&O&&(this.Nt=this.Lt.bind(this),sr(P,"beforeunload",this.Nt),this.Ut=e=>this.Dt(e||(null==P?void 0:P.event)),sr(O,"click",this.Ut,{capture:!0}),this.zt=e=>this.Ht(e||(null==P?void 0:P.event)),sr(O,"mousemove",this.zt,{capture:!0}),this.Bt=new Jn(this.instance,Kn,this.jt.bind(this)),this.Bt.startIfEnabled(),this.qt=this.Mt.bind(this),sr(O,"visibilitychange",this.qt),this.P=!0)}At(){var e;P&&O&&(this.Nt&&P.removeEventListener("beforeunload",this.Nt),this.Ut&&O.removeEventListener("click",this.Ut,{capture:!0}),this.zt&&O.removeEventListener("mousemove",this.zt,{capture:!0}),this.qt&&O.removeEventListener("visibilitychange",this.qt),clearTimeout(this.Wt),null==(e=this.Bt)||e.stop(),this.P=!1)}Gt(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&&$r(n)&&!Br(n,"body");){if(n===r)return!1;if(Y(t,null==P?void 0:P.getComputedStyle(n).position))return!0;n=Zr(n)}return!1}(Kr(e),["fixed","sticky"],i);return{x:e.clientX+(a?0:n),y:e.clientY+(a?0:r),target_fixed:a,type:t}}Dt(e,t){var r;if(void 0===t&&(t="click"),!Wr(e.target)&&Oi(e)){var n=this.Gt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Vt(B({},n,{type:"rageclick"})),this.Vt(n)}}Ht(e){!Wr(e.target)&&Oi(e)&&(clearTimeout(this.Wt),this.Wt=setTimeout(()=>{this.Vt(this.Gt(e,"mousemove"))},500))}Vt(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?Zt([],gi,n||[]):[],a=_n(t,i,vi);this.N=this.N||{},this.N[a]||(this.N[a]=[]),this.N[a].push(e)}}Lt(){this.N&&!ne(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Ai{constructor(e){this.Jt=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Ut.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.Kt=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Yt()}Yt(){var e;this.Xt=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.Jt)}destroy(){var e;null==(e=this.Xt)||e.call(this),this.Xt=void 0}doPageView(e,t){var r,n=this.Qt(e,t);return this.Kt={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.Qt(e,null==(t=this.Kt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Kt)?void 0:e.pageViewId}}Qt(e,t){var r=this.Kt;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:ye(o/a,0,1,Ut),p=a<=1?1:ye(s/a,0,1,Ut),h=l<=1?1:ye(c/l,0,1,Ut),f=l<=1?1:ye(u/l,0,1,Ut);n=Jt(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:h,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var Di=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),Mi=Uint8Array,Fi=Uint16Array,Li=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 Fi(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Li(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 Fi(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 Fi(t);i<n;++i)++a[e[i]-1];var o,s=new Fi(t);for(i=0;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;for(o=new Fi(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 Ji=new Mi(32);for(Gi=0;Gi<32;++Gi)Ji[Gi]=5;var Zi=Ki(Xi,9),ea=Ki(Ji,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 Fi?Fi:e instanceof Li?Li: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 h=new Fi(p+1),f=oa(r[u-1],h,0);if(f>t){n=0;var g=0,m=f-t,v=1<<m;for(a.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});n<i;++n){var b=a[n].s;if(!(h[b]>t))break;g+=v-(1<<f-h[b]),h[b]=t}for(g>>>=m;g>0;){var y=a[n].s;h[y]<t?g-=1<<t-h[y]++-1:++n}for(;n>=0&&g;--n){var x=a[n].s;h[x]==t&&(--h[x],++g)}f=t}return[new Mi(h),f]},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 Fi(++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],h=d[1],f=aa(a,15),g=f[0],m=f[1],v=sa(p),b=v[0],y=v[1],x=sa(g),_=x[0],k=x[1],w=new Fi(19),S=0;S<b.length;++S)w[31&b[S]]++;for(S=0;S<_.length;++S)w[31&_[S]]++;for(var C=aa(w,7),P=C[0],E=C[1],z=19;z>4&&!P[$i[z-1]];--z);var T,j,R,O,I=c+5<<3,A=la(i,Xi)+la(a,Ji)+o,D=la(i,p)+la(a,g)+o+14+3*z+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,h),j=p,R=Ki(g,m),O=g;var M=Ki(P,E);for(na(t,u,y-257),na(t,u+5,k-1),na(t,u+10,z-4),u+=14,S=0;S<z;++S)na(t,u+3*S,P[$i[S]]);u+=3*z;for(var F=[b,_],L=0;L<2;++L){var N=F[L];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=Zi,j=Xi,R=ea,O=Ji;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 Li([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pa=function(){for(var e=new Li(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),ha=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};var fa=!!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 Xt(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===Di.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,h=(1<<r)-1,f=new Fi(32768),g=new Fi(h+1),m=Math.ceil(r/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&h},y=new Li(25e3),x=new Fi(288),_=new Fi(32),k=0,w=0,S=(l=0,0),C=0,P=0;l<i;++l){var E=b(l),z=32767&l,T=g[E];if(f[z]=T,g[E]=z,C<=l){var j=i-l;if((k>7e3||S>24576)&&j>423){s=ua(e,o,0,y,x,_,w,S,P,l-P,s),S=k=w=0,P=l;for(var R=0;R<286;++R)x[R]=0;for(R=0;R<30;++R)_[R]=0}var O=2,I=0,A=p,D=z-T&32767;if(j>2&&E==b(l-D))for(var M=Math.min(d,j)-1,F=Math.min(32767,l),L=Math.min(258,j);D<=F&&--A&&z!=T;){if(e[l+O]==e[l+O-D]){for(var N=0;N<L&&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-f[B]+32768&32767;H>$&&($=H,T=B)}}}D+=(z=T)-(T=f[z])+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],++_[U],C=l+O,++k}else y[S++]=e[l],++x[e[l]]}}s=ua(e,o,!0,y,x,_,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&&ha(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),ha(a,o-8,r.d()),ha(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===Di.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;Xt(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){Ut.error(i)}null==e.callback||e.callback(n)})).catch(t=>{Ut.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:{};Xt(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 _a(e,t,r){return va({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var ka={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))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})},wa=e=>e.toLowerCase();function Sa(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];if(ie(i)||se(i))return!1;var a=[String(i)],o=ka[n.operator];return!!o&&o(n.values,a)})}var Ca=qt("[Error tracking]");class Pa{constructor(e){var t,r;this.Zt=[],this.ti=new _t([new It,new Ht,new Dt,new At,new $t,new Wt,new Ft,new Bt],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 function(t,n){void 0===n&&(n=0);for(var i=[],a=t.split("\n"),o=n;o<a.length;o++){var s=a[o];if(!(s.length>1024)){var l=Ot.test(s)?s.replace(Ot,"$1"):s;if(!l.match(/\S*Error: /)){for(var c of r){var u=c(l,e);if(u){i.push(u);break}}if(i.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||kt});var r})}(i)}}("web:javascript",zt,Rt)),this._instance=e,this.Zt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(fr))&&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.Zt=i,this._instance.persistence&&this._instance.persistence.register({[fr]:this.Zt,[gr]:a})}get ii(){var e,t=!!this._instance.get_property(gr),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.ti.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.ei(t)){if(this.ri(t))return void Ca.info("Skipping exception capture because a suppression rule matched");if(!this.ii&&this.si(t))return void Ca.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ni(t))return void Ca.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ri(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.Zt.some(e=>{var r=e.values.map(e=>{var r,n=ka[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)})}si(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://"))}ni(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}ei(e){return!le(e)&&ee(e)}}var Ea=qt("[FeatureFlags]"),za=qt("[FeatureFlags]",{debugEnabled:!0}),Ta="$active_feature_flags",ja="$override_feature_flags",Ra="$feature_flag_payloads",Oa="$override_feature_flag_payloads",Ia="$feature_flag_request_id",Aa="$feature_flag_evaluated_at",Da=e=>{var t={};for(var[r,n]of er(e||{}))n&&(t[r]=n);return t},Ma=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class Fa{constructor(e){this.oi=!1,this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.ci=!1,this._instance=e,this.featureFlagEventHandlers=[]}fi(){var e,t=null!==(e=this._instance.config.evaluation_contexts)&&void 0!==e?e:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.ci||(Ea.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ci=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||Ea.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}pi(){return this.fi().length>0}flags(){if(this._instance.config.__preview_remote_config)this.di=!0;else{var e=!this.gi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.mi({disableFlags:e})}}get hasLoadedFlags(){return this.ai}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(Cr),t=this._instance.get_property(ja),r=this._instance.get_property(Oa);if(!r&&!t)return e||{};var n=Jt({},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],h=B({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(h.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(h.original_variant=null==l?void 0:l.variant),p&&(h.metadata=B({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),n[a]=h}return this.oi||(Ea.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.oi=!0),n}getFlagVariants(){var e=this._instance.get_property(wr),t=this._instance.get_property(ja);if(!t)return e||{};for(var r=Jt({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.oi||(Ea.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.oi=!0),r}getFlagPayloads(){var e=this._instance.get_property(Ra),t=this._instance.get_property(Oa);if(!t)return e||{};for(var r=Jt({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.oi||(Ea.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.oi=!0),r}reloadFeatureFlags(){this.ui||this._instance.config.advanced_disable_feature_flags||this.gi||(this._instance.bi.emit("featureFlagsReloading",!0),this.gi=setTimeout(()=>{this.mi()},5))}yi(){clearTimeout(this.gi),this.gi=void 0}ensureFlagsLoaded(){this.ai||this.li||this.gi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ui=e}mi(e){var t;if(this.yi(),!this._instance.M())if(this.li)this.hi=!0;else{var r=this._instance.config.token,n=this._instance.get_property("$device_id"),i={token:r,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(Pr)||{}),group_properties:this._instance.get_property(Er)};se(n)||ie(n)||(i.$device_id=n),(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.pi()&&(i.evaluation_contexts=this.fi());var a=this._instance.config.__preview_remote_config,o=a?"/flags/?v=2":"/flags/?v=2&config=true",s=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",l=this._instance.requestRouter.endpointFor("flags",o+s);a&&(i.timezone=Pi()),this.li=!0,this._instance._send_request({method:"POST",url:l,data:i,compression:this._instance.config.disable_compression?void 0:Di.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,r,n=!0;if(200===e.statusCode&&(this.hi||(this.$anon_distinct_id=void 0),n=!1),this.li=!1,this.di||(this.di=!0,this._instance.wi(null!==(r=e.json)&&void 0!==r?r:{})),!i.disable_flags||this.hi)if(this.vi=!n,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(Ma.FeatureFlags))Ea.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;i.disable_flags||this.receivedFeatureFlags(null!==(a=e.json)&&void 0!==a?a:{},n),this.hi&&(this.hi=!1,this.mi())}}})}}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlagResult(e,t);return null!==(r=null==n?void 0:n.variant)&&void 0!==r?r:null==n?void 0:n.enabled}Ea.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants(),n=e in r,i=r[e],a=this.getFlagPayloads()[e],o=String(i),s=this._instance.get_property(Ia)||void 0,l=this._instance.get_property(Aa)||void 0,c=this._instance.get_property(Tr)||{};if((t.send_event||!("send_event"in t))&&(!(e in c)||!c[e].includes(o))){var u,d,p,h,f,g,m,v,b;ee(c[e])?c[e].push(o):c[e]=[o],null==(u=this._instance.persistence)||u.register({[Tr]:c});var y=this.getFeatureFlagDetails(e),x={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:a||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(d=this._instance.config.bootstrap)||null==(d=d.featureFlags)?void 0:d[e])||null,$feature_flag_bootstrapped_payload:(null==(p=this._instance.config.bootstrap)||null==(p=p.featureFlagPayloads)?void 0:p[e])||null,$used_bootstrap_value:!this.vi};ie(null==y||null==(h=y.metadata)?void 0:h.version)||(x.$feature_flag_version=y.metadata.version);var _,k=null!==(f=null==y||null==(g=y.reason)?void 0:g.description)&&void 0!==f?f:null==y||null==(m=y.reason)?void 0:m.code;k&&(x.$feature_flag_reason=k),null!=y&&null!=(v=y.metadata)&&v.id&&(x.$feature_flag_id=y.metadata.id),ie(null==y?void 0:y.original_variant)&&ie(null==y?void 0:y.original_enabled)||(x.$feature_flag_original_response=ie(y.original_variant)?y.original_enabled:y.original_variant),null!=y&&null!=(b=y.metadata)&&b.original_payload&&(x.$feature_flag_original_payload=null==y||null==(_=y.metadata)?void 0:_.original_payload),this._instance.capture("$feature_flag_called",x)}if(n){var w=a;if(!ie(a))try{w=JSON.parse(a)}catch(S){}return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:w}}}else Ea.warn('getFeatureFlagResult for key "'+e+"\" failed. Feature flags didn't load in time.")}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.pi()&&(n.evaluation_contexts=this.fi()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:n,compression:this._instance.config.disable_compression?void 0:Di.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.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return ie(r)?void 0:!!r}Ea.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.ai=!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]}))):Ea.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,u=e.evaluatedAt;if(ee(s)){Ea.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var d={};if(s)for(var p=0;p<s.length;p++)d[s[p]]=!0;t&&t.register({[Ta]:s,[wr]:d})}else{var h=s,f=l,g=o;if(e.errorsWhileComputingFlags)if(o){var m=new Set(Object.keys(o).filter(e=>{var t;return!(null!=(t=o[e])&&t.failed)}));h=B({},r,Object.fromEntries(Object.entries(h).filter(e=>{var[t]=e;return m.has(t)}))),f=B({},n,Object.fromEntries(Object.entries(f||{}).filter(e=>{var[t]=e;return m.has(t)}))),g=B({},i,Object.fromEntries(Object.entries(g||{}).filter(e=>{var[t]=e;return m.has(t)})))}else h=B({},r,h),f=B({},n,f),g=B({},i,g);t&&t.register(B({[Ta]:Object.keys(Da(h)),[wr]:h||{},[Ra]:f||{},[Cr]:g||{}},c?{[Ia]:c}:{},u?{[Aa]:u}:{}))}}}(e,this._instance.persistence,r,n,i),this.xi(t)}}override(e,t){void 0===t&&(t=!1),Ea.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return Ea.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(ja),this._instance.persistence.unregister(Oa),this.xi(),za.info("All overrides cleared");if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;if(this.oi=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t),"flags"in r)if(!1===r.flags)this._instance.persistence.unregister(ja),za.info("Flag overrides cleared");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({[ja]:n})}else this._instance.persistence.register({[ja]:r.flags});za.info("Flag overrides set",{flags:r.flags})}return"payloads"in r&&(!1===r.payloads?(this._instance.persistence.unregister(Oa),za.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[Oa]:r.payloads}),za.info("Payload overrides set",{payloads:r.payloads}))),void this.xi()}this.xi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ai){var{flags:t,flagVariants:r}=this.Ei();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(Sr)||[]).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({[Ta]:Object.keys(Da(s)),[wr]:s}),this.xi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(Sr),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({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(Sr),null==(n=this._instance.persistence)||n.register({[Sr]:i}),e(i)}}})}Ei(){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),{})}}xi(e){var{flags:t,flagVariants:r}=this.Ei();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Pr)||{};this._instance.register({[Pr]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Pr)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(Er)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=B({},r[t],e[t]),delete e[t]}),this._instance.register({[Er]:B({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(Er)||{};this._instance.register({[Er]:B({},t,{[e]:{}})})}else this._instance.unregister(Er)}reset(){this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.$anon_distinct_id=void 0,this.yi(),this.oi=!1}}var La=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Na{constructor(e,t){var r,n;this.R=e,this.props={},this.$i=!1,this.Si=(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.ki(e),this.load(),e.debug&&Ut.info("Persistence loaded",e.persistence,B({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.Pi}ki(e){-1===La.indexOf(e.persistence.toLowerCase())&&(Ut.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=function(e){void 0===e&&(e=[]);var t=[...Bn,...e];return B({},$n,{W:function(e){try{var t={};try{t=Nn.W(e)||{}}catch(n){}var r=Jt(t,JSON.parse($n.q(e)||"{}"));return $n.G(e,r),r}catch(n){}return null},G:function(e,r,n,i,a,o){try{$n.G(e,r,void 0,void 0,o);var s={};t.forEach(e=>{r[e]&&(s[e]=r[e])}),Object.keys(s).length&&Nn.G(e,s,n,i,a,o)}catch(l){$n.B(l)}},V:function(e,t){try{null==P||P.localStorage.removeItem(e),Nn.V(e,t)}catch(An){$n.B(An)}}})}(e.cookie_persisted_properties||[]),r=e.persistence.toLowerCase();return"localstorage"===r&&$n.H()?$n:"localstorage+cookie"===r&&t.H()?t:"sessionstorage"===r&&qn.H()?qn:"memory"===r?Vn:"cookie"===r?Nn:t.H()?t:Nn}properties(){var e={};return Xt(this.props,function(t,r){if(r===wr&&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=Nr)?s:j&&a.indexOf===j?-1!=a.indexOf(o):(Xt(a,function(e){if(s||(s=e===o))return Qt}),s))||(e[r]=t);var a,o,s}),e}load(){if(!this.Pi){var e=this.Y.W(this.Si);e&&(this.props=Jt({},e))}}save(){this.Pi||this.Y.G(this.Si,this.props,this.Ti,this.Ii,this.Ci,this.R.debug)}remove(){this.Y.V(this.Si,!1),this.Y.V(this.Si,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(re(e)){ie(t)&&(t="None"),this.Ti=ie(r)?this.Ri:r;var n=!1;if(Xt(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.Ti=ie(t)?this.Ri:t;var r=!1;if(Xt(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.$i){var e=yi(this.R.custom_campaign_params,this.R.mask_personal_data_properties,this.R.custom_personal_data_properties);ne(nr(e))||this.register(e),this.$i=!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:wi(),$referring_domain:null!=O&&O.referrer&&(null==(e=yn(O.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Ir]||this.props[Ar]||this.register_once({[Dr]:Si(this.R.mask_personal_data_properties,this.R.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Xt([Ar,Ir],t=>{var r=this.props[t];r&&Xt(r,function(t,r){e["$initial_"+Q(r)]=t})});var t,r,n=this.props[Dr];if(n){var i=(t=Ci(n),r={},Xt(t,function(e,t){r["$initial_"+Q(t)]=e}),r);Jt(e,i)}return e}safe_merge(e){return Xt(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.Ri=this.Ti=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||!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),n=[...t].sort();return r.every((e,t)=>e===n[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var n=this.ki(e),i=this.props;this.clear(),this.Y=n,this.props=i,this.save()}}set_disabled(e){this.Pi=e,this.Pi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ii&&(this.Ii=e,this.remove(),this.save())}set_secure(e){e!==this.Ci&&(this.Ci=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[ur]||{};r[e]=t,this.props[ur]=r,this.save()}remove_event_timer(e){var t=(this.props[ur]||{})[e];return ie(t)||(delete this.props[ur][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var Wa=qt("[Product Tours]"),$a="ph_product_tours";class Ba{constructor(e){this.Fi=null,this.Oi=null,this._instance=e}onRemoteConfig(e){this._instance.persistence&&this._instance.persistence.register({[br]:!(null==e||!e.productTours)}),this.loadIfEnabled()}loadIfEnabled(){var e,t;this.Fi||(e=this._instance).config.disable_product_tours||null==(t=e.persistence)||!t.get_property(br)||this.it(()=>this.Mi())}it(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?Wa.error("Could not load product tours script",t):e()})}Mi(){var e;!this.Fi&&null!=(e=L.__PosthogExtensions__)&&e.generateProductTours&&(this.Fi=L.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!ee(this.Oi)||t){var r=this._instance.persistence;if(r){var n=r.props[$a];if(ee(n)&&!t)return this.Oi=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return Wa.error(i),void e([],{isLoaded:!1,error:i})}var a=ee(t.json.product_tours)?t.json.product_tours:[];this.Oi=a,r&&r.register({[$a]:a}),e(a,{isLoaded:!0})}})}else e(this.Oi,{isLoaded:!0})}getActiveProductTours(e){le(this.Fi)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Fi.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Fi)||t.showTourById(e)}previewTour(e){this.Fi?this.Fi.previewTour(e):this.it(()=>{var t;this.Mi(),null==(t=this.Fi)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Fi)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Fi)||e.nextStep()}previousStep(){var e;null==(e=this.Fi)||e.previousStep()}clearCache(){var e;this.Oi=null,null==(e=this._instance.persistence)||e.unregister($a)}resetTour(e){var t;null==(t=this.Fi)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Fi)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Fi)||t.cancelPendingTour(e)}}var Ha=function(e){return e.Activation="events",e.Cancellation="cancelEvents",e}({});!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"}({}),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}({});var Va=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 Ua=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e.ABANDONED="survey abandoned",e}({}),qa=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.PRODUCT_TOUR_ID="$product_tour_id",e.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",e}({}),Ya=function(e){return e.Popover="popover",e.Inline="inline",e}({}),Ga=qt("[Surveys]"),Qa="seenSurvey_",Ka=(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},Xa=e=>{return n=""+(t=Qa)+(r=e).id,r.current_iteration&&r.current_iteration>0&&(n=""+t+r.id+"_"+r.current_iteration),n;var t,r,n},Ja=[Va.Popover,Va.Widget,Va.API],Za={ignoreConditions:!1,ignoreDelay:!1,displayType:Ya.Popover};class eo{constructor(){this.Ai={},this.Ai={}}on(e,t){return this.Ai[e]||(this.Ai[e]=[]),this.Ai[e].push(t),()=>{this.Ai[e]=this.Ai[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Ai[e]||[])r(t);for(var n of this.Ai["*"]||[])n(e,t)}}function to(e,t,r){if(le(e))return!1;switch(r){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(i){return!1}default:return!1}}class ro{constructor(e){this.ji=new eo,this.Di=(e,t)=>this.Li(e,t)&&this.Ni(e,t)&&this.Ui(e,t)&&this.zi(e,t),this.Li=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Hi=new Set,this.Bi=new Set}init(){var e,t;ie(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!ie(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,r;null==(t=this.Bi)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Hi)||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.Hi.has(e)||this.Hi.has(null==t?void 0:t.event))&&this.Bi&&(null==(r=this.Bi)?void 0:r.size)>0&&this.Bi.forEach(e=>{this.qi(t,e)&&this.ji.emit("actionCaptured",e.name)})}Wi(e){this.onAction("actionCaptured",t=>e(t))}qi(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Di(e,r))return!0;return!1}onAction(e,t){return this.ji.on(e,t)}Ni(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(!to(n,t.url,t.url_matching||"contains"))return!1}return!0}Ui(e,t){return!!this.Gi(e,t)&&!!this.Vi(e,t)&&!!this.Ji(e,t)}Gi(e,t){var r;if(null==t||!t.href)return!0;var n=this.Ki(e);if(n.length>0)return n.some(e=>to(e.href,t.href,t.href_matching||"exact"));var i,a=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!a&&to((i=a.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}Vi(e,t){var r;if(null==t||!t.text)return!0;var n=this.Ki(e);if(n.length>0)return n.some(e=>to(e.text,t.text,t.text_matching||"exact")||to(e.$el_text,t.text,t.text_matching||"exact"));var i,a,o,s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!s&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!le(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(s),a=t.text,o=t.text_matching||"exact",i.some(e=>to(e,a,o)))}Ji(e,t){var r,n;if(null==t||!t.selector)return!0;var i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var a=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&a)try{return new RegExp(t.selector_regex).test(a)}catch(o){return!1}return!1}Ki(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}zi(e,t){return null==t||!t.properties||0===t.properties.length||Sa(t.properties.reduce((e,t)=>{var r=ee(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class no{constructor(e){this._instance=e,this.Yi=new Map,this.Xi=new Map,this.Qi=new Map}Zi(e,t){return!!e&&Sa(e.propertyFilters,null==t?void 0:t.properties)}te(e,t){var r=new Map;return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}ie(e,t,r){var n=(r===Ha.Activation?this.Yi:this.Xi).get(e),i=[];return this.ee(e=>{i=e.filter(e=>null==n?void 0:n.includes(e.id))}),i.filter(n=>{var i,a=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.Zi(a,t)})}register(e){var t;ie(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.re(e),this.se(e))}se(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.ne&&(this.ne=new ro(this._instance),this.ne.init(),this.ne.Wi(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.ne)||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.Qi.get(t.name);r&&r.push(e.id),this.Qi.set(t.name,r||[e.id])}}))}))}re(e){var t,r=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}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});0===r.length&&0===n.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.Yi=this.te(e,Ha.Activation),this.Xi=this.te(e,Ha.Cancellation))}onEvent(e,t){var r,n=this.oe(),i=this.ae(),a=this.le(),o=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[i])||[];if(a===e&&t&&o.length>0){var s,l;n.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:o});var c=(null==t||null==(s=t.properties)?void 0:s.$survey_id)||(null==t||null==(l=t.properties)?void 0:l.$product_tour_id);if(c){var u=o.indexOf(c);u>=0&&(o.splice(u,1),this.ue(o))}}else{if(this.Xi.has(e)){var d=this.ie(e,t,Ha.Cancellation);d.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:d.map(e=>e.id)}),d.forEach(e=>{var t=o.indexOf(e.id);t>=0&&o.splice(t,1),this.he(e.id)}),this.ue(o))}if(this.Yi.has(e)){n.info("event name matched",{event:e,eventPayload:t,items:this.Yi.get(e)});var p=this.ie(e,t,Ha.Activation);this.ue(o.concat(p.map(e=>e.id)||[]))}}}onAction(e){var t,r=this.ae(),n=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[];this.Qi.has(e)&&this.ue(n.concat(this.Qi.get(e)||[]))}ue(e){var t,r=this.oe(),n=this.ae(),i=[...new Set(e)].filter(e=>!this.de(e));r.info("updating activated items",{activatedItems:i}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[n]:i})}getActivatedIds(){var e,t=this.ae();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getEventToItemsMap(){return this.Yi}ve(){return this.ne}}class io extends no{constructor(e){super(e)}ae(){return"$surveys_activated"}le(){return Ua.SHOWN}ee(e){var t;null==(t=this._instance)||t.getSurveys(e)}he(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}oe(){return Ga}de(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class ao{constructor(e){this.ce=void 0,this._surveyManager=null,this.fe=!1,this.pe=[],this.ge=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(le(t))return Ga.warn("Flags not loaded yet. Not loading surveys.");var r=ee(t);this.ce=r?t.length>0:t,Ga.info("flags response received, isSurveysEnabled: "+this.ce),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(Qa)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.fe)Ga.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ga.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Ga.info("Not loading surveys in cookieless mode without consent.");else{var e=null==L?void 0:L.__PosthogExtensions__;if(e){if(!ie(this.ce)||this._instance.config.advanced_enable_surveys){var t=this.ce||this._instance.config.advanced_enable_surveys;this.fe=!0;try{var r=e.generateSurveys;if(r)return void this._e(r,t);var n=e.loadExternalDependency;if(!n)return void this.me("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.me("Could not load surveys script",r):this._e(e.generateSurveys,t)})}catch(i){throw this.me("Error initializing surveys",i),i}finally{this.fe=!1}}}else Ga.error("PostHog Extensions not found.")}}_e(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new io(this._instance),Ga.info("Surveys loaded successfully"),this.be({isLoaded:!0})}me(e,t){Ga.error(e,t),this.be({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.pe.push(e),this._surveyManager&&this.be({isLoaded:!0}),()=>{this.pe=this.pe.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Ga.info("Disabled. Not loading surveys."),e([]);var r,n=this._instance.get_property(zr);if(n&&!t)return e(n,{isLoaded:!0});"undefined"!=typeof Promise&&this.ge?this.ge.then(t=>{var{surveys:r,context:n}=t;return e(r,n)}):("undefined"!=typeof Promise&&(this.ge=new Promise(e=>{r=e})),this._instance._send_request({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 n;this.ge=null;var i=t.statusCode;if(200!==i||!t.json){var a="Surveys API could not be loaded, status: "+i;Ga.error(a);var o={isLoaded:!1,error:a};return e([],o),void(null==r||r({surveys:[],context:o}))}var s,l=t.json.surveys||[],c=l.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});c.length>0&&(null==(s=this._surveyEventReceiver)||s.register(c)),null==(n=this._instance.persistence)||n.register({[zr]:l});var u={isLoaded:!0};e(l,u),null==r||r({surveys:l,context:u})}}))}be(e){for(var t of this.pe)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(r){Ga.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!le(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Ga.warn("init was not called")}ye(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}we(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.ye(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(le(this._surveyManager))return Ga.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.we(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return le(this._surveyManager)?(Ga.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.we(i);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var n;if(le(this._surveyManager))Ga.warn("init was not called");else{var i="string"==typeof e?this.ye(e):e;if(null!=i&&i.id)if(Ja.includes(i.type)){var a=null==O?void 0:O.querySelector(t);if(a)return null!=(n=i.appearance)&&n.surveyPopupDelaySeconds?(Ga.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Ga.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,a,r),Ga.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,a,r);Ga.warn("Survey element not found")}else Ga.warn("Surveys of type "+i.type+" cannot be rendered in the app");else Ga.warn("Survey not found")}}displaySurvey(e,t){var r;if(le(this._surveyManager))Ga.warn("init was not called");else{var n=this.ye(e);if(n){var i=n;if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=B({},n,{appearance:B({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Ya.Popover&&t.initialResponses&&Ga.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var a=this.canRenderSurvey(n);if(!a.visible)return void Ga.warn("Survey is not eligible to be displayed: ",a.disabledReason)}t.displayType!==Ya.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else Ga.warn("Survey not found")}}cancelPendingSurvey(e){le(this._surveyManager)?Ga.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}var oo=qt("[Conversations]");class so{constructor(e){this.xe=void 0,this._conversationsManager=null,this.Ee=!1,this.$e=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;le(t)||(de(t)?this.xe=t:(this.xe=t.enabled,this.$e=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.xe=void 0,this.$e=null}loadIfEnabled(){if(!this._conversationsManager&&!this.Ee&&!(this._instance.config.disable_conversations||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==L?void 0:L.__PosthogExtensions__;if(e&&!ie(this.xe)&&this.xe)if(this.$e&&this.$e.token){this.Ee=!0;try{var t=e.initConversations;if(t)return this.Se(t),void(this.Ee=!1);var r=e.loadExternalDependency;if(!r)return void this.ke("PostHog loadExternalDependency extension not found.");r(this._instance,"conversations",t=>{t||!e.initConversations?this.ke("Could not load conversations script",t):this.Se(e.initConversations),this.Ee=!1})}catch(n){this.ke("Error initializing conversations",n),this.Ee=!1}}else oo.error("Conversations enabled but missing token in remote config.")}}Se(e){if(this.$e)try{this._conversationsManager=e(this.$e,this._instance),oo.info("Conversations loaded successfully")}catch(t){this.ke("Error completing conversations initialization",t)}else oo.error("Cannot complete initialization: remote config is null")}ke(e,t){oo.error(e,t),this._conversationsManager=null,this.Ee=!1}show(){this._conversationsManager?this._conversationsManager.show():oo.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.xe&&!se(this._conversationsManager)}isVisible(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&void 0!==e&&e}sendMessage(e,t,r){var n=this;return $(function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,r):(oo.warn("Conversations not available yet."),null)})()}getMessages(e,t){var r=this;return $(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(oo.warn("Conversations not available yet."),null)})()}markAsRead(e){var t=this;return $(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(oo.warn("Conversations not available yet."),null)})()}getTickets(e){var t=this;return $(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(oo.warn("Conversations not available yet."),null)})()}getCurrentTicketId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())&&void 0!==e?e:null}getWidgetSessionId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())&&void 0!==e?e:null}}class lo{constructor(e){var t;this.Pe=!1,this.Te=!1,this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Pe=!0)}onRemoteConfig(e){var t,r=null==(t=e.logs)?void 0:t.captureConsoleLogs;!le(r)&&r&&(this.Pe=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Pe&&!this.Te){var e=qt("[logs]"),t=null==L?void 0:L.__PosthogExtensions__;if(t){var r=t.loadExternalDependency;r?r(this._instance,"logs",r=>{var n;r||null==(n=t.logs)||!n.initializeLogs?e.error("Could not load logs script",r):(t.logs.initializeLogs(this._instance),this.Te=!0)}):e.error("PostHog loadExternalDependency extension not found.")}else e.error("PostHog Extensions not found.")}}}var co=qt("[RateLimiter]");class uo{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{co.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(r){return void co.warn('could not rate limit - continuing. Error: "'+(null==r?void 0:r.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t,r,n;void 0===e&&(e=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:a}=this,o=(new Date).getTime(),s=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property(Or))&&void 0!==t?t:{tokens:i,last:o};s.tokens+=(o-s.last)/1e3*a,s.last=o,s.tokens>i&&(s.tokens=i);var l=s.tokens<1;return l||e||(s.tokens=Math.max(0,s.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+a+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(n=this.instance.persistence)||n.set_property(Or,s),{isRateLimited:l,remainingTokens:s.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var po=qt("[RemoteConfig]");class ho{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=L._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Ie(e){var t,r;null!=(t=L.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(po.error("PostHog Extensions not found. Cannot load remote config."),e())}Ce(e){this._instance._send_request({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 po.info("Using preloaded remote config",this.remoteConfig),void this.wi(this.remoteConfig);if(this._instance.M())return void po.warn("Remote config is disabled. Falling back to local config.");this.Ie(e=>{if(!e)return po.info("No config found after loading remote JS config. Falling back to JSON."),void this.Ce(e=>{this.wi(e)});this.wi(e)})}catch(An){po.error("Error loading remote config",An)}}wi(e){e?this._instance.config.__preview_remote_config?(this._instance.wi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):po.info("__preview_remote_config is disabled. Logging config instead",e):po.error("Failed to fetch remote config from PostHog.")}}var fo=3e3;class go{constructor(e,t){this.Re=!0,this.Fe=[],this.Oe=ye((null==t?void 0:t.flush_interval_ms)||fo,250,5e3,Ut.createLogger("flush interval"),fo),this.Me=e}enqueue(e){this.Fe.push(e),this.Ae||this.je()}unload(){this.De();var e=this.Fe.length>0?this.Le():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Me(B({},e,{transport:"sendBeacon"}))})}enable(){this.Re=!1,this.je()}je(){var e=this;this.Re||(this.Ae=setTimeout(()=>{if(this.De(),this.Fe.length>0){var t=this.Le(),r=function(){var r=t[n],i=(new Date).getTime();r.data&&ee(r.data)&&Xt(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.Me(r)};for(var n in t)r()}},this.Oe))}De(){clearTimeout(this.Ae),this.Ae=void 0}Le(){var e={};return Xt(this.Fe,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.Fe=[],e}}var mo=["retriesPerformedSoFar"];class vo{constructor(e){this.Ne=!1,this.Ue=3e3,this.Fe=[],this._instance=e,this.Fe=[],this.ze=!0,!ie(P)&&"onLine"in P.navigator&&(this.ze=P.navigator.onLine,this.He=()=>{this.ze=!0,this.Lt()},this.Be=()=>{this.ze=!1},sr(P,"online",this.He),sr(P,"offline",this.Be))}get length(){return this.Fe.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=H(e,mo);ue(t)&&(r.url=ma(r.url,{retry_count:t})),this._instance._send_request(B({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.qe(B({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}qe(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.Fe.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),Ut.warn(c),this.Ne||(this.Ne=!0,this.We())}We(){if(this.Ge&&clearTimeout(this.Ge),0===this.Fe.length)return this.Ne=!1,void(this.Ge=void 0);this.Ge=setTimeout(()=>{this.ze&&this.Fe.length>0&&this.Lt(),this.We()},this.Ue)}Lt(){var e=Date.now(),t=[],r=this.Fe.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.Fe=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Ge&&(clearTimeout(this.Ge),this.Ge=void 0),this.Ne=!1,ie(P)||(this.He&&(P.removeEventListener("online",this.He),this.He=void 0),this.Be&&(P.removeEventListener("offline",this.Be),this.Be=void 0)),this.Fe))try{this._instance._send_request(B({},e,{transport:"sendBeacon"}))}catch(An){Ut.error(An)}this.Fe=[]}}class bo{constructor(e){this.Ve=()=>{var e,t,r,n;this.Je||(this.Je={});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.Je.lastScrollY=Math.ceil(a),this.Je.maxScrollY=Math.max(a,null!==(e=this.Je.maxScrollY)&&void 0!==e?e:0),this.Je.maxScrollHeight=Math.max(o,null!==(t=this.Je.maxScrollHeight)&&void 0!==t?t:0),this.Je.lastContentY=s,this.Je.maxContentY=Math.max(s,null!==(r=this.Je.maxContentY)&&void 0!==r?r:0),this.Je.maxContentHeight=Math.max(l,null!==(n=this.Je.maxContentHeight)&&void 0!==n?n:0)},this._instance=e}getContext(){return this.Je}resetContext(){var e=this.Je;return setTimeout(this.Ve,0),e}startMeasuringScrollPosition(){sr(P,"scroll",this.Ve,{capture:!0}),sr(P,"scrollend",this.Ve,{capture:!0}),sr(P,"resize",this.Ve)}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 yo=e=>Si(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class xo{constructor(e,t,r,n){this.Ke=e=>{var t=this.Ye();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Xe(this._instance)};this.Qe.register({[Rr]:r})}},this._instance=e,this.Ze=t,this.Qe=r,this.Xe=n||yo,this.Ze.onSessionId(this.Ke)}Ye(){return this.Qe.props[Rr]}getSetOnceProps(){var e,t=null==(e=this.Ye())?void 0:e.props;return t?"r"in t?Ci(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 Xt(nr(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+Q(r)]=t}),e}}var _o=qt("[SessionId]");class ko{on(e,t){return this.tr.on(e,t)}constructor(e,t,r){var n;if(this.ir=[],this.er=void 0,this.tr=new eo,this.rr=(e,t)=>!(!ue(e)||!ue(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.R=e.config,this.Qe=e.persistence,this.sr=void 0,this.nr=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ar=t||Dn,this.lr=r||Dn;var i=this.R.persistence_name||this.R.token,a=this.R.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*ye(a,60,36e3,_o.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ur(),this.hr="ph_"+i+"_window_id",this.dr="ph_"+i+"_primary_window_exists",this.vr()){var o=qn.W(this.hr),s=qn.W(this.dr);o&&!s?this.sr=o:qn.V(this.hr),qn.G(this.dr,!0)}if(null!=(n=this.R.bootstrap)&&n.sessionID)try{var l=(()=>{var e=this.R.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.cr(this.R.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){_o.error("Invalid sessionID in bootstrap",c)}this.pr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ie(this.ir)&&(this.ir=[]),this.ir.push(e),this.nr&&e(this.nr,this.sr),()=>{this.ir=this.ir.filter(t=>t!==e)}}vr(){return"memory"!==this.R.persistence&&!this.Qe.Pi&&qn.H()}gr(e){e!==this.sr&&(this.sr=e,this.vr()&&qn.G(this.hr,e))}_r(){return this.sr?this.sr:this.vr()?qn.W(this.hr):null}cr(e,t,r){e===this.nr&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.nr=e,this.Qe.register({[_r]:[t,e,r]}))}mr(){var e=this.Qe.props[_r];return ee(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.cr(null,null,null)}destroy(){clearTimeout(this.br),this.br=void 0,this.er&&P&&(P.removeEventListener("beforeunload",this.er,{capture:!1}),this.er=void 0),this.ir=[]}pr(){this.er=()=>{this.vr()&&qn.V(this.dr)},sr(P,"beforeunload",this.er,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.R.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,a]=this.mr(),o=this._r(),s=ue(a)&&Math.abs(r-a)>864e5,l=!1,c=!i,u=!c&&!e&&this.rr(r,n);c||u||s?(i=this.ar(),o=this.lr(),_o.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),a=r,l=!0):o||(o=this.lr(),l=!0);var d=ue(n)&&e&&!s?n:r,p=ue(a)?a:(new Date).getTime();return this.gr(o),this.cr(i,d,p),e||this.ur(),l&&this.ir.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}}ur(){clearTimeout(this.br),this.br=setTimeout(()=>{var[e]=this.mr();if(this.rr((new Date).getTime(),e)){var t=this.nr;this.resetSessionId(),this.tr.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var wo=["$set_once","$set"],So=qt("[SiteApps]");class Co{constructor(e){this._instance=e,this.yr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}wr(e,t){if(t){var r=this.globalsForEvent(t);this.yr.push(r),this.yr.length>1e3&&(this.yr=this.yr.slice(10))}}get siteAppLoaders(){var e;return null==(e=L._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.wr.bind(this));this.Er=()=>{e(),this.yr=[],this.Er=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:h,$set:f}=e;return{event:B({},H(e,wo),{properties:B({},e.properties,f?{$set:B({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},f)}:{},h?{$set_once:B({},null!==(n=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==n?n:{},h)}:{}),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.yr.length&&(So.info("Processing "+this.yr.length+" events for site app with id "+e.id),this.yr.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.Er)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,So.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){So.error("Error while initializing PostHog app with config id "+e.id,o),i(!1)}if(n&&t.loaded)try{r()}catch(s){So.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}$r(){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)}Sr(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){So.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.$r(),void this._instance.on("eventCaptured",e=>this.Sr(e))):void So.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.Er)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var a=function(e){var t;L["__$$ph_site_app_"+e]=i._instance,null==(t=L.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return So.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:s}of e.siteApps)a(o)}else So.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var Po=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},Eo=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),zo="i.posthog.com";class To{constructor(e){this.kr={},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 flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+zo,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.kr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Eo.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Eo.EU:this.kr[this.apiHost]=Eo.CUSTOM),this.kr[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if(this.region===Eo.CUSTOM)return this.apiHost+t;var r=zo+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var jo={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 Ro{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{Ro.Pr("retrieved web experiments from the server"),t.Tr=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.Tr&&(Ro.Pr("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Tr)||r.set(e.feature_flag_key,e));var n=t._instance.getFeatureFlag(e.feature_flag_key);ae(n)&&e.variants[n]&&t.Ir(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var a=e.variants[i];Ro.Cr(a)&&t.Ir(e.name,i,a.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())Ro.Pr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(le(this.Tr))return this.Tr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ro.Pr("applying feature flags",e),e.forEach(e=>{var t;if(this.Tr&&null!=(t=this.Tr)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.Tr)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Ir(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=Ro.getWindowLocation();if(null!=e&&e.search){var t=xn(null==e?void 0:e.search,"__experiment_id"),r=xn(null==e?void 0:e.search,"__experiment_variant");t&&r&&(Ro.Pr("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.Rr(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._send_request({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)}})}Rr(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(Ro.Pr("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Ir(n[0].name,t,n[0].variants[t].transforms))}static Cr(e){return!le(e.conditions)&&Ro.Fr(e)&&Ro.Or(e)}static Fr(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,a=Ro.getWindowLocation();return!!a&&(null==(r=e.conditions)||!r.url||jo[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 Or(e){var t;if(le(e.conditions)||le(null==(t=e.conditions)?void 0:t.utm))return!0;var r=yi();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,h=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,f=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&&h&&f&&p}return!1}static Pr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Ut.info("[WebExperiments] "+e,r)}Ir(e,t,r){this._is_bot()?Ro.Pr("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;Ro.Pr("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)})}}):Ro.Pr("Control variants leave the page unmodified.")}_is_bot(){return R&&this._instance?Po(R,this._instance.config.custom_blocked_useragents):void 0}}var Oo=qt("[PostHog ExternalIntegrations]"),Io={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Ao{constructor(e){this._instance=e}it(e,t){var r;null==(r=L.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return Oo.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,a;!n||null!=(r=L.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(Io[t],()=>{var r;null==(r=L.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=L.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(a=L.__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 Do="[SessionRecording]",Mo=qt(Do);class Fo{get started(){var e;return!(null==(e=this.Mr)||!e.isStarted)}get status(){return this.Mr?this.Mr.status:this.Ar&&!this.jr?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Ar=!1,this.Dr=void 0,this._instance=e,!this._instance.sessionManager)throw Mo.error("started without valid sessionManager"),new Error(Do+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(Do+' cannot be used with cookieless_mode="always"')}get jr(){var e,t=!(null==(e=this._instance.get_property(xr))||!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.jr||null==(t=this.Mr)||!t.isStarted){var r=!ie(Object.assign)&&!ie(Array.from);this.jr&&r?(this.Lr(e),Mo.info("starting")):this.stopRecording()}}Lr(e){var t,r,n;this.jr&&(null!=L&&null!=(t=L.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=L.__PosthogExtensions__)&&r.initSessionRecording?this.Nr(e):null==(n=L.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Ur,t=>{if(t)return Mo.error("could not load recorder",t);this.Nr(e)}))}stopRecording(){var e,t;null==(e=this.Dr)||e.call(this),this.Dr=void 0,null==(t=this.Mr)||t.stop()}zr(){var e;null==(e=this._instance.persistence)||e.unregister(kr)}Hr(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.zr();var a=null==t?void 0:t.minimumDurationMilliseconds;n.register({[xr]:B({cache_timestamp:Date.now(),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.Dr)||t.call(this),this.Dr=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.Hr(e),this.Ar=!0,this.startIfEnabledOrStop()):this.Ar=!0:Mo.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.Mr)&&r.log?this.Mr.log(e,t):Mo.warn("log called before recorder was ready")}get Ur(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(xr);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Nr(e){var t,r;if(null==(t=L.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.Mr||(this.Mr=null==(r=L.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.Mr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Mr.start(e)}onRRwebEmit(e){var t;null==(t=this.Mr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Mr||null==(t=this._instance.persistence)||t.register({$replay_override_linked_flag:!0}),null==(e=this.Mr)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Mr||null==(t=this._instance.persistence)||t.register({$replay_override_sampling:!0}),null==(e=this.Mr)||e.overrideSampling()}overrideTrigger(e){var t,r;this.Mr||null==(r=this._instance.persistence)||r.register({["url"===e?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),null==(t=this.Mr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Mr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.Mr)||!r.tryAddCustomEvent(e,t))}}var Lo={},No=()=>{},Wo="posthog",$o=!fa&&-1===(null==F?void 0:F.indexOf("MSIE"))&&-1===(null==F?void 0:F.indexOf("Mozilla")),Bo=e=>{var t;return B({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:ar(null==O?void 0:O.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:No,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,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_conversations:!1,disable_product_tours:!0,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,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;Ut.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:fo},error_tracking:{},_onCapture:No,__preview_eager_load_replay:!1},(e=>({rageclick:!(e&&e>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(e&&e>="2025-05-24")||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Ho=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=Jt({},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]:Ut.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class Vo{constructor(){this.__forceAllowLocalhost=!1}get Br(){return this.__forceAllowLocalhost}set Br(e){Ut.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Uo{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 Vo,this.qr=!1,this.version=N.LIB_VERSION,this.bi=new eo,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Bo(),this.SentryIntegration=oi,this.sentryIntegration=e=>{return t=ai(this,e),{name:ii,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Wr=!1,this.Gr=null,this.Vr=null,this.Jr=null,this.featureFlags=new Fa(this),this.toolbar=new di(this),this.scrollManager=new bo(this),this.pageViewManager=new Ai(this),this.surveys=new ao(this),this.conversations=new so(this),this.logs=new lo(this),this.experiments=new Ro(this),this.exceptions=new Pa(this),this.rateLimiter=new uo(this),this.requestRouter=new To(this),this.consent=new Gn(this),this.externalIntegrations=new Ao(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=>Ut.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Wo){var n,i=null!==(n=Lo[r])&&void 0!==n?n:new Uo;return i._init(e,t,r),Lo[r]=i,Lo[Wo][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n;if(void 0===t&&(t={}),ie(e)||oe(e))return Ut.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.Kr(t.debug),this.Yr=t,this.Xr=[],t.person_profiles&&(this.Vr=t.person_profiles),this.set_config(Jt({},Bo(t.defaults),Ho(t),{name:r,token:e})),this.config.on_xhr_error&&Ut.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:Di.GZipJS;var i=this.Qr();this.persistence=new Na(this.config,i),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Na(B({},this.config,{persistence:"sessionStorage"}),i);var a=B({},this.persistence.props),o=B({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Zr=new go(e=>this.ts(e),this.config.request_queue_config),this.es=new vo(this),this.__request_queue=[];var s="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(s||(this.sessionManager=new ko(this),this.sessionPropsManager=new xo(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ut.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.rs(s)},0)):(Ut.info("Initializing extensions synchronously"),this.rs(s)),N.DEBUG=N.DEBUG||this.config.debug,N.DEBUG&&Ut.info("Starting in debug mode",{this:this,config:t,thisC:B({},this.config),p:a,s:o}),void 0!==(null==(n=t.bootstrap)?void 0:n.distinctID)){var l,c,u=this.config.get_device_id(Dn()),d=null!=(l=t.bootstrap)&&l.isIdentifiedID?u:t.bootstrap.distinctID;this.persistence.set_property(jr,null!=(c=t.bootstrap)&&c.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:d})}if(this.ss()){var p,h,f=Object.keys((null==(p=t.bootstrap)?void 0:p.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},{}),g=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>f[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:f,featureFlagPayloads:g})}if(s)this.register_once({distinct_id:Lr,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(Dn());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(jr,"anonymous")}return sr(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()||Dn();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(jr,"identified")),t()},i=r.user();"then"in i&&te(i.then)?i.then(n):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||ni.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()||(ni.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(ni.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.ns()):this.ns(),te(this.config._onCapture)&&this.config._onCapture!==No&&(Ut.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Ut.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}rs(e){var t=performance.now();this.historyAutocapture=new ri(this),this.historyAutocapture.startIfEnabled();var r=[];r.push(()=>{new hi(this).startIfEnabledOrStop()}),r.push(()=>{var e;this.siteApps=new Co(this),null==(e=this.siteApps)||e.init()}),e||r.push(()=>{this.sessionRecording=new Fo(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||r.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.push(()=>{this.autocapture=new En(this),this.autocapture.startIfEnabled()}),r.push(()=>{this.surveys.loadIfEnabled()}),r.push(()=>{this.logs.loadIfEnabled()}),r.push(()=>{this.conversations.loadIfEnabled()}),r.push(()=>{this.productTours=new Ba(this),this.productTours.loadIfEnabled()}),r.push(()=>{this.heatmaps=new Ii(this),this.heatmaps.startIfEnabled()}),r.push(()=>{this.webVitalsAutocapture=new ji(this)}),r.push(()=>{this.exceptionObserver=new ei(this),this.exceptionObserver.startIfEnabledOrStop()}),r.push(()=>{this.deadClicksAutocapture=new Jn(this,Xn),this.deadClicksAutocapture.startIfEnabled()}),r.push(()=>{if(this.os){var e=this.os;this.os=void 0,this.wi(e)}}),this.ls(r,t)}ls(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.ls(e,t)},0);var r=e.shift();if(r)try{r()}catch(i){Ut.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:n}),this.config.__preview_deferred_init_extensions&&Ut.info("PostHog extensions initialized ("+n+"ms)")}wi(e){var t,r,n,i,a,o,s,l,c;if(!O||!O.body)return Ut.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.wi(e)},500);this.config.__preview_deferred_init_extensions&&(this.os=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Y(e.supportedCompression,Di.GZipJS)?Di.GZipJS:Y(e.supportedCompression,Di.Base64)?Di.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Vr?this.Vr:"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),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),null==(o=this.productTours)||o.onRemoteConfig(e),null==(s=this.webVitalsAutocapture)||s.onRemoteConfig(e),null==(l=this.exceptionObserver)||l.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(c=this.deadClicksAutocapture)||c.onRemoteConfig(e)}ns(){try{this.config.loaded(this)}catch(r){Ut.critical("`loaded` function failed",r)}if(this.us(),this.config.internal_or_test_user_hostname&&null!=I&&I.hostname){var e=I.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.hs()},1),new ho(this).load(),this.featureFlags.flags()}us(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Zr)||e.enable())}_dom_loaded(){this.is_capturing()&&Kt(this.__request_queue,e=>this.ts(e)),this.__request_queue=[],this.us()}_handle_unload(){var e,t;this.surveys.handlePageUnload(),this.config.request_batching?(this.ds()&&this.capture("$pageleave"),null==(e=this.Zr)||e.unload(),null==(t=this.es)||t.unload()):this.ds()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&($o?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.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=or(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)}}))))}ts(e){this.es?this.es.retriableRequest(e):this._send_request(e)}_execute_array(e){var t,r=[],n=[],i=[];Kt(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){Kt(e,function(e){if(ee(e[0])){var r=t;Xt(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)}ss(){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.Zr){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)&&(Ut.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=Dn(),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="$groupidentify"!==e,p=this.vs(null==r?void 0:r.$set_once,d);if(p&&(c.$set_once=p),(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=[],Kt(t,t=>{a.push(e(t))})):(a={},Xt(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===Ua.DISMISSED||e===Ua.SENT){var h=null==t?void 0:t[qa.SURVEY_ID],f=null==t?void 0:t[qa.SURVEY_ITERATION];u={id:h,current_iteration:f},localStorage.getItem(Xa(u))||localStorage.setItem(Xa(u),"true"),c.$set=B({},c.$set,{[Ka({id:h,current_iteration:f},e===Ua.SENT?"responded":"dismissed")]:!0})}else e===Ua.SHOWN&&(c.$set=B({},c.$set,{[qa.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));var g=B({},c.properties.$set,c.$set);if(ne(g)||this.setPersonPropertiesForFlags(g),!le(this.config.before_send)){var m=this.cs(c);if(!m)return;c=m}this.bi.emit("eventCaptured",c);var v={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.ts(v):this.Zr.enqueue(v),c}Ut.critical("This capture call is ignored due to client rate limiting.")}}else Ut.error("No event name provided to posthog.capture")}else Ut.uninitializedWarning("posthog.capture")}_addCaptureHook(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))&&Ut.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var l,c=function(e,t){if(!F)return{};var r,n,i,a=e?Zt([],gi,t||[]):[],[o,s]=function(e){for(var t=0;t<vt.length;t++){var[r,n]=vt[t],i=r.exec(e),a=i&&(te(n)?n(i,e):n);if(a)return a}return["",""]}(F);return Jt(nr({$os:o,$os_version:s,$browser:ft(F,navigator.vendor),$device:bt(F),$device_type:(n=F,i=bt(n),i===Te||i===ze||"Kobo"===i||"Kindle Fire"===i||i===at?Ee:i===Ge||i===Ke||i===Qe||i===rt?"Console":i===Re?"Wearable":i?Se:"Desktop"),$timezone:Pi(),$timezone_offset:Ei()}),{$current_url:_n(null==I?void 0:I.href,a,vi),$host:null==I?void 0:I.host,$pathname:null==I?void 0:I.pathname,$raw_user_agent:F.length>1e3?F.substring(0,997)+"...":F,$browser_version:mt(F,navigator.vendor),$browser_language:ki(),$browser_language_prefix:(r=ki(),"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&&Jt(o,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Jt(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=null==(p=this.es)?void 0:p.length}catch(m){o.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===Eo.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=Jt(o,l),"$pageview"===e&&O&&(o.title=O.title),!ie(a)){var h=r.getTime()-a;o.$duration=parseFloat((h/1e3).toFixed(3))}F&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=Jt({},c,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),ee(this.config.property_denylist)?Xt(this.config.property_denylist,function(e){delete o[e]}):Ut.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var f=this.config.sanitize_properties;f&&(Ut.error("sanitize_properties is deprecated. Use before_send instead"),o=f(o,e));var g=this.fs();return o.$process_person_profile=g,g&&!i&&this.ps("_calculate_event_properties"),o}vs(e,t){var r;if(void 0===t&&(t=!0),!this.persistence||!this.fs())return e;if(this.qr)return e;var n=this.persistence.get_initial_props(),i=null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps(),a=Jt({},n,i||{},e||{}),o=this.config.sanitize_properties;return o&&(Ut.error("sanitize_properties is deprecated. Use before_send instead"),a=o(a,"$set_once")),t&&(this.qr=!0),ne(a)?void 0:a}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)}gs(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,t,r){var n=null!=r&&r.merge?this.featureFlags.getFlagVariants():{},i=null!=r&&r.merge?this.featureFlags.getFlagPayloads():{},a=B({},n,e),o=B({},i,t),s={};for(var[l,c]of Object.entries(a)){var u="string"==typeof c;s[l]={key:l,enabled:!!u||Boolean(c),variant:u?c:void 0,reason:void 0,metadata:ie(null==o?void 0:o[l])?void 0:{id:0,version:void 0,description:void 0,payload:o[l]}}}this.featureFlags.receivedFeatureFlags({flags:s})}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.bi.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=Za),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}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 Ut.uninitializedWarning("posthog.identify");if(ce(e)&&(e=e.toString(),Ut.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()))Ut.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!==Lr){if(this.ps("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(cr)&&(this.unregister(cr),this.register({distinct_id:e}));var a="anonymous"===(this.persistence.get_property(jr)||"anonymous");e!==n&&a?(this.persistence.set_property(jr,"identified"),this.setPersonPropertiesForFlags(B({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Jr=_a(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(Tr))}}else Ut.critical('The string "'+Lr+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ut.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.ps("posthog.setPersonProperties")){var r=_a(this.get_distinct_id(),e,t);this.Jr!==r?(this.setPersonPropertiesForFlags(B({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Jr=r):Ut.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){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 Ut.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.ps("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,r,n,i;if(Ut.info("reset"),!this.__loaded)return Ut.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(jr,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.Jr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Lr,$device_id:null},"");else{var o=this.config.get_device_id(Dn());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(lr)?(Ut.critical("Attempting to create alias for existing People user - aborting."),-2):this.ps("posthog.alias")?(ie(t)&&(t=this.get_distinct_id()),e!==t?(this.gs(cr,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Ut.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,s,l;Jt(this.config,Ho(e));var c=this.Qr();null==(r=this.persistence)||r.update_config(this.config,t,c),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Na(B({},this.config,{persistence:"sessionStorage"}),c);var u=this.Kr(this.config.debug);de(u)&&(this.config.debug=u),de(this.config.debug)&&(this.config.debug?(N.DEBUG=!0,$n.H()&&$n.G("ph_debug","true"),Ut.info("set_config",{config:e,oldConfig:t,newConfig:B({},this.config)})):(N.DEBUG=!1,$n.H()&&$n.V("ph_debug"))),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(i=this.sessionRecording)||i.startIfEnabledOrStop(),null==(a=this.autocapture)||a.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),null==(s=this.exceptionObserver)||s.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this._s(),null==(l=this.externalIntegrations)||l.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))}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}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:Wo;return t!==Wo&&(t=Wo+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(jr))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(jr))}fs(){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[cr])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Mr]))}ds(){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.fs()||this.ps("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.ps("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}ps(e){return"never"===this.config.person_profiles?(Ut.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.gs(Mr,!0),!0)}Qr(){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}_s(){var e,t,r,n,i=this.Qr();return(null==(e=this.persistence)?void 0:e.Pi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.Pi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t,r,n,i;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(r=this.sessionManager)||r.destroy(),null==(n=this.pageViewManager)||n.destroy(),this.sessionManager=new ko(this),this.pageViewManager=new Ai(this),this.persistence&&(this.sessionPropsManager=new xo(this,this.sessionManager,this.persistence)),this.sessionRecording=new Fo(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this._s(),this.us(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(ie(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(i=null==e?void 0:e.captureEventName)&&void 0!==i?i:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.hs()):Ut.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t,r;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this._s(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Lr,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),null==(t=this.pageViewManager)||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(r=this.sessionRecording)||r.stopRecording(),this.sessionRecording=void 0,this.hs())):Ut.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===Yn.GRANTED?"granted":e===Yn.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._s()}_is_bot(){return R?Po(R,this.config.custom_blocked_useragents):void 0}hs(){O&&("visible"===O.visibilityState?this.Wr||(this.Wr=!0,this.capture("$pageview",{title:O.title},{send_instantly:!0}),this.Gr&&(O.removeEventListener("visibilitychange",this.Gr),this.Gr=null)):this.Gr||(this.Gr=this.hs.bind(this),sr(O,"visibilitychange",this.Gr)))}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.Yr||{};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?(Ut.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=Ut,i=(t="advanced_disable_flags")in(e=o)&&!le(e[t]),a=r in e&&!le(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]))}cs(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 pe(e.event)?Ut.warn(i+". This can cause unexpected behavior."):Ut.info(i),null}r.properties&&!ne(r.properties)||Ut.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.Kt)?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)})}Kr(e){var t=de(e)&&!e,r=$n.H()&&"true"===$n.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=rr(e.prototype[t[r]])}(Uo,["identify"]);var qo,Yo=(qo=Lo[Wo]=new Uo,function(){function e(){e.done||(e.done=!0,$o=!1,Xt(Lo,function(e){e._dom_loaded()}))}null!=O&&O.addEventListener?"complete"===O.readyState?e():sr(O,"DOMContentLoaded",e,{capture:!1}):P&&Ut.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),qo);let Go=null,Qo=!1,Ko=null;const Xo=()=>(Go||Qo||(Go=(()=>{if(Yo.__loaded)return Yo;if(Qo)return null;Qo=!0;try{return Yo.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(Ko)return Ko;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 Ko=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){}}}),Go=Yo,Yo}catch(e){return console.error("[PostHog] Failed to initialize:",e),null}finally{Qo=!1}})()),Go),Jo=(e,t)=>{const r=Xo();if(r)try{r.capture(e,t)}catch(n){}},Zo=(e,t)=>{const r=Xo();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)}},es=(e,t)=>(...r)=>{try{return console.log("withErrorHandling",e),t(...r)}catch(n){throw console.error("Error in withErrorHandling:",n),Zo(n,{context:e}),n}},ts=(e,t)=>(...r)=>{try{return t(...r).catch(t=>{throw"AbortError"!==t.name&&Zo(t,{context:e}),t})}catch(n){throw"AbortError"!==n.name&&Zo(n,{context:e}),n}};var rs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function is(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 as,os,ss={exports:{}},ls={};function cs(){if(as)return ls;as=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 ls.Fragment=t,ls.jsx=r,ls.jsxs=r,ls}function us(){return os||(os=1,ss.exports=cs()),ss.exports}var ds,ps,hs=us(),fs={exports:{}},gs={};function ms(){if(ds)return gs;ds=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(){}},h=Object.assign,f={};function g(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=f,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,h(b,g.prototype),b.isPureReactComponent=!0;var y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function k(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 E(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 E((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,"$&/")+"/"),E(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=k(l.type,c,void 0,0,0,l.props)),n.push(o)),1;p=0;var h,f=""===a?".":a+":";if(y(r))for(var g=0;g<r.length;g++)p+=E(a=r[g],n,i,s=f+C(a,g),o);else if("function"==typeof(g=null===(h=r)||"object"!=typeof h?null:"function"==typeof(h=d&&h[d]||h["@@iterator"])?h:null))for(r=g.call(r),g=0;!(a=r.next()).done;)p+=E(a=a.value,n,i,s=f+C(a,g++),o);else if("object"===s){if("function"==typeof r.then)return E(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 z(e,t,r){if(null==e)return e;var n=[],i=0;return E(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 gs.Children={map:z,forEach:function(e,t,r){z(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return z(e,function(){t++}),t},toArray:function(e){return z(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}},gs.Component=g,gs.Fragment=r,gs.Profiler=i,gs.PureComponent=v,gs.StrictMode=n,gs.Suspense=l,gs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,gs.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},gs.cache=function(e){return function(){return e.apply(null,arguments)}},gs.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=h({},e.props),i=e.key;if(null!=t)for(a in t.ref,void 0!==t.key&&(i=""+t.key),t)!_.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 k(e.type,i,void 0,0,0,n)},gs.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},gs.createElement=function(e,t,r){var n,i={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=""+t.key),t)_.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 k(e,a,void 0,0,0,i)},gs.createRef=function(){return{current:null}},gs.forwardRef=function(e){return{$$typeof:s,render:e}},gs.isValidElement=w,gs.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},gs.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},gs.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}},gs.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},gs.use=function(e){return x.H.use(e)},gs.useActionState=function(e,t,r){return x.H.useActionState(e,t,r)},gs.useCallback=function(e,t){return x.H.useCallback(e,t)},gs.useContext=function(e){return x.H.useContext(e)},gs.useDebugValue=function(){},gs.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},gs.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)},gs.useId=function(){return x.H.useId()},gs.useImperativeHandle=function(e,t,r){return x.H.useImperativeHandle(e,t,r)},gs.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},gs.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},gs.useMemo=function(e,t){return x.H.useMemo(e,t)},gs.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},gs.useReducer=function(e,t,r){return x.H.useReducer(e,t,r)},gs.useRef=function(e){return x.H.useRef(e)},gs.useState=function(e){return x.H.useState(e)},gs.useSyncExternalStore=function(e,t,r){return x.H.useSyncExternalStore(e,t,r)},gs.useTransition=function(){return x.H.useTransition()},gs.version="19.1.1",gs}function vs(){return ps||(ps=1,fs.exports=ms()),fs.exports}var bs=vs();const ys=ns(bs),xs=C({__proto__:null,default:ys},[bs]);var _s,ks,ws={exports:{}},Ss={},Cs={exports:{}},Ps={};function Es(){return _s||(_s=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,h=!1,f=!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 _(e){if(g=!1,x(e),!f)if(null!==r(l))f=!0,w||(w=!0,k());else{var t=r(c);null!==t&&R(_,t.startTime-e)}}var k,w=!1,S=-1,C=5,P=-1;function E(){return!(!m&&e.unstable_now()-P<C)}function z(){if(m=!1,w){var t=e.unstable_now();P=t;var i=!0;try{e:{f=!1,g&&(g=!1,b(S),S=-1),h=!0;var a=p;try{t:{for(x(t),d=r(l);null!==d&&!(d.expirationTime>t&&E());){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(_,u.startTime-t),i=!1}}break e}finally{d=null,p=a,h=!1}i=void 0}}finally{i?k():w=!1}}}if("function"==typeof y)k=function(){y(z)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,j=T.port2;T.port1.onmessage=z,k=function(){j.postMessage(null)}}else k=function(){v(z,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(_,a-o))):(n.sortIndex=s,t(l,n),f||h||(f=!0,w||(w=!0,k()))),n},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}}(Ps)),Ps}function zs(){return ks||(ks=1,Cs.exports=Es()),Cs.exports}var Ts,js,Rs,Os,Is={exports:{}},As={};function Ds(){if(Ts)return As;Ts=1;var e=vs();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 As.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,As.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)},As.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()}},As.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))},As.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},As.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})}},As.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)},As.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})}},As.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)},As.requestFormReset=function(e){n.d.r(e)},As.unstable_batchedUpdates=function(e,t){return e(t)},As.useFormState=function(e,t,r){return a.H.useFormState(e,t,r)},As.useFormStatus=function(){return a.H.useHostTransitionStatus()},As.version="19.1.1",As}function Ms(){return js||(js=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)}}(),Is.exports=Ds()),Is.exports}function Fs(){if(Rs)return Ss;Rs=1;var e=zs(),t=vs(),r=Ms();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"),h=Symbol.for("react.fragment"),f=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"),_=Symbol.for("react.suspense_list"),k=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 E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var z=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===z?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case x:return"Suspense";case _: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 k: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 F(e){0>D||(e.current=A[D],A[D]=null,D--)}function L(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(L($,t),L(W,e),L(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}}F(N),L(N,e)}function V(){F(N),F(W),F($)}function U(e){null!==e.memoizedState&&L(B,e);var t=N.current,r=sd(t,e.type);t!==r&&(L(W,e),L(N,r))}function q(e){W.current===e&&(F(N),F(W)),B.current===e&&(F(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,J=e.unstable_now,Z=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,he=256,fe=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=he;return!(4194048&(he<<=1))&&(he=256),e}function xe(){var e=fe;return!(62914560&(fe<<=1))&&(fe=4194304),e}function _e(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ke(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 Ee(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var ze=Math.random().toString(36).slice(2),Te="__reactFiber$"+ze,je="__reactProps$"+ze,Re="__reactContainer$"+ze,Oe="__reactEvents$"+ze,Ie="__reactListeners$"+ze,Ae="__reactHandles$"+ze,De="__reactResources$"+ze,Me="__reactMarker$"+ze;function Fe(e){delete e[Te],delete e[je],delete e[Oe],delete e[Ie],delete e[Ae]}function Le(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=_d(e);null!==e;){if(r=e[Te])return r;e=_d(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 Je(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 Ze(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 ht(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 ft(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 _t(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 kt(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&&_t(e,a,i)}else for(var o in t)t.hasOwnProperty(o)&&_t(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 Et=null;function zt(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(ht(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));ht(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 Ft={};Object.defineProperty(Ft,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch(Dp){Mt=!1}var Lt=null,Nt=null,Wt=null;function $t(){if(Wt)return Wt;var e,t,r=Nt,n=r.length,i="value"in Lt?Lt.value:Lt.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}),Jt=Ut(Xt),Zt=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(Zt),tr=Ut(c({},Zt,{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({},Zt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hr=Ut(c({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur})),fr=Ut(c({},Qt,{propertyName:0,elapsedTime:0,pseudoElement:0})),gr=Ut(c({},Zt,{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,_r=Dt&&(!br||yr&&8<yr&&11>=yr),kr=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,Er={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 zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Er[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){Lu(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 Fr="oninput"in document;if(!Fr){var Lr=document.createElement("div");Lr.setAttribute("oninput","return;"),Fr="function"==typeof Lr.oninput}Mr=Fr}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,zt(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 Jr=Dt&&"documentMode"in document&&11>=document.documentMode,Zr=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==Zr||Zr!==ut(n)||(n="selectionStart"in(n=Zr)&&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=Zr)))}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"),hn=cn("transitionrun"),fn=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 _n(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 kn=[],wn=0,Sn=0;function Cn(){for(var e=wn,t=Sn=wn=0;t<e;){var r=kn[t];kn[t++]=null;var n=kn[t];kn[t++]=null;var i=kn[t];kn[t++]=null;var a=kn[t];if(kn[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){kn[wn++]=e,kn[wn++]=t,kn[wn++]=r,kn[wn++]=n,Sn|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function En(e,t,r,n){return Pn(e,t,r,n),jn(e)}function zn(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 Fn(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 h:return Ln(r.children,a,o,t);case f: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 _:return(e=In(19,r,t,a)).elementType=_,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 k: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 Ln(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 Jn(e){null!==e.return&&(Kn(e,1),Xn(e,1,0))}function Zn(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(_n(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),ft(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||Ju(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=Zu),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===_c?_c=e:_c.push.apply(_c,e),ni=null),e}function pi(e){null===ni?ni=[e]:ni.push(e)}var hi=M(null),fi=null,gi=null;function mi(e,t,r){L(hi,t._currentValue),t._currentValue=r}function vi(e){e._currentValue=hi.current,F(hi)}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 _i(e){for(e=e.firstContext;null!==e;){if(!Ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){fi=e,gi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function wi(e){return Ci(fi,e)}function Si(e,t){return null===fi&&ki(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()})}},Ei=e.unstable_scheduleCallback,zi=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&&Ei(zi,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 Fi=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!==Fi&&Fi(e,t)};var Li=M(null);function Ni(){var e=Li.current;return null!==e?e:ac.pooledCache}function Wi(e,t){L(Li,null===t?Li.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 Ji=!1;function Zi(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;Ji=!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 h=-536870913&s.lane,f=h!==s.lane;if(f?(sc&h)===h:(n&h)===h){0!==h&&h===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;h=t;var v=r;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){p=g.call(v,p,h);break e}p=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(h="function"==typeof(g=m.payload)?g.call(v,p,h):g))break e;p=c({},p,h);break e;case 2:Ji=!0}}null!==(h=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=i.callbacks)?i.callbacks=[h]:f.push(h))}else f={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=f,l=p):d=d.next=f,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}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){L(da,e=hc),L(ua,t),hc=e|t.baseLanes}function ha(){L(da,hc),L(ua,ua.current)}function fa(){hc=da.current,F(ua),F(da)}var ga=0,ma=null,va=null,ba=null,ya=!1,xa=!1,_a=!1,ka=0,wa=0,Sa=null,Ca=0;function Pa(){throw Error(n(321))}function Ea(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 za(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,_a=!1,a=r(n,i),_a=!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||Ps||null!==(e=e.dependencies)&&_i(e)&&(Ps=!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?Fa(t):t,e=e.useState()[0],(null!==va?va.memoizedState:null)!==e&&(ma.flags|=1024),t}function Oa(){var e=0!==ka;return ka=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=ka=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 Fa(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 La(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Fa(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 h=u.revertLane;if(0===h)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&h)===h){u=u.next,h===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|=h,gc|=h}p=u.action,_a&&r(o,p),o=u.hasEagerState?u.eagerState:r(o,p)}else h={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,s=o):c=c.next=h,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)&&(Ps=!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)||(Ps=!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,Ps=!0),a=a.queue,fo(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=zn(e,2);null!==t&&Lc(t,0,2)}function Ka(e){var t=Da();if("function"==typeof e){var r=e;if(e=r(),_a){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 Ja(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,Za(t,o)):(o.next=r.next,t.pending=r.next=o)}}function Za(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,Za(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=Lo.bind(null,ma,!1,n.queue),i={state:t,dispatch:null,action:e,pending:null},(n=Da()).queue=i,r=Ja.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=Fa(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 ho(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 fo(e,t,r,n){var i=Ma();n=void 0===n?null:n;var a=i.memoizedState.inst;null!==va&&null!==n&&Ea(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){ho(8390656,8,e,t)}function mo(e,t){fo(2048,8,e,t)}function vo(e,t){return fo(4,2,e,t)}function bo(e,t){return fo(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,fo(4,4,yo.bind(null,t,e),r)}function _o(){}function ko(e,t){var r=Ma();t=void 0===t?null:t;var n=r.memoizedState;return null!==t&&Ea(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&&Ea(t,n[1]))return n[0];if(n=e(),_a){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=Fc(),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)||(Ps=!0),e):42&ga?(e=Fc(),ma.lanes|=e,gc|=e,t):(Ps=!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,Lo(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?Fo(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()):Fo(e,t,n,Mc())}catch(h){Fo(e,t,{then:function(){},status:"rejected",reason:h},Mc())}finally{O.p=a,R.T=c}}function Eo(){}function zo(e,t,r,i){if(5!==e.tag)throw Error(n(476));var a=To(e).queue;Po(e,a,t,I,null===r?Eo: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){Fo(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&&(Lc(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=En(e,t,r,n))&&(Lc(r,0,n),$o(r,t,n))}function Mo(e,t,r){Fo(e,t,r,Mc())}function Fo(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=En(e,t,i,n)))return Lc(r,0,n),$o(r,t,n),!0}return!1}function Lo(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=En(e,r,i,2))&&Lc(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:La,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:La,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,ho(4194308,4,yo.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ho(4194308,4,e,t)},useInsertionEffect:function(e,t){ho(4,2,e,t)},useMemo:function(e,t){var r=Da();t=void 0===t?null:t;var n=e();if(_a){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(_a){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:_o,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=ka++)&&(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=Lo.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:La,useCallback:ko,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:$a,useRef:po,useState:function(){return $a(Wa)},useDebugValue:_o,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:Fa(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:La,useCallback:ko,useContext:wi,useEffect:mo,useImperativeHandle:xo,useInsertionEffect:vo,useLayoutEffect:bo,useMemo:wo,useReducer:Ha,useRef:po,useState:function(){return Ha(Wa)},useDebugValue:_o,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:Fa(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 Jo(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===h?f(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=Fn(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 f(e,t,r,n,i){return null===t||7!==t.tag?((t=Ln(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=Fn(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)||E(t))return(t=Ln(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)||E(r))return null!==i?null:f(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)||E(n))return f(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,f){if("object"==typeof u&&null!==u&&u.type===h&&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)===h){if(7===c.tag){r(l,c.sibling),(f=a(c,u.props.children)).return=l,l=f;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===w&&Xo(x)===c.type){r(l,c.sibling),Qo(f=a(c,u.props),u),f.return=l,l=f;break e}r(l,c);break}t(l,c),c=c.sibling}u.type===h?((f=Ln(u.props.children,l.mode,f,u.key)).return=l,l=f):(Qo(f=Fn(u.type,u.key,u.props,null,l.mode,f),u),f.return=l,l=f)}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),(f=a(c,u.children||[])).return=l,l=f;break e}r(l,c);break}t(l,c),c=c.sibling}(f=Wn(u,l.mode,f)).return=l,l=f}return s(l);case w:return y(l,c,u=(x=u._init)(u._payload),f)}if(j(u))return function(n,a,s,l){for(var c=null,u=null,d=a,p=a=0,h=null;null!==d&&p<s.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var f=m(n,d,s[p],l);if(null===f){null===d&&(d=h);break}e&&d&&null===f.alternate&&t(n,d),a=o(f,a,p),null===u?c=f:u.sibling=f,u=f,d=h}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!==(h=v(d,n,p,s[p],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=o(h,a,p),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(n,e)}),ri&&Kn(n,p),c}(l,c,u,f);if(E(u)){if("function"!=typeof(x=E(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,h=s=0,f=null,b=l.next();null!==p&&!b.done;h++,b=l.next()){p.index>h?(f=p,p=null):f=p.sibling;var y=m(a,p,b.value,c);if(null===y){null===p&&(p=f);break}e&&p&&null===y.alternate&&t(a,p),s=o(y,s,h),null===d?u=y:d.sibling=y,d=y,p=f}if(b.done)return r(a,p),ri&&Kn(a,h),u;if(null===p){for(;!b.done;h++,b=l.next())null!==(b=g(a,b.value,c))&&(s=o(b,s,h),null===d?u=b:d.sibling=b,d=b);return ri&&Kn(a,h),u}for(p=i(p);!b.done;h++,b=l.next())null!==(b=v(p,a,h,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?h:b.key),s=o(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(a,e)}),ri&&Kn(a,h),u}(l,c,u=x.call(u),f)}if("function"==typeof u.then)return y(l,c,Go(u),f);if(u.$$typeof===b)return y(l,c,Si(l,u),f);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),(f=a(c,u)).return=l,l=f):(r(l,c),(f=Nn(u,l.mode,f)).return=l,l=f),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 Zo=Jo(!0),es=Jo(!1),ts=M(null),rs=null;function ns(e){var t=e.alternate;L(ss,1&ss.current),L(ts,e),null===rs&&(null===t||null!==ua.current||null!==t.memoizedState)&&(rs=e)}function is(e){if(22===e.tag){if(L(ss,ss.current),L(ts,e),null===rs){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rs=e)}}else as()}function as(){L(ss,ss.current),L(ts,ts.current)}function os(e){F(ts),rs===e&&(rs=null),F(ss)}var ss=M(0);function ls(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 cs(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 us={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))&&(Lc(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))&&(Lc(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))&&(Lc(t,0,r),na(t,e,r))}};function ds(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 ps(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&&us.enqueueReplaceState(t,t.state,null)}function hs(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 fs="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 gs(e){fs(e)}function ms(e){console.error(e)}function bs(e){fs(e)}function ys(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function xs(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 _s(e,t,r){return(r=ta(r)).tag=3,r.payload={element:null},r.callback=function(){ys(e,t)},r}function ks(e){return(e=ta(e)).tag=3,e}function ws(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(){xs(t,r,n)}}var o=r.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){xs(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 Cs=Error(n(461)),Ps=!1;function Es(e,t,r,n){t.child=null===e?es(t,null,r,n):Zo(t,e.child,r,n)}function Ts(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 ki(t),n=za(e,t,r,o,a,i),s=Oa(),null===e||Ps?(ri&&s&&Jn(t),t.flags|=1,Es(e,t,n,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function js(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=Fn(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Os(e,t,a,n,i))}if(a=e.child,!Js(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 Os(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(qr(a,n)&&e.ref===t.ref){if(Ps=!1,t.pendingProps=n=a,!Js(e,i))return t.lanes=e.lanes,Xs(e,t,i);131072&e.flags&&(Ps=!0)}}return Fs(e,t,r,n,i)}function Is(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 As(e,t,n,r)}if(!(536870912&r))return t.lanes=t.childLanes=536870912,As(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):ha(),is(t)}else null!==a?(Wi(0,a.cachePool),pa(t,a),as(),t.memoizedState=null):(null!==e&&Wi(0,null),ha(),as());return Es(e,t,i,r),t.child}function As(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),ha(),is(t),null!==e&&xi(e,t,n,!0),null}function Ds(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 Fs(e,t,r,n,i){return ki(t),r=za(e,t,r,n,void 0,i),n=Oa(),null===e||Ps?(ri&&n&&Jn(t),t.flags|=1,Es(e,t,r,i),t.child):(Ia(e,t,i),Xs(e,t,i))}function Ls(e,t,r,n,i,a){return ki(t),t.updateQueue=null,r=ja(t,n,r,i),Ta(e),n=Oa(),null===e||Ps?(ri&&n&&Jn(t),t.flags|=1,Es(e,t,r,a),t.child):(Ia(e,t,a),Xs(e,t,a))}function Ns(e,t,r,n,i){if(ki(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=us,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=n,a.state=t.memoizedState,a.refs={},Zi(t),o=r.contextType,a.context="object"==typeof o&&null!==o?wi(o):Rn,a.state=t.memoizedState,"function"==typeof(o=r.getDerivedStateFromProps)&&(cs(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&&us.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=hs(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)&&ps(t,a,n,o),Ji=!1;var p=t.memoizedState;a.state=p,sa(t,n,a,i),oa(),c=t.memoizedState,s||p!==c||Ji?("function"==typeof d&&(cs(t,r,d,n),c=t.memoizedState),(l=Ji||ds(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=hs(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)&&ps(t,a,n,l),Ji=!1,p=t.memoizedState,a.state=p,sa(t,n,a,i),oa();var h=t.memoizedState;o!==d||p!==h||Ji||null!==e&&null!==e.dependencies&&_i(e.dependencies)?("function"==typeof s&&(cs(t,r,s,n),h=t.memoizedState),(u=Ji||ds(t,r,u,n,p,h,l)||null!==e&&null!==e.dependencies&&_i(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,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=h),a.props=n,a.state=h,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,Ds(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=Zo(t,e.child,null,i),t.child=Zo(t,null,r,i)):Es(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,Es(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&ss.current)),i&&(o=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(ri){if(o?ns(t):as(),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;os(t)}return c=a.children,a=a.fallback,o?(as(),c=qs({mode:"hidden",children:c},o=t.mode),a=Ln(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?(as(),t.child=e.child,t.flags|=128,t=null):(as(),o=a.fallback,c=t.mode,a=qs({mode:"visible",children:a.children},c),(o=Ln(o,c,r,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Zo(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(Ps||xi(e,t,r,!1),i=0!==(r&e.childLanes),Ps||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,zn(e,a),Lc(i,0,a),Cs;"$?"===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?(as(),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=Ln(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 Zo(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(Es(e,t,n.children,r),2&(n=ss.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(L(ss,n),i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ls(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===ls(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 Js(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!_i(e))}function Zs(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ps=!0;else{if(!(Js(e,r)||128&t.flags))return Ps=!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),L(ss,ss.current),n)break;return null;case 22:case 23:return t.lanes=0,Is(e,t,r);case 24:mi(0,Ti,e.memoizedState.cache)}return Xs(e,t,r)}(e,t,r);Ps=!!(131072&e.flags)}else Ps=!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=Ts(null,t,i,e,r);break e}if(a===k){t.tag=14,t=js(null,t,i,e,r);break e}}throw t=T(i)||i,Error(n(306,t,""))}An(i)?(e=hs(i,e),t.tag=1,t=Ns(null,t,i,e,r)):(t.tag=0,t=Fs(null,t,i,e,r))}return t;case 0:return Fs(e,t,t.type,t.pendingProps,r);case 1:return Ns(e,t,i=t.type,a=hs(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=_n(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}Es(e,t,i,r)}t=t.child}return t;case 26:return Ds(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=kd(t.type,t.pendingProps,$.current),ei=t,ii=!0,a=ti,gd(t.type)?(xd=a,ti=yd(i.firstChild)):ti=a),Es(e,t,t.pendingProps.children,r),Ds(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=za(e,t,Ra,null,null,r),Kd._currentValue=a),Ds(e,t),Es(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=Zo(t,null,i,r):Es(e,t,i,r),t.child;case 11:return Ts(e,t,t.type,t.pendingProps,r);case 7:return Es(e,t,t.pendingProps,r),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,mi(0,t.type,i.value),Es(e,t,i.children,r),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,ki(t),i=i(a=wi(a)),t.flags|=1,Es(e,t,i,r),t.child;case 14:return js(e,t,t.type,t.pendingProps,r);case 15:return Os(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 Is(e,t,r);case 24:return ki(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},Zi(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))),Es(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(Zn(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=kd(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||Ju(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?(os(t),t):(os(t),null)}if(os(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(F(ss),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!==fc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=ls(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 L(ss,1&ss.current|2),t.child}e=e.sibling}null!==a.tail&&J()>Sc&&(t.flags|=128,i=!0,nl(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ls(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*J()-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=J(),t.sibling=null,e=ss.current,L(ss,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return os(t),fa(),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&&F(Li),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(Zn(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(os(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 F(ss),null;case 4:return V(),null;case 10:return vi(t.type),null;case 22:case 23:return os(t),fa(),null!==e&&F(Li),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(Zn(t),t.tag){case 3:vi(Ti),V();break;case 26:case 27:case 5:q(t);break;case 4:V();break;case 13:os(t);break;case 19:F(ss);break;case 10:vi(t.type);break;case 22:case 23:os(t),fa(),null!==e&&F(Li);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=hs(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 hl(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 fl(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(f in r){var p=r[f];if(r.hasOwnProperty(f)&&null!=p)switch(f){case"checked":case"value":break;case"defaultValue":c=p;default:i.hasOwnProperty(f)||ed(e,t,f,null,i,p)}}for(var h in i){var f=i[h];if(p=r[h],i.hasOwnProperty(h)&&(null!=f||null!=p))switch(h){case"type":o=f;break;case"name":a=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,t));break;default:f!==p&&ed(e,t,h,f,i,p)}}return void ht(e,s,l,c,u,d,o,a);case"select":for(o in f=s=l=h=null,r)if(c=r[o],r.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":f=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":h=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=f,void(null!=h?mt(e,!!r,h,!1):!!i!=!!r&&(null!=t?mt(e,!!r,t,!0):mt(e,!!r,r?[]:"",!1)));case"textarea":for(l in f=h=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":h=a;break;case"defaultValue":f=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,h,f);case"option":for(var g in r)h=r[g],r.hasOwnProperty(g)&&null!=h&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,h));for(c in i)h=i[c],f=r[c],!i.hasOwnProperty(c)||h===f||null==h&&null==f||("selected"===c?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:ed(e,t,c,h,i,f));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)h=r[m],r.hasOwnProperty(m)&&null!=h&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,h);for(u in i)if(h=i[u],f=r[u],i.hasOwnProperty(u)&&h!==f&&(null!=h||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,t));break;default:ed(e,t,u,h,i,f)}return;default:if(wt(t)){for(var v in r)h=r[v],r.hasOwnProperty(v)&&void 0!==h&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,h);for(d in i)h=i[d],f=r[d],!i.hasOwnProperty(d)||h===f||void 0===h&&void 0===f||td(e,t,d,h,i,f);return}}for(var b in r)h=r[b],r.hasOwnProperty(b)&&null!=h&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,h);for(p in i)h=i[p],f=r[p],!i.hasOwnProperty(p)||h===f||null==h&&null==f||ed(e,t,p,h,i,f)}(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=Zu));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 _l=!1,kl=!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=hs(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&&fl(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||_l)){t=null!==t&&null!==t.memoizedState||kl,i=_l;var a=kl;_l=n,(kl=t)&&!a?$l(e,r,!!(8772&r.subtreeFlags)):Nl(e,r),_l=i,kl=a}break;case 30:break;default:Nl(e,r)}}function El(e){var t=e.alternate;null!==t&&(e.alternate=null,El(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Fe(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 zl=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:kl||hl(r,t),jl(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode).parentNode.removeChild(r);break;case 27:kl||hl(r,t);var n=zl,i=Tl;gd(r.type)&&(zl=r.stateNode,Tl=!1),jl(e,t,r),wd(r.stateNode),zl=n,Tl=i;break;case 5:kl||hl(r,t);case 6:if(n=zl,i=Tl,zl=null,jl(e,t,r),Tl=i,null!==(zl=n))if(Tl)try{(9===zl.nodeType?zl.body:"HTML"===zl.nodeName?zl.ownerDocument.body:zl).removeChild(r.stateNode)}catch(o){pu(r,t,o)}else try{zl.removeChild(r.stateNode)}catch(o){pu(r,t,o)}break;case 18:null!==zl&&(Tl?(md(9===(e=zl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,r.stateNode),Tp(e)):md(zl,r.stateNode));break;case 4:n=zl,i=Tl,zl=r.stateNode.containerInfo,Tl=!0,jl(e,t,r),zl=n,Tl=i;break;case 0:case 11:case 14:case 15:kl||cl(2,r,t),kl||cl(4,r,t),jl(e,t,r);break;case 1:kl||(hl(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:kl=(n=kl)||null!==r.memoizedState,jl(e,t,r),kl=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)){zl=l.stateNode,Tl=!1;break e}break;case 5:zl=l.stateNode,Tl=!1;break e;case 3:case 4:zl=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===zl)throw Error(n(160));Rl(o,s,a),zl=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),Fl(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),64&i&&_l&&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),Fl(e),512&i&&(kl||null===r||hl(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),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),null!==r&&4&i&&gl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Al(t,e),Fl(e),512&i&&(kl||null===r||hl(r,r.return)),32&e.flags){a=e.stateNode;try{yt(a,"")}catch(f){pu(e,e.return,f)}}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),Fl(e),4&i){if(null===e.stateNode)throw Error(n(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(f){pu(e,e.return,f)}}break;case 3:if(Wd=null,a=Dl,Dl=Pd(t.containerInfo),Al(t,e),Dl=a,Fl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Tp(t.containerInfo)}catch(f){pu(e,e.return,f)}wl&&(wl=!1,Ll(e));break;case 4:i=Dl,Dl=Pd(e.stateNode.containerInfo),Al(t,e),Fl(e),Dl=i;break;case 12:default:Al(t,e),Fl(e);break;case 13:Al(t,e),Fl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==r&&null!==r.memoizedState)&&(wc=J()),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=_l,d=kl;if(_l=u||a,kl=d||c,Al(t,e),kl=d,_l=u,Fl(e),8192&i)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===r||c||_l||kl||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,h=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(f){pu(c,c.return,f)}}}else if(6===t.tag){if(null===r){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(f){pu(c,c.return,f)}}}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),Fl(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Il(e,i));case 30:case 21:}}function Fl(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 Ll(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ll(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:hl(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:hl(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&&fl(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))&&Ld(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 Jl(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;)Zl(e),e=e.sibling}function Zl(e){switch(e.tag){case 0:case 11:case 15:Jl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Jl(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)):Jl(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(El(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,hc=0,fc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,_c=null,kc=!1,wc=0,Sc=1/0,Cc=null,Pc=null,Ec=0,zc=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():Ee()}function Fc(){0===bc&&(bc=536870912&sc&&!ri?536870912:ye());var e=ts.current;return null!==e&&(e.flags|=32),bc}function Lc(e,t,r){(e!==ac||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Bc(e,sc,bc,!1)),ke(e,r),2&ic&&e===ac||(e===ac&&(!(2&ic)&&(mc|=r),4===fc&&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=J()+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(),fc=6;break e;default:throw Error(n(462))}}Jc();break}catch(d){qc(e,d)}return gi=fi=null,R.H=i,R.A=a,ic=r,null!==oc?0:(ac=null,sc=0,Cn(),fc)}(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=_c,_c=a,null!==o&&(null===_c?_c=o:_c.push.apply(_c,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:_c=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&t)===t&&10<(a=wc+300-J())){if(Bc(i,t,bc,!uc),0!==me(i,0,!0))break e;i.timeoutHandle=ud(Wc.bind(null,i,r,_c,Cc,kc,t,bc,mc,yc,uc,o,2,-0,0),a)}else Wc(i,r,_c,Cc,kc,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,h,f){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,h,f)),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=fi=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=fc=0,_c=xc=null,kc=!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 hc=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===Cs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===oc&&(fc=1,ys(e,_n(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(){fc=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=fc;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=fc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,gi=fi=null,ic=n,R.H=i,R.A=a,null===oc&&(ac=null,sc=0,Cn()),o}function Xc(){for(;null!==oc;)Zc(oc)}function Jc(){for(;null!==oc&&!K();)Zc(oc)}function Zc(e){var t=Zs(e.alternate,e,hc);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=Ls(r,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=Ls(r,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:Aa(t);default:sl(r,t),t=Zs(r,t=oc=Mn(t,hc),hc)}e.memoizedProps=e.pendingProps,null===t?ru(e):oc=t}function tu(e,t,r,i){gi=fi=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===fc&&(fc=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),hu(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),hu(e,i,a)),!1}throw Error(n(435,r.tag))}return hu(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(_n(e=Error(n(422),{cause:i}),r))):(i!==ai&&pi(_n(t=Error(n(423),{cause:i}),r)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,i=_n(i,r),ia(e,a=_s(e.stateNode,i,a)),4!==fc&&(fc=2)),!1;var o=Error(n(520),{cause:i});if(o=_n(o,r),null===xc?xc=[o]:xc.push(o),4!==fc&&(fc=2),null===t)return!0;i=_n(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,ia(r,e=_s(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,ws(a=ks(a),e,r,i),ia(r,a),!1}r=r.return}while(null!==r);return!1}(e,a,t,r,sc))return fc=1,ys(e,_n(r,e.current)),void(oc=null)}catch(o){if(null!==a)throw oc=a,o;return fc=1,ys(e,_n(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,hc);if(null!==r)return void(oc=r);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===fc&&(fc=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);fc=6,oc=null}function iu(e,t,r,i,a,o,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==Ec);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 h=p[u];null!==h&&(h.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,zc=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,h=null;e:for(;;){for(var f;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!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break e;if(h===r&&++u===a&&(l=s),h===o&&++d===i&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}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=hs(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}}Ec=1,au(),ou(),su()}}function au(){if(1===Ec){Ec=0;var e=zc,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 h=p.getSelection(),f=s.textContent.length,g=Math.min(l.start,f),m=void 0===l.end?g:Math.min(l.end,f);!h.extend&&g>m&&(o=m,m=g,g=o);var v=Gr(s,g),b=Gr(s,m);if(v&&b&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),h.removeAllRanges(),g>m?(h.addRange(y),h.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),h.addRange(y))}}}}for(d=[],h=s;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.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,Ec=2}}function ou(){if(2===Ec){Ec=0;var e=zc,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}}Ec=3}}function su(){if(4===Ec||3===Ec){Ec=0,X();var e=zc,t=Tc,r=jc,n=Ic;10256&t.subtreeFlags||10256&t.flags?Ec=5:(Ec=0,Tc=zc=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!==Ec)return!1;var e=zc,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=zc,s=jc;if(Ec=0,Tc=zc=null,jc=0,6&ic)throw Error(n(331));var l=ic;if(ic|=4,Zl(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=_n(r,t),null!==(e=ra(e,t=_s(e.stateNode,t,2),2))&&(ke(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=_n(r,e),null!==(n=ra(t,r=ks(2),2))&&(ws(r,n,t,e),ke(n,2),Su(n));break}}t=t.return}}function hu(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=fu.bind(null,e,t,r),t.then(e,e))}function fu(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===fc||3===fc&&(62914560&sc)===sc&&300>J()-wc?!(2&ic)&&Uc(e,0):vc|=r,yc===sc&&(yc=0)),Su(e)}function gu(e,t){0===t&&(t=xe()),null!==(e=zn(e,t))&&(ke(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,_u=!1,ku=!1,wu=0;function Su(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),_u=!0,xu||(xu=!0,hd(function(){6&ic?G(ee,Pu):Eu()}))}function Cu(e,t){if(!ku&&_u){ku=!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);ku=!1}}function Pu(){Eu()}function Eu(){_u=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=J(),n=null,i=bu;null!==i;){var a=i.next,o=zu(i,r);0===o?(i.next=null,null===n?bu=a:n.next=a,null===a&&(yu=n)):(n=i,(0!==t||3&o)&&(_u=!0)),i=a}Cu(t)}function zu(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!==Ec&&5!==Ec)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),zu(e,J()),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(hn,"onTransitionRun"),yn(fn,"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(" "),Fu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mu));function Lu(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){fs(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){fs(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&&(Fu.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=Le(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=zt(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=hr;break;case un:case dn:case pn:c=nr;break;case mn:c=fr;break;case"scroll":case"scrollend":c=Jt;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),h=d?null!==l?l+"Capture":null:l;d=[];for(var f,g=n;null!==g;){var m=g;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===h||null!=(m=At(g,h))&&d.push(Uu(g,m,f)),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===Et||!(u=r.relatedTarget||r.fromElement)||!Le(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)?Le(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",h="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=pr,m="onPointerLeave",h="onPointerEnter",g="pointer"),p=null==c?l:We(c),f=null==u?l:We(u),(l=new d(m,g+"leave",c,r,i)).target=p,l.relatedTarget=f,m=null,Le(i)===n&&((d=new d(h,g+"enter",u,r,i)).target=f,d.relatedTarget=p,m=d),p=m,c&&u)e:{for(h=u,g=0,f=d=c;f;f=Yu(f))g++;for(f=0,m=h;m;m=Yu(m))f++;for(;0<g-f;)d=Yu(d),g--;for(;0<f-g;)h=Yu(h),f--;for(;g--;){if(d===h||null!==h&&d===h.alternate)break e;d=Yu(d),h=Yu(h)}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(zr(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":(zr(b)||"true"===b.contentEditable)&&(Zr=b,en=n,tn=null);break;case"focusout":tn=en=Zr=null;break;case"mousedown":rn=!0;break;case"contextmenu":case"mouseup":case"dragend":rn=!1,nn(s,r,i);break;case"selectionchange":if(Jr)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&&(_r&&"ko"!==r.locale&&(Pr||"onCompositionStart"!==x?"onCompositionEnd"===x&&Pr&&(y=$t()):(Nt="value"in(Lt=i)?Lt.value:Lt.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,kr);case"textInput":return(e=t.data)===kr&&wr?null:e;default:return null}}(e,r):function(e,t){if(Pr)return"compositionend"===e||!br&&Sr(e,t)?(e=$t(),Wt=Nt=Lt=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 _r&&"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);zo(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),zo(r,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(s,e,n,r,i)}Lu(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 Ju(e,t){return t=Xu(t),Xu(e)===t}function Zu(){}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":Ze(e,"class",i);break;case"tabIndex":Ze(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ze(e,r,i);break;case"style":kt(e,i,o);break;case"data":if("object"!==t){Ze(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=Zu);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),Je(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":Je(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])&&Je(e,r=St.get(r)||r,i)}}function td(e,t,r,i,a,o){switch(r){case"style":kt(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=Zu);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,""):Je(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 ft(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,hd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(fd)}:ud;function fd(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),Fe(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 _d(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 kd(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]);Fe(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 Ed=O.d;O.d={f:function(){var e=Ed.f(),t=Hc();return e||t},r:function(e){var t=Ne(e);null!==t&&5===t.tag&&"form"===t.type?jo(t):Ed.r(e)},D:function(e){Ed.D(e),Td("dns-prefetch",e,null)},C:function(e,t){Ed.C(e,t),Td("preconnect",e,t)},L:function(e,t,r){Ed.L(e,t,r);var n=zd;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){Ed.m(e,t);var r=zd;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){Ed.X(e,t);var r=zd;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){Ed.S(e,t,r);var n=zd;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))&&Ld(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,Fd(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){Ed.M(e,t);var r=zd;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 zd="undefined"==typeof document?null:document;function Td(e,t,r){var n=zd;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),Fd(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))&&Ld(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,Fd(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,Fd(i,r.precedence,e));return t.instance}function Fd(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 Ld(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=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(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 Jd(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},Zi(a),e}function Zd(e){return e?e=Rn:Rn}function ep(e,t,r,n,i,a){i=Zd(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))&&(Lc(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=zn(e,67108864);null!==t&&Lc(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 hp=_p(hp,e,t,r,n,i),!0;case"dragenter":return fp=_p(fp,e,t,r,n,i),!0;case"mouseover":return gp=_p(gp,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return mp.set(a,_p(mp.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,vp.set(a,_p(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=J()+500,Cu(0))}}break;case 13:null!==(s=zn(a,2))&&Lc(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=zt(e))}var cp=null;function up(e){if(cp=null,null!==(e=Le(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(Z()){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,hp=null,fp=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":hp=null;break;case"dragenter":case"dragleave":fp=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 _p(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 kp(e){var t=Le(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=zn(r,e);null!==t&&Lc(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);Et=n,r.target.dispatchEvent(n),Et=null,t.shift()}return!0}function Sp(e,t,r){wp(e)&&r.delete(t)}function Cp(){pp=!1,null!==hp&&wp(hp)&&(hp=null),null!==fp&&wp(fp)&&(fp=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 Ep=null;function zp(t){Ep!==t&&(Ep=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ep===t&&(Ep=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,zo(a,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function Tp(e){function t(t){return Pp(t,e)}null!==hp&&Pp(hp,e),null!==fp&&Pp(fp,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;)kp(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||zp(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),zp(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=Ee();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&&kp(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 Ss.createRoot=function(e,t){if(!i(e))throw Error(n(299));var r=!1,a="",o=gs,s=ms,l=bs;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=Jd(e,1,!1,null,0,r,a,o,s,l,0,null),e[Re]=t.current,Bu(e),new jp(t)},Ss.hydrateRoot=function(e,t,r){if(!i(e))throw Error(n(299));var a=!1,o="",s=gs,l=ms,c=bs,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=Jd(e,1,!0,t,0,a,o,s,l,c,0,u)).context=Zd(null),r=t.current,(o=ta(a=Ce(a=Mc()))).callback=null,ra(r,o,a),r=a,t.current.lanes=r,ke(t,r),Su(t),e[Re]=t.current,Bu(e),new Rp(t)},Ss.version="19.1.1",Ss}function Ls(){return Os||(Os=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)}}(),ws.exports=Fs()),ws.exports}const Ns=ns(Ls());function Ws(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var $s=/^((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|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)-.*))$/,Bs=Ws(function(e){return $s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Hs=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}(),Vs="-ms-",Us="-moz-",qs="-webkit-",Ys="comm",Gs="rule",Qs="decl",Ks="@keyframes",Xs=Math.abs,Js=String.fromCharCode,Zs=Object.assign;function el(e){return e.trim()}function tl(e,t,r){return e.replace(t,r)}function rl(e,t){return e.indexOf(t)}function nl(e,t){return 0|e.charCodeAt(t)}function il(e,t,r){return e.slice(t,r)}function al(e){return e.length}function ol(e){return e.length}function sl(e,t){return t.push(e),e}var ll=1,cl=1,ul=0,dl=0,pl=0,hl="";function fl(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ll,column:cl,length:o,return:""}}function gl(e,t){return Zs(fl("",null,null,"",null,null,0),e,{length:-e.length},t)}function ml(){return pl=dl>0?nl(hl,--dl):0,cl--,10===pl&&(cl=1,ll--),pl}function vl(){return pl=dl<ul?nl(hl,dl++):0,cl++,10===pl&&(cl=1,ll++),pl}function bl(){return nl(hl,dl)}function yl(){return dl}function xl(e,t){return il(hl,e,t)}function _l(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 kl(e){return ll=cl=1,ul=al(hl=e),dl=0,[]}function wl(e){return hl="",e}function Sl(e){return el(xl(dl-1,El(91===e?e+2:40===e?e+1:e)))}function Cl(e){for(;(pl=bl())&&pl<33;)vl();return _l(e)>2||_l(pl)>3?"":" "}function Pl(e,t){for(;--t&&vl()&&!(pl<48||pl>102||pl>57&&pl<65||pl>70&&pl<97););return xl(e,yl()+(t<6&&32==bl()&&32==vl()))}function El(e){for(;vl();)switch(pl){case e:return dl;case 34:case 39:34!==e&&39!==e&&El(pl);break;case 40:41===e&&El(e);break;case 92:vl()}return dl}function zl(e,t){for(;vl()&&e+pl!==57&&(e+pl!==84||47!==bl()););return"/*"+xl(t,dl-1)+"*"+Js(47===e?e:vl())}function Tl(e){for(;!_l(bl());)vl();return xl(e,dl)}function jl(e){return wl(Rl("",null,null,null,[""],e=kl(e),0,[0],e))}function Rl(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",x=i,_=a,k=n,w=y;m;)switch(f=b,b=vl()){case 40:if(108!=f&&58==nl(w,d-1)){-1!=rl(w+=tl(Sl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=Sl(b);break;case 9:case 10:case 13:case 32:w+=Cl(f);break;case 92:w+=Pl(yl()-1,7);continue;case 47:switch(bl()){case 42:case 47:sl(Il(zl(vl(),yl()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=al(w)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(w=tl(w,/\f/g,"")),h>0&&al(w)-d&&sl(h>32?Al(w+";",n,r,d-1):Al(tl(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(sl(k=Ol(w,t,r,c,u,i,s,y,x=[],_=[],d),a),123===b)if(0===u)Rl(w,t,k,k,x,a,d,s,_);else switch(99===p&&110===nl(w,3)?100:p){case 100:case 108:case 109:case 115:Rl(e,k,k,n&&sl(Ol(e,k,k,0,0,i,s,y,i,x=[],d),_),i,_,d,s,n?x:_);break;default:Rl(w,k,k,k,[""],_,0,s,_)}}c=u=h=0,g=v=1,y=w="",d=o;break;case 58:d=1+al(w),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ml())continue;switch(w+=Js(b),b*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(al(w)-1)*v,v=1;break;case 64:45===bl()&&(w+=Sl(vl())),p=bl(),u=d=al(y=w+=Tl(yl())),b++;break;case 45:45===f&&2==al(w)&&(g=0)}}return a}function Ol(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],h=ol(p),f=0,g=0,m=0;f<n;++f)for(var v=0,b=il(e,d+1,d=Xs(g=o[f])),y=e;v<h;++v)(y=el(g>0?p[v]+" "+b:tl(b,/&\f/g,p[v])))&&(l[m++]=y);return fl(e,t,r,0===i?Gs:s,l,c,u)}function Il(e,t,r){return fl(e,t,r,Ys,Js(pl),il(e,2,-2),0)}function Al(e,t,r,n){return fl(e,t,r,Qs,il(e,0,n),il(e,n+1,-1),n)}function Dl(e,t){for(var r="",n=ol(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Ml(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qs:return e.return=e.return||e.value;case Ys:return"";case Ks:return e.return=e.value+"{"+Dl(e.children,n)+"}";case Gs:e.value=e.props.join(",")}return al(r=Dl(e.children,n))?e.return=e.value+"{"+r+"}":""}var Fl=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}},Ll=function(e,t,r){for(var n=0,i=0;n=i,i=bl(),38===n&&12===i&&(t[r]=1),!_l(i);)vl();return xl(e,dl)},Nl=new WeakMap,Wl=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)||Nl.get(r))&&!n){Nl.set(e,!0);for(var i=[],a=function(e,t){return wl(function(e,t){var r=-1,n=44;do{switch(_l(n)){case 0:38===n&&12===bl()&&(t[r]=1),e[r]+=Ll(dl-1,t,r);break;case 2:e[r]+=Sl(n);break;case 4:if(44===n){e[++r]=58===bl()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Js(n)}}while(n=vl());return e}(kl(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]}}},$l=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Bl(e,t){switch(function(e,t){return 45^nl(e,0)?(((t<<2^nl(e,0))<<2^nl(e,1))<<2^nl(e,2))<<2^nl(e,3):0}(e,t)){case 5103:return qs+"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 qs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qs+e+Us+e+Vs+e+e;case 6828:case 4268:return qs+e+Vs+e+e;case 6165:return qs+e+Vs+"flex-"+e+e;case 5187:return qs+e+tl(e,/(\w+).+(:[^]+)/,qs+"box-$1$2"+Vs+"flex-$1$2")+e;case 5443:return qs+e+Vs+"flex-item-"+tl(e,/flex-|-self/,"")+e;case 4675:return qs+e+Vs+"flex-line-pack"+tl(e,/align-content|flex-|-self/,"")+e;case 5548:return qs+e+Vs+tl(e,"shrink","negative")+e;case 5292:return qs+e+Vs+tl(e,"basis","preferred-size")+e;case 6060:return qs+"box-"+tl(e,"-grow","")+qs+e+Vs+tl(e,"grow","positive")+e;case 4554:return qs+tl(e,/([^-])(transform)/g,"$1"+qs+"$2")+e;case 6187:return tl(tl(tl(e,/(zoom-|grab)/,qs+"$1"),/(image-set)/,qs+"$1"),e,"")+e;case 5495:case 3959:return tl(e,/(image-set\([^]*)/,qs+"$1$`$1");case 4968:return tl(tl(e,/(.+:)(flex-)?(.*)/,qs+"box-pack:$3"+Vs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qs+e+e;case 4095:case 3583:case 4068:case 2532:return tl(e,/(.+)-inline(.+)/,qs+"$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(al(e)-1-t>6)switch(nl(e,t+1)){case 109:if(45!==nl(e,t+4))break;case 102:return tl(e,/(.+:)(.+)-([^]+)/,"$1"+qs+"$2-$3$1"+Us+(108==nl(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rl(e,"stretch")?Bl(tl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nl(e,t+1))break;case 6444:switch(nl(e,al(e)-3-(~rl(e,"!important")&&10))){case 107:return tl(e,":",":"+qs)+e;case 101:return tl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qs+(45===nl(e,14)?"inline-":"")+"box$3$1"+qs+"$2$3$1"+Vs+"$2box$3")+e}break;case 5936:switch(nl(e,t+11)){case 114:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qs+e+Vs+tl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qs+e+Vs+e+e}return e}var Hl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qs:e.return=Bl(e.value,e.length);break;case Ks:return Dl([gl(e,{value:tl(e.value,"@","@"+qs)})],n);case Gs: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 Dl([gl(e,{props:[tl(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Dl([gl(e,{props:[tl(t,/:(plac\w+)/,":"+qs+"input-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,Vs+"input-$1")]})],n)}return""})}}],Vl=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||Hl,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=[Ml,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[Wl,$l].concat(a,p),u=ol(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,Dl(jl(e?e+"{"+t.styles+"}":t.styles),h),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Hs({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 f.sheet.hydrate(s),f};const Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"}));function ql(){return ql=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},ql.apply(null,arguments)}var Yl,Gl,Ql,Kl,Xl={exports:{}},Jl={};function Zl(){if(Yl)return Jl;Yl=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,h=e?Symbol.for("react.memo"):60115,f=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 f:case h:case o:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return Jl.AsyncMode=l,Jl.ConcurrentMode=c,Jl.ContextConsumer=s,Jl.ContextProvider=o,Jl.Element=t,Jl.ForwardRef=u,Jl.Fragment=n,Jl.Lazy=f,Jl.Memo=h,Jl.Portal=r,Jl.Profiler=a,Jl.StrictMode=i,Jl.Suspense=d,Jl.isAsyncMode=function(e){return x(e)||y(e)===l},Jl.isConcurrentMode=x,Jl.isContextConsumer=function(e){return y(e)===s},Jl.isContextProvider=function(e){return y(e)===o},Jl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Jl.isForwardRef=function(e){return y(e)===u},Jl.isFragment=function(e){return y(e)===n},Jl.isLazy=function(e){return y(e)===f},Jl.isMemo=function(e){return y(e)===h},Jl.isPortal=function(e){return y(e)===r},Jl.isProfiler=function(e){return y(e)===a},Jl.isStrictMode=function(e){return y(e)===i},Jl.isSuspense=function(e){return y(e)===d},Jl.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===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Jl.typeOf=y,Jl}function ec(){return Gl||(Gl=1,Xl.exports=Zl()),Xl.exports}function tc(){if(Kl)return Ql;Kl=1;var e=ec(),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 Ql=function e(t,n,i){if("string"!=typeof n){if(d){var p=u(n);p&&p!==d&&e(t,p,i)}var h=s(n);l&&(h=h.concat(l(n)));for(var f=a(t),g=a(n),m=0;m<h.length;++m){var v=h[m];if(!(r[v]||i&&i[v]||g&&g[v]||f&&f[v])){var b=c(n,v);try{o(t,v,b)}catch(y){}}}}return t}}const rc=ns(tc());function nc(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var ic=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ac=function(e,t,r){ic(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)}},oc={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},sc=/[A-Z]|^ms/g,lc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cc=function(e){return 45===e.charCodeAt(1)},uc=function(e){return null!=e&&"boolean"!=typeof e},dc=Ws(function(e){return cc(e)?e:e.replace(sc,"-$&").toLowerCase()}),pc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lc,function(e,t,r){return fc={name:t,styles:r,next:fc},t})}return 1===oc[e]||cc(e)||"number"!=typeof t||0===t?t:t+"px"};function hc(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 fc={name:i.name,styles:i.styles,next:fc},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)fc={name:o.name,styles:o.styles,next:fc},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+=hc(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]+"}":uc(s)&&(n+=dc(a)+":"+pc(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=hc(e,t,o);switch(a){case"animation":case"animationName":n+=dc(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)uc(o[c])&&(n+=dc(a)+":"+pc(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=fc,l=r(e);return fc=s,hc(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var fc,gc=/label:\s*([^\s;{]+)\s*(;|$)/g;function mc(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="";fc=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=hc(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=hc(r,t,e[o]),n&&(i+=a[o]);gc.lastIndex=0;for(var s,l="";null!==(s=gc.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:fc}}var vc,bc,yc=!!xs.useInsertionEffect&&xs.useInsertionEffect,xc=yc||function(e){return e()},_c=yc||bs.useLayoutEffect,kc=bs.createContext("undefined"!=typeof HTMLElement?Vl({key:"css"}):null),wc=kc.Provider,Sc=function(e){return bs.forwardRef(function(t,r){var n=bs.useContext(kc);return e(t,n,r)})},Cc=bs.createContext({}),Pc=Fl(function(e){return Fl(function(t){return function(e,t){return"function"==typeof t?t(e):ql({},e,t)}(e,t)})}),Ec={}.hasOwnProperty,zc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ic(t,r,n),xc(function(){return ac(t,r,n)}),null},jc=Sc(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[zc],a=[n],o="";"string"==typeof e.className?o=nc(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=mc(a,void 0,bs.useContext(Cc));o+=t.key+"-"+s.name;var l={};for(var c in e)Ec.call(e,c)&&"css"!==c&&c!==zc&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),bs.createElement(bs.Fragment,null,bs.createElement(Tc,{cache:t,serialized:s,isStringTag:"string"==typeof i}),bs.createElement(i,l))}),Rc=jc,Oc=function(e,t){var r=arguments;if(null==t||!Ec.call(t,"css"))return bs.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Rc,i[1]=function(e,t){var r={};for(var n in t)Ec.call(t,n)&&(r[n]=t[n]);return r[zc]=e,r}(e,t);for(var a=2;a<n;a++)i[a]=r[a];return bs.createElement.apply(null,i)};vc=Oc||(Oc={}),bc||(bc=vc.JSX||(vc.JSX={}));var Ic=Sc(function(e,t){var r=mc([e.styles],void 0,bs.useContext(Cc)),n=bs.useRef();return _c(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]),_c(function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ac(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 Ac(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return mc(t)}var Dc=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},Mc=function(e){var t=e.cache,r=e.serializedArr;return xc(function(){for(var e=0;e<r.length;e++)ac(t,r[e],!1)}),null},Fc=Sc(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=mc(n,t.registered);return r.push(a),ic(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=nc(e,n,r);return n.length<2?r:i+t(n)}(t.registered,n,Dc(r))},theme:bs.useContext(Cc)},a=e.children(i);return bs.createElement(bs.Fragment,null,bs.createElement(Mc,{cache:t,serializedArr:r}),a)});const Lc=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:wc,ClassNames:Fc,Global:Ic,ThemeContext:Cc,ThemeProvider:function(e){var t=bs.useContext(Cc);return e.theme!==t&&(t=Pc(t)(e.theme)),bs.createElement(Cc.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return bs.useContext(kc)},get createElement(){return Oc},css:Ac,get jsx(){return Oc},keyframes:function(){var e=Ac.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 bs.useContext(Cc)},withEmotionCache:Sc,withTheme:function(e){var t=e.displayName||e.name||"Component",r=bs.forwardRef(function(t,r){var n=bs.useContext(Cc);return bs.createElement(e,ql({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",rc(r,e)}},Symbol.toStringTag,{value:"Module"}));function Nc(...e){return function(...t){e.forEach(e=>e?.(...t))}}const Wc=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),$c=/^on[A-Z]/;function Bc(...e){let t={};for(let r of e){for(let e in t)$c.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=Nc(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]??{}):Wc(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Hc(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}const Vc=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Uc=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),qc=e=>"string"==typeof e,Yc=e=>"function"==typeof e,Gc=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function Qc(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=bs.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=bs.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[Kc,Xc]=Qc({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Jc(e){const{value:t,children:r}=e;return hs.jsxs(Kc,{value:t,children:[!t._config.disableLayers&&hs.jsx(Ic,{styles:t.layers.atRule}),hs.jsx(Ic,{styles:t._global}),r]})}const Zc=(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,Yc(t)?t:e=>t.includes(e)),eu=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function tu(e){return"string"==typeof e&&eu.has(e)}var ru;const nu=(ru=Bs).default||ru,iu=e=>"theme"!==e;let au="undefined"!=typeof document;const ou=({cache:e,serialized:t,isStringTag:r})=>{ic(e,t,r);const n=xc(()=>ac(e,t,r));if(!au&&void 0!==n){let r=t.name,i=t.next;for(;void 0!==i;)r=Vc(r,i.name),i=i.next;return hs.jsx("style",{"data-emotion":Vc(e.key,r),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},su={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"]},lu=((e,t={},r={})=>{if(n=su,i=e,Object.prototype.hasOwnProperty.call(n,i)){r.forwardProps||(r.forwardProps=[]);const t=su[e];r.forwardProps=Gc([...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=Sc((n,i,s)=>{const{cva:u,isValidProperty:d}=Xc(),p=t.__cva__?t:u(t),h=du(e.__emotion_cva,p);var f;!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=(f=r.forwardProps,(e,t)=>!!f.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?nu:iu,i=!r?.includes(t)&&!d(t);return n(t)&&i}),m=bs.useMemo(()=>Object.assign({},r.defaultProps,Hc(n)),[n]),{props:v,styles:b}=function(e,t,r){const{css:n,isValidProperty:i}=Xc(),{children:a,...o}=e,s=bs.useMemo(()=>{const[e,n]=Zc(o,e=>r(e,t.variantKeys)),[a,s]=Zc(n,t.variantKeys),[l,c]=Zc(s,i);return{forwardedProps:e,variantProps:a,styleProps:l,elementProps:c}},[t.variantKeys,r,o,i]),{css:l,...c}=s.styleProps,u=bs.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:bs.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,h,g);let y="",x=[b],_=v;if(null==v.theme){_={};for(let e in v)_[e]=v[e];_.theme=bs.useContext(Cc)}"string"==typeof v.className?y=nc(i.registered,x,v.className):null!=v.className&&(y=Vc(y,v.className));const k=mc(c.concat(x),i.registered,_);k.styles&&(y=Vc(y,`${i.key}-${k.name}`)),void 0!==l&&(y=Vc(y,l));const w=!g("as");let S=w&&v.as||o,C={};for(let e in v)if(!w||"as"!==e){if(tu(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 E=r.forwardAsChild||r.forwardProps?.includes("asChild");if(v.asChild&&!E){const e=bs.isValidElement(v.children)?bs.Children.only(v.children):bs.Children.toArray(v.children).find(bs.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");S=e.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=Bc(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=bs.version;return qc(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return C.as&&E?(C.as=void 0,hs.jsxs(bs.Fragment,{children:[hs.jsx(ou,{cache:i,serialized:k,isStringTag:"string"==typeof S}),hs.jsx(S,{asChild:!0,...C,children:hs.jsx(v.as,{children:C.children})})]})):hs.jsxs(bs.Fragment,{children:[hs.jsx(ou,{cache:i,serialized:k,isStringTag:"string"==typeof S}),hs.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(),cu=new Map,uu=new Proxy(lu,{apply:(e,t,r)=>lu(...r),get:(e,t)=>(cu.has(t)||cu.set(t,lu(t)),cu.get(t))}),du=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),pu=uu("div");pu.displayName="Box";const hu=Object.freeze({}),fu=Object.freeze({});function gu(e){const{key:t,recipe:r}=e,n=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[a,o]=Qc({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=Xc();return bs.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]=bs.useMemo(()=>a.splitVariantProps(i),[a,i]);return{styles:n?hu:a(o),className:a.className,props:s}}return{withContext:(e,t)=>{const r=uu(e,{},t),n=bs.forwardRef((e,t)=>{const n=o(),i=bs.useMemo(()=>Bc(n,e),[e,n]),{styles:a,className:l,props:c}=s(i);return hs.jsx(r,{...c,ref:t,css:[a,i.css],className:Vc(l,i.className)})});return n.displayName=e.displayName||e.name,n},PropsProvider:a,withPropsProvider:function(){return a},usePropsContext:o,useRecipeResult:s}}const mu=bs.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 hs.jsx(uu.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 vu=e=>"string"==typeof e;Function.prototype.toString.call(Object);var bu=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function yu(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=bs.createContext(o);return s.displayName=t,[s.Provider,function e(){const t=bs.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[xu,_u]=yu({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var ku=e=>"object"==typeof e&&null!==e,wu=e=>ku(e)&&9===e.nodeType;function Su(e){return wu(e)?e:(e=>ku(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function Cu(e){return(e=>(e=>ku(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?Cu(e.host):wu(e)?e.defaultView??window:(e=>ku(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var Pu=new WeakMap,Eu=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),zu=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Tu=e=>{const t={};let r;for(;r=zu.exec(e);)t[r[1]]=r[2];return t},ju=(e,t)=>{if(vu(e)){if(vu(t))return`${e};${t}`;e=Tu(e)}else vu(t)&&(t=Tu(t));return Object.assign({},e??{},t??{})};function Ru(...e){let t={};for(let r of e){for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=bu(r[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:ju(t[e],r[e]):Eu(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function Ou(...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 Iu=e=>{const t=bs.memo(bs.forwardRef((t,r)=>{const{asChild:n,children:i,...a}=t;if(!n)return bs.createElement(e,{...a,ref:r},i);if(!bs.isValidElement(i))return null;const o=bs.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 bs.cloneElement(o,{...Ru(a,o.props),ref:r?Ou(r,s):s})}));return t.displayName=e.displayName||e.name,t},Au=(()=>{const e=new Map;return new Proxy(Iu,{apply:(e,t,r)=>Iu(r[0]),get(t,r){const n=r;return e.has(n)||e.set(n,Iu(n)),e.get(n)}})})();var Du=()=>e=>Array.from(new Set(e));const Mu=uu("span"),{withContext:Fu}=gu({key:"text"}),Lu=Fu("p");function Nu(e,t){const r=Xc().normalizeValue(e),n=function(e={}){e.fallback||(e.fallback="base");const t=Xc();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=bs.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return bs.useInsertionEffect(()=>{r.current=e}),bs.useCallback((...e)=>r.current?.(...e),t)}(i),o=Array.isArray(e)?e:[e],s=r?.filter(e=>null!=e),[l,c]=bs.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 bs.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 Wu=(e,t=[])=>({parts:(...r)=>{if(Bu(t))return Wu(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Wu(e,[...t,...r]),omit:(...r)=>Wu(e,t.filter(e=>!r.includes(e))),rename:e=>Wu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:[`&[data-scope="${$u(e)}"][data-part="${$u(r)}"]`,`& [data-scope="${$u(e)}"][data-part="${$u(r)}"]`].join(", "),attrs:{"data-scope":$u(e),"data-part":$u(r)}}}),{})}),$u=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Bu=e=>0===e.length,Hu=Wu("collapsible").parts("root","trigger","content","indicator");Hu.build(),Du()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Vu=Wu("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"]);Vu.build(),Du()(["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"]),Du()(["xChannel","yChannel"]),Du()(["channel","orientation"]),Du()(["value","disabled"]),Du()(["value","respectAlpha"]),Du()(["size"]);var Uu=Wu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Uu.build(),Du()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),Du()(["value","disabled"]);var qu=Wu("avatar").parts("root","image","fallback");qu.build(),Du()(["dir","id","ids","onStatusChange","getRootNode"]);var Yu=Wu("checkbox").parts("root","label","control","indicator");Yu.build(),Du()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Gu=Yu.extendWith("group"),[Qu,Ku]=yu({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Xu=Wu("clipboard").parts("root","control","trigger","indicator","input","label");Xu.build(),Du()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),Du()(["copied"]);const Ju=Vu.extendWith("view");var Zu=Wu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Zu.build(),Du()(["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"]),Du()(["htmlFor"]),Du()(["id"]),Du()(["item","persistFocus"]);var ed=Wu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");ed.build(),Du()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var td=Wu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");td.build(),Du()(["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 rd=Wu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");rd.build();var nd=e=>{if(!e)return;const t=function(e){return Pu.has(e)||Pu.set(e,Cu(e).getComputedStyle(e)),Pu.get(e)}(e),r=Cu(e),n=Su(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 id=bs.forwardRef((e,t)=>{const{autoresize:r,...n}=e,i=bs.useRef(null),a=Ku(),o=Ru(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return bs.useEffect(()=>{if(r)return nd(i.current)},[r]),hs.jsx(Au.textarea,{...o,ref:Ou(t,i)})});id.displayName="FieldTextarea";const ad=Wu("fieldset").parts("root","errorText","helperText","legend");ad.build();var od=Wu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");od.build(),Du()(["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"]),Du()(["file"]);const sd=Symbol(),ld=Object.getPrototypeOf,cd=new WeakMap,ud=(e,t=!0)=>{cd.set(e,t)};function dd(e,t){const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;return r?(r[e]||(r[e]=t()),r[e]):t()}var pd=dd("__zag__refSet",()=>new WeakSet),hd=e=>null!==e&&"object"==typeof e,fd=e=>hd(e)&&!pd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e)||(e=>"object"==typeof e&&null!==e&&"nodeType"in e&&"string"==typeof e.nodeName)(e))(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),gd=dd("__zag__proxyStateMap",()=>new WeakMap),[md]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=new WeakMap,n=(e,t)=>{const n=r.get(e);if(n?.[0]===t)return n[1];const i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return ud(i,!0),r.set(e,[t,i]),Reflect.ownKeys(e).forEach(t=>{const r=Reflect.get(e,t);pd.has(r)?(ud(r,!1),i[t]=r):gd.has(r)?i[t]=function(e){const t=gd.get(e),[r,n,i]=t;return i(r,n())}(r):i[t]=r}),Object.freeze(i)},i=new WeakMap,a=[1,1],o=r=>{if(!hd(r))throw new Error("object required");const o=i.get(r);if(o)return o;let s=a[0];const l=new Set,c=(e,t=++a[0])=>{s!==t&&(s=t,l.forEach(r=>r(e,t)))};let u=a[1];const d=e=>(t,r)=>{const n=[...t];n[1]=[e,...n[1]],c(n,r)},p=new Map,h=e=>{const t=p.get(e);t&&(p.delete(e),t[1]?.())},f=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),g=t(f,{deleteProperty(e,t){const r=Reflect.get(e,t);h(t);const n=Reflect.deleteProperty(e,t);return n&&c(["delete",[t],r]),n},set(t,r,n,a){const o=Reflect.has(t,r),s=Reflect.get(t,r,a);if(o&&(e(s,n)||i.has(n)&&e(s,i.get(n))))return!0;var u;h(r),hd(n)&&(n=(e=>e&&(cd.has(e)?cd.get(e):ld(e)===Object.prototype||ld(e)===Array.prototype))(u=n)&&u[sd]||null||n);let f=n;if(Object.getOwnPropertyDescriptor(t,r)?.set);else{!gd.has(n)&&fd(n)&&(f=vd(n));const e=!pd.has(f)&&gd.get(f);e&&((e,t)=>{if(l.size){const r=t[3](d(e));p.set(e,[t,r])}else p.set(e,[t])})(r,e)}return Reflect.set(t,r,f,a),c(["set",[r],n,s]),!0}});i.set(r,g);const m=[f,(e=++a[1])=>(u===e||l.size||(u=e,p.forEach(([t])=>{const r=t[1](e);r>s&&(s=r)})),s),n,e=>(l.add(e),1===l.size&&p.forEach(([e,t],r)=>{const n=e[3](d(r));p.set(r,[e,n])}),()=>{l.delete(e),0===l.size&&p.forEach(([e,t],r)=>{t&&(t(),p.set(r,[e]))})})];return gd.set(g,m),Reflect.ownKeys(r).forEach(e=>{const t=Object.getOwnPropertyDescriptor(r,e);t.get||t.set?Object.defineProperty(f,e,t):g[e]=r[e]}),g})=>[o,gd,pd,e,t,fd,r,n,i,a])();function vd(e={}){return md(e)}const bd=e=>{const{value:t,children:r}=e,[n,i]=bs.useState(),a=bs.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??n?.getRootNode()??document;var e},[t,n]),o=bs.useMemo(()=>({getRootNode:a,getWindow:()=>Cu(a()),getDocument:()=>Su(a())}),[a]);return hs.jsxs(xu,{value:o,children:[r,!t&&hs.jsx("span",{hidden:!0,ref:i})]})};var yd=Wu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");yd.build(),Du()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var xd=Wu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");xd.build(),Du()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),Du()(["node","indexPath"]);var _d=Wu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");_d.build(),Du()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),Du()(["closeOnSelect","disabled","value","valueText"]),Du()(["htmlFor"]),Du()(["id"]),Du()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var kd=Wu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");kd.build(),Du()(["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 wd=Wu("pinInput").parts("root","label","input","control");wd.build(),Du()(["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 Sd=Wu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Sd.build(),Du()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);var Cd=Wu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Cd.build(),Du()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Pd=Wu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Pd.build(),Du()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Ed=Wu("radio-group").parts("root","label","item","itemText","itemControl","indicator");Ed.build(),Du()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),Du()(["value","disabled","invalid"]);var zd=Wu("rating-group").parts("root","label","item","control");zd.build(),Du()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),Du()(["index"]);var Td=Wu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Td.build(),Du()(["dir","getRootNode","ids","id"]);const jd=Ed.rename("segment-group");jd.build();var Rd=Wu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Rd.build(),Du()(["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"]),Du()(["item","persistFocus"]),Du()(["id"]),Du()(["htmlFor"]);var Od=Wu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Od.build(),Du()(["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"]),Du()(["index","name"]);var Id=Wu("switch").parts("root","label","control","thumb");Id.build(),Du()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Ad=Wu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function Dd(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}Ad.build(),vd({id:null}),Du()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const Md=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 Fd(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>Fd(e));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Fd(e[r]);return t}function Ld(e,t){if(null==t)return e;for(const r of Object.keys(t))if(void 0!==t[r]&&"__proto__"!==r)if(!Uc(e[r])&&Uc(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Uc(t[r]))Ld(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Uc(e[r][n])&&Uc(t[r][n])?Ld(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function Nd(e,...t){for(const r of t)Ld(e,r);return e}const Wd=e=>null!=e;function $d(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,a=[]){if(Uc(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);Wd(d)&&(o[c]=d)}return o}return t(r,a)}(e)}function Bd(e,t){return Array.isArray(e)?e.map(e=>Wd(e)?t(e):e):Uc(e)?$d(e,e=>t(e)):Wd(e)?t(e):e}const Hd=["value","type","description"],Vd=(...e)=>{const t=Nd({},...e.map(Fd));return t.theme?.tokens&&$d(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!Hd.includes(e)).length>0,r=Hd.some(t=>null!=e[t]);return t&&r&&(e.DEFAULT||(e.DEFAULT={}),Hd.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=>Hd.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function Ud(){const e=e=>e;return new Proxy(e,{get:()=>e})}const qd=Ud(),Yd=Ud(),Gd=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Qd=/[A-Z]/g;function Kd(e,t={}){const{fallback:r="",prefix:n=""}=t,i=function(e){return e.replace(Qd,e=>`-${e.toLowerCase()}`)}(["-",n,(a=e,`${a}`.replace(Gd,e=>`\\${e}`))].filter(Boolean).join("-"));var a;return{var:i,ref:`var(${i}${r?`, ${r}`:""})`}}const Xd=(e,t)=>null!=t?`${e}(${t})`:t,Jd=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},Zd=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]??{}}}),ep=Md("borderColor"),tp=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),rp=Kd("bg-currentcolor"),np=e=>e===rp.ref||"currentBg"===e,ip=e=>({...e("colors"),currentBg:rp}),ap={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:ip,shorthand:["bg"],transform(e,t){if(np(t.raw))return{background:rp.ref};const r=Md("background")(e,t);return{...r,[rp.var]:r?.background}}},backgroundColor:{values:ip,shorthand:["bgColor"],transform(e,t){if(np(t.raw))return{backgroundColor:rp.ref};const r=Md("backgroundColor")(e,t);return{...r,[rp.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:ip,transform:Md("--gradient-from")},gradientTo:{values:ip,transform:Md("--gradient-to")},gradientVia:{values:ip,transform:(e,t)=>({...Md("--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:ip,transform:Md("borderColor")},borderTopColor:{values:ip,transform:Md("borderTopColor")},borderBlockStartColor:{values:ip,transform:Md("borderBlockStartColor")},borderBottomColor:{values:ip,transform:Md("borderBottomColor")},borderBlockEndColor:{values:ip,transform:Md("borderBlockEndColor")},borderLeftColor:{values:ip,transform:Md("borderLeftColor")},borderInlineStartColor:{values:ip,shorthand:["borderStartColor"],transform:Md("borderInlineStartColor")},borderRightColor:{values:ip,transform:Md("borderRightColor")},borderInlineEndColor:{values:ip,shorthand:["borderEndColor"],transform:Md("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:ip,transform:Md("color")},fill:{values:ip,transform:Md("fill")},stroke:{values:ip,transform:Md("stroke")},accentColor:{values:ip,transform:Md("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:ip,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":ep(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ip,transform:Md("--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":Xd("blur",e)})},brightness:{transform:e=>({"--brightness":Xd("brightness",e)})},contrast:{transform:e=>({"--contrast":Xd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Xd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Xd("hue-rotate",Jd(e))})},invert:{transform:e=>({"--invert":Xd("invert",e)})},saturate:{transform:e=>({"--saturate":Xd("saturate",e)})},sepia:{transform:e=>({"--sepia":Xd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Xd("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":Xd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Xd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Xd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Xd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Xd("hue-rotate",Jd(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Xd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Xd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Xd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Xd("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:ip,transform:Md("outlineColor")},focusRing:Zd("&:is(:focus, [data-focus])"),focusVisibleRing:Zd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ip,transform:Md("--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:ip,transform:Md("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:ip,transform:Md("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ip,transform:Md("--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:ip,transform:Md("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":Jd(e)})},skewY:{transform:e=>({"--skew-y":Jd(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:Jd(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Jd(e)})},rotateY:{transform:e=>({"--rotate-y":Jd(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 tp("all");case"position":return tp("left, right, top, bottom, inset-inline, inset-block");case"colors":return tp("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return tp("opacity");case"shadow":return tp("box-shadow");case"transform":return tp("transform");case"size":return tp("width, height");case"backgrounds":return tp("background, background-color, background-image, background-position");case"common":return tp("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=>op[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:ip,transform:Md("caretColor")},cursor:{values:"cursor"}}},op={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 sp="".split(","),lp="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(sp),cp=new Map(lp.map(e=>[e,!0]));function up(e){const t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}var dp,pp,hp=/&|@/,fp=up(e=>cp.has(e)||e.startsWith("--")||hp.test(e));function gp(e,t){const r={};return $d(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}function mp(){if(pp)return dp;pp=1,dp=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 h=p[d];s(r[h],h,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 h;if(d+=1,"object"==typeof n&&null!==n){for(h=0;h<s.length;h++)if(s[h]===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(h=0;h<n.length;h++)u(n[h],h,h,s,n,d,p);else{var f={},g=Object.keys(n).sort(l);for(h=0;h<g.length;h++){var m=g[h];u(n[m],m,h,s,n,d,p),f[m]=n[m]}if(void 0===c)return f;r.push([c,i,n]),c[i]=f}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 dp}const vp=ns(mp()),bp=e=>{const t=Object.create(null);return function(...r){const n=r.map(e=>vp(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}},yp="px",xp="em",_p="rem";function kp(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${yp}|${xp}|${_p}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n?.[1]}function wp(e=""){if("number"==typeof e)return`${e}px`;const t=kp(e);return t?t===yp?e:t===xp||t===_p?`${16*parseFloat(e)}${yp}`:void 0:e}function Sp(e=""){const t=kp(e);return t?t===_p?e:t===xp?`${parseFloat(e)}${_p}`:t===yp?`${parseFloat(e)/16}${_p}`:void 0:e}function Cp(e){return Sp(parseFloat(wp(e)??"")-.04+"px")}function Pp({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Ep=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")}),zp=Ep("width"),Tp=Ep("height"),jp=e=>({isMin:Bp(e.minMax,e.maxMin,e.min),isMax:Bp(e.maxMin,e.minMax,e.max)}),{isMin:Rp,isMax:Op}=jp(zp),{isMin:Ip,isMax:Ap}=jp(Tp),Dp=/print/i,Mp=/^print$/i,Fp=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Lp=/(\d)/,Np=Number.MAX_VALUE,Wp={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function $p(e){const t=Fp.exec(e)||(Rp(e)||Ip(e)?Lp.exec(e):null);if(!t)return Np;if("0"===t[0])return 0;const r=parseFloat(t[1]),n=t[2];return r*(Wp[n]||1)}function Bp(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}const Hp=bp((e,t)=>{const r=function(e,t){const r=Dp.test(e),n=Mp.test(e),i=Dp.test(t),a=Mp.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=Rp(e)||Ip(e),i=Op(e)||Ap(e),a=Rp(t)||Ip(t),o=Op(t)||Ap(t);if(n&&o)return-1;if(i&&a)return 1;const s=$p(e),l=$p(t);return s===Np&&l===Np?e.localeCompare(t):s===Np?1:l===Np?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function Vp(e){return e.sort(([e],[t])=>Hp(e,t))}function Up(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]):Uc(s)?n[o]=Up(s):n[o]=s;const i=Vp(t),a=Vp(r);return{...n,...Object.fromEntries(i),...Object.fromEntries(a)}}const qp=/\s*!(important)?/i;function Yp(e){const{transform:t,conditions:r,normalize:n}=e,i=(a=e,bp(function(...e){return Nd({},...function(e){const t=function(...e){return e.filter(e=>Uc(e)&&Object.keys(Hc(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>a.normalize(e))}(e))}));var a;return bp(function(...e){const a=i(...e),o=n(a),s=Object.create(null);return $d(o,(e,n)=>{const i=!!qc(a=e)&&qp.test(a);var a;if(null==e)return;const[o,...l]=r.sort(n).map(r.resolve);i&&(e=(e=>qc(e)?e.replace(qp,"").trim():e)(e));let c=t(o,e)??Object.create(null);c=$d(c,e=>qc(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]);Nd(n,r)}(s,l.flat(),c)}),Up(s)})}const Gp=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const Qp={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Kp={reset:0,base:1,tokens:2,recipes:3};const Xp=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Jp=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Zp=e=>(e+"").replace(Xp,Jp),eh=(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=th(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)??Zp(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=eh(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},th=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 rh(e){const t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}const nh=/({([^}]*)})/g,ih=/[{}]/g,ah=/\w+\.\w+/,oh=e=>{if(!qc(e))return[];const t=e.match(nh);return t?t.map(e=>e.replace(ih,"")).map(e=>e.trim()):[]};function sh(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=sh(n);return e.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function lh(e){return Uc(e)&&e.reference?e.reference:String(e)}const ch=(e,...t)=>t.map(lh).join(` ${e} `).replace(/calc/g,""),uh=(...e)=>`calc(${ch("+",...e)})`,dh=(...e)=>`calc(${ch("-",...e)})`,ph=(...e)=>`calc(${ch("*",...e)})`,hh=(...e)=>`calc(${ch("/",...e)})`,fh=e=>{const t=lh(e);return null==t||Number.isNaN(parseFloat(t))?ph(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},gh=Object.assign(e=>({add:(...t)=>gh(uh(e,...t)),subtract:(...t)=>gh(dh(e,...t)),multiply:(...t)=>gh(ph(e,...t)),divide:(...t)=>gh(hh(e,...t)),negate:()=>gh(fh(e)),toString:()=>e.toString()}),{add:uh,subtract:dh,multiply:ph,divide:hh,negate:fh}),mh={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(qc(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=gh.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)})}},vh=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),bh={enforce:"post",transform(e){e.allTokens.filter(e=>vh.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:wp(e.value)})})}},yh=[mh,{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")})}},bh,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],xh=[{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=oh(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}}}}],_h=e=>Uc(e)&&Object.prototype.hasOwnProperty.call(e,"value");function kh(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,h=new Map,f=new Map,g=[];function m(e,t){o.push(e),s.set(e.name,e),t&&f.forEach(r=>{r.enforce===t&&C(r,e)})}const v=function(e){return e?{breakpoints:Bd(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=Hc({...r,breakpoints:v.breakpoints,sizes:{...r.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const _=bp((e,t)=>d.get(e)??t),k=bp(e=>x[e]||null),w=bp(e=>eh(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=_(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 _(e)||(ah.test(e)?Zp(e):e)})),S={prefix:t,allTokens:o,tokenMap:s,registerToken:m,getByName:y,formatTokenName:a,formatCssVar:(e,t)=>Kd(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:h,colorPaletteMap:u,getVar:_,getCategoryValues:k,expandReferenceInValue:w};function C(e,t){if(t.extensions.references)return;if(Yc(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 E(e){f.forEach(t=>{t.enforce===e&&o.forEach(e=>{C(t,e)})})}return $d(b,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=wh(t))[0],i=a(t),o=qc(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:_h}),$d(n,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=Sh(wh(t)))[0],i=a(t),o=qc(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:_h}),function(...e){e.forEach(e=>{f.set(e.name,e)})}(...xh),function(...e){g.push(...e)}(...yh),P("pre"),E("pre"),o.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return $d(t,(t,n)=>{const i=Sh(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,!nh.test(t))return;var t;const r=function(e){return oh(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),o.forEach(e=>{sh(e)}),P("post"),E("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&&(h.has(t)||h.set(t,new Map),h.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=rh(p),S}function wh(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function Sh(e){return e.filter(e=>"base"!==e)}var Ch;Ch=["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(Ch));const Ph={};function Eh(...e){const t=Vd(...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??Qp,r=Object.values(t).sort((e,t)=>Kp[e]-Kp[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=kh({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=Cp(i)),[e,{name:e,min:Sp(t),max:i}]})}(e),r=Object.fromEntries(t);function n(e){return r[e]}function i(e){return Pp(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`,Pp({max:Cp(t.min)})];return[[e,Pp({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)}`,Pp({min:r.min,max:Cp(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 Pp({min:n(e).min})},down:function(e){return Pp({max:Cp(n(e).min)})}}}(r.breakpoints??Ph),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??Ph,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 qc(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):Yc(r)?r(t?i:n.getCategoryValues):r},d=bp((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),p=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),h=bp((e,r)=>{const i=g(e);qc(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=rh(n.colorPaletteMap);o("colorPalette",{values:Object.keys(e),transform:bp(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 f=i.size>0,g=bp(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:f,transform:h,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=Hc({textStyle:e,layerStyle:t,animationStyle:n});for(const[r,a]of Object.entries(i)){const e=gp(a??Ph,zh);p.register(r,{values:Object.keys(e),transform:t=>b(e[t])})}}(),p.addPropertyType("animationName",Object.keys(r.keyframes??Ph));const h=new Set(["css",...p.keys(),...d.keys()]),f=bp(e=>h.has(e)||fp(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 $d(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 $d(e,e=>e,{getKey:(e,n)=>Uc(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:f}),b=Yp({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}=Gp(o),d=Yp({conditions:r,normalize:n,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const r=n({...c,...Hc(e)});let a={...s};Nd(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))},h=Object.keys(l),f=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:f,variantKeys:h,raw:p,config:o,splitVariantProps:e=>{const t=Dd(e,["recipe"]),[r,n]=Zc(t,h);return h.includes("colorPalette")||(r.colorPalette=e.colorPalette||c.colorPalette),h.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return a(function(e){const{css:t}=e;return function(e,r){const n=Gp(r.config),i=Gc(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=Nd(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:Vc(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=Dd(t,["recipe"]),[n,a]=Zc(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 _(){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("@");Nd(e,b(v({[i]:o?{[a]:n}:n})))}return l.wrap("tokens",e)}function k(){const e=Object.fromEntries(Object.entries(r.keyframes??Ph).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"}=Uc(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??Ph,e)}function E(e){return Object.hasOwnProperty.call(r.slotRecipes??Ph,e)}C.var=(e,t)=>S.get(e)?.variable||t;const z=[w(),k(),_()],T={layerStyles:Th(r.layerStyles??Ph),textStyles:Th(r.textStyles??Ph),animationStyles:Th(r.animationStyles??Ph),tokens:jh(c,Object.keys(r.tokens??Ph),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:jh(c,Object.keys(r.semanticTokens??Ph),e=>!!e.extensions.conditions),keyframes:Rh(r.keyframes??Ph),breakpoints:Rh(r.breakpoints??Ph)};return{$$chakra:!0,_config:t,_global:z,breakpoints:u,tokens:c,conditions:d,utility:p,token:C,properties:h,layers:l,isValidProperty:f,splitCssProps:function(e){return Zc(e,f)},normalizeValue:g,getTokenCss:_,getGlobalCss:k,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)||E(e)},isRecipe:P,isSlotRecipe:E,query:T}}const zh=e=>Uc(e)&&"value"in e,Th=e=>({list:()=>Object.keys(gp(e,zh)),search(e){return this.list().filter(t=>t.includes(e))}}),jh=(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))}}),Rh=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),Oh="var(--chakra-empty,/*!*/ /*!*/)",Ih={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Oh,"--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}`,Oh])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Oh])),"--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"}},Ah={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"}},Dh={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"}}}},defaultVariants:{variant:"solid",size:"md"}},{variants:Mh,defaultVariants:Fh}=Ah,Lh={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"}},Nh={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"}},Wh={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"}}},defaultVariants:{variant:"solid",size:"md"}},$h={badge:Ah,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:Mh,defaultVariants:Fh},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:Nh,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Nh.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:Dh,radiomark:Wh,colorSwatch:Lh},Bh=Yd.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}"}}}}),Hh=Yd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Vh=Yd.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}"}}}),Uh=Uu.extendWith("itemBody"),qh=Wu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Yh=Wu("alert").parts("title","description","root","indicator","content"),Gh=Wu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Qh=Wu("blockquote").parts("root","icon","content","caption"),Kh=Wu("card").parts("root","header","body","footer","title","description"),Xh=Wu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Jh=Wu("data-list").parts("root","item","itemLabel","itemValue"),Zh=ed.extendWith("header","body","footer","backdrop"),ef=ed.extendWith("header","body","footer","backdrop"),tf=td.extendWith("textarea"),rf=Wu("empty-state",["root","content","indicator","title","description"]),nf=rd.extendWith("requiredIndicator"),af=ad.extendWith("content"),of=od.extendWith("itemContent","dropzoneContent","fileText"),sf=Wu("list").parts("root","item","indicator"),lf=_d.extendWith("itemCommand"),cf=Wu("select").parts("root","field","indicator"),uf=Sd.extendWith("header","body","footer"),df=Ed.extendWith("itemAddon","itemIndicator"),pf=df.extendWith("itemContent","itemDescription"),hf=zd.extendWith("itemIndicator"),ff=Rd.extendWith("indicatorGroup"),gf=Zu.extendWith("indicatorGroup","empty"),mf=Od.extendWith("markerIndicator"),vf=Wu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),bf=Wu("status").parts("root","indicator"),yf=Wu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),xf=Id.extendWith("indicator"),_f=Wu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),kf=Wu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),wf=Wu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Sf=Wu("tag").parts("root","label","closeTrigger","startElement","endElement"),Cf=Wu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Pf=Ju.extendWith("channelText"),Ef=Wu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Xu.extendWith("valueText");const zf={className:"chakra-accordion",slots:Uh.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"}},Tf={className:"chakra-action-bar",slots:qh.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"}}},jf={slots:Yh.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}},Rf={slots:qu.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"}},Of={className:"chakra-blockquote",slots:Qh.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"}},If={className:"chakra-breadcrumb",slots:Gh.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"}},Af={className:"chakra-card",slots:Kh.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"}},Df={slots:Gu.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Dh.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Dh.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Dh.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Dh.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Dh.variants?.size?.lg}},variant:{outline:{control:Dh.variants?.variant?.outline},solid:{control:Dh.variants?.variant?.solid},subtle:{control:Dh.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},Mf={slots:Xh.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:Dh.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:Dh.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dh.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Dh.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:Dh.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Dh.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:Dh.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Dh.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"}},Ff={slots:Ef.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",overflow:"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",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"}},Lf={slots:Hu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},Nf={className:"colorPicker",slots:Pf.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:{...Lh.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:{...Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.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:Nh.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:Nh.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},Wf={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"}},$f={slots:Jh.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"}},Bf={slots:Zh.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"}},Hf={slots:ef.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"}},Vf={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Uf={slots:tf.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Vf,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Vf,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"}},qf={slots:rf.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"}},Yf={className:"chakra-field",slots:nf.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"}},Gf={className:"fieldset",slots:af.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"}},Qf={className:"chakra-file-upload",slots:of.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:{}},Kf={className:"chakra-hover-card",slots:yd.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"}},Xf={className:"chakra-list",slots:sf.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"}},Jf={className:"chakra-menu",slots:lf.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"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Zf={className:"chakra-select",slots:ff.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"}},eg={className:"chakra-native-select",slots:cf.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:Zf.variants?.variant.outline.trigger},subtle:{field:Zf.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:Zf.defaultVariants};function tg(e,t){const r={};for(const n in e){const i=t(n,e[n]);r[i[0]]=i[1]}return r}const rg={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"}},ng={className:"chakra-number-input",slots:kd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Nh.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:{...rg,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...rg,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Nh.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Nh.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Nh.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Nh.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:tg(Nh.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:ig,defaultVariants:ag}=Nh,og={className:"chakra-pin-input",slots:wd.keys(),base:{input:{...Nh.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:tg(ig.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:tg(ig.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ag},sg={className:"chakra-popover",slots:uf.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"}},lg={slots:Cd.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"}},cg={className:"chakra-progress-circle",slots:Cd.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"}},ug={slots:Pd.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"}},dg={className:"chakra-radio-card",slots:pf.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:Wh.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:Wh.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Wh.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Wh.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Wh.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Wh.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Wh.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Wh.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"}},pg={className:"chakra-radio-group",slots:df.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Wh.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Wh.variants?.variant?.outline},subtle:{itemControl:Wh.variants?.variant?.subtle},solid:{itemControl:Wh.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Wh.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Wh.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Wh.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Wh.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},hg={className:"chakra-rating-group",slots:hf.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"}},fg={className:"chakra-scroll-area",slots:Td.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"}},gg={className:"chakra-segment-group",slots:jd.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"}},mg={className:"chakra-slider",slots:mf.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"}},vg={className:"chakra-stat",slots:vf.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"}},bg={className:"chakra-status",slots:bf.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"}},yg={className:"chakra-steps",slots:yf.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"}},xg={slots:xf.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"}},_g={className:"chakra-table",slots:_f.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"}},kg={slots:wf.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"}},wg=Ah.variants?.variant,Sg={slots:Sf.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:wg?.subtle},solid:{root:wg?.solid},outline:{root:wg?.outline},surface:{root:wg?.surface}}},defaultVariants:{size:"md",variant:"surface"}},Cg={slots:Cf.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"}},Pg={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"}},Eg={flex:"1"},zg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},Tg={_selected:{layerStyle:"fill.solid"}},jg={accordion:zf,actionBar:Tf,alert:jf,avatar:Rf,blockquote:Of,breadcrumb:If,card:Af,checkbox:Df,checkboxCard:Mf,codeBlock:Ff,collapsible:Lf,dataList:$f,dialog:Bf,drawer:Hf,editable:Uf,emptyState:qf,field:Yf,fieldset:Gf,fileUpload:Qf,hoverCard:Kf,list:Xf,menu:Jf,nativeSelect:eg,numberInput:ng,pinInput:og,popover:sg,progress:lg,progressCircle:cg,radioCard:dg,radioGroup:pg,ratingGroup:hg,scrollArea:fg,segmentGroup:gg,select:Zf,combobox:Wf,slider:mg,stat:vg,steps:yg,switch:xg,table:_g,tabs:kg,tag:Sg,toast:{slots:kf.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:Ad.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:bg,timeline:Cg,colorPicker:Nf,qrCode:ug,treeView:{slots:xd.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:Pg,item:Pg,itemText:Eg,branchText:Eg,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:zg,item:zg},solid:{branchControl:Tg,item:Tg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},Rg=qd.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"}}),Og=qd.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"}}),Ig=qd.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Ag=qd.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Dg=qd.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"}}}),Mg=qd.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"}}),Fg=qd.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Lg=qd.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)"}}),Ng=qd.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"}}),Wg=qd.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"',Bg=qd.fonts({heading:{value:`Inter, ${$g}`},body:{value:`Inter, ${$g}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Hg=qd.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Vg=qd.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),Ug=qd.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"}}),qg=qd.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"}}),Yg=qd.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"}}),Gg=qd.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"}}),Qg=qd.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%"}}),Kg=qd.sizes({...Yg,...qg,...Qg,...Gg}),Xg=qd.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}}),Jg=Vd(ap,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Ih,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:Og,animations:Rg,blurs:Ig,borders:Ag,colors:Dg,durations:Fg,easings:Lg,fonts:Bg,fontSizes:Ng,fontWeights:Wg,letterSpacings:Hg,lineHeights:Vg,radii:Ug,spacing:qg,sizes:Kg,zIndex:Xg,cursor:Mg},semanticTokens:{colors:Bh,shadows:Vh,radii:Hh},recipes:$h,slotRecipes:jg,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 Zg(e,t){const r=Xc();return bs.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>r.token(`${e}.${t}`,t)),[r,e,t])}Eh(Jg);const em=uu("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"}});em.displayName="AbsoluteCenter";const{withContext:tm}=gu({key:"badge"}),rm=tm("span"),{withContext:nm}=gu({key:"spinner"}),im=nm("span"),am=bs.forwardRef(function(e,t){const{spinner:r=hs.jsx(im,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:i,text:a,visible:o=!0,...s}=e;return o?a?hs.jsxs(Mu,{ref:t,display:"contents",...s,children:["start"===n&&r,a,"end"===n&&r]}):r?hs.jsxs(Mu,{ref:t,display:"contents",...s,children:[hs.jsx(em,{display:"inline-flex",children:r}),hs.jsx(Mu,{visibility:"hidden",display:"contents",children:i})]}):hs.jsx(Mu,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:om,usePropsContext:sm}=gu({key:"button"}),lm=bs.forwardRef(function(e,t){const r=sm(),n=bs.useMemo(()=>Bc(r,e),[r,e]),i=om(n),{loading:a,loadingText:o,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return hs.jsx(uu.button,{type:"button",ref:t,...u,"data-loading":(d=a,d?"":void 0),disabled:a||u.disabled,className:Vc(i.className,n.className),css:[i.styles,n.css],children:!n.asChild&&a?hs.jsx(am,{spinner:l,text:o,spinnerPlacement:c,children:s}):s});var d}),cm=bs.forwardRef(function(e,t){return hs.jsx(lm,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),um=bs.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=bs.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{"&":Bd(r,e=>n[e])}}({gap:a,direction:r}),[a,r]),p=bs.useMemo(()=>bs.isValidElement(l)?function(e){return bs.Children.toArray(e).filter(e=>bs.isValidElement(e))}(s).map((e,t,r)=>{const n=void 0!==e.key?e.key:t,i=l,a=bs.cloneElement(i,{css:[d,i.props.css]});return hs.jsxs(bs.Fragment,{children:[e,t===r.length-1?null:a]},n)}):s,[s,l,d]);return hs.jsx(uu.div,{ref:t,display:"flex",alignItems:n,justifyContent:i,flexDirection:r,flexWrap:o,gap:l?void 0:a,className:Vc("chakra-stack",c),...u,children:p})}),{useRecipeResult:dm}=gu({key:"icon"}),pm=bs.forwardRef(function(e,t){const{styles:r,className:n,props:i}=dm({asChild:!e.as,...e});return hs.jsx(uu.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[r,e.css],className:Vc(n,e.className)})});function hm(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=bs.Children.toArray(e.path),o=bs.forwardRef((e,n)=>hs.jsx(pm,{ref:n,asChild:!1,viewBox:t,...i,...e,children:a.length?a:hs.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}const fm=bs.forwardRef(function(e,t){const{direction:r,align:n,justify:i,wrap:a,basis:o,grow:s,shrink:l,inline:c,...u}=e;return hs.jsx(uu.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}})}),gm=bs.forwardRef(function(e,t){const{align:r,fit:n="cover",...i}=e;return hs.jsx(uu.img,{ref:t,objectFit:n,objectPosition:r,className:Vc("chakra-image",e.className),...i})}),{withContext:mm}=gu({key:"link"}),vm=mm("a"),bm=bs.forwardRef(function(e,t){const{columns:r,minChildWidth:n,...i}=e,a=Xc(),o=n?function(e,t){return Bd(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):Bd(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return hs.jsx(mu,{ref:t,templateColumns:o,...i})}),ym=bs.forwardRef(function(e,t){return hs.jsx(um,{align:"center",...e,direction:"row",ref:t})}),xm=bs.forwardRef(function(e,t){return hs.jsx(um,{align:"center",...e,direction:"column",ref:t})}),{withContext:_m}=gu({key:"textarea"}),km=_m(id),wm=()=>{const[e,t]=bs.useState(!1),r=bs.useCallback(()=>{const e=window.innerWidth;t(e<=768)},[]);return bs.useEffect(()=>(r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),{isMobile:e}},Sm={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`},Cm=ts("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(Sm.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] Subscription expired:",{status:402,assistant_id:c,thread_id:r}),void i("Hello 😊 The smart assistant for this business is currently inactive because the subscription has expired. If you have any questions, please contact the business directly. We hope to be back in service soon!");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 h;try{h=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 f=h.thread_id;if(!f)throw new Error("No thread_id received from run assistant");const g=`${Sm.streamV2}/${f}`;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:f})},t.onerror=()=>{console.log("[Dori Widget] SSE stream error, EventSource will auto-reconnect",{thread_id:f,readyState:t.readyState})},t.onmessage=e=>{es("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:f})}),t.addEventListener("end",()=>{console.log("[Dori Widget] SSE stream ended",{thread_id:f}),o&&o.signal.removeEventListener("abort",r),t.close(),a(),e()})})}),Pm=ts("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(Sm.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})}),Em=ts("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};await fetch(Sm.trackProductView,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(l)})}),zm=ts("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};await fetch(Sm.trackSession,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})});async function Tm(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(Sm.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 jm=(e=>(e.OTHER="other",e.SHOPIFY="shopify",e.WORDPRESS_WOOCOMMERCE="wordpress_woocommerce",e))(jm||{});function Rm(){return void 0!==window.wp||void 0!==window.wc||document.querySelector('meta[name="generator"][content*="WordPress"]')?jm.WORDPRESS_WOOCOMMERCE:void 0!==window.Shopify||document.querySelector('meta[name="shopify-checkout-api-token"]')||document.querySelector('script[src*="cdn.shopify.com"]')?jm.SHOPIFY:jm.OTHER}function Om(){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 Im(){if("undefined"==typeof document)return"";const e=document.querySelector("h1");return e?.textContent?.trim()||document.title||""}function Am(){return{page_link:"undefined"!=typeof window?window.location.href:"",page_type:Om(),h1:Im()}}function Dm(){const e=Am(),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 Mm=0;function Fm(e){return"shopify"===String(e?.platform||"").toLowerCase()}function Lm(){if("undefined"==typeof window)return"/";const e=window.Shopify?.routes?.root||"/";return e.endsWith("/")?e:`${e}/`}function Nm(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}_${Math.random().toString(36).slice(2,10)}`}function Wm(){if("undefined"==typeof window)return`anon_${Nm()}`;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=Nm();return window.localStorage.setItem(n.SHOPIFY_END_USER_SESSION,t),t}catch{return Nm()}}();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_${Nm()}`;return window.localStorage.setItem(n.SHOPIFY_END_USER_ID,t),t}catch{return`anon_${Nm()}`}}let $m=!1;async function Bm(e){const t=Date.now();if(t-Mm<800)return null;Mm=t;const r=await async function(){try{const e=Lm(),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(Sm.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 Hm(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 Vm(e){if(null!=e)return String(e).trim()||void 0}function Um(e){const t=Vm(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 qm(e){const t=Vm(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}}function Ym(e){return(Array.isArray(e.options)?e.options:[]).map((e,t)=>"string"==typeof e?{name:e,values:[]}:{name:Vm(e?.name)||`Option ${t+1}`,values:Array.isArray(e?.values)?e.values.map(e=>Vm(e)).filter(e=>Boolean(e)):[]}).filter(e=>Boolean(e.name))}function Gm(e,t){return 1===t?Vm(e.option1):2===t?Vm(e.option2):3===t?Vm(e.option3):void 0}function Qm(e,t){return Ym(e).map((e,r)=>{const n=r+1,i=Array.from(new Set(t.map(e=>Gm(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)}async function Km(e,t,r){const n=Lm(),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=Vm(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||422===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:Vm(s?.title),quantity:t}}async function Xm(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=Um(e.variant_id);if(n)return{...await Km(n,r,t),product_title:Vm(e.product_name)};const i=Vm(e.product_handle)||qm(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:Vm(e.product_name)};let a=null;try{a=await async function(e){const t=Lm(),r=await fetch(`${t}products/${encodeURIComponent(e)}.js`,{method:"GET",credentials:"include",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}(i)}catch{return{type:"failed",reason:"network",message:"I couldn't load product details right now. Please try again.",product_title:Vm(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:Vm(e.product_name)};const o=function(e,t){const r=Um(t.variant_id);if(r){const t=e.variants.find(e=>Um(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=function(e,t){if(!t||0===Object.keys(t).length)return[];const r=Object.entries(t).map(([e,t])=>{const r=Vm(e)?.toLowerCase(),n=Vm(t)?.toLowerCase();return r&&n?{key:r,value:n}:null}).filter(e=>Boolean(e));if(0===r.length)return[];const n=Ym(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=Gm(e,i)?.toLowerCase();return a===r}))}(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:Qm(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=Qm(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:Qm(e,i)}}(a,e);if("type"in o)return o;const s=Um(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 Km(s,r,t);return"success"!==l.type?{...l,product_title:a.title}:{...l,product_title:a.title,variant_title:l.variant_title||Vm(o.title)}}function Jm(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 Zm(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 ev(){try{const e=Lm(),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 tv(e,t){const r=Lm();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 rv(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 nv(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 iv={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"},av=(e,t)=>{if(e&&e in iv){const r=iv[e];if(r)return t[r]}return t.typing},ov={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"},sv={English:ov,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:ov,Bulgarian:ov,Burmese:ov,Croatian:ov,Estonian:ov,Filipino:ov,Gujarati:ov,Hausa:ov,Hungarian:ov,Igbo:ov,Kannada:ov,Khmer:ov,Lao:ov,Latvian:ov,Lithuanian:ov,Malayalam:ov,Marathi:ov,Mongolian:ov,Nepali:ov,Pashto:ov,Persian:ov,Punjabi:ov,Sinhala:ov,Somali:ov,Iraqi:ov,Swahili:ov,Urdu:ov,Yoruba:ov,Zulu:ov},lv=e=>{const t=sv[e]||sv.English;return{...ov,...t}};function cv(){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 uv={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"},dv="dori-quiz-completed",pv=bs.createContext(void 0);function hv({children:e}){const[r,n]=bs.useState(null),[x,_]=bs.useState(!1),[k,w]=bs.useState(null),[S,C]=bs.useState(()=>cv());bs.useEffect(()=>function(){if("undefined"==typeof window||"undefined"==typeof MutationObserver)return()=>{};const e=new MutationObserver(()=>{var e;e=cv(),C(t=>t===e?t:e)});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>e.disconnect()}(),[]);const P=bs.useRef(null);bs.useEffect(()=>{const e=P.current;P.current=S,null!==e&&e!==S&&ge(e=>e+1)},[S]);const E=bs.useMemo(()=>{return((e=S)?uv[e.toLowerCase()]??null:null)??r?.language??"English";var e},[S,r?.language]),z=bs.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,S,S?S.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,S]),[T,j]=bs.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[R,O]=bs.useState([]),[I,A]=bs.useState("welcome"),[D,M]=bs.useState(!1),[F,L]=bs.useState("starting"),N=bs.useRef(null),[W,$]=bs.useState(!0),B=bs.useRef(null),H=bs.useCallback(()=>{W&&p(N.current)},[W]);bs.useEffect(()=>{H()},[R,H]),function({botData:e,chatState:r,messages:n,currentStep:p,setBotData:h,setChatState:f,setMessages:g,setCurrentStep:m}){const[v,b]=bs.useState(!1);bs.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)]))}h({...t,suggestedReply:r(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}})}else h(e.botData);const t=u(),r={...e.chatState,threadId:t||e.chatState.threadId};f(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&&(f({repliedProduct:null,threadId:e,isRequestInProgress:!1}),d()),b(!0)}})()},[h,f,g,m]),bs.useEffect(()=>{v&&e&&(i(),a(e))},[e,v]),bs.useEffect(()=>{v&&o(r)},[r,v]),bs.useEffect(()=>{v&&s(n)},[n,v]),bs.useEffect(()=>{v&&l(p)},[p,v])}({botData:r,chatState:T,messages:R,currentStep:I,setBotData:n,setChatState:j,setMessages:O,setCurrentStep:A});const[V,U]=bs.useState(null),[q,Y]=bs.useState(null),G=bs.useRef(!1),[Q,K]=bs.useState(null),[X,J]=bs.useState(null),[Z,ee]=bs.useState(null),[te,re]=bs.useState(()=>{try{return"true"===sessionStorage.getItem("dori-proactive-v2-suppressed")}catch{return!1}}),ne=bs.useCallback((e,t)=>{K(e),J(t)},[]),ie=bs.useCallback(()=>{K(null),J(null)},[]),ae=bs.useRef(null),oe=bs.useRef(null);bs.useEffect(()=>{X&&(ae.current=X,oe.current=Date.now())},[X]);const se=bs.useCallback(()=>{re(!0);try{sessionStorage.setItem("dori-proactive-v2-suppressed","true")}catch{}},[]),[le,ce]=bs.useState(null),[ue,de]=bs.useState(()=>{try{return"true"===sessionStorage.getItem(dv)}catch{return!1}}),pe=bs.useRef(!1),he=bs.useCallback(()=>{de(!0);try{sessionStorage.setItem(dv,"true")}catch{}},[]),[fe,ge]=bs.useState(0),me=bs.useRef(!1),ve=bs.useRef(new Set),be=bs.useRef(r);bs.useEffect(()=>{be.current=r},[r]);const ye=bs.useRef(I);bs.useEffect(()=>{ye.current=I},[I]),bs.useEffect(()=>{if(!r)return;if(!1===r.customization?.enable_proactive_engagement)return;if(!r.business_description)return;if(0===fe){if(G.current)return;G.current=!0}else if("welcome"!==I&&"initial-greeting"!==I)return;const e=new AbortController,t=E||r.language||"en",n=Am();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(Sm.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&&U(t)}),()=>{e.abort()}},[r,fe]),bs.useEffect(()=>{if(!r)return;if(!0!==r.customization?.enable_standalone_quiz)return;if(ue)return;if(!r.sharing_id)return;if(0===fe){if(pe.current)return;pe.current=!0}else if("welcome"!==I&&"initial-greeting"!==I)return;const e=new AbortController,t=E||r.language||"English";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(`${Sm.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}}(r.sharing_id,t,e.signal).then(t=>{if(t&&t.length>0&&!e.signal.aborted){const e=Math.floor(Math.random()*t.length);ce(t[e])}}),()=>{e.abort()}},[r,fe,ue]),bs.useEffect(()=>{let e=window.location.href,t=null;const r=()=>{const r=window.location.href;if(r===e)return;e=r,me.current=!1;const n=be.current;!1!==n?.customization?.enable_proactive_engagement&&n?.business_description&&"welcome"===ye.current&&(t&&clearTimeout(t),t=setTimeout(()=>{U(null),ee(null);try{de("true"===sessionStorage.getItem(dv))}catch{}ce(null),pe.current=!1,ge(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 xe=bs.useRef(new Set),_e=bs.useRef([]),ke=bs.useRef(null),[we,Se]=bs.useState(0),[Ce,Pe]=bs.useState(null),Ee=bs.useRef(null),ze=bs.useRef(!1),Te=bs.useCallback(()=>{Pe(null),null!==Ee.current&&(window.clearTimeout(Ee.current),Ee.current=null)},[]),je=bs.useCallback(async()=>{if(!Ce)return;const{variantId:e,previousQuantity:t}=Ce;Te();try{const n=await ev();if(!n)return;const i=n.items||[],a=Jm(e)||e,o=i.findIndex(e=>String(e.variant_id)===a);if(-1!==o?await tv(o+1,t):t>0&&await Km(a,t),r&&Fm(r)){const e=await Bm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:Wm(),threadId:T.threadId});e&&j(t=>({...t,threadId:e}));const t=await ev();t&&Se(t.item_count)}}catch{}},[Ce,Te,r,T.threadId]),Re=bs.useCallback(()=>{if(B.current)return;const e=_e.current.shift();e&&ke.current&&window.setTimeout(()=>{ke.current?.({message:"",apiMessage:e,silent:!0})},0)},[]),Oe=bs.useCallback(async(e,t)=>{if(xe.current.has(e.action_id))return;if(xe.current.add(e.action_id),xe.current.size>300){const e=Array.from(xe.current).slice(-200);xe.current.clear(),e.forEach(e=>xe.current.add(e))}const n=t||T.threadId||void 0;let i;try{i=await Xm(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&&Fm(r)){const e=Wm(),n=t||T.threadId||void 0,i=await Bm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:n,src:"undefined"!=typeof window?window.location.href:""});i&&j(e=>({...e,threadId:i}));const a=await ev();a&&Se(a.item_count)}"success"===i.type?(ze.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})}`),B.current||Re()},[r,T.threadId,Re]),Ie=bs.useCallback(async(e,t)=>{if(xe.current.has(e.action_id))return;if(xe.current.add(e.action_id),xe.current.size>300){const e=Array.from(xe.current).slice(-200);xe.current.clear(),e.forEach(e=>xe.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=Lm();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 ev(),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:Zm(r,n),currency:n}}if("set_note"===e.operation){const t=e.note??"",r=await async function(e){const t=Lm();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 ev(),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:Zm(i,a),currency:a}}const t=await ev();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=Jm(t.variant_id);if(r){const n=[];for(let t=0;t<e.length;t++)Jm(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=rv(n,t.selected_options);return 1===e.length?e[0]:nv(e,"Multiple items match this variant. Which one do you mean?")}}const n=t.product_handle?.trim().toLowerCase()||qm(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=rv(r,t.selected_options);return 1===e.length?e[0]:nv(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=rv(n,t.selected_options);return 1===e.length?e[0]:nv(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 tv(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 ev(),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:Zm(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&&Fm(r)){Se(n.item_count);const e=await Bm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:Wm(),threadId:t||T.threadId||void 0});e&&j(t=>({...t,threadId:e}))}"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(ze.current=!0),"success"===n.type&&"clear"!==n.operation&&"set_note"!==n.operation&&(null!==Ee.current&&window.clearTimeout(Ee.current),Pe({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(()=>{Pe(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})}`),B.current||Re()},[r,T.threadId,Re]),Ae=bs.useCallback(e=>{j(t=>({...t,repliedProduct:e}))},[]),De=bs.useCallback(es("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),[]}}),[]),Me=bs.useCallback(()=>{B.current&&(B.current.abort(),B.current=null),ze.current=!1,j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),A("ongoing"),O(e=>e.filter(e=>"loading"!==e.type))},[]),Fe=bs.useCallback(ts("initializeBot",async e=>{if(!e||""===e.trim())return w("Invalid sharing ID provided"),void console.error("Invalid sharing ID provided");let t;_(!0),w(null);try{t=await new Promise((e,t)=>{const r=y();if(r)return console.log("[Dori Widget] Bot data already in localStorage"),void e(r);const n=()=>{const r=y();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 w(e),console.error("[Dori Widget] Failed to load bot data:",o),void _(!1)}if(!t)return w("No bot data received"),console.error("[Dori Widget] No bot data received"),void _(!1);f();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,De(t)]))}const a={...t,sharing_id:e,suggestedReply:De(t.suggestedReply),...void 0!==i&&{suggestedReplyByLanguage:i}};n(a),_(!1),A("initial-greeting")}),[De]),Le=bs.useCallback(es("addWelcomeMessage",()=>{const e=lv(E),t={id:`${Date.now()}-welcome-${Math.random().toString(36).slice(2,8)}`,type:"welcome",timestamp:new Date,content:r?.wellcomeMessage||e.imHereToHelp};O(e=>[...e,t])}),[r?.wellcomeMessage,E]);bs.useEffect(()=>{if(!r||!Fm(r))return;ev().then(e=>{null!=e?.item_count&&Se(e.item_count)}).catch(()=>{}),async function(){if("undefined"!=typeof window&&!$m){$m=!0;try{const e=Lm(),t=Wm(),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=Wm();return function(){if("undefined"==typeof window)return()=>{};let t=null;const n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{(async()=>{const t=await Bm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:e,threadId:T.threadId,src:"undefined"!=typeof window?window.location.href:""});t&&j(e=>e.threadId===t?e:{...e,threadId:t});try{const e=await ev();e&&Se(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];Hm((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{Hm(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,T.threadId]);const Ne=bs.useCallback(ts("sendMessage",async({message:e,imageUrl:t,apiMessage:n,silent:i},a)=>{if(!r||D&&!i)return;let o=n||e;if(!o||!o.trim())return;if($(!0),!i&&!me.current){me.current=!0;const e=Dm();e&&!o.includes("[USER_PAGE_CONTEXT:")&&(o=e+o)}const s=lv(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};O(e=>[...e.filter(e=>"suggestions"!==e.type),r]);const n=ae.current,i=oe.current;n&&i&&Date.now()-i<=3e4&&(Jo("nudge.in_chat.user_typed_after",{nudge_position:n}),ae.current=null,oe.current=null),Q&&(K(null),J(null))}if(B.current){if(i)return void _e.current.unshift(o);B.current.abort(),B.current=null}A("thinking"),M(!0),L("generating"),j(e=>({...e,isRequestInProgress:!0})),B.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||O(e=>[...e,l]),a&&(o=`this message is replied to product with id ${a.id}: ${e}`);let c,u="",d=null,p=[],h=null,y=[];const x=Fm(r),_=x?Wm():void 0;let k=T.threadId;try{if(x&&!k&&_){const e=await Bm({assistantId:r.assistant_id,platform:"shopify_widget",endUserId:_,src:"undefined"!=typeof window?window.location.href:""});e&&(k=e,j(t=>({...t,threadId:e})))}await Cm(o,r,k,e=>{es("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!==T.threadId&&f(),g(e.thread_id),m(e.thread_id),j(t=>({...t,threadId:e.thread_id||null}));const t=e.thread_id;if(t&&!ve.current.has(t)){const e=Rm(),r=be.current?.sharing_id;if(e!==jm.OTHER&&r){ve.current.add(t);const n=window.DORI_CUSTOMER_ID,i=null!=n?String(n):void 0;zm(t,r,e,v(),i,Wm())}}}if("shopify_add_to_cart"===e.action?.type&&Oe(e.action,e.thread_id||k||T.threadId),"shopify_update_cart"===e.action?.type&&Ie(e.action,e.thread_id||k||T.threadId),e.wait)console.log("[StreamChatResponse] wait received, creating new message session"),d&&u.trim()&&O(e=>e.map(e=>e.id===d?.id?{...e,content:b(u)}:e)),d=null,u="",p=[],c=void 0,h=null,O(t=>[...t.filter(e=>"loading"!==e.type),{id:`${Date.now()}-loading-${Math.random().toString(36).slice(2,8)}`,type:"loading",content:av(e.tool_name,s),timestamp:new Date}]);else if(e.text){console.log("[StreamChatResponse] text chunk received:",e.text),u+=e.text;const t=b(u);if(d)console.log("[StreamChatResponse] Updating existing bot message with:",t),O(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=ze.current;e&&(ze.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}};O(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),f(),p=[...p,...e.products],e.shape&&(c=e.shape);const t=h||`${Date.now()}-products-${Math.random().toString(36).slice(2,8)}`;h=t,O(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&&(y=[...y,...e.suggestions])})()},e=>{if(B.current?.signal.aborted)return B.current=null,j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),A("ongoing"),O(e=>e.filter(e=>"loading"!==e.type)),void Re();const t=e.includes("exceeded the request limit")||e.includes("rate limit")?s.rateLimitError:e;O(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}]),B.current=null,j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),A("ongoing"),Re()},()=>{y.length>0&&O(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:y};return-1!==r?t.splice(r+1,0,n):t.push(n),t}),B.current=null,j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),A("ongoing"),Re()},B.current,t,_)}catch(w){B.current?.signal.aborted||"AbortError"===w.name?(B.current=null,j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),A("ongoing"),O(e=>e.filter(e=>"loading"!==e.type)),Re()):(console.error("Error in sendMessage:",w),O(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}]),A("ongoing"),j(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),M(!1),L("starting"),B.current=null,Re())}}),[r,D,T.threadId,Oe,Ie,Re]);bs.useEffect(()=>{ke.current=Ne},[Ne]);const We=bs.useCallback(()=>{B.current&&(B.current.abort(),B.current=null),h(),O([]),A("welcome"),M(!1),L("starting"),j({repliedProduct:null,threadId:null,isRequestInProgress:!1}),xe.current.clear(),_e.current=[],ze.current=!1},[]),$e=bs.useCallback(e=>{n(t=>t?{...t,...e}:null)},[]),Be=bs.useMemo(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")},[]),He=bs.useCallback(async(e,t,r)=>{if(!Be)return;const n=T.threadId;if(!n)return;const i=document.querySelector("script#dori-side-widget"),a=i?.getAttribute("data-sharing-id")||"",o=R.filter(e=>"dori"===e.type)[e];if(!o)return;const s=o.feedback;O(e=>e.map(e=>e.id===o.id?{...e,feedback:{rating:t,feedbackText:r}}:e));try{const i=await fetch(Sm.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),O(e=>e.map(e=>e.id===o.id?{...e,feedback:s}:e))}},[T.threadId,Be,R]),Ve={botData:r,isLoadingBot:x,botError:k,chatState:T,messages:R,currentStep:I,isInputDisabled:D,inputState:F,cartItemCount:we,cartUndoState:Ce,dismissCartUndo:Te,handleCartUndo:je,initializeBot:Fe,sendMessage:Ne,stopCurrentRequest:Me,setCurrentStep:A,setInputState:L,messagesEndRef:N,addWelcomeMessage:Le,setRepliedProduct:Ae,resetBot:We,updateBotData:$e,setAutoScrollEnabled:$,dynamicWelcomeMessage:V,pendingBubbleSuggestion:q,setPendingBubbleSuggestion:Y,proactiveChips:Q,proactiveChipsPosition:X,setProactiveChips:ne,dismissProactiveChips:ie,proactiveSuppressedThisSession:te,suppressProactiveForSession:se,dynamicFollowupNudgeMessage:Z,setDynamicFollowupNudgeMessage:ee,diagnosticFlow:le,diagnosticShown:ue,markDiagnosticShown:he,isTestMode:Be,submitFeedback:He,effectiveLanguage:E,effectiveSuggestedReplies:z};return hs.jsx(pv.Provider,{value:Ve,children:e})}function fv(){const e=bs.useContext(pv);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}const gv=()=>{const{effectiveLanguage:e}=fv(),t=e||"English",r=lv(t);return{t:e=>r[e],language:t,translations:r}};function mv(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 vv(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 bv(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 yv(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 xv(e){const t=Array.isArray(e)?e[0]:e;return`linear-gradient(126deg, ${bv(t,5)} 16%, ${vv(t,10)} 88%)`}const _v=hm({displayName:"CloseIcon",viewBox:"0 0 24 24",path:hs.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"})}),kv=hm({displayName:"ExpandIcon",viewBox:"0 0 24 24",path:hs.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z",fill:"currentColor"})}),wv=hm({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:hs.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=hm({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:hs.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"})}),Cv=hm({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:hs.jsxs(hs.Fragment,{children:[hs.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"}),hs.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),Pv=hm({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),hs.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),Ev=hm({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),hs.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"})]})}),zv=hm({displayName:"ArrowLeftIcon",viewBox:"0 0 32 32",path:hs.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"})}),Tv=hm({displayName:"ReloadIcon",viewBox:"0 0 24 24",path:hs.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"})}),jv=hm({displayName:"CartBagIcon",viewBox:"0 0 24 24",path:hs.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"})}),Rv=hm({displayName:"ArrowRightIcon",viewBox:"0 0 24 24",path:hs.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"})}),Ov=hm({displayName:"AiBigIcon",viewBox:"0 0 24 24",path:hs.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"})});hm({displayName:"AiRainbowIconBase",viewBox:"0 0 24 24",path:hs.jsxs(hs.Fragment,{children:[hs.jsx("g",{clipPath:"url(#clip0_497_8063)",children:hs.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)"})}),hs.jsxs("defs",{children:[hs.jsxs("linearGradient",{id:"paint0_linear_497_8063",x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[hs.jsx("stop",{stopColor:"#FF7E90"}),hs.jsx("stop",{offset:"0.463542",stopColor:"#A939FF"}),hs.jsx("stop",{offset:"1",stopColor:"#0020FF"})]}),hs.jsx("clipPath",{id:"clip0_497_8063",children:hs.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})});const Iv=e=>{const t=Zg("colors","primary"),[r,n,i]=function(e){const t=Array.isArray(e)?e[0]:e;return[vv(t,15),t,bv(t,10)]}(t),a=ys.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 hs.jsx(pu,{position:"relative",display:"inline-block",width:c,height:c,transform:l,children:hs.jsxs("svg",{viewBox:"0 0 24 24",width:c,height:c,style:{display:"block"},children:[hs.jsxs("defs",{children:[hs.jsxs("linearGradient",{id:a,x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[hs.jsx("stop",{stopColor:r}),hs.jsx("stop",{offset:"0.463542",stopColor:n}),hs.jsx("stop",{offset:"1",stopColor:i})]}),hs.jsx("clipPath",{id:`clip-${a}`,children:hs.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),hs.jsx("g",{clipPath:`url(#clip-${a})`,children:hs.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})`})})]})})},Av=""+new URL("dori.ico",import.meta.url).href,Dv=({onClose:e,isMobile:t=!1,isExpanded:r=!1,onToggleExpand:n,onReload:i})=>{const{botData:a,cartItemCount:o}=fv(),{t:s}=gv(),l=Fm(a)&&o>0;return hs.jsxs(fm,{justify:"space-between",align:"center",flexShrink:0,children:[hs.jsx(gm,{src:a?.bot_image?a?.bot_image:Av,alt:"",role:"presentation",w:"40px",h:"40px",borderRadius:"50%"}),hs.jsxs(ym,{gap:3,children:[l&&hs.jsxs(lm,{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(`${Lm()}cart`,"_blank","noopener,noreferrer")},fontFamily:"system-ui, sans-serif",children:[hs.jsx(jv,{boxSize:"16px",color:"text"}),hs.jsx(Lu,{fontSize:"13px",fontWeight:"500",color:"text",children:o})]}),!t&&n&&hs.jsxs(lm,{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:[hs.jsx(kv,{boxSize:"16px",color:"text"}),s(r?"minimize":"showFullScreen")]}),i&&hs.jsx(cm,{size:"sm",variant:"ghost","aria-label":s("reload"),onClick:i,color:"text",_hover:{bgColor:"mutedText"},children:hs.jsx(Tv,{boxSize:t?"16px":"24px",color:"text"})}),hs.jsx(cm,{size:"sm",variant:"ghost","aria-label":s("close"),onClick:()=>{r&&n?.(),e()},color:"text",_hover:{bgColor:"mutedText"},children:hs.jsx(_v,{boxSize:t?"16px":"24px",color:"text"})})]})]})};class Mv{static async getUploadCredentials(e){const t={file_extension:e,expires_in:3600,content_length_range:{min_bytes:1024,max_bytes:10485760}},r=await fetch(Sm.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 Fv=()=>{const[e,t]=bs.useState(null),[r,n]=bs.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 Mv.compressImage(e),i=await Mv.getUploadCredentials(r.format),a=await Mv.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 Lv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Nv=ys.createContext&&ys.createContext(Lv),Wv=["attr","size","title"];function $v(){return $v=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},$v.apply(this,arguments)}function Bv(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 Hv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bv(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)):Bv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vv(e){return e&&e.map((e,t)=>ys.createElement(e.tag,Hv({key:t},e.attr),Vv(e.child)))}function Uv(e){return t=>ys.createElement(qv,$v({attr:Hv({},e.attr)},t),Vv(e.child))}function qv(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),ys.createElement("svg",$v({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:r,style:Hv(Hv({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&ys.createElement("title",null,a),e.children)};return void 0!==Nv?ys.createElement(Nv.Consumer,null,e=>t(e)):t(Lv)}function Yv(e){return Uv({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 Gv=({imageUrl:e,onRemove:t})=>hs.jsxs("div",{style:{position:"relative",display:"inline-block",background:"transparent"},children:[hs.jsx(gm,{src:e,alt:"Uploaded image",w:"80px",h:"80px",borderRadius:"12px",objectFit:"cover",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.11)"}),hs.jsx(cm,{position:"absolute",top:"6px",right:"6px",bg:"primary","aria-label":"Remove image",onClick:t,size:"sm",borderRadius:"50%",minW:"24px",h:"24px",children:hs.jsx(_v,{boxSize:"14px",filter:"brightness(0) invert(1) drop-shadow(0 0 1px white)"})})]}),Qv=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n,isMobileView:i})=>{const{chatState:{repliedProduct:a},setRepliedProduct:o}=fv(),[s,l]=bs.useState(t),{uploadedImage:c,isUploading:u,handleFileSelect:d,removeImage:p}=Fv();bs.useEffect(()=>{l(f(t))},[t]);const h=e=>{(s.trim()||e||c)&&(n?.({message:e??s.trim(),imageUrl:c?.url},a?.product),o?.(null),l(""),p())},f=e=>e.trimStart();return hs.jsxs(xm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:[c&&hs.jsx(pu,{position:"absolute",bottom:a?i?"300px":"190px":"90px",left:"12px",zIndex:1e6,bg:"transparent",pointerEvents:"auto",children:hs.jsx(Gv,{imageUrl:c.preview,onRemove:p})}),hs.jsx(pu,{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:hs.jsxs(pu,{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&&hs.jsxs(xm,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",borderColor:"borderColor",bgColor:"lightBackground",children:[hs.jsxs(ym,{justify:"space-between",align:"center",w:"full",children:[hs.jsx(gm,{src:a?.product?.image,alt:"product",w:"40px",h:"40px"}),hs.jsx(Lu,{fontSize:"12px",fontWeight:400,color:"text",children:a?.product?.name}),hs.jsx(cm,{bg:"transparent","aria-label":"Remove product",onClick:()=>o?.(null),children:hs.jsx(_v,{boxSize:"24px",color:"text"})})]}),a?.suggestions&&a.suggestions.length>0&&hs.jsxs(hs.Fragment,{children:[hs.jsx(pu,{display:{base:"none",md:"block"},w:"full",children:hs.jsx(ym,{w:"full",justify:"flex-start",align:"center",gap:2,children:a.suggestions.map(e=>hs.jsx(lm,{variant:"outline",bg:"transparent",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>h(e),h:"32px",px:3,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:hs.jsx(pu,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),hs.jsx(pu,{display:{base:"block",md:"none"},w:"full",children:hs.jsx(xm,{w:"full",align:"stretch",gap:"8px",children:a.suggestions.map(e=>hs.jsx(lm,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"14px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>h(e),children:e},e))})})]})]}),hs.jsx(km,{value:s,onChange:e=>(e=>{const t=f(e);l(t),r?.(t)})(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.repeat||(e.preventDefault(),h())},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)"}),hs.jsx(cm,{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?hs.jsx(im,{size:"sm",color:"text"}):hs.jsx(Yv,{size:"full",color:"text"})}),hs.jsx(cm,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Send",onClick:()=>h(),_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:hs.jsx(Ev,{boxSize:"30px",color:"primary"})})]})})]})},Kv=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:r}=fv();return hs.jsx(xm,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:hs.jsx(pu,{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:hs.jsx(pu,{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:hs.jsxs(ym,{justify:"space-between",align:"center",h:"full",children:[hs.jsx(Lu,{color:"mutedText",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),hs.jsx(cm,{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:hs.jsx(Pv,{boxSize:"30px",color:"primary"})})]})})})})},Xv=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:n})=>{const[i,a]=bs.useState(t),[o,s]=bs.useState(!1),{uploadedImage:l,isUploading:c,handleFileSelect:u,removeImage:d}=Fv(),p=bs.useRef(null);bs.useEffect(()=>{a(g(t))},[t]);const h=()=>{(i.trim()||l)&&(n?.({message:i.trim(),imageUrl:l?.url}),a(""),d())},f=e=>` ${e}`,g=e=>e.trimStart();return hs.jsxs(xm,{gap:2,align:"stretch",children:[l&&hs.jsx(pu,{mb:2,alignSelf:"flex-start",bg:"transparent",children:hs.jsx(Gv,{imageUrl:l.preview,onRemove:d})}),hs.jsxs(pu,{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:[hs.jsx(pu,{position:"absolute",top:"8px",left:"8px",zIndex:2,children:hs.jsx(Iv,{w:"24px",h:"24px",transform:"rotate(2700deg)",color:"primary"})}),hs.jsx(pu,{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:hs.jsx(ym,{justify:"space-between",align:"center",h:"full",children:hs.jsx(Lu,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),hs.jsx(cm,{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?hs.jsx(im,{size:"sm"}):hs.jsx(Yv,{size:"24px"})}),hs.jsx(cm,{position:"absolute",bottom:"8px",right:"12px",size:"xs",borderRadius:"full",bg:"primary","aria-label":"Send",onClick:e=>{e.stopPropagation(),h()},_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:hs.jsx(zv,{boxSize:"30px",color:"text"})}),hs.jsx(pu,{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:hs.jsx(km,{ref:p,value:f(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(),h())},placeholder:f(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"})})]})]})},Jv=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:r="",onChange:n,onSend:i,onStop:a})=>{const[o,s]=bs.useState(!1);return bs.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?hs.jsx(Qv,{placeholder:t,value:r,onChange:n,onSend:i,isMobileView:o}):"generating"===e?hs.jsx(Kv,{placeholder:t,onStop:a,isMobileView:o}):hs.jsx(Xv,{placeholder:t,value:r,onChange:n,onSend:i})},Zv=(e,t)=>{const r=e.includes("?")?"&":"?";return`${e}${r}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},eb=()=>{const{botData:e}=fv(),{isMobile:t}=wm(),{t:r}=gv();return hs.jsxs(ym,{gapX:2,justifyContent:t?"start":"center",align:"center",alignContent:"center",alignItems:"center",w:"full",wrap:t?"wrap":"nowrap",children:[hs.jsxs(vm,{href:Zv("https://dori.tech/",e?.sharing_id||""),target:"_blank",rel:"noopener noreferrer",children:[hs.jsxs(Lu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",fontFamily:"system-ui, sans-serif",lineHeight:"1.4",children:[r("poweredBy")," "]}),hs.jsx(gm,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori-16px.webp",alt:"",role:"presentation",h:{base:"14px",md:"16px"}}),!t&&hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",lineHeight:"1.4",children:"-"})]}),hs.jsx(pu,{fontSize:"10px",color:"mutedText",px:0,py:0,bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1,children:hs.jsx(pu,{as:"span",children:r("aiCanMakeMistakes")})})]})};function tb(e){return Uv({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 rb(e){return Uv({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 nb=(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,h]=bs.useState(1),[f,g]=bs.useState(0),[m,v]=bs.useState(0),[b,y]=bs.useState(1);return bs.useEffect(()=>{if(!t)return;const e=setInterval(()=>{h(e=>1===e?.2:1)},a);return()=>clearInterval(e)},[t,a]),bs.useEffect(()=>{if(!r)return;const e=setInterval(()=>{g(e=>0===e?c:0)},o);return()=>clearInterval(e)},[r,o,c]),bs.useEffect(()=>{if(!n)return;const e=setInterval(()=>{v(e=>0===e?u:0)},s);return()=>clearInterval(e)},[n,s,u]),bs.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:f,rotationAngle:m,scaleFactor:b}},ib=(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 ab(){return"undefined"!=typeof window&&!!window.$crisp}function ob(){ab()&&window.$crisp.push(["do","chat:hide"])}function sb(){console.log("trying to open"),ab()&&(console.log("trying to open2"),window.$crisp.push(["do","chat:show"]),window.$crisp.push(["do","chat:open"]))}const lb=15e3,cb="chatra";let ub=!1,db=!1,pb=null,hb=0,fb=null,gb=0,mb=!1;function vb(...e){console.log("[Dori-Chatra]",...e)}function bb(){return"undefined"!=typeof window&&"function"==typeof window.Chatra}function yb(){return!!bb()&&!!document.getElementById(cb)}function xb(e){if(bb())try{window.Chatra("hide"),vb("called Chatra('hide') —",e)}catch(t){vb("error calling hide:",t)}}function _b(){null!==pb&&(clearInterval(pb),pb=null,vb("stopped maintain loop"))}function kb(){db||Date.now()-hb>3e4?_b():ub&&bb()&&xb("maintain loop")}function wb(){if(!db)return;const e=document.getElementById(cb);if(!e)return;const t=e.className||"",r=-1!==t.indexOf("chatra--visible");-1!==t.indexOf("chatra--expanded")?mb=!0:mb&&(Date.now()-gb<1500||r&&xb("user closed chat"))}function Sb(){vb("openChatraChat invoked"),db=!0,mb=!1,_b(),function(){if(fb||"undefined"==typeof document)return;const e=()=>{const e=document.getElementById(cb);return!!e&&(fb=new MutationObserver(wb),fb.observe(e,{attributes:!0,attributeFilter:["class","style"]}),vb("attached close observer to #chatra"),!0)};if(e())return;const t=Date.now(),r=setInterval(()=>{(e()||Date.now()-t>lb)&&clearInterval(r)},200)}(),function(e){if(yb())return void e();const t=Date.now(),r=setInterval(()=>{yb()?(clearInterval(r),e()):Date.now()-t>lb&&(clearInterval(r),vb("Chatra never fully loaded within",lb,"ms"))},200)}(()=>{gb=Date.now();try{window.Chatra("show"),vb("called Chatra('show')"),setTimeout(()=>{try{window.Chatra("openChat"),vb("called Chatra('openChat')")}catch(e){vb("error calling openChat:",e)}},50)}catch(e){vb("error calling show:",e)}})}const Cb=(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":sb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"chatra":Sb(),window.dispatchEvent(new Event("dori:close-widget"));break;case"dori":r&&r()}},Pb=({channels:e,isOpen:t,onToggle:r,isMobile:n,onMouseEnter:i,onChatClick:a})=>{const{botData:o}=fv(),s=Nu({base:!0,md:!1})??!1,l=ib(o,s),c=!0!==o?.customization?.disable_idle_animation,{getStarfieldTransform:u,getIconStyle:d}=nb({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:hs.jsxs(xm,{gap:2,align:"flex-end",alignItems:"center",position:"absolute",bottom:"100%",right:0,children:[n&&t&&hs.jsx(cm,{"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:hs.jsx(tb,{size:20})}),hs.jsx(pu,{mb:3,opacity:t?1:0,transform:t?"translateY(0)":"translateY(10px)",transition:"all 0.2s ease",pointerEvents:t?"auto":"none",onMouseEnter:i,children:hs.jsxs(xm,{gap:2,align:"flex-end",children:[hs.jsx(pu,{borderRadius:"full",cursor:"pointer",onClick:()=>Cb("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:hs.jsx(Ov,{boxSize:{base:"24px",md:"32px"},color:"background",transform:u("expanded",l),...d()})}),p.map((e,t)=>hs.jsx(pu,{borderRadius:"full",cursor:"pointer",onClick:()=>Cb(e.type,e.data,a),_hover:{"@media (hover: hover) and (pointer: fine)":{transform:"scale(1.1)"}},transition:"all 0.2s ease",children:hs.jsx(gm,{src:e.icon,alt:e.name,boxSize:{base:"36px",md:"48px"},borderRadius:"full",objectFit:"fill"})},`${e.type}-${t}`))]})}),n&&!t&&hs.jsx(cm,{"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:hs.jsx(rb,{size:20})})]})},Eb=({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:hs.jsx(ym,{gap:3,w:"full",alignItems:"center",justifyContent:"start",wrap:"wrap",children:t.map((e,t)=>hs.jsxs(pu,{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":sb(),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:[hs.jsx(gm,{src:e.icon,alt:e.name,boxSize:{base:"22px",md:"24px"},borderRadius:"full",objectFit:"cover"}),hs.jsx(Lu,{fontSize:{base:"12px",md:"14px"},fontWeight:"400",color:"text",whiteSpace:"nowrap",children:e.name})]},`${e.type}-${t}`))})},zb=({flow:e,onComplete:t})=>{const[r,n]=bs.useState(0),[i,a]=bs.useState([]),[o,s]=bs.useState("active"),[l,c]=bs.useState(!1),[u,d]=bs.useState(!1),[p,h]=bs.useState(!1),f=bs.useRef(null),g=bs.useRef(null),m=bs.useRef(null),v=bs.useRef(null),b=Zg("colors","primary"),y=xv(b);bs.useEffect(()=>{if("active"!==o)return;c(!1);const e=requestAnimationFrame(()=>{c(!0)});return()=>cancelAnimationFrame(e)},[r,o]),bs.useEffect(()=>()=>{f.current&&clearTimeout(f.current),g.current&&clearTimeout(g.current),m.current&&clearTimeout(m.current),v.current&&clearTimeout(v.current)},[]);const x=bs.useCallback(o=>{if(p)return;h(!0);const l=[...i,{stepIndex:r,option:o}];a(l),r<e.steps.length-1?(c(!1),f.current=setTimeout(()=>{n(e=>e+1),h(!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=Dm(),a=l.map(e=>e.option.label).join(", ");t(r,`${i}[Quiz selections: ${a}] ${n}`)},r)},300))},[p,i,r,e,t]),_=bs.useCallback(()=>{r<=0||u||(c(!1),g.current=setTimeout(()=>{a(e=>e.slice(0,-1)),n(e=>e-1),h(!1)},250))},[r,u]),k=e.steps[r];return"analyzing"===o?hs.jsxs(xm,{gap:3,align:"center",flex:1,justify:"center",transition:"opacity 0.3s ease",children:[hs.jsx(ym,{gap:2,flexWrap:"wrap",justify:"center",children:i.map((e,t)=>hs.jsx(Tb,{label:e.option.label},t))}),hs.jsxs(xm,{gap:2,align:"center",py:4,children:[hs.jsx(Cv,{boxSize:"20px",color:"primary",opacity:.6}),hs.jsx(Lu,{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})]}),hs.jsx("style",{children:"\n @keyframes dori-shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n }\n "})]}):hs.jsxs(xm,{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&&hs.jsxs(ym,{gap:2,flexWrap:"wrap",align:"center",children:[hs.jsx(pu,{as:"button",onClick:_,"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)=>hs.jsx(Tb,{label:e.option.label},t))]}),hs.jsxs(pu,{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:[hs.jsxs(xm,{align:"stretch",gap:3,mb:3,children:[hs.jsxs(ym,{justify:"space-between",align:"center",gap:3,children:[hs.jsxs(ym,{gap:2,align:"center",minW:0,children:[hs.jsx(pu,{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"24px",borderRadius:"12px",bg:"background",border:"1px solid",borderColor:"primary",flexShrink:0,children:hs.jsx(Cv,{boxSize:"12px",color:"primary"})}),hs.jsx(Lu,{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})]}),hs.jsxs(pu,{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]})]}),hs.jsx(Lu,{fontSize:"17px",fontWeight:700,color:"text",lineHeight:"1.45",fontFamily:"system-ui, sans-serif",children:k.question}),hs.jsx(pu,{bg:"background",border:"1px solid",borderColor:"borderColor",borderRadius:"16px",px:3,py:2.5,children:hs.jsxs(ym,{gap:2,align:"start",children:[hs.jsx(pu,{boxSize:"7px",borderRadius:"full",bg:"primary",mt:"7px",flexShrink:0}),hs.jsx(Lu,{fontSize:"12px",color:"textSecondary",fontWeight:500,lineHeight:"1.65",fontFamily:"system-ui, sans-serif",opacity:.9,children:k.reason})]})})]}),hs.jsx(pu,{display:"grid",gridTemplateColumns:{base:"1fr 1fr"},gap:2,children:k.options.map((e,t)=>hs.jsx(pu,{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:hs.jsxs(pu,{flex:"1",minW:0,children:[hs.jsx(Lu,{fontSize:"13px",fontWeight:500,color:"text",lineHeight:"1.4",whiteSpace:"normal",wordBreak:"break-word",children:e.label}),e.subtitle&&hs.jsx(Lu,{fontSize:"10px",color:"textSecondary",opacity:.6,lineHeight:"1.2",children:e.subtitle})]})},e.value))})]})]})},Tb=({label:e})=>hs.jsxs(pu,{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]}),jb=({chips:e,onChipClick:t,onDismiss:r})=>{const[n,i]=bs.useState(!1);return bs.useEffect(()=>{const e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]),0===e.length?null:hs.jsx(pu,{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:hs.jsxs(ym,{gap:2,wrap:"wrap",align:"center",children:[e.map((e,r)=>hs.jsx(lm,{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}`)),hs.jsx(cm,{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:hs.jsx(_v,{boxSize:"11px"})})]})})},Rb=({onStartChat:e,isMobile:t,isExpanded:r=!1,onToggleExpand:n,onClose:i})=>{const{inputValue:a,handleInputChange:o}=((e="")=>{const[t,r]=bs.useState(e),n=bs.useCallback(e=>{r(e)},[]),i=bs.useCallback(e=>{t.trim()&&e&&(e(t.trim()),r(""))},[t]),a=bs.useCallback((e,t)=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(t))},[i]),o=bs.useCallback(()=>{r("")},[]),s=bs.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:h}=fv(),{t:f,translations:g}=gv(),m=s?.white_label?.is_white_labeled??!1,v=xv(Zg("colors","primary")),b=c,y=!1,_=!!(u&&u.length>0),k=bs.useMemo(()=>{const e=[];return l&&e.push({text:l,isDynamic:!0}),_||b.forEach(t=>e.push({text:t,isDynamic:!1})),e},[l,b,_]);bs.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 hs.jsxs(hs.Fragment,{children:[hs.jsx(Dv,{onClose:i,isMobile:t,isExpanded:r,onToggleExpand:n}),hs.jsxs(xm,{h:"full",minH:0,justify:"flex-start",align:"stretch",gap:4,children:[hs.jsx(xm,{gap:3,w:"full",align:"start",mb:"16px",flexShrink:0,children:hs.jsx(Lu,{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:x(s?.agent_name,g)})}),hs.jsx(pu,{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:hs.jsxs(xm,{gap:4,align:"stretch",justify:"start",pb:3,children:[hs.jsx(pu,{children:hs.jsx(Jv,{state:"minimized",placeholder:f("askAnything"),value:a,onChange:o,onSend:w})}),u&&u.length>0&&hs.jsx(jb,{chips:u,onChipClick:t=>{Jo("post_answer"===d?"nudge.in_chat.post_answer.chip_clicked":"nudge.in_chat.pre_message.chip_clicked",{chip_text:t}),e(t),p()},onDismiss:()=>{Jo("post_answer"===d?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),p(),h()}}),y,y,k.length>0&&hs.jsx(pu,{w:"full",children:hs.jsx(pu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:3,w:"full",children:k.map((t,r)=>hs.jsxs(lm,{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=`${Dm()}[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:[hs.jsx(Cv,{boxSize:"16px",color:t.isDynamic?"primary":"text"}),hs.jsx(pu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"system-ui, sans-serif",children:t.text})]},t.isDynamic?"dynamic":r))})})]})}),hs.jsx(pu,{w:"full",flexShrink:0,children:hs.jsx(Eb,{channels:s?.merchant_support_channels})}),!m&&hs.jsx(pu,{flexShrink:0,transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:hs.jsx(eb,{variant:"default"})})]})]})},Ob=({message:e,type:t="default"})=>{const r="loading"===t,{botData:n}=fv(),i=e.replace(/\\([!?.,'":;\-\[\](){}#*_~`>+])/g,"$1"),a=r?i.replace(/[.\u2026]{1,3}\s*$/u,"").trim():i;return hs.jsxs(pu,{position:"relative",width:"full",children:[hs.jsx(pu,{opacity:"0",bg:"lightBackground",borderRadius:"24px",padding:"16px",children:hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",fontFamily:"system-ui, sans-serif",children:i})}),hs.jsx(pu,{h:"50px"}),hs.jsx(pu,{position:"absolute",left:0,bottom:0,children:hs.jsx(gm,{src:n?.agent_image||Av,alt:"",role:"presentation",w:"24px",h:"24px",borderRadius:"50%"})}),hs.jsx(pu,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),hs.jsx(pu,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),hs.jsx(pu,{position:"absolute",left:"35px",bottom:"35px",bg:"lightBackground",borderRadius:"24px",padding:"16px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:r?hs.jsxs(ym,{gap:"8px",align:"center",children:[a&&hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"mutedText",fontFamily:"system-ui, sans-serif",children:a}),hs.jsx(ym,{gap:"3px",align:"center","aria-hidden":"true",children:[0,1,2].map(e=>hs.jsx(pu,{w:"4px",h:"4px",borderRadius:"full",bg:"mutedText",css:{animation:`dori-typing-dot 1.2s ease-in-out ${.15*e}s infinite`}},e))}),hs.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 "})]}):hs.jsx(Lu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"text",fontFamily:"system-ui, sans-serif",children:i})})]})},Ib={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"},Ab=({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}=fv(),{t:p}=gv(),h=(u?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",f=Ib[h]||h,{name:g,price:m,originalPrice:v,discount:b,image:y,id:x,url:_}=e,k=Fm(u),w=Boolean(e.is_on_sale&&null!=e.sale_price&&e.sale_price>0&&null!=m&&e.sale_price<m),S=w&&e.sale_price?e.sale_price:m,C=w?m:v,P=w&&null!=e.sale_percent_off&&e.sale_percent_off>0?e.sale_percent_off:b,E=w&&null!=e.sale_amount_off&&e.sale_amount_off>0?e.sale_amount_off:void 0,z=!!C&&!!S&&C>S,T=w?e.sale_label:void 0,[j,R]=bs.useState(!1),[O,I]=bs.useState(!1),A=Zg("colors","background"),D=Array.isArray(A)?A[0]:A,[M,F]=bs.useState(D),L=bs.useRef(null),N=e.description?.length&&e.description?.length>o;bs.useEffect(()=>{(()=>{if(!L.current)return;const e=L.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 F(D);if(0===i.length)return void F(D);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);F(s)}catch(t){console.error("Error extracting corner colors:",t),F(D)}};if(!(e.complete&&e.naturalWidth>0))return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)};t()})()},[y,D]);const W=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"),Pm(e,u,d.threadId)},$=O||d.isRequestInProgress;return hs.jsxs(xm,{gap:1,children:[hs.jsx(pu,{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:hs.jsxs(xm,{gap:a?1.5:2,align:"stretch",children:[hs.jsxs(pu,{position:"relative",cursor:"pointer",onClick:W,_hover:{opacity:.9},transition:"all 0.3s ease",bg:M,borderRadius:"md",children:[i&&n&&hs.jsx(pu,{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}),hs.jsx(gm,{ref:L,src:y,alt:g,w:"full",h:s,objectFit:"contain",borderRadius:"md",crossOrigin:"anonymous"})]}),hs.jsx(Lu,{fontWeight:600,fontSize:a?"11px":"12px",lineHeight:a?"18px":"24px",color:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:g,fontFamily:"system-ui, sans-serif",cursor:"pointer",onClick:W,_hover:{color:"primary"},transition:"color 0.2s",children:g}),!a&&e.description&&hs.jsx(pu,{borderRadius:"8px",borderLeft:"2px solid",borderLeftColor:"primary",padding:"6px 10px",w:"full",bg:"lightBackground",cursor:j?"default":"pointer",onClick:j?void 0:()=>{R(!0)},_hover:j?{}:{bg:"veryLightBackground"},transition:"background-color 0.2s",children:hs.jsxs(Lu,{fontSize:"12px",fontWeight:400,color:"text",lineHeight:"20px",overflow:"hidden",title:e.description,fontFamily:"system-ui, sans-serif",children:[N&&!j?e.description?.substring(0,o)+"... ":e.description,N&&!j&&hs.jsx(Lu,{as:"span",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"system-ui, sans-serif",children:p("more")})]})}),hs.jsx(ym,{justify:"space-between",align:"end",children:hs.jsxs(xm,{gap:1,align:"start",children:[(z||P||E)&&hs.jsxs(ym,{gap:1,children:[z&&hs.jsxs(Lu,{fontSize:"xs",color:"mutedText",textDecoration:"line-through",fontFamily:"system-ui, sans-serif",children:[f,C?.toLocaleString()]}),(P||E)&&hs.jsx(rm,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"24px",title:T||void 0,children:P?`${P}%`:`-${f}${E?.toLocaleString()}`})]}),!!S&&S>0&&hs.jsxs(Lu,{fontSize:"12px",fontWeight:"700",color:"text",fontFamily:"system-ui, sans-serif",children:[f,S?.toLocaleString()||0]})]})})]})}),hs.jsx(xm,{gap:1,w:"full",align:"stretch",children:hs.jsxs(ym,{gap:.5,children:[hs.jsx(cm,{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:[p("doesProductHaveDiscount"),p("whatFeaturesSpecial"),p("otherColorsAvailable")]})},"aria-label":"Reply to product",children:hs.jsx(wv,{boxSize:a?"14px":"16px"})}),!a&&hs.jsxs(lm,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:"4px",flex:1,fontWeight:400,onClick:()=>{const e=`${p("doYouHaveSimilar")} ${g}`;l({message:e,apiMessage:`${e} (product id: ${x})`})},_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",minW:0,overflow:"hidden",textOverflow:"ellipsis",children:[hs.jsx(Sv,{boxSize:"16px"}),p("similar")]}),!a&&k&&hs.jsxs(lm,{variant:"outline",size:"xs",h:"30px",fontSize:"12px",color:"primary",borderRadius:t?"4px":"6px",flex:1,minW:0,fontWeight:400,onClick:async()=>{if(O||d.isRequestInProgress)return;I(!0);const e=p("addToCartMessage").replace("{product}",g),t=qm(_),r=`DORI_INTERNAL_EVENT:add_to_cart_request:${JSON.stringify({product_name:g,product_url:_||null,product_handle:t||null,quantity:1})}`;try{await l({message:e,apiMessage:r})}finally{I(!1)}},disabled:$,loading:$,_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"system-ui, sans-serif",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:[hs.jsx(jv,{boxSize:"16px"}),p($?"addToCartAdding":"addToCartButton")]})]})})]})},Db=({index:e,delay:t=70,children:r})=>{const[n,i]=bs.useState(!1);return bs.useEffect(()=>{const r=setTimeout(()=>i(!0),e*t);return()=>clearTimeout(r)},[e,t]),hs.jsx(pu,{opacity:n?1:0,transform:n?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:r})},Mb=({products:e,isDesktop:t})=>hs.jsx(bm,{dir:"ltr",columns:t?2:1,gapX:t?2:1,gapY:t?4:2,w:"full",children:e.map((e,r)=>hs.jsx(Db,{index:r,children:hs.jsx(Ab,{product:e,isDesktop:t})},e.id))}),Fb=({product:e,index:t,isLast:r,isDesktop:n,delay:i})=>{const[a,o]=bs.useState(!1);bs.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 hs.jsx(pu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(10px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:hs.jsxs(ym,{align:"stretch",gap:0,children:[hs.jsxs(xm,{align:"center",gap:0,w:"28px",flexShrink:0,children:[hs.jsx(pu,{w:"28px",h:"28px",borderRadius:"full",bg:"primary",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:hs.jsx(Lu,{fontSize:"12px",fontWeight:"700",color:"white",lineHeight:"1",children:t+1})}),!r&&hs.jsx(pu,{flex:1,w:"2px",bg:"borderColor",minH:"8px",opacity:a?1:0,transition:"opacity 0.3s ease-out 0.2s"})]}),hs.jsxs(xm,{align:"stretch",gap:1.5,flex:1,minW:0,pl:2.5,pb:r?0:3,children:[s&&hs.jsx(Lu,{fontSize:"13px",fontWeight:"600",color:"text",fontFamily:"system-ui, sans-serif",pt:.5,children:s}),hs.jsx(Ab,{product:e,isDesktop:n})]})]})})},Lb={single_pick:({products:e,isDesktop:t})=>{const r=e[0],n=e.slice(1,3),{t:i}=gv(),[a,o]=bs.useState(!1),[s,l]=bs.useState(!1);return bs.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?hs.jsxs(xm,{gap:3,w:"full",align:"stretch",children:[hs.jsx(pu,{opacity:a?1:0,transform:a?"translateY(0)":"translateY(8px)",transition:"opacity 0.35s ease-out, transform 0.35s ease-out",children:hs.jsx(Ab,{product:r,isDesktop:t,variant:"hero",badgeLabel:i("topPick")})}),n.length>0&&hs.jsxs(pu,{opacity:s?1:0,transform:s?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:[hs.jsx(Lu,{fontSize:"11px",fontWeight:500,color:"mutedText",fontFamily:"system-ui, sans-serif",mb:2,px:1,children:i("alsoConsider")}),hs.jsx(bm,{dir:"ltr",columns:1===n.length?1:2,gapX:2,gapY:2,w:"full",children:n.map(e=>hs.jsx(pu,{children:hs.jsx(Ab,{product:e,isDesktop:t,variant:1===n.length?"default":"compact"})},e.id))})]})]}):null},shortlist:({products:e,isDesktop:t})=>{const{t:r}=gv();return hs.jsx(xm,{gap:3,w:"full",align:"stretch",children:e.map((e,n)=>hs.jsx(Db,{index:n,delay:120,children:hs.jsx(Ab,{product:e,isDesktop:t,variant:0===n?"hero":"default",badgeLabel:0===n?r("topPick"):void 0})},e.id))})},routine:({products:e,isDesktop:t})=>hs.jsx(xm,{gap:0,w:"full",align:"stretch",children:e.map((r,n)=>hs.jsx(Fb,{product:r,index:n,isLast:n===e.length-1,isDesktop:t,delay:200*n},r.id))}),explore:Mb},Nb=({products:e,shape:t="explore"})=>{const{chatState:r,botData:n}=fv(),i=bs.useRef(new Set),a=bs.useRef(null),[o,s]=bs.useState(!1),l=bs.useCallback(()=>{a.current&&s(a.current.offsetWidth>=600)},[]);bs.useEffect(()=>{l();const e=new ResizeObserver(l);return a.current&&e.observe(a.current),()=>e.disconnect()},[l]),bs.useEffect(()=>{const t=Rm();if(t===jm.OTHER)return;if(!r.threadId||!n?.sharing_id)return;if(_())return;const a=v(),o=[];if(e.forEach(e=>{const t=e.external_product_id;t&&(i.current.has(t)||(i.current.add(t),o.push(t)))}),o.length>0){const e=window.DORI_CUSTOMER_ID,i=null!=e?String(e):void 0,s=Wm();Em(o,r.threadId||"",a,t,n.sharing_id,void 0,i,s)}},[e,r.threadId,n?.sharing_id]);const c=Lb[t]||Mb;return hs.jsx(xm,{ref:a,align:"stretch",gap:2,w:"full",children:hs.jsx(pu,{px:1,w:"full",children:hs.jsx(c,{products:e,isDesktop:o})})})},Wb=({index:e,children:t})=>{const[r,n]=bs.useState(!1);return bs.useEffect(()=>{const t=setTimeout(()=>n(!0),70*e);return()=>clearTimeout(t)},[e]),hs.jsx(pu,{opacity:r?1:0,transform:r?"translateY(0)":"translateY(6px)",transition:"opacity 0.3s ease-out, transform 0.3s ease-out",children:t})},$b=({suggestions:e})=>{const{sendMessage:t}=fv(),r=e.length>0&&e.every(e=>e.length<=18);return hs.jsx(fm,{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)=>hs.jsx(Wb,{index:n,children:hs.jsx(lm,{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:hs.jsx(Lu,{fontSize:{base:"14px",md:"12px"},fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",lineClamp:r?1:2,children:e})})},n))})},Bb=()=>{const{t:e}=gv();return hs.jsxs(ym,{mt:3,gap:2,justify:"flex-start",children:[hs.jsxs(lm,{size:"xs",variant:"outline",borderColor:"borderColor",color:"textSecondary",fontSize:"12px",fontWeight:"500",borderRadius:"24px",h:"auto",px:3,py:1.5,onClick:()=>{window.open(`${Lm()}cart`,"_blank","noopener,noreferrer")},_hover:{borderColor:"primary"},children:[hs.jsx(jv,{boxSize:"14px"}),e("cartViewCart")]}),hs.jsxs(lm,{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=`${Lm()}checkout`},_hover:{opacity:.85},children:[e("cartCheckout"),hs.jsx(Rv,{boxSize:"14px"})]})]})},Hb=({onSubmit:e,onClose:t,existingText:r})=>{const[n,i]=bs.useState(r||""),[a,o]=bs.useState(!1);return bs.useEffect(()=>{i(r||"")},[r]),hs.jsx(pu,{mt:2,bg:"background",borderRadius:"10px",p:3,borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:hs.jsxs(xm,{gap:3,align:"stretch",children:[hs.jsxs(xm,{gap:.5,align:"start",children:[hs.jsx(Lu,{fontSize:"13px",fontWeight:"600",color:"text",lineHeight:"1.4",children:"Tell us what was wrong"}),hs.jsx(Lu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:"Your comment is optional and helps us improve responses."})]}),hs.jsx(km,{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"}}),hs.jsxs(ym,{gap:2,justify:"flex-end",children:[hs.jsx(lm,{size:"sm",variant:"ghost",onClick:t,disabled:a,fontSize:"12px",color:"mutedText",px:3,h:"30px",_hover:{bg:"lightBackground"},children:"Cancel"}),hs.jsx(lm,{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"}),hs.jsx(lm,{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"})]})]})})},Vb=({messageIndex:e,feedback:t})=>{const{submitFeedback:r}=fv(),[n,i]=bs.useState(!1),a="like"===t?.rating,o="dislike"===t?.rating;return hs.jsxs(pu,{mt:1,children:[hs.jsxs(ym,{gap:1,align:"center",children:[hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"12px",lineHeight:"1",children:"👍"})}),hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"12px",lineHeight:"1",children:"👎"})})]}),t?.feedbackText&&hs.jsxs(pu,{mt:1,px:2.5,py:2,bg:"lightBackground",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",maxW:"280px",children:[hs.jsx(Lu,{fontSize:"10px",color:"mutedText",lineHeight:"1.2",fontWeight:"600",textTransform:"uppercase",mb:1,children:"Submitted Feedback"}),hs.jsx(Lu,{fontSize:"11px",color:"mutedText",lineHeight:"1.4",children:t.feedbackText})]}),n&&hs.jsx(pu,{maxW:"280px",children:hs.jsx(Hb,{onSubmit:async t=>{await r(e,"dislike",t),i(!1)},onClose:()=>{i(!1)},existingText:t?.feedbackText})})]})},Ub=ys.lazy(()=>k(()=>import("./MarkdownContent-C1UsAsh-.js"),__vite__mapDeps([0,1]),import.meta.url)),qb=({message:e,isStreaming:t=!1,doriMessageIndex:r,isAfterProducts:n=!1})=>{const{isTestMode:i}=fv(),a=xv(Zg("colors","primary")),o=function(e){const t=Date.now()-new Date(e).getTime()<2e3,[r,n]=bs.useState(!t);return bs.useEffect(()=>{if(!t)return;const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[t]),r}(e.timestamp),s=function(e,t){const r=bs.useRef(e),n=bs.useRef(t?0:e.length),[i,a]=bs.useState(t?"":e),o=bs.useRef(null),s=bs.useRef(t);r.current=e,s.current=t;const l=bs.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=bs.useCallback(()=>{null===o.current&&(o.current=requestAnimationFrame(l))},[l]),u=bs.useCallback(()=>{null!==o.current&&(cancelAnimationFrame(o.current),o.current=null)},[]);return bs.useEffect(()=>(t?n.current<e.length&&c():(u(),n.current=e.length,a(e)),u),[t]),bs.useEffect(()=>{t&&n.current<e.length&&c()},[e,t,c]),i}(e.content,t);if("welcome"===e.type)return hs.jsx(Ob,{message:e.content});if("loading"===e.type)return e.content&&hs.jsx(Ob,{message:e.content,type:"loading"});if("user"===e.type)return hs.jsxs(pu,{maxW:"220px",alignSelf:"flex-end",mb:2,children:[e.imageUrl&&hs.jsx(pu,{w:"120px",h:"120px",mb:2,borderRadius:"12px",background:a,children:hs.jsx(gm,{src:e.imageUrl,alt:"Uploaded image",w:"100%",h:"100%",borderRadius:"12px",objectFit:"cover"})}),(e.content.length>0||e.repliedProduct)&&hs.jsxs(xm,{bg:"lightBackground",borderRadius:"24px",px:3,py:2,gap:2,alignItems:"start",w:"full",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:[e.repliedProduct&&hs.jsxs(ym,{bg:"background",borderRadius:"12px",p:2,gap:2,w:"full",children:[hs.jsx(gm,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"text",children:e.repliedProduct.name})]}),hs.jsx(bs.Suspense,{fallback:hs.jsx(Lu,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"text",fontFamily:"system-ui, sans-serif",whiteSpace:"pre-wrap",children:e.content}),children:hs.jsx(Ub,{variant:"user",children:e.content})})]})]});if("products"===e.type)return hs.jsx(pu,{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:hs.jsx(Nb,{products:e.products||[],shape:e.shape})});if("suggestions"===e.type)return hs.jsx($b,{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 hs.jsxs(xm,{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:[hs.jsx(pu,{w:"full",alignSelf:"flex-start",children:hs.jsx(bs.Suspense,{fallback:hs.jsx(Lu,{fontSize:c,fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.6",whiteSpace:"pre-wrap",children:s}),children:hs.jsx(Ub,{variant:"dori",textSize:c,children:s})})}),e.showCartActions&&hs.jsx(Bb,{}),l&&void 0!==r&&hs.jsx(Vb,{messageIndex:r,feedback:e.feedback})]})},Yb=({chat:e,t:t})=>{const[r,n]=bs.useState(!1);return bs.useEffect(()=>{const e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)},[]),hs.jsxs(ym,{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:[hs.jsx(Lu,{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)}),hs.jsxs(ym,{gap:1,children:[hs.jsx(lm,{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")}),hs.jsx(cm,{size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:e.dismissCartUndo,color:"textSecondary",_hover:{bg:"transparent",opacity:.7},minW:"auto",h:"auto",p:.5,children:hs.jsx(_v,{boxSize:"12px"})})]})]})},Gb=({header:e})=>{const t=fv(),{botData:r,pendingBubbleSuggestion:n,setPendingBubbleSuggestion:i,proactiveChips:a,proactiveChipsPosition:o,dismissProactiveChips:s,suppressProactiveForSession:l}=t,{t:c,translations:u}=gv(),d=bs.useRef(null),p=bs.useCallback(()=>{const e=d.current;if(!e)return;const r=e.scrollHeight-e.scrollTop-e.clientHeight<80;t.setAutoScrollEnabled(r)},[t.setAutoScrollEnabled]),[h,f]=bs.useState(!1),g=bs.useRef(null);bs.useEffect(()=>{if(n&&n!==g.current){g.current=n;const e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)}n||(f(!1),g.current=null)},[n]);const m=xv(Zg("colors","primary")),v=bs.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 hs.jsxs(hs.Fragment,{children:[e,hs.jsx(Lu,{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:x(r?.agent_name,u)}),hs.jsxs(xm,{flex:1,justify:"center",align:"stretch",gap:4,minH:0,transition:"opacity 0.5s ease",opacity:1,children:[hs.jsx(pu,{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:hs.jsxs(xm,{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(hs.jsx(qb,{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,hs.jsx("div",{ref:t.messagesEndRef,style:{height:"1px"}})]})}),t.cartUndoState&&hs.jsx(Yb,{chat:t,t:c}),n&&hs.jsxs(pu,{flexShrink:0,position:"relative",opacity:h?1:0,transform:h?"translateY(0)":"translateY(10px)",transition:"opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",children:[hs.jsxs(lm,{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=`${Dm()}[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:[hs.jsx(Cv,{boxSize:"15px",color:"primary",flexShrink:0}),hs.jsx(pu,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",textAlign:"start",fontFamily:"system-ui, sans-serif",children:n})]}),hs.jsx(cm,{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:hs.jsx(_v,{boxSize:"9px"})})]}),a&&a.length>0&&hs.jsx(jb,{chips:a,onChipClick:e=>{Jo("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:()=>{Jo("post_answer"===o?"nudge.in_chat.post_answer.dismissed":"nudge.in_chat.pre_message.dismissed"),s(),l()}}),hs.jsx(pu,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:hs.jsx(Jv,{state:t.inputState,placeholder:"generating"===t.inputState?c("processing"):c("whatsYourQuestion"),onSend:t.isInputDisabled?void 0:t.sendMessage,onStop:t.stopCurrentRequest})})]})]})},Qb=({containerRef:e,isOpen:t,showSuggestionScreen:r,scrollableSelector:n='[data-scroll-container="chat-messages"]'})=>{bs.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)},h=e=>{p(),o=e.touches[0].clientY,s=e.touches[0].clientX},f=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",h,{passive:!1}),r.addEventListener("touchmove",f,{passive:!1}),r.addEventListener("touchend",g,{passive:!1}),r.addEventListener("touchcancel",g,{passive:!1}),()=>{r.removeEventListener("wheel",a),r.removeEventListener("touchstart",h),r.removeEventListener("touchmove",f),r.removeEventListener("touchend",g),r.removeEventListener("touchcancel",g),p(),null!==c&&cancelAnimationFrame(c)}},[t,r,n])},Kb=({children:e,showSuggestionScreen:t,isOpen:r,isExpanded:n=!1})=>{const{isMobile:i}=wm(),{botData:a}=fv(),o=bs.useRef(null),s=a?.white_label?.is_white_labeled??!1,l=a?.customization?.position?.align??"right",c=Zg("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},h=i?d:p;return Qb({containerRef:o,isOpen:r,showSuggestionScreen:t}),hs.jsx(pu,{ref:o,...h,children:hs.jsxs(xm,{p:6,pb:2,h:"full",justify:"flex-start",align:"stretch",gap:2,children:[e,!t&&!s&&hs.jsx(pu,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:hs.jsx(eb,{variant:"default"})})]})})},Xb=({isOpen:r,onClose:n,isExpanded:i=!1,onToggleExpand:a,pendingChat:o,onPendingChatConsumed:s})=>{const{sendMessage:l,addWelcomeMessage:c,resetBot:u}=fv(),{showSuggestionScreen:d,goToChat:p,goToSuggestion:h}=(r=>{const[n,i]=bs.useState(!0),a=bs.useRef(!1),o=bs.useRef(!1);return bs.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}},[]),bs.useEffect(()=>{r&&!a.current?i(!0):r&&a.current&&i(!1)},[r]),{showSuggestionScreen:n,goToChat:bs.useCallback(()=>{a.current=!0,i(!1)},[]),goToSuggestion:bs.useCallback(()=>{a.current=!1,i(!0)},[])}})(r),{isMobile:f}=wm(),g=bs.useRef(!1);bs.useEffect(()=>{r&&!g.current&&(Xo(),g.current=!0)},[r]);const m=f,v=(e,t,r)=>{p(),c(),l({message:e,imageUrl:t,apiMessage:r})};bs.useEffect(()=>{if(r&&o){const e=setTimeout(()=>{v(o.message,o.imageUrl,o.apiMessage),s?.()},100);return()=>clearTimeout(e)}},[r,o]);return hs.jsx(Kb,{showSuggestionScreen:d,isOpen:r,isExpanded:i,children:d?hs.jsx(Rb,{onStartChat:v,isMobile:m,isExpanded:i,onToggleExpand:a,onClose:n}):hs.jsx(Gb,{header:hs.jsx(Dv,{onClose:n,isMobile:m,isExpanded:i,onToggleExpand:a,onReload:()=>{u(),h()}})})})},Jb=({onClick:e,suppressBubble:t=!1})=>{const{botData:r,dynamicWelcomeMessage:n,dynamicFollowupNudgeMessage:i,diagnosticFlow:a,diagnosticShown:o,setPendingBubbleSuggestion:s}=fv(),{t:l}=gv(),c=Zg("colors","primary"),u=Zg("colors","background"),d=Zg("colors","lightBackground"),p=xv(c),h=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%, ${vv(n,3)} 50%, ${n} 76%, ${r} 100%)`}(u,d),[f,g]=bs.useState("expanded"),[m,v]=bs.useState(!1),[b,y]=bs.useState(!0),[x,_]=bs.useState(!1),[k,C]=bs.useState(!1),[P,E]=bs.useState(!1),z=bs.useRef(null),T=()=>{z.current&&(clearTimeout(z.current),z.current=null)},j=()=>{T(),F||(_(!0),C(!0))};bs.useEffect(()=>()=>T(),[]);const R=!0!==r?.customization?.disable_idle_animation,{getStarfieldTransform:O,getIconStyle:I}=nb({enableTwinkling:R,enableFloating:R,enableRotation:R,enableScaling:R}),A=bs.useRef(!1),D=bs.useRef(0),M=bs.useRef(null),F=Nu({base:!0,md:!1})??!1,L=ib(r,F),N=!(!r?.customization?.enable_avatar_in_fab||!r?.bot_image),W=r?.agent_name?l("askAgent").replace("{name}",r.agent_name):l("askDori"),$=!1!==r?.customization?.enable_proactive_engagement,B=!0===r?.customization?.enable_standalone_quiz&&a&&!o?a.welcome_hook:null,H=i||B||n,V=$&&!t?H||r?.wellcomeMessage||l("imHereToHelp"):null,U=()=>{S();const e=++D.current;g("expanded"),y(!1),E(!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)};bs.useEffect(()=>{A.current||(A.current=!0,H&&!r?.customization?.disable_welcome_popup||!w()?(()=>{g("minimized"),y(!1);const e=setTimeout(()=>{v(!0)},0)})():U())},[]),bs.useEffect(()=>{const e=setInterval(()=>{w()&&U()},1e3);return()=>clearInterval(e)},[]),bs.useEffect(()=>{if(!H)return;if(r?.customization?.disable_welcome_popup)return;D.current++,M.current&&(clearTimeout(M.current),M.current=null),E(!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)}},[H]);const q=()=>{const t=i||n;t&&s(t),i&&Jo("nudge.page_followup.clicked"),e&&(e(),"minimized"===f&&(y(!1),setTimeout(()=>{g("expanded"),setTimeout(()=>{r?.customization?.disable_welcome_popup||setTimeout(()=>{y(!0)},50)},100)},0)))},Y=q,G="minimized"===f||N,Q=N&&F,K="right"===L.align?"32px 0px 32px 32px":"0px 32px 32px 32px";return hs.jsxs(pu,{position:"relative",transform:m?Q?"translateY(0) scale(1)":`translateY(calc(-50% + ${L.bottomSpacing}px)) scale(1)`:Q?"translateY(100px) scale(0.9)":`translateY(calc(-50% + ${L.bottomSpacing}px + 100px)) scale(0.9)`,opacity:m?1:0,onMouseLeave:()=>{F||(T(),z.current=setTimeout(()=>{_(!1),C(!1)},100))},children:[hs.jsx(Pb,{channels:r?.merchant_support_channels,isOpen:x,onToggle:()=>_(!x),isMobile:F,onMouseEnter:j,onChatClick:e}),"expanded"===f&&V&&!r?.customization?.disable_welcome_popup&&hs.jsx(pu,{position:"absolute",bottom:"100%",[L.align]:"0",mb:2,w:{base:"90vw",md:"25vw"},maxW:{base:"90vw",md:"300px"},bg:h,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:Y,children:hs.jsxs(ym,{gap:1,align:"center",width:"100%",justifyContent:"flex-start",children:[hs.jsx(cm,{size:"xs",variant:"ghost","aria-label":"Close",onClick:e=>{e.stopPropagation(),i&&Jo("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:hs.jsx(_v,{boxSize:"16px"})}),hs.jsx(Lu,{fontSize:"12px",fontWeight:"400",color:"text",lineHeight:"1.75",flex:1,width:"100%",fontFamily:"system-ui, sans-serif",children:V})]})}),hs.jsx(lm,{borderRadius:G?"50%":K,borderWidth:0,bg:p,color:"text",border:"none !important",w:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"230px",md:"270px"}:{base:"120px",md:"150px"},minW:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"230px",md:"270px"}:{base:"120px",md:"150px"},h:G?N?{base:"96px",md:"112px"}:{base:"48px",md:"56px"}:N?{base:"96px",md:"112px"}:"auto",p:G?"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:G?"50%":K,cursor:"pointer",touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},onMouseEnter:j,justifyContent:"center",children:hs.jsxs(ym,{gap:G?0:2,position:"relative",w:"full",justify:G?"center":"space-between",overflow:"hidden",children:[hs.jsx(Lu,{fontSize:{base:"14px",md:"16px"},fontWeight:{base:"500",md:"600"},lineHeight:"1.5",whiteSpace:"nowrap",fontFamily:"system-ui, sans-serif",color:"background",opacity:G?0:1,maxW:G?"0px":"200px",transition:"opacity 0.2s ease, max-width 0.35s ease",overflow:"hidden",children:W}),!x&&(r?.customization?.enable_avatar_in_fab&&r?.bot_image?hs.jsx(gm,{src:r.bot_image,alt:"",role:"presentation",boxSize:G?{base:"100px",md:"116px"}:{base:"80px",md:"92px"},borderRadius:"full",objectFit:"cover",flexShrink:0}):hs.jsx(Ov,{boxSize:{base:"20px",md:"24px"},color:"background",transform:O(f,L),...I(),flexShrink:0}))]})})]})},Zb={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=>`Beantworte ${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"}},ey=({hookText:e,stepCount:t,language:r,onStart:n,onSkipToChat:i,onDismiss:a})=>{const o=function(e){return Zb[e]||Zb.English}(r);return hs.jsxs(xm,{gap:3,align:"stretch",w:"full",children:[hs.jsxs(ym,{justify:"space-between",align:"start",children:[hs.jsxs(ym,{gap:2,align:"center",children:[hs.jsx(Cv,{boxSize:"18px",color:"primary"}),hs.jsx(Lu,{fontSize:"16px",fontWeight:600,color:"text",lineHeight:"1.3",fontFamily:"system-ui, sans-serif",children:e})]}),hs.jsx(pu,{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:hs.jsx(Lu,{fontSize:"16px",color:"text",lineHeight:"1",children:"×"})})]}),hs.jsx(Lu,{fontSize:"13px",color:"mutedText",lineHeight:"1.5",fontFamily:"system-ui, sans-serif",children:o.subtitle(t)}),hs.jsx(lm,{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}),hs.jsx(pu,{as:"button",onClick:i,cursor:"pointer",alignSelf:"center",children:hs.jsx(Lu,{fontSize:"12px",color:"mutedText",fontFamily:"system-ui, sans-serif",_hover:{color:"text"},transition:"color 0.15s ease",children:o.skip})})]})},ty="dori-quiz-dismissed";function ry(){try{return"true"===sessionStorage.getItem(ty)}catch{return!1}}function ny(){try{sessionStorage.setItem(ty,"true")}catch{}}const iy=({onOpenWidget:e,onStartChat:t,onDismissed:r})=>{const{diagnosticFlow:n,diagnosticShown:i,markDiagnosticShown:a,effectiveLanguage:o}=fv(),s=o||"English",[l,c]=bs.useState("hidden"),[u,d]=bs.useState(!1),p=bs.useRef(null),h=bs.useRef(!1),f=!!n&&!i&&!ry();return bs.useEffect(()=>(f&&"hidden"===l&&(p.current=setTimeout(()=>{c("teaser"),requestAnimationFrame(()=>{requestAnimationFrame(()=>d(!0))}),h.current||(h.current=!0,Xo()?.capture("quiz_card_impression"))},800)),f||"hidden"===l||(c("hidden"),d(!1)),()=>{p.current&&clearTimeout(p.current)}),[f]),"hidden"!==l&&n?hs.jsx(pu,{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:hs.jsxs(pu,{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&&hs.jsx(ey,{hookText:n.welcome_hook,stepCount:n.steps.length,language:s,onStart:()=>{c("expanded"),Xo()?.capture("quiz_card_started")},onSkipToChat:()=>{d(!1),ny(),a(),Xo()?.capture("quiz_card_skip_to_chat"),setTimeout(()=>{c("hidden"),r?.(),e()},300)},onDismiss:()=>{d(!1),ny(),Xo()?.capture("quiz_card_dismiss"),setTimeout(()=>{c("hidden"),r?.()},300)}}),"expanded"===l&&hs.jsx(zb,{flow:n,onComplete:(e,r)=>{a(),Xo()?.capture("quiz_card_completed"),d(!1),setTimeout(()=>{c("hidden"),t(e,void 0,r),Xo()?.capture("quiz_card_widget_opened")},350)}})]})}):null},ay="dori-session-context-v1";function oy(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 sy(){const[e,t]=bs.useState(()=>Am()),[r,n]=bs.useState(()=>function(){try{const e=sessionStorage.getItem(ay);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=bs.useRef(null),a=bs.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(ay,JSON.stringify(e))}catch{}}(r),r})},[]);return bs.useEffect(()=>{a(Am())},[a]),bs.useEffect(()=>{let e=window.location.href;const t=()=>{const t=window.location.href;t!==e&&(e=t,a(Am()))};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:bs.useCallback(()=>a(Am()),[a])}}function ly(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 cy(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 uy(e){return{title:e.name,brand:cy(e),price:ly(e),category:e.category||e.sub_category}}const dy="dori-page-followup-fired-count";function py(){try{return parseInt(sessionStorage.getItem(dy)||"0",10)||0}catch{return 0}}function hy(){return"undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches}function fy(){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 gy=({isWidgetOpen:e})=>(function({isWidgetOpen:e}){const t=fv(),{session:r,pageContext:n}=sy(),{botData:i,messages:a,chatState:o,isInputDisabled:s,setProactiveChips:l,proactiveChips:c,proactiveSuppressedThisSession:u,effectiveLanguage:d}=t,p=bs.useRef(0),h=bs.useRef(null),f=bs.useRef(null),g=bs.useRef(null),m=bs.useRef(!1),v=bs.useRef(null),b=bs.useRef(null),y=bs.useRef(null);bs.useEffect(()=>{e?(v.current=Date.now(),m.current=!1):(p.current=0,h.current=null,m.current=!1,v.current=null,null!==f.current&&(window.clearTimeout(f.current),f.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=bs.useCallback(()=>{null!==f.current&&(window.clearTimeout(f.current),f.current=null),g.current&&(g.current.abort(),g.current=null)},[]),_=bs.useCallback(()=>{null!==b.current&&(window.clearTimeout(b.current),b.current=null),y.current&&(y.current.abort(),y.current=null)},[]);bs.useEffect(()=>()=>{x(),_()},[x,_]),bs.useEffect(()=>{o.isRequestInProgress&&(x(),_())},[o.isRequestInProgress,x,_]);const k=!!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(uy(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;bs.useEffect(()=>{e&&k&&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&&h.current!==S&&(h.current=S,x(),f.current=window.setTimeout(async()=>{if(f.current=null,!e||u||p.current>=3||!i.business_description)return;const t=new AbortController;g.current=t;const a=oy({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 Tm(a,"post_answer",o,t.signal,{lastUserMessage:w.lastUserMessage,lastAnswerProducts:w.products.length>0?w.products:null});g.current=null,c&&Jo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:a.suggested_intent,nudge_position:"post_answer"}),s&&(p.current+=1,l(s,"post_answer"),Jo("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,k]),bs.useEffect(()=>{if(!e)return;if(!k)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=oy({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 Tm(o,"pre_message",null,t.signal);y.current=null,c&&Jo("nudge.chip_validation.banned",{banned_token:c,suggested_intent:o.suggested_intent,nudge_position:"pre_message"}),s&&(m.current=!0,l(s,"pre_message"),Jo("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,k])}({isWidgetOpen:e}),function({isWidgetOpen:e}){const t=fv(),{session:r,pageContext:n}=sy(),{botData:i,dynamicWelcomeMessage:a,setDynamicFollowupNudgeMessage:o,proactiveSuppressedThisSession:s,effectiveLanguage:l,diagnosticFlow:c,diagnosticShown:u}=t,d=bs.useRef(!1),p=bs.useRef(Date.now()),h=bs.useRef(Date.now()),f=bs.useRef(null),g=bs.useRef(null),m=bs.useCallback(()=>{null!==f.current&&(window.clearInterval(f.current),f.current=null),g.current&&(g.current.abort(),g.current=null)},[]);bs.useEffect(()=>{d.current=!1,p.current=Date.now(),h.current=Date.now()},[n.page_link]);const v=bs.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(py()>=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 f=Math.floor((Date.now()-p.current)/1e3),v=Math.floor((Date.now()-h.current)/1e3),b=oy({businessDescription:i.business_description,lang:String(l??"English"),pageContext:n,session:r,dwellSec:f,scrollPercent:fy(),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(Sm.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=py()+1;try{sessionStorage.setItem(dy,String(e))}catch{}}(),Jo("nudge.page_followup.fired",{page_type:b.page_type,suggested_intent:b.suggested_intent,trigger_signal:t,dwell_sec:f}))},[i,e,s,n,r,a,o,l,m,c,u]),b=bs.useRef(v);bs.useEffect(()=>{b.current=v},[v]),bs.useEffect(()=>{if(i){if(!e)return f.current=window.setInterval(()=>{if(d.current)return void m();const e=Date.now()-p.current,t=fy();if(e>=2e4)b.current("dwell");else if(e>=8e3&&t>=60)b.current("scroll");else if(!hy()&&Date.now()-h.current>=1e4)return void b.current("idle")},500),()=>{null!==f.current&&(window.clearInterval(f.current),f.current=null)};m()}},[i,e,n.page_link,m]),bs.useEffect(()=>{if(hy())return;const e=()=>{h.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]),bs.useEffect(()=>m,[m])}({isWidgetOpen:e}),null);function my(){const[e,r]=bs.useState(()=>{const e=document.querySelector("script#dori-side-widget");return"true"===e?.getAttribute("data-test-mode")}),[n,i]=bs.useState(!1),[a,o]=bs.useState(""),{botData:s,updateBotData:l,diagnosticFlow:c,diagnosticShown:u}=fv(),[d,p]=bs.useState(null),[h,f]=bs.useState(!1),g=!0===s?.customization?.disable_welcome_popup,m=!(!0!==s?.customization?.enable_standalone_quiz||!c||u||h||e||ry()||g),{isCurrentPathBanned:v}=(e=>{const[t,r]=bs.useState("");return bs.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||[]);bs.useEffect(()=>{s?.merchant_support_channels?.crisp?.enabled&&(ob(),ab()&&window.$crisp.push(["on","chat:closed",()=>{ob()}]))},[s?.merchant_support_channels?.crisp?.enabled]),bs.useEffect(()=>{s?.merchant_support_channels?.chatra?.enabled&&(vb("hideChatraWidget invoked"),ub=!0,function(e){if(bb())return void e();const t=Date.now(),r=setInterval(()=>{bb()?(clearInterval(r),e()):Date.now()-t>lb&&(clearInterval(r),vb("Chatra never became ready within",lb,"ms"))},200)}(()=>{db||xb("initial hide")}),null!==pb||"undefined"==typeof window||db||(hb=Date.now(),pb=setInterval(kb,1e3)))},[s?.merchant_support_channels?.chatra?.enabled]),function({sharingId:e}){const{initializeBot:r,resetBot:n}=fv(),i=bs.useRef(void 0);bs.useEffect(()=>{i.current&&e&&i.current!==e&&n?.(),i.current=e,e&&!t()&&r(e)},[e,r,n])}({sharingId:a});const b=Nu({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`}})(ib(s,b),!(!s?.customization?.enable_avatar_in_fab||!s?.bot_image)&&b);bs.useEffect(()=>{window.chatbotData?o(window.chatbotData.sharingID):es("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()}})()},[]),bs.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=bs.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 _=bs.useCallback((e,t,n)=>{f(!0),p({message:e,imageUrl:t,apiMessage:n}),r(!0)},[]),k=bs.useCallback(()=>{p(null)},[]);return hs.jsx(pu,{fontFamily:"system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:!x&&hs.jsxs(hs.Fragment,{children:[hs.jsx(gy,{isWidgetOpen:e}),hs.jsx(Xb,{isOpen:e,onClose:()=>r(!1),isExpanded:n,onToggleExpand:e=>i(void 0===e?!n:e),pendingChat:d,onPendingChatConsumed:k}),m&&hs.jsx(iy,{onOpenWidget:()=>r(!0),onStartChat:_,onDismissed:()=>f(!0)}),!e&&hs.jsx(pu,{position:"fixed",zIndex:"1000000",...y,children:hs.jsx(Jb,{onClick:()=>{r(!e)},suppressBubble:m})})]})})}function vy(){return hs.jsx(my,{})}console.log("isDevelopment",!1);var by={};const yy=is(Lc),xy=is(Ul);function _y(){throw new Error("[Dori Widget] react-dom/server is excluded from this build (see react-dom-server-stub.ts)")}const ky=_y,wy=_y,Sy={renderToString:ky,renderToStaticMarkup:wy},Cy=is(Object.freeze(Object.defineProperty({__proto__:null,default:Sy,renderToStaticMarkup:wy,renderToString:ky},Symbol.toStringTag,{value:"Module"})));var Py,Ey,zy,Ty,jy,Ry,Oy={exports:{}};function Iy(){return Ey?Py:(Ey=1,Py="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Ay(){if(Ty)return zy;Ty=1;var e=Iy();function t(){}function r(){}return r.resetWarningCache=t,zy=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 Dy(){return jy||(jy=1,Oy.exports=Ay()()),Oy.exports}function My(){if(Ry)return by;Ry=1,Object.defineProperty(by,"__esModule",{value:!0});var e=vs(),t=yy,r=xy,n=Ms(),i=Cy,a=Dy();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!==rs?rs:"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,h,f,g,m;t=u,r=function(e,t,n){if(!l(t)||d(t)||p(t)||h(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 f(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)},h=function(e){return"[object Boolean]"==o.call(e)},f=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,h=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},f=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",f({},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,_=void 0!==x&&x,k=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 h(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)?h(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],E=C[1],z="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(S.current)try{if("function"==typeof i&&i(S.current),_){var e=S.current.shadowRoot;return void E(e)}var t=S.current.attachShadow({mode:c,delegatesFocus:d});y.length>0&&(t.adoptedStyleSheets=y),E(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,f({key:z,ref:S},w),(P||_)&&s.default.createElement(m.Provider,{value:P},_?s.default.createElement(v,{shadowroot:c,shadowrootmode:c},t.render({root:P,ssr:_,children:k})):s.default.createElement(b,{root:P},t.render({root:P,ssr:_,children:k})))))});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 _=new WeakMap,k=x({},"emotion",function(e){var r,n=e.root,i=e.children,a=_.get(n)||(r=l.default({container:n,key:"react-shadow"}),_.set(n,r),r);return s.default.createElement(t.CacheProvider,{value:a},s.default.createElement(s.default.Fragment,null,i))});return by.default=k,by}const Fy=ns(My()),Ly=":host",Ny=(e,t,r)=>e?.[t]||r,Wy=e=>{const t={cssVarsRoot:Ly,conditions:{light:`${Ly} &, .light &`},preflight:{scope:Ly},globalCss:{[Ly]:Jg.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:Ny(e,"primary","#0070f3"),background:Ny(e,"background","#f7fafc"),text:Ny(e,"textPrimary","#1a202c"),accent:Ny(e,"error","#ff383c")}))(e),a=yv(r,n,.05),o=mv(n,.6),s=yv(r,n,.1),l=bv(t,10),c=bv(t,15);return{primary:{value:t},background:{value:r},text:{value:n},error:{value:i},errorBackground:{value:mv(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:a},veryLightBackground:{value:vv(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 Eh(Jg,t)};Wy();const $y={primary:"#0070f3",background:"#ffffff",textPrimary:"#1a202c",error:"#ff383c"};function By({children:e}){const{botData:t}=fv(),r=bs.useMemo(()=>Wy(t?.theme??$y),[t?.theme]);return hs.jsx(Jc,{value:r,children:e})}function Hy({children:e}){const[t,r]=bs.useState(null),[n,i]=bs.useState(null);return bs.useEffect(()=>{if(!t?.shadowRoot||n)return;const e=Vl({key:"root",container:t.shadowRoot});i(e)},[t,n]),hs.jsx(Fy.div,{ref:r,style:{backgroundColor:"transparent",display:"block"},"data-nosnippet":"",children:t&&n&&hs.jsx(bd,{value:()=>t.shadowRoot??document,children:hs.jsx(wc,{value:n,children:hs.jsx(hv,{children:hs.jsx(By,{children:e})})})})})}class Vy extends bs.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),Zo(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}let Uy=!1;const qy=Object.freeze(Object.defineProperty({__proto__:null,initializeDoriWidget:function(){if(Uy)return console.log("[Dori Widget] Already initialized, skipping"),()=>{};Uy=!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=Ns.createRoot(t);r.render(hs.jsx(ys.StrictMode,{children:hs.jsx(Vy,{children:hs.jsx(Hy,{children:hs.jsx(vy,{})})})})),e.push(r);const n=()=>{k(()=>import("./MarkdownContent-C1UsAsh-.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()),Uy=!1}}},Symbol.toStringTag,{value:"Module"}));export{pu as B,fu as E,gm as I,vm as L,Lu as T,uu as a,Vc as b,Qc as c,Zg as d,qy as e,ns as g,hs as j,Bc as m,bs as r,Xc as u};
|