diff --git a/docs/angular/index.html b/docs/angular/index.html index 94c71bb7..167bb7fd 100644 --- a/docs/angular/index.html +++ b/docs/angular/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/angular/main-Y44URTJ6.js b/docs/angular/main-FMIV42UV.js similarity index 80% rename from docs/angular/main-Y44URTJ6.js rename to docs/angular/main-FMIV42UV.js index 1490f69d..865185f1 100644 --- a/docs/angular/main-Y44URTJ6.js +++ b/docs/angular/main-FMIV42UV.js @@ -1 +1 @@ -import{$ as Kn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ke,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Gn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ge,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lt(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new M(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Nt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},yi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=wi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Gn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Kn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ue(n){return new Yt(n)}function Oi(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Mr(n){return n.length>0?n[n.length-1]:null}function K(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Kt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Ki=/^[^&#]+/;function Gi(n){let e=n.match(Ki);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[m]=new y(e,i)),t}parseSegment(){let e=Kt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Kt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Gi(this.remaining);a&&(t=a,this.capture(t))}let r=yr(i),s=yr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Kt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Gt(r,r,r,i,t);let s=Yi(e);if(s.toRoot())return Gt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Gt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Gt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([c,l])=>{o[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},X=class extends P{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},q=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nn=class extends P{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},rn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ke),this.inputBinder=g(En,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new M(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Ks(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new E(S,G)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new E(S,G instanceof E?[G]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Ks(n){return n.resolve||{}}function Gs(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Kr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Kr(n){let e=n.children.map(i=>Kr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Gr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{let e=class e extends Gr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=K(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return K(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ke),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Gr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Gs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,G=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ie,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Tn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"Easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[u.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"Easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:"Easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"Easy",developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"Easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"Easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"Easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"Easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[u.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"Easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"Easy",developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"Easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:"Easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"Easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"Easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"Easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"Easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"Easy",developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"Medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"Medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"Medium",developer:"shruti-sen2004",tags:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"Medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"Medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"Medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"Medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"Medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"Easy",developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"Easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"Easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"Easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"Easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"Easy",developer:"deepakrajkranti",tags:[u.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"Easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"Easy",developer:"NikhilJHA01",tags:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"Easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"Easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"Easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:"Easy",developer:"codechitra",tags:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"Medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"Medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"Medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"Medium",developer:"rashidtvmr",tags:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"Medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"Medium",developer:"DeePaK-HeeRaKaRi",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"Hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"Easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"Medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"Medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"Medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"Medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"Medium",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"Easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"Medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"Easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"Easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ge),Se(2),ie("href",s.homeURL,Ge),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ge))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); +import{$ as Gn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ge,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Kn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ke,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lt(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new M(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Nt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},yi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=wi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Kn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Gn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ue(n){return new Yt(n)}function Oi(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Mr(n){return n.length>0?n[n.length-1]:null}function G(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Gt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Gi=/^[^&#]+/;function Ki(n){let e=n.match(Gi);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[m]=new y(e,i)),t}parseSegment(){let e=Gt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Gt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Ki(this.remaining);a&&(t=a,this.capture(t))}let r=yr(i),s=yr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Gt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Kt(r,r,r,i,t);let s=Yi(e);if(s.toRoot())return Kt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Kt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Kt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([c,l])=>{o[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},X=class extends P{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},q=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nn=class extends P{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},rn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ge),this.inputBinder=g(En,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return G(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return G(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return G(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return G(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return G(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new M(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Gs(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(K=>K===null?null:new E(S,K)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(K=>new E(S,K instanceof E?[K]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Gs(n){return n.resolve||{}}function Ks(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Gr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Gr(n){let e=n.children.map(i=>Gr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return G(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Kr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{let e=class e extends Kr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=G(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return G(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ge),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Kr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Ks(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,K=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(K);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ie,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Tn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"Easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[u.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"Easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:"Easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"Easy",developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"Easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"Easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"Easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"Easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[u.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"Easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"Easy",developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"Easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:"Easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"Easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"Easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"Easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"Easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"Easy",developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"Medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"Medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"Medium",developer:"shruti-sen2004",tags:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"Medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"Medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"Medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"Medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"Medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"Easy",developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"Easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"Easy",developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"Easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"Easy",developer:"deepakrajkranti",tags:[u.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"Easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"Easy",developer:"NikhilJHA01",tags:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"Easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"Easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"Easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:"Easy",developer:"codechitra",tags:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"Medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"Medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"Medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"Medium",developer:"rashidtvmr",tags:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"Medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"Medium",developer:"DeePaK-HeeRaKaRi",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"Hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"Easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"Medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"Medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"Medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"Medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"Medium",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"Easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"Medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"Easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"Easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ke),Se(2),ie("href",s.homeURL,Ke),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ke))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); diff --git a/docs/assets/index-J6reAlZn.js b/docs/assets/index-D9c1FCZG.js similarity index 94% rename from docs/assets/index-J6reAlZn.js rename to docs/assets/index-D9c1FCZG.js index eece131a..c824d151 100644 --- a/docs/assets/index-J6reAlZn.js +++ b/docs/assets/index-D9c1FCZG.js @@ -14,7 +14,7 @@ function JS(e,t){for(var n=0;n=0)&&(n[i]=e[i]);return n}function VM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jM(e,t){return e.button===0&&(!t||t==="_self")&&!VM(e)}const $M=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],BM=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function zM(e,t){return sM({basename:t==null?void 0:t.basename,future:qo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:OR({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||UM(),routes:e,mapRouteProperties:NM,window:t==null?void 0:t.window}).initialize()}function UM(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=qo({},t,{errors:HM(t.errors)})),t}function HM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qm(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Mx=w.createContext({isTransitioning:!1}),WM=w.createContext(new Map),KM="startTransition",zy=$o[KM],GM="flushSync",Uy=MR[GM];function qM(e){zy?zy(e):e()}function ka(e){Uy?Uy(e):e()}class XM{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function YM(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=w.useState(n.state),[a,s]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,f]=w.useState(),[d,g]=w.useState(),[S,p]=w.useState(),m=w.useRef(new Map),{v7_startTransition:h}=r||{},y=w.useCallback(C=>{h?qM(C):C()},[h]),v=w.useCallback((C,k)=>{let{deletedFetchers:T,unstable_flushSync:F,unstable_viewTransitionOpts:V}=k;T.forEach(U=>m.current.delete(U)),C.fetchers.forEach((U,Q)=>{U.data!==void 0&&m.current.set(Q,U.data)});let H=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||H){F?ka(()=>o(C)):y(()=>o(C));return}if(F){ka(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let U=n.window.document.startViewTransition(()=>{ka(()=>o(C))});U.finished.finally(()=>{ka(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),ka(()=>g(U));return}d?(c&&c.resolve(),d.skipTransition(),p({state:C,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s(C),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,d,c,m,y]);w.useLayoutEffect(()=>n.subscribe(v),[n,v]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new XM)},[l]),w.useEffect(()=>{if(c&&a&&n.window){let C=a,k=c.promise,T=n.window.document.startViewTransition(async()=>{y(()=>o(C)),await k});T.finished.finally(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(T)}},[y,a,c,n.window]),w.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,d,i.location,a]),w.useEffect(()=>{!l.isTransitioning&&S&&(s(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),p(void 0))},[l.isTransitioning,S]),w.useEffect(()=>{},[]);let x=w.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,k,T)=>n.navigate(C,{state:k,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,k,T)=>n.navigate(C,{replace:!0,state:k,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",b=w.useMemo(()=>({router:n,navigator:x,static:!1,basename:E}),[n,x,E]);return w.createElement(w.Fragment,null,w.createElement(zs.Provider,{value:b},w.createElement(Zm.Provider,{value:i},w.createElement(WM.Provider,{value:m.current},w.createElement(Mx.Provider,{value:l},w.createElement(DM,{basename:E,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?w.createElement(QM,{routes:n.routes,future:n.future,state:i}):t))))),null)}function QM(e){let{routes:t,future:n,state:r}=e;return EM(t,void 0,r,n)}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fc=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=Rx(t,$M),{basename:g}=w.useContext(di),S,p=!1;if(typeof u=="string"&&ZM.test(u)&&(S=u,JM))try{let v=new URL(window.location.href),x=u.startsWith("//")?new URL(v.protocol+u):new URL(u),E=oi(x.pathname,g);x.origin===v.origin&&E!=null?u=E+x.search+x.hash:p=!0}catch{}let m=bM(u,{relative:i}),h=tO(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function y(v){r&&r(v),v.defaultPrevented||h(v)}return w.createElement("a",qo({},d,{href:S||m,onClick:p||o?r:y,ref:n,target:l}))}),Ox=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}=t,f=Rx(t,BM),d=Ac(l,{relative:f.relative}),g=Hs(),S=w.useContext(Zm),{navigator:p}=w.useContext(di),m=S!=null&&nO(d)&&u===!0,h=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,y=g.pathname,v=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(y=y.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=y===h||!a&&y.startsWith(h)&&y.charAt(x)==="/",b=v!=null&&(v===h||!a&&v.startsWith(h)&&v.charAt(h.length)==="/"),C={isActive:E,isPending:b,isTransitioning:m},k=E?r:void 0,T;typeof o=="function"?T=o(C):T=[o,E?"active":null,b?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(C):s;return w.createElement(Fc,qo({},f,{"aria-current":k,className:T,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});var Hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hh||(Hh={}));var Hy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hy||(Hy={}));function eO(e){let t=w.useContext(zs);return t||ge(!1),t}function tO(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=kx(),u=Hs(),c=Ac(e,{relative:a});return w.useCallback(f=>{if(jM(f,n)){f.preventDefault();let d=r!==void 0?r:Wi(u)===Wi(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function nO(e,t){t===void 0&&(t={});let n=w.useContext(Mx);n==null&&ge(!1);let{basename:r}=eO(Hh.useViewTransitionState),i=Ac(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $h(i.pathname,a)!=null||$h(i.pathname,o)!=null}const ev=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lc=w.createContext({}),tv=w.createContext(null),nv=typeof document<"u",Ax=nv?w.useLayoutEffect:w.useEffect,Fx=w.createContext({strict:!1}),rv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rO="framerAppearId",Lx="data-"+rv(rO),iO={skipAnimations:!1,useManualTiming:!1};class Wy{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function oO(e){let t=new Wy,n=new Wy,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=oO(()=>n=!0),f),{}),a=f=>{o[f].process(i)},s=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,aO),1),i.timestamp=f,i.isProcessing=!0,Rl.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:Rl.reduce((f,d)=>{const g=o[d];return f[d]=(S,p=!1,m=!1)=>(n||l(),g.schedule(S,p,m)),f},{}),cancel:f=>Rl.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:iv,cancel:vz}=_x(queueMicrotask,!1);function sO(e,t,n,r){const{visualElement:i}=w.useContext(Lc),o=w.useContext(Fx),a=w.useContext(tv),s=w.useContext(ev).reducedMotion,l=w.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,a)});const c=w.useRef(!!(n[Lx]&&!window.HandoffComplete));return Ax(()=>{u&&(iv.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lO(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Eo(n)&&(n.current=r))},[t])}function Ps(e){return typeof e=="string"||Array.isArray(e)}function _c(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ov=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],av=["initial",...ov];function Ic(e){return _c(e.animate)||av.some(t=>Ps(e[t]))}function Ix(e){return!!(Ic(e)||e.variants)}function uO(e,t){if(Ic(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ps(n)?n:void 0,animate:Ps(r)?r:void 0}}return e.inherit!==!1?t:{}}function cO(e){const{initial:t,animate:n}=uO(e,w.useContext(Lc));return w.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ts={};for(const e in Gy)Ts[e]={isEnabled:t=>Gy[e].some(n=>!!t[n])};function fO(e){for(const t in e)Ts[t]={...Ts[t],...e[t]}}const Dx=w.createContext({}),Nx=w.createContext({}),dO=Symbol.for("motionComponentSymbol");function hO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fO(e);function o(s,l){let u;const c={...w.useContext(ev),...s,layoutId:pO(s)},{isStatic:f}=c,d=cO(s),g=r(s,f);if(!f&&nv){d.visualElement=sO(i,g,c,t);const S=w.useContext(Nx),p=w.useContext(Fx).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,S))}return w.createElement(Lc.Provider,{value:d},u&&d.visualElement?w.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,s,lO(g,d.visualElement,l),g,f,d.visualElement))}const a=w.forwardRef(o);return a[dO]=i,a}function pO({layoutId:e}){const t=w.useContext(Dx).id;return t&&e!==void 0?t+"-"+e:e}function mO(e){function t(r,i={}){return hO(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sv(e){return typeof e!="string"||e.includes("-")?!1:!!(vO.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ku={};function gO(e){Object.assign(Ku,e)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yi=new Set(Ws);function Vx(e,{layout:t,layoutId:n}){return Yi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ku[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),yO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SO=Ws.length;function wO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),$x=jx("--"),bO=jx("var(--"),lv=e=>bO(e)?xO.test(e.split("/*")[0].trim()):!1,xO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,CO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qa={...aa,transform:e=>ai(0,1,e)},Ml={...aa,default:1},Ja=e=>Math.round(e*1e5)/1e5,uv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,EO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,kO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ks(e){return typeof e=="string"}const Gs=e=>({test:t=>Ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dr=Gs("deg"),or=Gs("%"),ue=Gs("px"),PO=Gs("vh"),TO=Gs("vw"),qy={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},Xy={...aa,transform:Math.round},Bx={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:Dr,rotateX:Dr,rotateY:Dr,rotateZ:Dr,scale:Ml,scaleX:Ml,scaleY:Ml,scaleZ:Ml,skew:Dr,skewX:Dr,skewY:Dr,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Qa,originX:qy,originY:qy,originZ:ue,zIndex:Xy,backgroundPositionX:ue,backgroundPositionY:ue,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Xy};function cv(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if($x(f)){o[f]=d;continue}const g=Bx[f],S=CO(d,g);if(Yi.has(f)){if(l=!0,a[f]=S,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=S):i[f]=S}if(t.transform||(l||r?i.transform=wO(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=s;i.transformOrigin=`${f} ${d} ${g}`}}const fv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const r in t)!kt(t[r])&&!Vx(r,n)&&(e[r]=t[r])}function RO({transformTemplate:e},t,n){return w.useMemo(()=>{const r=fv();return cv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function MO(e,t,n){const r=e.style||{},i={};return zx(i,r,e),Object.assign(i,RO(e,t,n)),i}function OO(e,t,n){const r={},i=MO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const AO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AO.has(e)}let Ux=e=>!Gu(e);function FO(e){e&&(Ux=t=>t.startsWith("on")?!Gu(t):e(t))}try{FO(require("@emotion/is-prop-valid").default)}catch{}function LO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ux(i)||n===!0&&Gu(i)||!t&&!Gu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Yy(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function _O(e,t,n){const r=Yy(t,e.x,e.width),i=Yy(n,e.y,e.height);return`${r} ${i}`}const IO={offset:"stroke-dashoffset",array:"stroke-dasharray"},DO={offset:"strokeDashoffset",array:"strokeDasharray"};function NO(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IO:DO;e[o.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[o.array]=`${a} ${s}`}function dv(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(cv(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:S,dimensions:p}=e;g.transform&&(p&&(S.transform=g.transform),delete g.transform),p&&(i!==void 0||o!==void 0||S.transform)&&(S.transformOrigin=_O(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&NO(g,a,s,l,!1)}const Hx=()=>({...fv(),attrs:{}}),hv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VO(e,t,n,r){const i=w.useMemo(()=>{const o=Hx();return dv(o,t,{enableHardwareAcceleration:!1},hv(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zx(o,e.style,e),i.style={...o,...i.style}}return i}function jO(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(sv(n)?VO:OO)(r,o,a,n),u=LO(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=w.useMemo(()=>kt(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function Wx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gx(e,t,n,r){Wx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kx.has(i)?i:rv(i),t.attrs[i])}function pv(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(kt(i[a])||t.style&&kt(t.style[a])||Vx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function qx(e,t,n){const r=pv(e,t,n);for(const i in e)if(kt(e[i])||kt(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function mv(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function qs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wh=e=>Array.isArray(e),$O=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BO=e=>Wh(e)?e[e.length-1]||0:e;function iu(e){const t=kt(e)?e.get():e;return $O(t)?t.toValue():t}function zO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:UO(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Xx=e=>(t,n)=>{const r=w.useContext(Lc),i=w.useContext(tv),o=()=>zO(e,t,r,i);return n?o():qs(o)};function UO(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=iu(o[d]);let{initial:a,animate:s}=e;const l=Ic(e),u=Ix(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!_c(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const S=mv(e,g);if(!S)return;const{transitionEnd:p,transition:m,...h}=S;for(const y in h){let v=h[y];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(i[y]=v)}for(const y in p)i[y]=p[y]}),i}const Tt=e=>e,{schedule:yt,cancel:Mr,state:Ct,steps:od}=_x(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0),HO={useVisualState:Xx({scrapeMotionValuesFromProps:qx,createRenderState:Hx,onMount:(e,t,{renderState:n,latestValues:r})=>{yt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),yt.render(()=>{dv(n,r,{enableHardwareAcceleration:!1},hv(t.tagName),e.transformTemplate),Gx(t,n)})}})},WO={useVisualState:Xx({scrapeMotionValuesFromProps:pv,createRenderState:fv})};function KO(e,{forwardMotionProps:t=!1},n,r){return{...sv(e)?HO:WO,preloadedFeatures:n,useRender:jO(t),createVisualElement:r,Component:e}}function yr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GO=e=>t=>Yx(t)&&e(t,Dc(t));function br(e,t,n,r){return yr(e,t,GO(n),r)}const qO=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(qO);function Qx(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Qy=Qx("dragHorizontal"),Jy=Qx("dragVertical");function Jx(e){let t=!1;if(e==="y")t=Jy();else if(e==="x")t=Qy();else{const n=Qy(),r=Jy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Zx(){const e=Jx(!0);return e?(e(),!1):!0}class pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Zx())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&s[r](o,a)};return br(e.current,n,i,{passive:!e.getProps()[r]})}class XO extends pi{mount(){this.unmount=xr(Zy(this.node,!0),Zy(this.node,!1))}unmount(){}}class YO extends pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(yr(this.node.current,"focus",()=>this.onFocus()),yr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eC=(e,t)=>t?e===t?!0:eC(e,t.parentElement):!1;function ad(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dc(n))}class QO extends pi{constructor(){super(...arguments),this.removeStartListeners=Tt,this.removeEndListeners=Tt,this.removeAccessibleListeners=Tt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=br(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!eC(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=br(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=xr(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ad("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=yr(this.node.current,"keyup",a),ad("down",(s,l)=>{this.startPress(s,l)})},n=yr(this.node.current,"keydown",t),r=()=>{this.isPressing&&ad("cancel",(o,a)=>this.cancelPress(o,a))},i=yr(this.node.current,"blur",r);this.removeAccessibleListeners=xr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zx()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=br(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kh=new WeakMap,sd=new WeakMap,JO=e=>{const t=Kh.get(e.target);t&&t(e)},ZO=e=>{e.forEach(JO)};function eA({root:e,...t}){const n=e||document;sd.has(n)||sd.set(n,{});const r=sd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZO,{root:e,...t})),r[i]}function tA(e,t,n){const r=eA(t);return Kh.set(e,n),r.observe(e),()=>{Kh.delete(e),r.unobserve(e)}}const nA={some:0,all:1};class rA extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nA[i]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return tA(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iA(t,n))&&this.startObserver()}unmount(){}}function iA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oA={inView:{Feature:rA},tap:{Feature:QO},focus:{Feature:YO},hover:{Feature:XO}};function tC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function sA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Nc(e,t,n){const r=e.getProps();return mv(r,t,n!==void 0?n:r.custom,aA(e),sA(e))}const Cr=e=>e*1e3,Er=e=>e/1e3,lA={type:"spring",stiffness:500,damping:25,restSpeed:10},uA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cA={type:"keyframes",duration:.8},fA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dA=(e,{keyframes:t})=>t.length>2?cA:Yi.has(e)?e.startsWith("scale")?uA(t[1]):lA:fA;function hA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function vv(e,t){return e[t]||e.default||e}const pA=e=>e!==null;function Vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let ou;function mA(){ou=void 0}const ti={now:()=>(ou===void 0&&ti.set(Ct.isProcessing||iO.useManualTiming?Ct.timestamp:performance.now()),ou),set:e=>{ou=e,queueMicrotask(mA)}},nC=e=>/^0[^.\s]+$/u.test(e);function vA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nC(e):!0}let gA=Tt,rC=Tt;const iC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function oC(e,t,n=1){const[r,i]=SA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return iC(a)?parseFloat(a):a}return lv(i)?oC(i,t,n+1):i}const wA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),e0=e=>e===aa||e===ue,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return t0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?t0(o[1],e):0}},bA=new Set(["x","y","z"]),xA=Ws.filter(e=>!bA.has(e));function r0(e){const t=[];return xA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:n0(4,13),y:n0(5,14)};Xo.translateX=Xo.x;Xo.translateY=Xo.y;const aC=e=>t=>t.test(e),CA={test:e=>e==="auto",parse:e=>e},sC=[aa,ue,or,Dr,TO,PO,CA],i0=e=>sC.find(aC(e)),Ni=new Set;let Gh=!1,qh=!1;function lC(){if(qh){const e=Array.from(Ni).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{r0(r).length&&(n.set(r,r0(r)),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render()}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qh=!1,Gh=!1,Ni.forEach(e=>e.complete()),Ni.clear()}function uC(){Ni.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qh=!0)})}function EA(){uC(),lC()}class gv{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ni.add(this),Gh||(Gh=!0,yt.read(uC),yt.resolveKeyframes(lC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Ks(n)&&kO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cC=(e,t,n)=>r=>{if(!Ks(r))return r;const[i,o,a,s]=r.match(uv);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},kA=e=>ai(0,255,e),ld={...aa,transform:e=>Math.round(kA(e))},Oi={test:yv("rgb","red"),parse:cC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ld.transform(e)+", "+ld.transform(t)+", "+ld.transform(n)+", "+Ja(Qa.transform(r))+")"};function PA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Xh={test:yv("#"),parse:PA,transform:Oi.transform},ko={test:yv("hsl","hue"),parse:cC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(Ja(t))+", "+or.transform(Ja(n))+", "+Ja(Qa.transform(r))+")"},_t={test:e=>Oi.test(e)||Xh.test(e)||ko.test(e),parse:e=>Oi.test(e)?Oi.parse(e):ko.test(e)?ko.parse(e):Xh.parse(e),transform:e=>Ks(e)?e:e.hasOwnProperty("red")?Oi.transform(e):ko.transform(e)};function TA(e){var t,n;return isNaN(e)&&Ks(e)&&(((t=e.match(uv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EO))===null||n===void 0?void 0:n.length)||0)>0}const fC="number",dC="color",RA="var",MA="var(",o0="${}",OA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(OA,l=>(_t.test(l)?(r.color.push(o),i.push(dC),n.push(_t.parse(l))):l.startsWith(MA)?(r.var.push(o),i.push(RA),n.push(l)):(r.number.push(o),i.push(fC),n.push(parseFloat(l))),++o,o0)).split(o0);return{values:n,split:s,indexes:r,types:i}}function hC(e){return qu(e).values}function pC(e){const{split:t,types:n}=qu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function FA(e){const t=hC(e);return pC(e)(t.map(AA))}const si={test:TA,parse:hC,createTransformer:pC,getAnimatableNone:FA},LA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uv)||[];if(!r)return e;const i=n.replace(r,"");let o=LA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Yh={...si,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},DA={...Bx,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Yh,WebkitFilter:Yh},Sv=e=>DA[e];function mC(e,t){let n=Sv(e);return n!==Yh&&(n=si),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function NA(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function VA(e){let t;return()=>(t===void 0&&(t=e()),t)}const a0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(si.test(e)||e==="0")&&!e.startsWith("url("));function jA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function yC(e,t){return t?e*(1e3/t):0}const BA=5;function SC(e,t,n){const r=Math.max(t-BA,0);return yC(n-e(r),t-r)}const ud=.001,zA=.01,s0=10,UA=.05,HA=1;function WA({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;gA(e<=Cr(s0));let a=1-t;a=ai(UA,HA,a),e=ai(zA,s0,Er(e)),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,g=Qh(u,a),S=Math.exp(-f);return ud-d/g*S},o=u=>{const f=u*a*e,d=f*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,S=Math.exp(-f),p=Qh(Math.pow(u,2),a);return(-i(u)+ud>0?-1:1)*((d-g)*S)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-ud+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=GA(i,o,s);if(e=Cr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const KA=12;function GA(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!l0(e,XA)&&l0(e,qA)){const n=WA(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wC({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=YA({...r,velocity:-Er(r.velocity||0)}),g=f||0,S=l/(2*Math.sqrt(s*u)),p=o-i,m=Er(Math.sqrt(s/u)),h=Math.abs(p)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let y;if(S<1){const v=Qh(m,S);y=x=>{const E=Math.exp(-S*m*x);return o-E*((g+S*m*p)/v*Math.sin(v*x)+p*Math.cos(v*x))}}else if(S===1)y=v=>o-Math.exp(-m*v)*(p+(g+m*p)*v);else{const v=m*Math.sqrt(S*S-1);y=x=>{const E=Math.exp(-S*m*x),b=Math.min(v*x,300);return o-E*((g+S*m*p)*Math.sinh(b)+v*p*Math.cosh(b))/v}}return{calculatedDuration:d&&c||null,next:v=>{const x=y(v);if(d)a.done=v>=c;else{let E=g;v!==0&&(S<1?E=SC(y,v,x):E=0);const b=Math.abs(E)<=n,C=Math.abs(o-x)<=t;a.done=b&&C}return a.value=a.done?o:x,a}}}function u0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=k=>s!==void 0&&kl,S=k=>s===void 0?l:l===void 0||Math.abs(s-k)-p*Math.exp(-k/r),v=k=>h+y(k),x=k=>{const T=y(k),F=v(k);d.done=Math.abs(T)<=u,d.value=d.done?h:F};let E,b;const C=k=>{g(d.value)&&(E=k,b=wC({keyframes:[d.value,S(d.value)],velocity:SC(v,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let T=!1;return!b&&E===void 0&&(T=!0,x(k),C(k)),E!==void 0&&k>=E?b.next(k-E):(!T&&x(k),d)}}}const bC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QA=1e-7,JA=12;function ZA(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=bC(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>QA&&++sZA(o,0,1,e,n);return o=>o===0||o===1?o:bC(i(o),t,r)}const eF=Xs(.42,0,1,1),tF=Xs(0,0,.58,1),xC=Xs(.42,0,.58,1),nF=e=>Array.isArray(e)&&typeof e[0]!="number",CC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EC=e=>t=>1-e(1-t),wv=e=>1-Math.sin(Math.acos(e)),kC=EC(wv),rF=CC(wv),PC=Xs(.33,1.53,.69,.99),bv=EC(PC),iF=CC(bv),oF=e=>(e*=2)<1?.5*bv(e):.5*(2-Math.pow(2,-10*(e-1))),aF={linear:Tt,easeIn:eF,easeInOut:xC,easeOut:tF,circIn:wv,circInOut:rF,circOut:kC,backIn:bv,backInOut:iF,backOut:PC,anticipate:oF},c0=e=>{if(Array.isArray(e)){rC(e.length===4);const[t,n,r,i]=e;return Xs(t,n,r,i)}else if(typeof e=="string")return aF[e];return e},Rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$e=(e,t,n)=>e+(t-e)*n;function cd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=cd(l,s,e+1/3),o=cd(l,s,e),a=cd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lF=[Xh,Oi,ko],uF=e=>lF.find(t=>t.test(e));function f0(e){const t=uF(e);let n=t.parse(e);return t===ko&&(n=sF(n)),n}const d0=(e,t)=>{const n=f0(e),r=f0(t),i={...n};return o=>(i.red=fd(n.red,r.red,o),i.green=fd(n.green,r.green,o),i.blue=fd(n.blue,r.blue,o),i.alpha=$e(n.alpha,r.alpha,o),Oi.transform(i))};function Jh(e,t){return n=>n>0?t:e}function cF(e,t){return n=>$e(e,t,n)}function xv(e){return typeof e=="number"?cF:typeof e=="string"?lv(e)?Jh:_t.test(e)?d0:hF:Array.isArray(e)?TC:typeof e=="object"?_t.test(e)?d0:fF:Jh}function TC(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>xv(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function dF(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=si.createTransformer(t),r=qu(e),i=qu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xr(TC(dF(r,i),i.values),n):Jh(e,t)};function RC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$e(e,t,n):xv(e)(e,t)}function pF(e,t,n){const r=[],i=n||RC,o=e.length-1;for(let a=0;at[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pF(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(ai(e[0],e[o-1],u)):l}function mF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rs(0,t,r);e.push($e(n,1,i))}}function vF(e){const t=[0];return mF(t,e.length-1),t}function gF(e,t){return e.map(n=>n*t)}function yF(e,t){return e.map(()=>t||xC).splice(0,e.length-1)}function Xu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nF(r)?r.map(c0):c0(r),o={done:!1,value:t[0]},a=gF(n&&n.length===t.length?n:vF(t),e),s=MC(a,t,{ease:Array.isArray(i)?i:yF(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const h0=2e4;function SF(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=h0?1/0:t}const wF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Mr(t),now:()=>Ct.isProcessing?Ct.timestamp:ti.now()}},bF={decay:u0,inertia:u0,tween:Xu,keyframes:Xu,spring:wC},xF=e=>e/100;class Cv extends gC{constructor({KeyframeResolver:t=gv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:i,keyframes:o}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=bF[n]||Xu;let l,u;s!==Xu&&typeof t[0]!="number"&&(l=xr(xF,RC(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=SF(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:S,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,x=o;if(g){const k=Math.min(this.currentTime,c)/f;let T=Math.floor(k),F=k%1;!F&&k>=1&&(F=1),F===1&&T--,T=Math.min(T,g+1),!!(T%2)&&(S==="reverse"?(F=1-F,p&&(F-=p/f)):S==="mirror"&&(x=a)),v=ai(0,1,F)*f}const E=y?{done:!1,value:l[0]}:x.next(v);s&&(E.value=s(E.value));let{done:b}=E;!y&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(E.value=Vc(l,this.options,i)),m&&m(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Er(t.calculatedDuration):0}get time(){return Er(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wF,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OC=e=>Array.isArray(e)&&typeof e[0]=="number";function AC(e){return!!(!e||typeof e=="string"&&FC[e]||OC(e)||Array.isArray(e)&&e.every(AC))}const Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function LC(e){if(e)return OC(e)?Na(e):Array.isArray(e)?e.map(LC):FC[e]}function CF(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=LC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const EF=VA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kF=new Set(["opacity","clipPath","filter","transform"]),Yu=10,PF=2e4;function TF(e){return e.type==="spring"||e.name==="backgroundColor"||!AC(e.ease)}function RF(e,t){const n=new Cv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(TF(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,...S}=this.options,p=RF(t,S);t=p.keyframes,t.length===1&&(t[1]=t[0]),i=p.duration,o=p.times,a=p.ease,s="keyframes"}const c=CF(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:a});return c.startTime=ti.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Vc(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Er(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Er(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Cr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Tt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Tt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...f}=this.options,d=new Cv({...f,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),g=Cr(this.time);l.setWithVelocity(d.sample(g-Yu).value,d.sample(g).value,Yu)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return EF()&&r&&kF.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const Ev=(e,t,n,r={},i,o)=>a=>{const s=vv(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Cr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};hA(s)||(c={...c,...dA(e,c)}),c.duration&&(c.duration=Cr(c.duration)),c.repeatDelay&&(c.repeatDelay=Cr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if(c.type===!1&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Vc(c.keyframes,s);if(d!==void 0){yt.update(()=>{c.onUpdate(d),c.onComplete()});return}}return!o&&p0.supports(c)?new p0(c):new Cv(c)};function Qu(e){return!!(kt(e)&&e.add)}function kv(e,t){e.indexOf(t)===-1&&e.push(t)}function Pv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function MF([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&rPv(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e)),Za={current:void 0};class AF{constructor(t,n={}){this.version="11.0.24",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ti.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=OF(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ti.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tv);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Za.current&&Za.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ti.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>m0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,m0);return yC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yo(e,t){return new AF(e,t)}function FF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yo(n))}function LF(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=BO(o[a]);FF(e,a,s)}}function _F({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _C(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const g=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),S=l[d];if(S===void 0||f&&_F(f,d))continue;const p={delay:n,elapsed:0,...vv(a||{},d)};let m=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[Lx];if(y){const v=window.HandoffAppearAnimations(y,d);v!==null&&(p.elapsed=v,m=!0)}}g.start(Ev(d,g,S,e.shouldReduceMotion&&Yi.has(d)?{type:!1}:p,e,m));const h=g.animation;h&&(Qu(u)&&(u.add(d),h.then(()=>u.remove(d))),c.push(h))}return s&&Promise.all(c).then(()=>{yt.update(()=>{s&&LF(e,s)})}),c}function Zh(e,t,n={}){var r;const i=Nc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(_C(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return IF(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function IF(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Zh(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function NF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zh(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zh(e,t,n);else{const i=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(_C(e,i,n))}return r.then(()=>{yt.postRender(()=>{e.notify("AnimationComplete",t)})})}const VF=[...ov].reverse(),jF=ov.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NF(e,n,r)))}function BF(e){let t=$F(e);const n=UF();let r=!0;const i=l=>(u,c)=>{var f;const d=Nc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:S,...p}=d;u={...u,...p,...S}}return u};function o(l){t=l(e)}function a(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let g={},S=1/0;for(let m=0;mS&&x,T=!1;const F=Array.isArray(v)?v:[v];let V=F.reduce(i(h),{});E===!1&&(V={});const{prevResolvedValues:H={}}=y,U={...H,...V},Q=W=>{k=!0,d.has(W)&&(T=!0,d.delete(W)),y.needsAnimating[W]=!0;const _=e.getValue(W);_&&(_.liveStyle=!1)};for(const W in U){const _=V[W],L=H[W];if(g.hasOwnProperty(W))continue;let P=!1;Wh(_)&&Wh(L)?P=!tC(_,L):P=_!==L,P?_!=null?Q(W):d.add(W):_!==void 0&&d.has(W)?Q(W):y.protectedKeys[W]=!0}y.prevProp=v,y.prevResolvedValues=V,y.isActive&&(g={...g,...V}),r&&e.blockInitialAnimation&&(k=!1),k&&(!b||T)&&f.push(...F.map(W=>({animation:W,options:{type:h}})))}if(d.size){const m={};d.forEach(h=>{const y=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),m[h]=y===void 0?null:y}),f.push({animation:m})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function zF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tC(t,e):!1}function yi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UF(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}class HF extends pi{constructor(t){super(t),t.animationState||(t.animationState=BF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),_c(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let WF=0;class KF extends pi{constructor(){super(...arguments),this.id=WF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:HF},exit:{Feature:KF}},v0=(e,t)=>Math.abs(e-t);function qF(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class IC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=hd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=qF(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:S}=f,{timestamp:p}=Ct;this.history.push({...S,timestamp:p});const{onStart:m,onMove:h}=this.handlers;d||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=dd(d,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=hd(f.type==="pointercancel"?this.lastMoveEventInfo:dd(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,m),S&&S(f,m)},!Yx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Dc(t),s=dd(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ct;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hd(s,this.history)),this.removeListeners=xr(br(this.contextWindow,"pointermove",this.handlePointerMove),br(this.contextWindow,"pointerup",this.handlePointerUp),br(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function dd(e,t){return t?{point:t(e.point)}:e}function g0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hd({point:e},t){return{point:e,delta:g0(e,DC(t)),offset:g0(e,XF(t)),velocity:YF(t,.1)}}function XF(e){return e[0]}function DC(e){return e[e.length-1]}function YF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=DC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cr(t)));)n--;if(!r)return{x:0,y:0};const o=Er(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dn(e){return e.max-e.min}function ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function y0(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=dn(n)/dn(t),(ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){y0(e.x,t.x,n.x,r?r.originX:void 0),y0(e.y,t.y,n.y,r?r.originY:void 0)}function S0(e,t,n){e.min=n.min+t.min,e.max=e.min+dn(t)}function QF(e,t,n){S0(e.x,t.x,n.x),S0(e.y,t.y,n.y)}function w0(e,t,n){e.min=t.min-n.min,e.max=e.min+dn(t)}function ts(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function JF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function b0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZF(e,{top:t,left:n,bottom:r,right:i}){return{x:b0(e.x,n,i),y:b0(e.y,t,r)}}function x0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Rs(t.min,t.max-r,e.min):r>i&&(n=Rs(e.min,e.max-i,t.min)),ai(0,1,n)}function nL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tp=.35;function rL(e=tp){return e===!1?e=0:e===!0&&(e=tp),{x:C0(e,"left","right"),y:C0(e,"top","bottom")}}function C0(e,t,n){return{min:E0(e,t),max:E0(e,n)}}function E0(e,t){return typeof e=="number"?e:e[t]||0}const k0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:k0(),y:k0()}),P0=()=>({min:0,max:0}),Ze=()=>({x:P0(),y:P0()});function yn(e){return[e("x"),e("y")]}function NC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pd(e){return e===void 0||e===1}function np({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function bi(e){return np(e)||VC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function VC(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function Ju(e,t,n){const r=e-n,i=t*r;return n+i}function R0(e,t,n,r,i){return i!==void 0&&(e=Ju(e,i,r)),Ju(e,n,r)+t}function rp(e,t=0,n=1,r,i){e.min=R0(e.min,t,n,r,i),e.max=R0(e.max,t,n,r,i)}function jC(e,{x:t,y:n}){rp(e.x,t.translate,t.scale,t.originPoint),rp(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function O0(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=$e(e.min,e.max,o);rp(e,t[n],t[r],a,t.scale)}const sL=["x","scaleX","originX"],lL=["y","scaleY","originY"];function To(e,t){O0(e.x,t,sL),O0(e.y,t,lL)}function $C(e,t){return NC(oL(e.getBoundingClientRect(),t))}function uL(e,t,n){const r=$C(e,n),{scroll:i}=t;return i&&(jr(r.x,i.offset.x),jr(r.y,i.offset.y)),r}const BC=({current:e})=>e?e.ownerDocument.defaultView:null,cL=new WeakMap;class fL{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:S}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jx(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(m=>{let h=this.getAxisMotionValue(m).get()||0;if(or.test(h)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[m];v&&(h=dn(v)*(parseFloat(h)/100))}}this.originPoint[m]=h}),S&&S(c,f);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:S,onDrag:p}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:m}=f;if(g&&this.currentDirection===null){this.currentDirection=dL(m),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),p&&p(c,f)},s=(c,f)=>this.stop(c,f),l=()=>yn(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new IC(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:BC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ol(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=JF(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ZF(i.layoutBox,n):this.constraints=!1,this.elastic=rL(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=nL(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Eo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=uL(r,i.root,this.visualElement.getTransformPagePoint());let a=eL(i.layout.layoutBox,o);if(n){const s=n(iL(a));this.hasMutatedConstraints=!!s,s&&(a=NC(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=yn(c=>{if(!Ol(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,S={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,S)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ev(t,r,0,n,this.visualElement))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ol(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-$e(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Eo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();i[a]=tL({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(a=>{if(!Ol(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set($e(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;cL.set(this.visualElement,this);const t=this.visualElement.current,n=br(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Eo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=yr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(yn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=tp,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hL extends pi{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new fL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const A0=e=>(t,n)=>{e&&e(t,n)};class pL extends pi{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new IC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:A0(t),onStart:A0(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&i(o,a)}}}mount(){this.removePointerDownListener=br(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mL(){const e=w.useContext(tv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function F0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=F0(e,t.target.x),r=F0(e,t.target.y);return`${n}% ${r}%`}},vL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=si.parse(e);if(i.length>5)return r;const o=si.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=$e(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class gL extends qe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;gO(yL),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||yt.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zC(e){const[t,n]=mL(),r=w.useContext(Dx);return qe.createElement(gL,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Nx),isPresent:t,safeToRemove:n})}const yL={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:vL},UC=["TopLeft","TopRight","BottomLeft","BottomRight"],SL=UC.length,L0=e=>typeof e=="string"?parseFloat(e):e,_0=e=>typeof e=="number"||ue.test(e);function wL(e,t,n,r,i,o){i?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,bL(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,xL(r))):o&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Rs(e,t,r))}function D0(e,t){e.min=t.min,e.max=t.max}function vn(e,t){D0(e.x,t.x),D0(e.y,t.y)}function N0(e,t,n,r,i){return e-=t,e=Ju(e,1/n,r),i!==void 0&&(e=Ju(e,1/i,r)),e}function CL(e,t=0,n=1,r=.5,i,o=e,a=e){if(or.test(t)&&(t=parseFloat(t),t=$e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=$e(o.min,o.max,r);e===o&&(s-=t),e.min=N0(e.min,t,n,s,i),e.max=N0(e.max,t,n,s,i)}function V0(e,t,[n,r,i],o,a){CL(e,t[n],t[r],t[i],t.scale,o,a)}const EL=["x","scaleX","originX"],kL=["y","scaleY","originY"];function j0(e,t,n,r){V0(e.x,t,EL,n?n.x:void 0,r?r.x:void 0),V0(e.y,t,kL,n?n.y:void 0,r?r.y:void 0)}function $0(e){return e.translate===0&&e.scale===1}function WC(e){return $0(e.x)&&$0(e.y)}function PL(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function KC(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function B0(e){return dn(e.x)/dn(e.y)}class TL{constructor(){this.members=[]}add(t){kv(this.members,t),t.scheduleRender()}remove(t){if(Pv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:c,rotateY:f,skewX:d,skewY:g}=n;u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const RL=(e,t)=>e.depth-t.depth;class ML{constructor(){this.children=[],this.isDirty=!1}add(t){kv(this.children,t),this.isDirty=!0}remove(t){Pv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RL),this.isDirty=!1,this.children.forEach(t)}}function OL(e,t){const n=ti.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Mr(r),e(o-t))};return yt.read(r,!0),()=>Mr(r)}function AL(e){window.MotionDebug&&window.MotionDebug.record(e)}function FL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LL(e,t,n){const r=kt(e)?e:Yo(e);return r.start(Ev("",r,t,n)),r.animation}const md=["","X","Y","Z"],_L={visibility:"hidden"},U0=1e3;let IL=0;const xi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function GC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=IL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xi.totalNodes=xi.resolvedTargetDeltas=xi.recalculatedProjection=0,this.nodes.forEach(VL),this.nodes.forEach(UL),this.nodes.forEach(HL),this.nodes.forEach(jL),AL(xi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=OL(d,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||XL,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=c.getProps(),y=!this.targetLayout||!KC(this.targetLayout,S)||g,v=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const x={...vv(p,"layout"),onPlay:m,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||W0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WL),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach($L),this.sharedNodes.forEach(KL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=x/1e3;K0(f.x,a.x,E),K0(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GL(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&PL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ze()),vn(v,this.relativeTarget)),p&&(this.animationValues=c,wL(c,u,this.latestValues,E,y,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{au.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,U0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&qC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ze();const f=dn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=dn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}vn(s,l),To(s,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TL),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&vd("z",a,u,this.animationValues);for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H0),this.root.sharedNodes.clear()}}}function DL(e){e.updateLayout()}function NL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(d);d.min=r[f].min,d.max=d.min+g}):qC(o,n.layoutBox,r)&&yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const s=Po();es(s,r,n.layoutBox);const l=Po();a?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!WC(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const S=Ze();ts(S,n.layoutBox,d.layoutBox);const p=Ze();ts(p,r,g.layoutBox),KC(S,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VL(e){xi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $L(e){e.clearSnapshot()}function H0(e){e.clearMeasurements()}function BL(e){e.isLayoutDirty=!1}function zL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UL(e){e.resolveTargetDelta()}function HL(e){e.calcProjection()}function WL(e){e.resetSkewAndRotation()}function KL(e){e.removeLeadSnapshot()}function K0(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function G0(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function GL(e,t,n,r){G0(e.x,t.x,n.x,r),G0(e.y,t.y,n.y,r)}function qL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XL={duration:.45,ease:[.4,0,.1,1]},q0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),X0=q0("applewebkit/")&&!q0("chrome/")?Math.round:Tt;function Y0(e){e.min=X0(e.min),e.max=X0(e.max)}function YL(e){Y0(e.x),Y0(e.y)}function qC(e,t,n){return e==="position"||e==="preserve-aspect"&&!ep(B0(t),B0(n),.2)}const QL=GC({attachResizeListener:(e,t)=>yr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gd={current:void 0},XC=GC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gd.current){const e=new QL({});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JL={pan:{Feature:pL},drag:{Feature:hL,ProjectionNode:XC,MeasureLayout:zC}},ip={current:null},YC={current:!1};function ZL(){if(YC.current=!0,!!nv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ip.current=e.matches;e.addListener(t),t()}else ip.current=!1}function e_(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(kt(o))e.addValue(i,o),Qu(r)&&r.add(i);else if(kt(a))e.addValue(i,Yo(o,{owner:e})),Qu(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Yo(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Q0=new WeakMap,t_=[...sC,_t,si],n_=e=>t_.find(aC(e)),QC=Object.keys(Ts),r_=QC.length,J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i_=av.length;class o_{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(d,g,S,p)=>new this.KeyframeResolver(d,g,S,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>yt.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Ic(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&kt(g)&&(g.set(l[d],!1),Qu(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n,r){return{}}mount(t){this.current=t,Q0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),YC.current||ZL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ip.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Q0.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Yi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:g})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(iC(i)||nC(i))?i=parseFloat(i):!n_(i)&&si.test(n)&&(i=mC(t,n)),this.setBaseTarget(t,kt(i)?i.get():i)),kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n,r;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(r=mv(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom))===null||r===void 0?void 0:r[t]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!kt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class JC extends o_{constructor(){super(...arguments),this.KeyframeResolver=vC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function a_(e){return window.getComputedStyle(e)}class s_ extends JC{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}else{const r=a_(t),i=($x(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $C(t,n)}build(t,n,r,i){cv(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return pv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Wx(t,n,r,i)}}class l_ extends JC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}return n=Kx.has(n)?n:rv(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ze()}scrapeMotionValuesFromProps(t,n){return qx(t,n,this)}build(t,n,r,i){dv(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Gx(t,n,r,i)}mount(t){this.isSVGTag=hv(t.tagName),super.mount(t)}}const u_=(e,t)=>sv(e)?new l_(t,{enableHardwareAcceleration:!1}):new s_(t,{enableHardwareAcceleration:!0}),c_={layout:{ProjectionNode:XC,MeasureLayout:zC}},f_={...GF,...oA,...JL,...c_},ZC=mO((e,t)=>KO(e,t,f_,u_)),eE=w.createContext(null);function d_(e,t,n,r){if(!r)return e;const i=e.findIndex(c=>c.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const s=e[i],l=a.layout,u=$e(l.min,l.max,.5);return o===1&&s.layout.max+n>u||o===-1&&s.layout.min+nZC(t)),l=[],u=w.useRef(!1),c={axis:n,registerItem:(f,d)=>{const g=l.findIndex(S=>f===S.value);g!==-1?l[g].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(v_)},updateOrder:(f,d,g)=>{if(u.current)return;const S=d_(l,f,d,g);l!==S&&(u.current=!0,r(S.map(m_).filter(p=>i.indexOf(p)!==-1)))}};return w.useEffect(()=>{u.current=!1}),w.createElement(s,{...o,ref:a,ignoreStrict:!0},w.createElement(eE.Provider,{value:c},e))}const p_=w.forwardRef(h_);function m_(e){return e.value}function v_(e,t){return e.layout.min-t.layout.min}function tE(e){const t=qs(()=>Yo(e)),{isStatic:n}=w.useContext(ev);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const g_=e=>e&&typeof e=="object"&&e.mix,y_=e=>g_(e)?e.mix:void 0;function S_(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],s=MC(i,o,{mixer:y_(o[0]),...a});return t?s(r):s}function nE(e,t){const n=tE(t()),r=()=>n.set(t());return r(),Ax(()=>{const i=()=>yt.update(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Mr(r)}}),n}function w_(e){Za.current=[],e();const t=nE(Za.current,e);return Za.current=void 0,t}function b_(e,t,n,r){if(typeof e=="function")return w_(e);const i=typeof t=="function"?t:S_(t,n,r);return Array.isArray(e)?Z0(e,i):Z0([e],([o])=>i(o))}function Z0(e,t){const n=qs(()=>[]);return nE(e,()=>{n.length=0;const r=e.length;for(let i=0;iZC(r)),u=w.useContext(eE),c={x:e1(t.x),y:e1(t.y)},f=b_([c.x,c.y],([p,m])=>p||m?1:"unset"),{axis:d,registerItem:g,updateOrder:S}=u;return w.createElement(l,{drag:d,...a,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:f},layout:o,onDrag:(p,m)=>{const{velocity:h}=m;h[d]&&S(n,c[d].get(),h[d]),i&&i(p,m)},onLayoutMeasure:p=>g(n,p),ref:s,ignoreStrict:!0},e)}const C_=w.forwardRef(x_),t1={Group:p_,Item:C_},E_="_heading_8v9q8_1",k_="_maintainerContainer_8v9q8_6",P_="_contributor_8v9q8_10",T_="_contributionContainer_8v9q8_15",Va={heading:E_,maintainerContainer:k_,contributor:P_,contributionContainer:T_};function yd({username:e,avatar:t}){return O.jsx("a",{href:`https://github.com/${e}`,title:e,className:Va.contributor,target:"_blank",rel:"noreferrer",children:O.jsx("img",{src:`https://avatars.githubusercontent.com/u/${t}`,alt:e,loading:"lazy"})})}const R_=[{username:"sadanandpai",avatar:"12962887"},{username:"arpansaha13",avatar:"82361490"}];function rE(e,t){return function(){return e.apply(t,arguments)}}const{toString:M_}=Object.prototype,{getPrototypeOf:Rv}=Object,jc=(e=>t=>{const n=M_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>jc(t)===e),$c=e=>t=>typeof t===e,{isArray:sa}=Array,Ms=$c("undefined");function O_(e){return e!==null&&!Ms(e)&&e.constructor!==null&&!Ms(e.constructor)&&un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iE=Gn("ArrayBuffer");function A_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iE(e.buffer),t}const F_=$c("string"),un=$c("function"),oE=$c("number"),Bc=e=>e!==null&&typeof e=="object",L_=e=>e===!0||e===!1,su=e=>{if(jc(e)!=="object")return!1;const t=Rv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},__=Gn("Date"),I_=Gn("File"),D_=Gn("Blob"),N_=Gn("FileList"),V_=e=>Bc(e)&&un(e.pipe),j_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||un(e.append)&&((t=jc(e))==="formdata"||t==="object"&&un(e.toString)&&e.toString()==="[object FormData]"))},$_=Gn("URLSearchParams"),[B_,z_,U_,H_]=["ReadableStream","Request","Response","Headers"].map(Gn),W_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sE=e=>!Ms(e)&&e!==Ai;function op(){const{caseless:e}=sE(this)&&this||{},t={},n=(r,i)=>{const o=e&&aE(t,i)||i;su(t[o])&&su(r)?t[o]=op(t[o],r):su(r)?t[o]=op({},r):sa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ys(t,(i,o)=>{n&&un(i)?e[o]=rE(i,n):e[o]=i},{allOwnKeys:r}),e),G_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X_=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Rv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Q_=e=>{if(!e)return null;if(sa(e))return e;let t=e.length;if(!oE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rv(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},eI=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tI=Gn("HTMLFormElement"),nI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),n1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rI=Gn("RegExp"),lE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ys(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},iI=e=>{lE(e,(t,n)=>{if(un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oI=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return sa(e)?r(e):r(String(e).split(t)),n},aI=()=>{},sI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Sd="abcdefghijklmnopqrstuvwxyz",r1="0123456789",uE={DIGIT:r1,ALPHA:Sd,ALPHA_DIGIT:Sd+Sd.toUpperCase()+r1},lI=(e=16,t=uE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uI(e){return!!(e&&un(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cI=e=>{const t=new Array(10),n=(r,i)=>{if(Bc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=sa(r)?[]:{};return Ys(r,(a,s)=>{const l=n(a,i+1);!Ms(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},fI=Gn("AsyncFunction"),dI=e=>e&&(Bc(e)||un(e))&&un(e.then)&&un(e.catch),cE=((e,t)=>e?setImmediate:t?((n,r)=>(Ai.addEventListener("message",({source:i,data:o})=>{i===Ai&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",un(Ai.postMessage)),hI=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||cE,D={isArray:sa,isArrayBuffer:iE,isBuffer:O_,isFormData:j_,isArrayBufferView:A_,isString:F_,isNumber:oE,isBoolean:L_,isObject:Bc,isPlainObject:su,isReadableStream:B_,isRequest:z_,isResponse:U_,isHeaders:H_,isUndefined:Ms,isDate:__,isFile:I_,isBlob:D_,isRegExp:rI,isFunction:un,isStream:V_,isURLSearchParams:$_,isTypedArray:J_,isFileList:N_,forEach:Ys,merge:op,extend:K_,trim:W_,stripBOM:G_,inherits:q_,toFlatObject:X_,kindOf:jc,kindOfTest:Gn,endsWith:Y_,toArray:Q_,forEachEntry:Z_,matchAll:eI,isHTMLForm:tI,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:lE,freezeMethods:iI,toObjectSet:oI,toCamelCase:nI,noop:aI,toFiniteNumber:sI,findKey:aE,global:Ai,isContextDefined:sE,ALPHABET:uE,generateString:lI,isSpecCompliantForm:uI,toJSONObject:cI,isAsyncFn:fI,isThenable:dI,setImmediate:cE,asap:hI};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fE=me.prototype,dE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dE[e]={value:e}});Object.defineProperties(me,dE);Object.defineProperty(fE,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const a=Object.create(fE);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),me.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pI=null;function ap(e){return D.isPlainObject(e)||D.isArray(e)}function hE(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function i1(e,t,n){return e?e.concat(t).map(function(i,o){return i=hE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function mI(e){return D.isArray(e)&&!e.some(ap)}const vI=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function zc(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!D.isUndefined(m[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(S){if(S===null)return"";if(D.isDate(S))return S.toISOString();if(!l&&D.isBlob(S))throw new me("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(S)||D.isTypedArray(S)?l&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,p,m){let h=S;if(S&&!m&&typeof S=="object"){if(D.endsWith(p,"{}"))p=r?p:p.slice(0,-2),S=JSON.stringify(S);else if(D.isArray(S)&&mI(S)||(D.isFileList(S)||D.endsWith(p,"[]"))&&(h=D.toArray(S)))return p=hE(p),h.forEach(function(v,x){!(D.isUndefined(v)||v===null)&&t.append(a===!0?i1([p],x,o):a===null?p:p+"[]",u(v))}),!1}return ap(S)?!0:(t.append(i1(m,p,o),u(S)),!1)}const f=[],d=Object.assign(vI,{defaultVisitor:c,convertValue:u,isVisitable:ap});function g(S,p){if(!D.isUndefined(S)){if(f.indexOf(S)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(S),D.forEach(S,function(h,y){(!(D.isUndefined(h)||h===null)&&i.call(t,h,D.isString(y)?y.trim():y,p,d))===!0&&g(h,p?p.concat(y):[y])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function o1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mv(e,t){this._pairs=[],e&&zc(e,this,t)}const pE=Mv.prototype;pE.append=function(t,n){this._pairs.push([t,n])};pE.toString=function(t){const n=t?function(r){return t.call(this,r,o1)}:o1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mE(e,t,n){if(!t)return e;const r=n&&n.encode||gI,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Mv(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class yI{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a1=yI,vE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SI=typeof URLSearchParams<"u"?URLSearchParams:Mv,wI=typeof FormData<"u"?FormData:null,bI=typeof Blob<"u"?Blob:null,xI={isBrowser:!0,classes:{URLSearchParams:SI,FormData:wI,Blob:bI},protocols:["http","https","file","blob","url","data"]},Ov=typeof window<"u"&&typeof document<"u",CI=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EI=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kI=Ov&&window.location.href||"http://localhost",PI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserEnv:CI,hasStandardBrowserWebWorkerEnv:EI,origin:kI},Symbol.toStringTag,{value:"Module"})),Bn={...PI,...xI};function TI(e,t){return zc(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Bn.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RI(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MI(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=MI(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(RI(r),i,n,0)}),n}return null}function OI(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:vE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(gE(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TI(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),OI(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?me.from(s,me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});const Fv=Av,AI=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FI=e=>{const t={};let n,r,i;return e&&e.split(` + */function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function VM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jM(e,t){return e.button===0&&(!t||t==="_self")&&!VM(e)}const $M=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],BM=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function zM(e,t){return sM({basename:t==null?void 0:t.basename,future:qo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:OR({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||UM(),routes:e,mapRouteProperties:NM,window:t==null?void 0:t.window}).initialize()}function UM(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=qo({},t,{errors:HM(t.errors)})),t}function HM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qm(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Mx=w.createContext({isTransitioning:!1}),WM=w.createContext(new Map),KM="startTransition",zy=$o[KM],GM="flushSync",Uy=MR[GM];function qM(e){zy?zy(e):e()}function ka(e){Uy?Uy(e):e()}class XM{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function YM(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=w.useState(n.state),[a,s]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,f]=w.useState(),[d,g]=w.useState(),[S,p]=w.useState(),m=w.useRef(new Map),{v7_startTransition:h}=r||{},y=w.useCallback(C=>{h?qM(C):C()},[h]),v=w.useCallback((C,k)=>{let{deletedFetchers:T,unstable_flushSync:F,unstable_viewTransitionOpts:V}=k;T.forEach(U=>m.current.delete(U)),C.fetchers.forEach((U,Q)=>{U.data!==void 0&&m.current.set(Q,U.data)});let H=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||H){F?ka(()=>o(C)):y(()=>o(C));return}if(F){ka(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let U=n.window.document.startViewTransition(()=>{ka(()=>o(C))});U.finished.finally(()=>{ka(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),ka(()=>g(U));return}d?(c&&c.resolve(),d.skipTransition(),p({state:C,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s(C),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,d,c,m,y]);w.useLayoutEffect(()=>n.subscribe(v),[n,v]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new XM)},[l]),w.useEffect(()=>{if(c&&a&&n.window){let C=a,k=c.promise,T=n.window.document.startViewTransition(async()=>{y(()=>o(C)),await k});T.finished.finally(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(T)}},[y,a,c,n.window]),w.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,d,i.location,a]),w.useEffect(()=>{!l.isTransitioning&&S&&(s(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),p(void 0))},[l.isTransitioning,S]),w.useEffect(()=>{},[]);let x=w.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,k,T)=>n.navigate(C,{state:k,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,k,T)=>n.navigate(C,{replace:!0,state:k,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",b=w.useMemo(()=>({router:n,navigator:x,static:!1,basename:E}),[n,x,E]);return w.createElement(w.Fragment,null,w.createElement(zs.Provider,{value:b},w.createElement(Zm.Provider,{value:i},w.createElement(WM.Provider,{value:m.current},w.createElement(Mx.Provider,{value:l},w.createElement(DM,{basename:E,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?w.createElement(QM,{routes:n.routes,future:n.future,state:i}):t))))),null)}function QM(e){let{routes:t,future:n,state:r}=e;return EM(t,void 0,r,n)}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fc=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=Rx(t,$M),{basename:g}=w.useContext(di),S,p=!1;if(typeof u=="string"&&ZM.test(u)&&(S=u,JM))try{let v=new URL(window.location.href),x=u.startsWith("//")?new URL(v.protocol+u):new URL(u),E=oi(x.pathname,g);x.origin===v.origin&&E!=null?u=E+x.search+x.hash:p=!0}catch{}let m=bM(u,{relative:i}),h=tO(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function y(v){r&&r(v),v.defaultPrevented||h(v)}return w.createElement("a",qo({},d,{href:S||m,onClick:p||o?r:y,ref:n,target:l}))}),Ox=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}=t,f=Rx(t,BM),d=Ac(l,{relative:f.relative}),g=Hs(),S=w.useContext(Zm),{navigator:p}=w.useContext(di),m=S!=null&&nO(d)&&u===!0,h=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,y=g.pathname,v=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(y=y.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=y===h||!a&&y.startsWith(h)&&y.charAt(x)==="/",b=v!=null&&(v===h||!a&&v.startsWith(h)&&v.charAt(h.length)==="/"),C={isActive:E,isPending:b,isTransitioning:m},k=E?r:void 0,T;typeof o=="function"?T=o(C):T=[o,E?"active":null,b?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(C):s;return w.createElement(Fc,qo({},f,{"aria-current":k,className:T,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});var Hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hh||(Hh={}));var Hy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hy||(Hy={}));function eO(e){let t=w.useContext(zs);return t||ge(!1),t}function tO(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=kx(),u=Hs(),c=Ac(e,{relative:a});return w.useCallback(f=>{if(jM(f,n)){f.preventDefault();let d=r!==void 0?r:Wi(u)===Wi(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function nO(e,t){t===void 0&&(t={});let n=w.useContext(Mx);n==null&&ge(!1);let{basename:r}=eO(Hh.useViewTransitionState),i=Ac(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $h(i.pathname,a)!=null||$h(i.pathname,o)!=null}const ev=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lc=w.createContext({}),tv=w.createContext(null),nv=typeof document<"u",Ax=nv?w.useLayoutEffect:w.useEffect,Fx=w.createContext({strict:!1}),rv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rO="framerAppearId",Lx="data-"+rv(rO),iO={skipAnimations:!1,useManualTiming:!1};class Wy{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function oO(e){let t=new Wy,n=new Wy,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=oO(()=>n=!0),f),{}),a=f=>{o[f].process(i)},s=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,aO),1),i.timestamp=f,i.isProcessing=!0,Rl.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:Rl.reduce((f,d)=>{const g=o[d];return f[d]=(S,p=!1,m=!1)=>(n||l(),g.schedule(S,p,m)),f},{}),cancel:f=>Rl.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:iv,cancel:vz}=_x(queueMicrotask,!1);function sO(e,t,n,r){const{visualElement:i}=w.useContext(Lc),o=w.useContext(Fx),a=w.useContext(tv),s=w.useContext(ev).reducedMotion,l=w.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,a)});const c=w.useRef(!!(n[Lx]&&!window.HandoffComplete));return Ax(()=>{u&&(iv.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lO(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Eo(n)&&(n.current=r))},[t])}function Ps(e){return typeof e=="string"||Array.isArray(e)}function _c(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ov=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],av=["initial",...ov];function Ic(e){return _c(e.animate)||av.some(t=>Ps(e[t]))}function Ix(e){return!!(Ic(e)||e.variants)}function uO(e,t){if(Ic(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ps(n)?n:void 0,animate:Ps(r)?r:void 0}}return e.inherit!==!1?t:{}}function cO(e){const{initial:t,animate:n}=uO(e,w.useContext(Lc));return w.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ts={};for(const e in Gy)Ts[e]={isEnabled:t=>Gy[e].some(n=>!!t[n])};function fO(e){for(const t in e)Ts[t]={...Ts[t],...e[t]}}const Dx=w.createContext({}),Nx=w.createContext({}),dO=Symbol.for("motionComponentSymbol");function hO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fO(e);function o(s,l){let u;const c={...w.useContext(ev),...s,layoutId:pO(s)},{isStatic:f}=c,d=cO(s),g=r(s,f);if(!f&&nv){d.visualElement=sO(i,g,c,t);const S=w.useContext(Nx),p=w.useContext(Fx).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,S))}return w.createElement(Lc.Provider,{value:d},u&&d.visualElement?w.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,s,lO(g,d.visualElement,l),g,f,d.visualElement))}const a=w.forwardRef(o);return a[dO]=i,a}function pO({layoutId:e}){const t=w.useContext(Dx).id;return t&&e!==void 0?t+"-"+e:e}function mO(e){function t(r,i={}){return hO(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sv(e){return typeof e!="string"||e.includes("-")?!1:!!(vO.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ku={};function gO(e){Object.assign(Ku,e)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yi=new Set(Ws);function Vx(e,{layout:t,layoutId:n}){return Yi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ku[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),yO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SO=Ws.length;function wO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),$x=jx("--"),bO=jx("var(--"),lv=e=>bO(e)?xO.test(e.split("/*")[0].trim()):!1,xO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,CO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qa={...aa,transform:e=>ai(0,1,e)},Ml={...aa,default:1},Ja=e=>Math.round(e*1e5)/1e5,uv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,EO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,kO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ks(e){return typeof e=="string"}const Gs=e=>({test:t=>Ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dr=Gs("deg"),or=Gs("%"),ue=Gs("px"),PO=Gs("vh"),TO=Gs("vw"),qy={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},Xy={...aa,transform:Math.round},Bx={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:Dr,rotateX:Dr,rotateY:Dr,rotateZ:Dr,scale:Ml,scaleX:Ml,scaleY:Ml,scaleZ:Ml,skew:Dr,skewX:Dr,skewY:Dr,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Qa,originX:qy,originY:qy,originZ:ue,zIndex:Xy,backgroundPositionX:ue,backgroundPositionY:ue,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Xy};function cv(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if($x(f)){o[f]=d;continue}const g=Bx[f],S=CO(d,g);if(Yi.has(f)){if(l=!0,a[f]=S,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=S):i[f]=S}if(t.transform||(l||r?i.transform=wO(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=s;i.transformOrigin=`${f} ${d} ${g}`}}const fv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const r in t)!kt(t[r])&&!Vx(r,n)&&(e[r]=t[r])}function RO({transformTemplate:e},t,n){return w.useMemo(()=>{const r=fv();return cv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function MO(e,t,n){const r=e.style||{},i={};return zx(i,r,e),Object.assign(i,RO(e,t,n)),i}function OO(e,t,n){const r={},i=MO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const AO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AO.has(e)}let Ux=e=>!Gu(e);function FO(e){e&&(Ux=t=>t.startsWith("on")?!Gu(t):e(t))}try{FO(require("@emotion/is-prop-valid").default)}catch{}function LO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ux(i)||n===!0&&Gu(i)||!t&&!Gu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Yy(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function _O(e,t,n){const r=Yy(t,e.x,e.width),i=Yy(n,e.y,e.height);return`${r} ${i}`}const IO={offset:"stroke-dashoffset",array:"stroke-dasharray"},DO={offset:"strokeDashoffset",array:"strokeDasharray"};function NO(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IO:DO;e[o.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[o.array]=`${a} ${s}`}function dv(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(cv(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:S,dimensions:p}=e;g.transform&&(p&&(S.transform=g.transform),delete g.transform),p&&(i!==void 0||o!==void 0||S.transform)&&(S.transformOrigin=_O(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&NO(g,a,s,l,!1)}const Hx=()=>({...fv(),attrs:{}}),hv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VO(e,t,n,r){const i=w.useMemo(()=>{const o=Hx();return dv(o,t,{enableHardwareAcceleration:!1},hv(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zx(o,e.style,e),i.style={...o,...i.style}}return i}function jO(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(sv(n)?VO:OO)(r,o,a,n),u=LO(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=w.useMemo(()=>kt(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function Wx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gx(e,t,n,r){Wx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kx.has(i)?i:rv(i),t.attrs[i])}function pv(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(kt(i[a])||t.style&&kt(t.style[a])||Vx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function qx(e,t,n){const r=pv(e,t,n);for(const i in e)if(kt(e[i])||kt(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function mv(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function qs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wh=e=>Array.isArray(e),$O=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BO=e=>Wh(e)?e[e.length-1]||0:e;function iu(e){const t=kt(e)?e.get():e;return $O(t)?t.toValue():t}function zO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:UO(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Xx=e=>(t,n)=>{const r=w.useContext(Lc),i=w.useContext(tv),o=()=>zO(e,t,r,i);return n?o():qs(o)};function UO(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=iu(o[d]);let{initial:a,animate:s}=e;const l=Ic(e),u=Ix(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!_c(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const S=mv(e,g);if(!S)return;const{transitionEnd:p,transition:m,...h}=S;for(const y in h){let v=h[y];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(i[y]=v)}for(const y in p)i[y]=p[y]}),i}const Tt=e=>e,{schedule:yt,cancel:Mr,state:Ct,steps:od}=_x(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0),HO={useVisualState:Xx({scrapeMotionValuesFromProps:qx,createRenderState:Hx,onMount:(e,t,{renderState:n,latestValues:r})=>{yt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),yt.render(()=>{dv(n,r,{enableHardwareAcceleration:!1},hv(t.tagName),e.transformTemplate),Gx(t,n)})}})},WO={useVisualState:Xx({scrapeMotionValuesFromProps:pv,createRenderState:fv})};function KO(e,{forwardMotionProps:t=!1},n,r){return{...sv(e)?HO:WO,preloadedFeatures:n,useRender:jO(t),createVisualElement:r,Component:e}}function yr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GO=e=>t=>Yx(t)&&e(t,Dc(t));function br(e,t,n,r){return yr(e,t,GO(n),r)}const qO=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(qO);function Qx(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Qy=Qx("dragHorizontal"),Jy=Qx("dragVertical");function Jx(e){let t=!1;if(e==="y")t=Jy();else if(e==="x")t=Qy();else{const n=Qy(),r=Jy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Zx(){const e=Jx(!0);return e?(e(),!1):!0}class pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Zx())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&s[r](o,a)};return br(e.current,n,i,{passive:!e.getProps()[r]})}class XO extends pi{mount(){this.unmount=xr(Zy(this.node,!0),Zy(this.node,!1))}unmount(){}}class YO extends pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(yr(this.node.current,"focus",()=>this.onFocus()),yr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eC=(e,t)=>t?e===t?!0:eC(e,t.parentElement):!1;function ad(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dc(n))}class QO extends pi{constructor(){super(...arguments),this.removeStartListeners=Tt,this.removeEndListeners=Tt,this.removeAccessibleListeners=Tt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=br(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!eC(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=br(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=xr(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ad("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=yr(this.node.current,"keyup",a),ad("down",(s,l)=>{this.startPress(s,l)})},n=yr(this.node.current,"keydown",t),r=()=>{this.isPressing&&ad("cancel",(o,a)=>this.cancelPress(o,a))},i=yr(this.node.current,"blur",r);this.removeAccessibleListeners=xr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zx()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=br(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kh=new WeakMap,sd=new WeakMap,JO=e=>{const t=Kh.get(e.target);t&&t(e)},ZO=e=>{e.forEach(JO)};function eA({root:e,...t}){const n=e||document;sd.has(n)||sd.set(n,{});const r=sd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZO,{root:e,...t})),r[i]}function tA(e,t,n){const r=eA(t);return Kh.set(e,n),r.observe(e),()=>{Kh.delete(e),r.unobserve(e)}}const nA={some:0,all:1};class rA extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nA[i]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return tA(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iA(t,n))&&this.startObserver()}unmount(){}}function iA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oA={inView:{Feature:rA},tap:{Feature:QO},focus:{Feature:YO},hover:{Feature:XO}};function tC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function sA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Nc(e,t,n){const r=e.getProps();return mv(r,t,n!==void 0?n:r.custom,aA(e),sA(e))}const Cr=e=>e*1e3,Er=e=>e/1e3,lA={type:"spring",stiffness:500,damping:25,restSpeed:10},uA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cA={type:"keyframes",duration:.8},fA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dA=(e,{keyframes:t})=>t.length>2?cA:Yi.has(e)?e.startsWith("scale")?uA(t[1]):lA:fA;function hA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function vv(e,t){return e[t]||e.default||e}const pA=e=>e!==null;function Vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let ou;function mA(){ou=void 0}const ti={now:()=>(ou===void 0&&ti.set(Ct.isProcessing||iO.useManualTiming?Ct.timestamp:performance.now()),ou),set:e=>{ou=e,queueMicrotask(mA)}},nC=e=>/^0[^.\s]+$/u.test(e);function vA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nC(e):!0}let gA=Tt,rC=Tt;const iC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function oC(e,t,n=1){const[r,i]=SA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return iC(a)?parseFloat(a):a}return lv(i)?oC(i,t,n+1):i}const wA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),e0=e=>e===aa||e===ue,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return t0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?t0(o[1],e):0}},bA=new Set(["x","y","z"]),xA=Ws.filter(e=>!bA.has(e));function r0(e){const t=[];return xA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:n0(4,13),y:n0(5,14)};Xo.translateX=Xo.x;Xo.translateY=Xo.y;const aC=e=>t=>t.test(e),CA={test:e=>e==="auto",parse:e=>e},sC=[aa,ue,or,Dr,TO,PO,CA],i0=e=>sC.find(aC(e)),Ni=new Set;let Gh=!1,qh=!1;function lC(){if(qh){const e=Array.from(Ni).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{r0(r).length&&(n.set(r,r0(r)),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render()}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qh=!1,Gh=!1,Ni.forEach(e=>e.complete()),Ni.clear()}function uC(){Ni.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qh=!0)})}function EA(){uC(),lC()}class gv{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ni.add(this),Gh||(Gh=!0,yt.read(uC),yt.resolveKeyframes(lC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Ks(n)&&kO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cC=(e,t,n)=>r=>{if(!Ks(r))return r;const[i,o,a,s]=r.match(uv);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},kA=e=>ai(0,255,e),ld={...aa,transform:e=>Math.round(kA(e))},Oi={test:yv("rgb","red"),parse:cC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ld.transform(e)+", "+ld.transform(t)+", "+ld.transform(n)+", "+Ja(Qa.transform(r))+")"};function PA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Xh={test:yv("#"),parse:PA,transform:Oi.transform},ko={test:yv("hsl","hue"),parse:cC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(Ja(t))+", "+or.transform(Ja(n))+", "+Ja(Qa.transform(r))+")"},_t={test:e=>Oi.test(e)||Xh.test(e)||ko.test(e),parse:e=>Oi.test(e)?Oi.parse(e):ko.test(e)?ko.parse(e):Xh.parse(e),transform:e=>Ks(e)?e:e.hasOwnProperty("red")?Oi.transform(e):ko.transform(e)};function TA(e){var t,n;return isNaN(e)&&Ks(e)&&(((t=e.match(uv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EO))===null||n===void 0?void 0:n.length)||0)>0}const fC="number",dC="color",RA="var",MA="var(",o0="${}",OA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(OA,l=>(_t.test(l)?(r.color.push(o),i.push(dC),n.push(_t.parse(l))):l.startsWith(MA)?(r.var.push(o),i.push(RA),n.push(l)):(r.number.push(o),i.push(fC),n.push(parseFloat(l))),++o,o0)).split(o0);return{values:n,split:s,indexes:r,types:i}}function hC(e){return qu(e).values}function pC(e){const{split:t,types:n}=qu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function FA(e){const t=hC(e);return pC(e)(t.map(AA))}const si={test:TA,parse:hC,createTransformer:pC,getAnimatableNone:FA},LA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uv)||[];if(!r)return e;const i=n.replace(r,"");let o=LA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Yh={...si,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},DA={...Bx,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Yh,WebkitFilter:Yh},Sv=e=>DA[e];function mC(e,t){let n=Sv(e);return n!==Yh&&(n=si),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function NA(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function VA(e){let t;return()=>(t===void 0&&(t=e()),t)}const a0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(si.test(e)||e==="0")&&!e.startsWith("url("));function jA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function yC(e,t){return t?e*(1e3/t):0}const BA=5;function SC(e,t,n){const r=Math.max(t-BA,0);return yC(n-e(r),t-r)}const ud=.001,zA=.01,s0=10,UA=.05,HA=1;function WA({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;gA(e<=Cr(s0));let a=1-t;a=ai(UA,HA,a),e=ai(zA,s0,Er(e)),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,g=Qh(u,a),S=Math.exp(-f);return ud-d/g*S},o=u=>{const f=u*a*e,d=f*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,S=Math.exp(-f),p=Qh(Math.pow(u,2),a);return(-i(u)+ud>0?-1:1)*((d-g)*S)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-ud+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=GA(i,o,s);if(e=Cr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const KA=12;function GA(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!l0(e,XA)&&l0(e,qA)){const n=WA(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wC({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=YA({...r,velocity:-Er(r.velocity||0)}),g=f||0,S=l/(2*Math.sqrt(s*u)),p=o-i,m=Er(Math.sqrt(s/u)),h=Math.abs(p)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let y;if(S<1){const v=Qh(m,S);y=x=>{const E=Math.exp(-S*m*x);return o-E*((g+S*m*p)/v*Math.sin(v*x)+p*Math.cos(v*x))}}else if(S===1)y=v=>o-Math.exp(-m*v)*(p+(g+m*p)*v);else{const v=m*Math.sqrt(S*S-1);y=x=>{const E=Math.exp(-S*m*x),b=Math.min(v*x,300);return o-E*((g+S*m*p)*Math.sinh(b)+v*p*Math.cosh(b))/v}}return{calculatedDuration:d&&c||null,next:v=>{const x=y(v);if(d)a.done=v>=c;else{let E=g;v!==0&&(S<1?E=SC(y,v,x):E=0);const b=Math.abs(E)<=n,C=Math.abs(o-x)<=t;a.done=b&&C}return a.value=a.done?o:x,a}}}function u0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=k=>s!==void 0&&kl,S=k=>s===void 0?l:l===void 0||Math.abs(s-k)-p*Math.exp(-k/r),v=k=>h+y(k),x=k=>{const T=y(k),F=v(k);d.done=Math.abs(T)<=u,d.value=d.done?h:F};let E,b;const C=k=>{g(d.value)&&(E=k,b=wC({keyframes:[d.value,S(d.value)],velocity:SC(v,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let T=!1;return!b&&E===void 0&&(T=!0,x(k),C(k)),E!==void 0&&k>=E?b.next(k-E):(!T&&x(k),d)}}}const bC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QA=1e-7,JA=12;function ZA(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=bC(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>QA&&++sZA(o,0,1,e,n);return o=>o===0||o===1?o:bC(i(o),t,r)}const eF=Xs(.42,0,1,1),tF=Xs(0,0,.58,1),xC=Xs(.42,0,.58,1),nF=e=>Array.isArray(e)&&typeof e[0]!="number",CC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EC=e=>t=>1-e(1-t),wv=e=>1-Math.sin(Math.acos(e)),kC=EC(wv),rF=CC(wv),PC=Xs(.33,1.53,.69,.99),bv=EC(PC),iF=CC(bv),oF=e=>(e*=2)<1?.5*bv(e):.5*(2-Math.pow(2,-10*(e-1))),aF={linear:Tt,easeIn:eF,easeInOut:xC,easeOut:tF,circIn:wv,circInOut:rF,circOut:kC,backIn:bv,backInOut:iF,backOut:PC,anticipate:oF},c0=e=>{if(Array.isArray(e)){rC(e.length===4);const[t,n,r,i]=e;return Xs(t,n,r,i)}else if(typeof e=="string")return aF[e];return e},Rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$e=(e,t,n)=>e+(t-e)*n;function cd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=cd(l,s,e+1/3),o=cd(l,s,e),a=cd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lF=[Xh,Oi,ko],uF=e=>lF.find(t=>t.test(e));function f0(e){const t=uF(e);let n=t.parse(e);return t===ko&&(n=sF(n)),n}const d0=(e,t)=>{const n=f0(e),r=f0(t),i={...n};return o=>(i.red=fd(n.red,r.red,o),i.green=fd(n.green,r.green,o),i.blue=fd(n.blue,r.blue,o),i.alpha=$e(n.alpha,r.alpha,o),Oi.transform(i))};function Jh(e,t){return n=>n>0?t:e}function cF(e,t){return n=>$e(e,t,n)}function xv(e){return typeof e=="number"?cF:typeof e=="string"?lv(e)?Jh:_t.test(e)?d0:hF:Array.isArray(e)?TC:typeof e=="object"?_t.test(e)?d0:fF:Jh}function TC(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>xv(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function dF(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=si.createTransformer(t),r=qu(e),i=qu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xr(TC(dF(r,i),i.values),n):Jh(e,t)};function RC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$e(e,t,n):xv(e)(e,t)}function pF(e,t,n){const r=[],i=n||RC,o=e.length-1;for(let a=0;at[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pF(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(ai(e[0],e[o-1],u)):l}function mF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rs(0,t,r);e.push($e(n,1,i))}}function vF(e){const t=[0];return mF(t,e.length-1),t}function gF(e,t){return e.map(n=>n*t)}function yF(e,t){return e.map(()=>t||xC).splice(0,e.length-1)}function Xu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nF(r)?r.map(c0):c0(r),o={done:!1,value:t[0]},a=gF(n&&n.length===t.length?n:vF(t),e),s=MC(a,t,{ease:Array.isArray(i)?i:yF(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const h0=2e4;function SF(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=h0?1/0:t}const wF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Mr(t),now:()=>Ct.isProcessing?Ct.timestamp:ti.now()}},bF={decay:u0,inertia:u0,tween:Xu,keyframes:Xu,spring:wC},xF=e=>e/100;class Cv extends gC{constructor({KeyframeResolver:t=gv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:i,keyframes:o}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=bF[n]||Xu;let l,u;s!==Xu&&typeof t[0]!="number"&&(l=xr(xF,RC(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=SF(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:S,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,x=o;if(g){const k=Math.min(this.currentTime,c)/f;let T=Math.floor(k),F=k%1;!F&&k>=1&&(F=1),F===1&&T--,T=Math.min(T,g+1),!!(T%2)&&(S==="reverse"?(F=1-F,p&&(F-=p/f)):S==="mirror"&&(x=a)),v=ai(0,1,F)*f}const E=y?{done:!1,value:l[0]}:x.next(v);s&&(E.value=s(E.value));let{done:b}=E;!y&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(E.value=Vc(l,this.options,i)),m&&m(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Er(t.calculatedDuration):0}get time(){return Er(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wF,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OC=e=>Array.isArray(e)&&typeof e[0]=="number";function AC(e){return!!(!e||typeof e=="string"&&FC[e]||OC(e)||Array.isArray(e)&&e.every(AC))}const Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function LC(e){if(e)return OC(e)?Na(e):Array.isArray(e)?e.map(LC):FC[e]}function CF(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=LC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const EF=VA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kF=new Set(["opacity","clipPath","filter","transform"]),Yu=10,PF=2e4;function TF(e){return e.type==="spring"||e.name==="backgroundColor"||!AC(e.ease)}function RF(e,t){const n=new Cv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(TF(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,...S}=this.options,p=RF(t,S);t=p.keyframes,t.length===1&&(t[1]=t[0]),i=p.duration,o=p.times,a=p.ease,s="keyframes"}const c=CF(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:a});return c.startTime=ti.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Vc(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Er(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Er(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Cr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Tt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Tt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...f}=this.options,d=new Cv({...f,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),g=Cr(this.time);l.setWithVelocity(d.sample(g-Yu).value,d.sample(g).value,Yu)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return EF()&&r&&kF.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const Ev=(e,t,n,r={},i,o)=>a=>{const s=vv(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Cr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};hA(s)||(c={...c,...dA(e,c)}),c.duration&&(c.duration=Cr(c.duration)),c.repeatDelay&&(c.repeatDelay=Cr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if(c.type===!1&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Vc(c.keyframes,s);if(d!==void 0){yt.update(()=>{c.onUpdate(d),c.onComplete()});return}}return!o&&p0.supports(c)?new p0(c):new Cv(c)};function Qu(e){return!!(kt(e)&&e.add)}function kv(e,t){e.indexOf(t)===-1&&e.push(t)}function Pv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function MF([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&rPv(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e)),Za={current:void 0};class AF{constructor(t,n={}){this.version="11.0.24",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ti.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=OF(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ti.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tv);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Za.current&&Za.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ti.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>m0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,m0);return yC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yo(e,t){return new AF(e,t)}function FF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yo(n))}function LF(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=BO(o[a]);FF(e,a,s)}}function _F({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _C(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const g=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),S=l[d];if(S===void 0||f&&_F(f,d))continue;const p={delay:n,elapsed:0,...vv(a||{},d)};let m=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[Lx];if(y){const v=window.HandoffAppearAnimations(y,d);v!==null&&(p.elapsed=v,m=!0)}}g.start(Ev(d,g,S,e.shouldReduceMotion&&Yi.has(d)?{type:!1}:p,e,m));const h=g.animation;h&&(Qu(u)&&(u.add(d),h.then(()=>u.remove(d))),c.push(h))}return s&&Promise.all(c).then(()=>{yt.update(()=>{s&&LF(e,s)})}),c}function Zh(e,t,n={}){var r;const i=Nc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(_C(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return IF(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function IF(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Zh(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function NF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zh(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zh(e,t,n);else{const i=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(_C(e,i,n))}return r.then(()=>{yt.postRender(()=>{e.notify("AnimationComplete",t)})})}const VF=[...ov].reverse(),jF=ov.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NF(e,n,r)))}function BF(e){let t=$F(e);const n=UF();let r=!0;const i=l=>(u,c)=>{var f;const d=Nc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:S,...p}=d;u={...u,...p,...S}}return u};function o(l){t=l(e)}function a(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let g={},S=1/0;for(let m=0;mS&&x,T=!1;const F=Array.isArray(v)?v:[v];let V=F.reduce(i(h),{});E===!1&&(V={});const{prevResolvedValues:H={}}=y,U={...H,...V},Q=W=>{k=!0,d.has(W)&&(T=!0,d.delete(W)),y.needsAnimating[W]=!0;const _=e.getValue(W);_&&(_.liveStyle=!1)};for(const W in U){const _=V[W],L=H[W];if(g.hasOwnProperty(W))continue;let P=!1;Wh(_)&&Wh(L)?P=!tC(_,L):P=_!==L,P?_!=null?Q(W):d.add(W):_!==void 0&&d.has(W)?Q(W):y.protectedKeys[W]=!0}y.prevProp=v,y.prevResolvedValues=V,y.isActive&&(g={...g,...V}),r&&e.blockInitialAnimation&&(k=!1),k&&(!b||T)&&f.push(...F.map(W=>({animation:W,options:{type:h}})))}if(d.size){const m={};d.forEach(h=>{const y=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),m[h]=y===void 0?null:y}),f.push({animation:m})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function zF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tC(t,e):!1}function yi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UF(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}class HF extends pi{constructor(t){super(t),t.animationState||(t.animationState=BF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),_c(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let WF=0;class KF extends pi{constructor(){super(...arguments),this.id=WF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:HF},exit:{Feature:KF}},v0=(e,t)=>Math.abs(e-t);function qF(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class IC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=hd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=qF(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:S}=f,{timestamp:p}=Ct;this.history.push({...S,timestamp:p});const{onStart:m,onMove:h}=this.handlers;d||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=dd(d,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=hd(f.type==="pointercancel"?this.lastMoveEventInfo:dd(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,m),S&&S(f,m)},!Yx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Dc(t),s=dd(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ct;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hd(s,this.history)),this.removeListeners=xr(br(this.contextWindow,"pointermove",this.handlePointerMove),br(this.contextWindow,"pointerup",this.handlePointerUp),br(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function dd(e,t){return t?{point:t(e.point)}:e}function g0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hd({point:e},t){return{point:e,delta:g0(e,DC(t)),offset:g0(e,XF(t)),velocity:YF(t,.1)}}function XF(e){return e[0]}function DC(e){return e[e.length-1]}function YF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=DC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cr(t)));)n--;if(!r)return{x:0,y:0};const o=Er(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dn(e){return e.max-e.min}function ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function y0(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=dn(n)/dn(t),(ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){y0(e.x,t.x,n.x,r?r.originX:void 0),y0(e.y,t.y,n.y,r?r.originY:void 0)}function S0(e,t,n){e.min=n.min+t.min,e.max=e.min+dn(t)}function QF(e,t,n){S0(e.x,t.x,n.x),S0(e.y,t.y,n.y)}function w0(e,t,n){e.min=t.min-n.min,e.max=e.min+dn(t)}function ts(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function JF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function b0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZF(e,{top:t,left:n,bottom:r,right:i}){return{x:b0(e.x,n,i),y:b0(e.y,t,r)}}function x0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Rs(t.min,t.max-r,e.min):r>i&&(n=Rs(e.min,e.max-i,t.min)),ai(0,1,n)}function nL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tp=.35;function rL(e=tp){return e===!1?e=0:e===!0&&(e=tp),{x:C0(e,"left","right"),y:C0(e,"top","bottom")}}function C0(e,t,n){return{min:E0(e,t),max:E0(e,n)}}function E0(e,t){return typeof e=="number"?e:e[t]||0}const k0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:k0(),y:k0()}),P0=()=>({min:0,max:0}),Ze=()=>({x:P0(),y:P0()});function yn(e){return[e("x"),e("y")]}function NC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pd(e){return e===void 0||e===1}function np({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function bi(e){return np(e)||VC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function VC(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function Ju(e,t,n){const r=e-n,i=t*r;return n+i}function R0(e,t,n,r,i){return i!==void 0&&(e=Ju(e,i,r)),Ju(e,n,r)+t}function rp(e,t=0,n=1,r,i){e.min=R0(e.min,t,n,r,i),e.max=R0(e.max,t,n,r,i)}function jC(e,{x:t,y:n}){rp(e.x,t.translate,t.scale,t.originPoint),rp(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function O0(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=$e(e.min,e.max,o);rp(e,t[n],t[r],a,t.scale)}const sL=["x","scaleX","originX"],lL=["y","scaleY","originY"];function To(e,t){O0(e.x,t,sL),O0(e.y,t,lL)}function $C(e,t){return NC(oL(e.getBoundingClientRect(),t))}function uL(e,t,n){const r=$C(e,n),{scroll:i}=t;return i&&(jr(r.x,i.offset.x),jr(r.y,i.offset.y)),r}const BC=({current:e})=>e?e.ownerDocument.defaultView:null,cL=new WeakMap;class fL{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:S}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jx(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(m=>{let h=this.getAxisMotionValue(m).get()||0;if(or.test(h)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[m];v&&(h=dn(v)*(parseFloat(h)/100))}}this.originPoint[m]=h}),S&&S(c,f);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:S,onDrag:p}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:m}=f;if(g&&this.currentDirection===null){this.currentDirection=dL(m),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),p&&p(c,f)},s=(c,f)=>this.stop(c,f),l=()=>yn(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new IC(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:BC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ol(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=JF(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ZF(i.layoutBox,n):this.constraints=!1,this.elastic=rL(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=nL(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Eo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=uL(r,i.root,this.visualElement.getTransformPagePoint());let a=eL(i.layout.layoutBox,o);if(n){const s=n(iL(a));this.hasMutatedConstraints=!!s,s&&(a=NC(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=yn(c=>{if(!Ol(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,S={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,S)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ev(t,r,0,n,this.visualElement))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ol(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-$e(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Eo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();i[a]=tL({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(a=>{if(!Ol(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set($e(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;cL.set(this.visualElement,this);const t=this.visualElement.current,n=br(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Eo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=yr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(yn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=tp,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hL extends pi{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new fL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const A0=e=>(t,n)=>{e&&e(t,n)};class pL extends pi{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new IC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:A0(t),onStart:A0(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&i(o,a)}}}mount(){this.removePointerDownListener=br(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mL(){const e=w.useContext(tv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function F0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=F0(e,t.target.x),r=F0(e,t.target.y);return`${n}% ${r}%`}},vL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=si.parse(e);if(i.length>5)return r;const o=si.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=$e(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class gL extends qe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;gO(yL),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||yt.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zC(e){const[t,n]=mL(),r=w.useContext(Dx);return qe.createElement(gL,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Nx),isPresent:t,safeToRemove:n})}const yL={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:vL},UC=["TopLeft","TopRight","BottomLeft","BottomRight"],SL=UC.length,L0=e=>typeof e=="string"?parseFloat(e):e,_0=e=>typeof e=="number"||ue.test(e);function wL(e,t,n,r,i,o){i?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,bL(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,xL(r))):o&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Rs(e,t,r))}function D0(e,t){e.min=t.min,e.max=t.max}function vn(e,t){D0(e.x,t.x),D0(e.y,t.y)}function N0(e,t,n,r,i){return e-=t,e=Ju(e,1/n,r),i!==void 0&&(e=Ju(e,1/i,r)),e}function CL(e,t=0,n=1,r=.5,i,o=e,a=e){if(or.test(t)&&(t=parseFloat(t),t=$e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=$e(o.min,o.max,r);e===o&&(s-=t),e.min=N0(e.min,t,n,s,i),e.max=N0(e.max,t,n,s,i)}function V0(e,t,[n,r,i],o,a){CL(e,t[n],t[r],t[i],t.scale,o,a)}const EL=["x","scaleX","originX"],kL=["y","scaleY","originY"];function j0(e,t,n,r){V0(e.x,t,EL,n?n.x:void 0,r?r.x:void 0),V0(e.y,t,kL,n?n.y:void 0,r?r.y:void 0)}function $0(e){return e.translate===0&&e.scale===1}function WC(e){return $0(e.x)&&$0(e.y)}function PL(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function KC(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function B0(e){return dn(e.x)/dn(e.y)}class TL{constructor(){this.members=[]}add(t){kv(this.members,t),t.scheduleRender()}remove(t){if(Pv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:c,rotateY:f,skewX:d,skewY:g}=n;u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const RL=(e,t)=>e.depth-t.depth;class ML{constructor(){this.children=[],this.isDirty=!1}add(t){kv(this.children,t),this.isDirty=!0}remove(t){Pv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RL),this.isDirty=!1,this.children.forEach(t)}}function OL(e,t){const n=ti.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Mr(r),e(o-t))};return yt.read(r,!0),()=>Mr(r)}function AL(e){window.MotionDebug&&window.MotionDebug.record(e)}function FL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LL(e,t,n){const r=kt(e)?e:Yo(e);return r.start(Ev("",r,t,n)),r.animation}const md=["","X","Y","Z"],_L={visibility:"hidden"},U0=1e3;let IL=0;const xi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function GC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=IL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xi.totalNodes=xi.resolvedTargetDeltas=xi.recalculatedProjection=0,this.nodes.forEach(VL),this.nodes.forEach(UL),this.nodes.forEach(HL),this.nodes.forEach(jL),AL(xi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=OL(d,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||XL,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=c.getProps(),y=!this.targetLayout||!KC(this.targetLayout,S)||g,v=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const x={...vv(p,"layout"),onPlay:m,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||W0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WL),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach($L),this.sharedNodes.forEach(KL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=x/1e3;K0(f.x,a.x,E),K0(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GL(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&PL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ze()),vn(v,this.relativeTarget)),p&&(this.animationValues=c,wL(c,u,this.latestValues,E,y,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{au.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,U0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&qC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ze();const f=dn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=dn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}vn(s,l),To(s,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TL),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&vd("z",a,u,this.animationValues);for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H0),this.root.sharedNodes.clear()}}}function DL(e){e.updateLayout()}function NL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(d);d.min=r[f].min,d.max=d.min+g}):qC(o,n.layoutBox,r)&&yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const s=Po();es(s,r,n.layoutBox);const l=Po();a?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!WC(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const S=Ze();ts(S,n.layoutBox,d.layoutBox);const p=Ze();ts(p,r,g.layoutBox),KC(S,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VL(e){xi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $L(e){e.clearSnapshot()}function H0(e){e.clearMeasurements()}function BL(e){e.isLayoutDirty=!1}function zL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UL(e){e.resolveTargetDelta()}function HL(e){e.calcProjection()}function WL(e){e.resetSkewAndRotation()}function KL(e){e.removeLeadSnapshot()}function K0(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function G0(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function GL(e,t,n,r){G0(e.x,t.x,n.x,r),G0(e.y,t.y,n.y,r)}function qL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XL={duration:.45,ease:[.4,0,.1,1]},q0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),X0=q0("applewebkit/")&&!q0("chrome/")?Math.round:Tt;function Y0(e){e.min=X0(e.min),e.max=X0(e.max)}function YL(e){Y0(e.x),Y0(e.y)}function qC(e,t,n){return e==="position"||e==="preserve-aspect"&&!ep(B0(t),B0(n),.2)}const QL=GC({attachResizeListener:(e,t)=>yr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gd={current:void 0},XC=GC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gd.current){const e=new QL({});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JL={pan:{Feature:pL},drag:{Feature:hL,ProjectionNode:XC,MeasureLayout:zC}},ip={current:null},YC={current:!1};function ZL(){if(YC.current=!0,!!nv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ip.current=e.matches;e.addListener(t),t()}else ip.current=!1}function e_(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(kt(o))e.addValue(i,o),Qu(r)&&r.add(i);else if(kt(a))e.addValue(i,Yo(o,{owner:e})),Qu(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Yo(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Q0=new WeakMap,t_=[...sC,_t,si],n_=e=>t_.find(aC(e)),QC=Object.keys(Ts),r_=QC.length,J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i_=av.length;class o_{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(d,g,S,p)=>new this.KeyframeResolver(d,g,S,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>yt.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Ic(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&kt(g)&&(g.set(l[d],!1),Qu(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n,r){return{}}mount(t){this.current=t,Q0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),YC.current||ZL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ip.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Q0.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Yi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:g})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(iC(i)||nC(i))?i=parseFloat(i):!n_(i)&&si.test(n)&&(i=mC(t,n)),this.setBaseTarget(t,kt(i)?i.get():i)),kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n,r;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(r=mv(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom))===null||r===void 0?void 0:r[t]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!kt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class JC extends o_{constructor(){super(...arguments),this.KeyframeResolver=vC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function a_(e){return window.getComputedStyle(e)}class s_ extends JC{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}else{const r=a_(t),i=($x(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $C(t,n)}build(t,n,r,i){cv(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return pv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Wx(t,n,r,i)}}class l_ extends JC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}return n=Kx.has(n)?n:rv(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ze()}scrapeMotionValuesFromProps(t,n){return qx(t,n,this)}build(t,n,r,i){dv(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Gx(t,n,r,i)}mount(t){this.isSVGTag=hv(t.tagName),super.mount(t)}}const u_=(e,t)=>sv(e)?new l_(t,{enableHardwareAcceleration:!1}):new s_(t,{enableHardwareAcceleration:!0}),c_={layout:{ProjectionNode:XC,MeasureLayout:zC}},f_={...GF,...oA,...JL,...c_},ZC=mO((e,t)=>KO(e,t,f_,u_)),eE=w.createContext(null);function d_(e,t,n,r){if(!r)return e;const i=e.findIndex(c=>c.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const s=e[i],l=a.layout,u=$e(l.min,l.max,.5);return o===1&&s.layout.max+n>u||o===-1&&s.layout.min+nZC(t)),l=[],u=w.useRef(!1),c={axis:n,registerItem:(f,d)=>{const g=l.findIndex(S=>f===S.value);g!==-1?l[g].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(v_)},updateOrder:(f,d,g)=>{if(u.current)return;const S=d_(l,f,d,g);l!==S&&(u.current=!0,r(S.map(m_).filter(p=>i.indexOf(p)!==-1)))}};return w.useEffect(()=>{u.current=!1}),w.createElement(s,{...o,ref:a,ignoreStrict:!0},w.createElement(eE.Provider,{value:c},e))}const p_=w.forwardRef(h_);function m_(e){return e.value}function v_(e,t){return e.layout.min-t.layout.min}function tE(e){const t=qs(()=>Yo(e)),{isStatic:n}=w.useContext(ev);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const g_=e=>e&&typeof e=="object"&&e.mix,y_=e=>g_(e)?e.mix:void 0;function S_(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],s=MC(i,o,{mixer:y_(o[0]),...a});return t?s(r):s}function nE(e,t){const n=tE(t()),r=()=>n.set(t());return r(),Ax(()=>{const i=()=>yt.update(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Mr(r)}}),n}function w_(e){Za.current=[],e();const t=nE(Za.current,e);return Za.current=void 0,t}function b_(e,t,n,r){if(typeof e=="function")return w_(e);const i=typeof t=="function"?t:S_(t,n,r);return Array.isArray(e)?Z0(e,i):Z0([e],([o])=>i(o))}function Z0(e,t){const n=qs(()=>[]);return nE(e,()=>{n.length=0;const r=e.length;for(let i=0;iZC(r)),u=w.useContext(eE),c={x:e1(t.x),y:e1(t.y)},f=b_([c.x,c.y],([p,m])=>p||m?1:"unset"),{axis:d,registerItem:g,updateOrder:S}=u;return w.createElement(l,{drag:d,...a,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:f},layout:o,onDrag:(p,m)=>{const{velocity:h}=m;h[d]&&S(n,c[d].get(),h[d]),i&&i(p,m)},onLayoutMeasure:p=>g(n,p),ref:s,ignoreStrict:!0},e)}const C_=w.forwardRef(x_),t1={Group:p_,Item:C_},E_="_heading_8v9q8_1",k_="_maintainerContainer_8v9q8_6",P_="_contributor_8v9q8_10",T_="_contributionContainer_8v9q8_15",Va={heading:E_,maintainerContainer:k_,contributor:P_,contributionContainer:T_};function yd({username:e,avatar:t}){return M.jsx("a",{href:`https://github.com/${e}`,title:e,className:Va.contributor,target:"_blank",rel:"noreferrer",children:M.jsx("img",{src:`https://avatars.githubusercontent.com/u/${t}`,alt:e,loading:"lazy"})})}const R_=[{username:"sadanandpai",avatar:"12962887"},{username:"arpansaha13",avatar:"82361490"}];function rE(e,t){return function(){return e.apply(t,arguments)}}const{toString:M_}=Object.prototype,{getPrototypeOf:Rv}=Object,jc=(e=>t=>{const n=M_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>jc(t)===e),$c=e=>t=>typeof t===e,{isArray:sa}=Array,Ms=$c("undefined");function O_(e){return e!==null&&!Ms(e)&&e.constructor!==null&&!Ms(e.constructor)&&un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iE=Gn("ArrayBuffer");function A_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iE(e.buffer),t}const F_=$c("string"),un=$c("function"),oE=$c("number"),Bc=e=>e!==null&&typeof e=="object",L_=e=>e===!0||e===!1,su=e=>{if(jc(e)!=="object")return!1;const t=Rv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},__=Gn("Date"),I_=Gn("File"),D_=Gn("Blob"),N_=Gn("FileList"),V_=e=>Bc(e)&&un(e.pipe),j_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||un(e.append)&&((t=jc(e))==="formdata"||t==="object"&&un(e.toString)&&e.toString()==="[object FormData]"))},$_=Gn("URLSearchParams"),[B_,z_,U_,H_]=["ReadableStream","Request","Response","Headers"].map(Gn),W_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sE=e=>!Ms(e)&&e!==Ai;function op(){const{caseless:e}=sE(this)&&this||{},t={},n=(r,i)=>{const o=e&&aE(t,i)||i;su(t[o])&&su(r)?t[o]=op(t[o],r):su(r)?t[o]=op({},r):sa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ys(t,(i,o)=>{n&&un(i)?e[o]=rE(i,n):e[o]=i},{allOwnKeys:r}),e),G_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X_=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Rv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Q_=e=>{if(!e)return null;if(sa(e))return e;let t=e.length;if(!oE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rv(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},eI=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tI=Gn("HTMLFormElement"),nI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),n1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rI=Gn("RegExp"),lE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ys(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},iI=e=>{lE(e,(t,n)=>{if(un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oI=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return sa(e)?r(e):r(String(e).split(t)),n},aI=()=>{},sI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Sd="abcdefghijklmnopqrstuvwxyz",r1="0123456789",uE={DIGIT:r1,ALPHA:Sd,ALPHA_DIGIT:Sd+Sd.toUpperCase()+r1},lI=(e=16,t=uE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uI(e){return!!(e&&un(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cI=e=>{const t=new Array(10),n=(r,i)=>{if(Bc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=sa(r)?[]:{};return Ys(r,(a,s)=>{const l=n(a,i+1);!Ms(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},fI=Gn("AsyncFunction"),dI=e=>e&&(Bc(e)||un(e))&&un(e.then)&&un(e.catch),cE=((e,t)=>e?setImmediate:t?((n,r)=>(Ai.addEventListener("message",({source:i,data:o})=>{i===Ai&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",un(Ai.postMessage)),hI=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||cE,D={isArray:sa,isArrayBuffer:iE,isBuffer:O_,isFormData:j_,isArrayBufferView:A_,isString:F_,isNumber:oE,isBoolean:L_,isObject:Bc,isPlainObject:su,isReadableStream:B_,isRequest:z_,isResponse:U_,isHeaders:H_,isUndefined:Ms,isDate:__,isFile:I_,isBlob:D_,isRegExp:rI,isFunction:un,isStream:V_,isURLSearchParams:$_,isTypedArray:J_,isFileList:N_,forEach:Ys,merge:op,extend:K_,trim:W_,stripBOM:G_,inherits:q_,toFlatObject:X_,kindOf:jc,kindOfTest:Gn,endsWith:Y_,toArray:Q_,forEachEntry:Z_,matchAll:eI,isHTMLForm:tI,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:lE,freezeMethods:iI,toObjectSet:oI,toCamelCase:nI,noop:aI,toFiniteNumber:sI,findKey:aE,global:Ai,isContextDefined:sE,ALPHABET:uE,generateString:lI,isSpecCompliantForm:uI,toJSONObject:cI,isAsyncFn:fI,isThenable:dI,setImmediate:cE,asap:hI};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fE=me.prototype,dE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dE[e]={value:e}});Object.defineProperties(me,dE);Object.defineProperty(fE,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const a=Object.create(fE);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),me.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pI=null;function ap(e){return D.isPlainObject(e)||D.isArray(e)}function hE(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function i1(e,t,n){return e?e.concat(t).map(function(i,o){return i=hE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function mI(e){return D.isArray(e)&&!e.some(ap)}const vI=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function zc(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!D.isUndefined(m[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(S){if(S===null)return"";if(D.isDate(S))return S.toISOString();if(!l&&D.isBlob(S))throw new me("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(S)||D.isTypedArray(S)?l&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,p,m){let h=S;if(S&&!m&&typeof S=="object"){if(D.endsWith(p,"{}"))p=r?p:p.slice(0,-2),S=JSON.stringify(S);else if(D.isArray(S)&&mI(S)||(D.isFileList(S)||D.endsWith(p,"[]"))&&(h=D.toArray(S)))return p=hE(p),h.forEach(function(v,x){!(D.isUndefined(v)||v===null)&&t.append(a===!0?i1([p],x,o):a===null?p:p+"[]",u(v))}),!1}return ap(S)?!0:(t.append(i1(m,p,o),u(S)),!1)}const f=[],d=Object.assign(vI,{defaultVisitor:c,convertValue:u,isVisitable:ap});function g(S,p){if(!D.isUndefined(S)){if(f.indexOf(S)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(S),D.forEach(S,function(h,y){(!(D.isUndefined(h)||h===null)&&i.call(t,h,D.isString(y)?y.trim():y,p,d))===!0&&g(h,p?p.concat(y):[y])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function o1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mv(e,t){this._pairs=[],e&&zc(e,this,t)}const pE=Mv.prototype;pE.append=function(t,n){this._pairs.push([t,n])};pE.toString=function(t){const n=t?function(r){return t.call(this,r,o1)}:o1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mE(e,t,n){if(!t)return e;const r=n&&n.encode||gI,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Mv(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class yI{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a1=yI,vE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SI=typeof URLSearchParams<"u"?URLSearchParams:Mv,wI=typeof FormData<"u"?FormData:null,bI=typeof Blob<"u"?Blob:null,xI={isBrowser:!0,classes:{URLSearchParams:SI,FormData:wI,Blob:bI},protocols:["http","https","file","blob","url","data"]},Ov=typeof window<"u"&&typeof document<"u",CI=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EI=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kI=Ov&&window.location.href||"http://localhost",PI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserEnv:CI,hasStandardBrowserWebWorkerEnv:EI,origin:kI},Symbol.toStringTag,{value:"Module"})),Bn={...PI,...xI};function TI(e,t){return zc(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Bn.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RI(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MI(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=MI(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(RI(r),i,n,0)}),n}return null}function OI(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:vE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(gE(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TI(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),OI(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?me.from(s,me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});const Fv=Av,AI=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FI=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&AI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},s1=Symbol("internals");function Ta(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:D.isArray(e)?e.map(lu):String(e)}function LI(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const _I=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wd(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function II(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function DI(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Uc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Ta(l);if(!c)throw new Error("header name must be a non-empty string");const f=D.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=lu(s))}const a=(s,l)=>D.forEach(s,(u,c)=>o(u,c,l));if(D.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(D.isString(t)&&(t=t.trim())&&!_I(t))a(FI(t),n);else if(D.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ta(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return LI(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ta(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Ta(a),a){const s=D.findKey(r,a);s&&(!n||wd(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||wd(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=lu(i),delete n[o];return}const s=t?II(o):String(o).trim();s!==o&&delete n[o],n[s]=lu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[s1]=this[s1]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Ta(a);r[s]||(DI(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}}Uc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Uc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Uc);const zn=Uc;function bd(e,t){const n=this||Fv,r=t||n,i=zn.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function yE(e){return!!(e&&e.__CANCEL__)}function la(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(la,me,{__CANCEL__:!0});function SE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function VI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const Zu=(e,t,n=3)=>{let r=0;const i=VI(50,250);return jI(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},l1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},u1=e=>(...t)=>D.asap(()=>e(...t)),$I=Bn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),BI=Bn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wE(e,t){return e&&!zI(t)?UI(e,t):t}const c1=e=>e instanceof zn?{...e}:e;function Ki(e,t){t=t||{};const n={};function r(u,c,f){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:f},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,f){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!D.isUndefined(c))return r(void 0,c)}function a(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(c1(u),c1(c),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);D.isUndefined(d)&&f!==s||(n[c]=d)}),n}const bE=e=>{const t=Ki({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=zn.from(a),t.url=mE(wE(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(D.isFormData(n)){if(Bn.hasStandardBrowserEnv||Bn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Bn.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&$I(t.url))){const u=i&&o&&BI.read(o);u&&a.set(i,u)}return t},HI=typeof XMLHttpRequest<"u",WI=HI&&function(e){return new Promise(function(n,r){const i=bE(e);let o=i.data;const a=zn.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,g,S;function p(){g&&g(),S&&S(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function h(){if(!m)return;const v=zn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};SE(function(C){n(C),p()},function(C){r(C),p()},E),m=null}"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(h)},m.onabort=function(){m&&(r(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||vE;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new me(x,E.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&D.forEach(a.toJSON(),function(x,E){m.setRequestHeader(E,x)}),D.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([d,S]=Zu(u,!0),m.addEventListener("progress",d)),l&&m.upload&&([f,g]=Zu(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(c=v=>{m&&(r(!v||v.type?new la(null,e,m):v),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=NI(i.url);if(y&&Bn.protocols.indexOf(y)===-1){r(new me("Unsupported protocol "+y+":",me.ERR_BAD_REQUEST,e));return}m.send(o||null)})},KI=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof me?u:new la(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{i(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},GI=KI,qI=function*(e,t){let n=e.byteLength;if(!t||n{const o=XI(e,t,i);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await o.next();if(c){l(),u.close();return}let d=f.byteLength;if(n){let g=a+=d;n(g)}u.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},Hc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xE=Hc&&typeof ReadableStream=="function",sp=Hc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),CE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YI=xE&&CE(()=>{let e=!1;const t=new Request(Bn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d1=64*1024,lp=xE&&CE(()=>D.isReadableStream(new Response("").body)),ec={stream:lp&&(e=>e.body)};Hc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ec[t]&&(ec[t]=D.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new me(`Response type '${t}' is not supported`,me.ERR_NOT_SUPPORT,r)})})})(new Response);const QI=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await sp(e)).byteLength},JI=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??QI(t)},ZI=Hc&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=bE(e);u=u?(u+"").toLowerCase():"text";let[g,S]=i||o||a?GI([i,o],a):[],p,m;const h=()=>{!p&&setTimeout(()=>{g&&g.unsubscribe()}),p=!0};let y;try{if(l&&YI&&n!=="get"&&n!=="head"&&(y=await JI(c,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(D.isFormData(r)&&(C=b.headers.get("content-type"))&&c.setContentType(C),b.body){const[k,T]=l1(y,Zu(u1(l)));r=f1(b.body,d1,k,T,sp)}}D.isString(f)||(f=f?"include":"omit"),m=new Request(t,{...d,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f});let v=await fetch(m);const x=lp&&(u==="stream"||u==="response");if(lp&&(s||x)){const b={};["status","statusText","headers"].forEach(F=>{b[F]=v[F]});const C=D.toFiniteNumber(v.headers.get("content-length")),[k,T]=s&&l1(C,Zu(u1(s),!0))||[];v=new Response(f1(v.body,d1,k,()=>{T&&T(),x&&h()},sp),b)}u=u||"text";let E=await ec[D.findKey(ec,u)||"text"](v,e);return!x&&h(),S&&S(),await new Promise((b,C)=>{SE(b,C,{data:E,headers:zn.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:m})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,e,m),{cause:v.cause||v}):me.from(v,v&&v.code,e,m)}}),up={http:pI,xhr:WI,fetch:ZI};D.forEach(up,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const h1=e=>`- ${e}`,eD=e=>D.isFunction(e)||e===null||e===!1,EE={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(h1).join(` `):" "+h1(o[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:up};function xd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new la(null,e)}function p1(e){return xd(e),e.headers=zn.from(e.headers),e.data=bd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),EE.getAdapter(e.adapter||Fv.adapter)(e).then(function(r){return xd(e),r.data=bd.call(e,e.transformResponse,r),r.headers=zn.from(r.headers),r},function(r){return yE(r)||(xd(e),r&&r.response&&(r.response.data=bd.call(e,e.transformResponse,r.response),r.response.headers=zn.from(r.response.headers))),Promise.reject(r)})}const kE="1.7.4",Lv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const m1={};Lv.transitional=function(t,n,r){function i(o,a){return"[Axios v"+kE+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new me(i(a," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!m1[a]&&(m1[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function tD(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new me("option "+o+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const cp={assertOptions:tD,validators:Lv},_r=cp.validators;class tc{constructor(t){this.defaults=t,this.interceptors={request:new a1,response:new a1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:cp.assertOptions(i,{encode:_r.function,serialize:_r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&D.merge(o.common,o[n.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const S=[p1.bind(this),void 0];for(S.unshift.apply(S,s),S.push.apply(S,u),d=S.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new la(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _v(function(i){t=i}),cancel:t}}}const nD=_v;function rD(e){return function(n){return e.apply(null,n)}}function iD(e){return D.isObject(e)&&e.isAxiosError===!0}const fp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fp).forEach(([e,t])=>{fp[t]=e});const oD=fp;function PE(e){const t=new uu(e),n=rE(uu.prototype.request,t);return D.extend(n,uu.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return PE(Ki(e,i))},n}const lt=PE(Fv);lt.Axios=uu;lt.CanceledError=la;lt.CancelToken=nD;lt.isCancel=yE;lt.VERSION=kE;lt.toFormData=zc;lt.AxiosError=me;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=rD;lt.isAxiosError=iD;lt.mergeConfig=Ki;lt.AxiosHeaders=zn;lt.formToJSON=e=>gE(D.isHTMLForm(e)?new FormData(e):e);lt.getAdapter=EE.getAdapter;lt.HttpStatusCode=oD;lt.default=lt;const aD=lt;async function sD(){return(await aD.get("https://api.github.com/repos/sadanandpai/frontend-mini-challenges/contributors?per_page=1000")).data.map(t=>{var n,r;return{username:t.login,avatar:((r=(n=t.avatar_url)==null?void 0:n.match(/\d+/))==null?void 0:r[0])??""}})}function lD(){const[e,t]=w.useState([]),[n]=w.useState(R_);return w.useEffect(()=>{sD().then(r=>t(r.slice(2)))},[]),w.useEffect(()=>{const r=setInterval(()=>t(i=>i.map(o=>o).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(r)}},[]),O.jsxs(O.Fragment,{children:[O.jsx("h2",{className:Va.heading,id:"contributors",children:"Contributors"}),O.jsxs("section",{className:Va.maintainerContainer,children:[O.jsx(yd,{...n[0]},n[0].username),O.jsx(yd,{...n[1]},n[1].username)]}),O.jsx(t1.Group,{axis:"y",onReorder:t,values:e,className:Va.contributionContainer,children:e.map(r=>O.jsx(t1.Item,{value:r.username,className:Va.listContributor,children:O.jsx(yd,{...r},r.username)},r.username))})]})}const uD="_heading_1m5el_1",cD="_features_1m5el_6",v1={heading:uD,features:cD},fD=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function dD(){return O.jsxs("section",{id:"whyUs",children:[O.jsx("h2",{className:v1.heading,children:"Why Us?"}),O.jsx("div",{className:v1.features,children:fD.map((e,t)=>O.jsxs("article",{children:[O.jsx("h3",{children:e.title}),O.jsx("p",{children:e.info})]},t))})]})}const hD="_footer_1l7qe_1",pD={footer:hD};function mD(){const e=new Date().getFullYear();return O.jsxs("footer",{className:pD.footer,children:["Copyright © ",e]})}const Iv="/frontend-mini-challenges/assets/css-NOfCHX53.png",Dv="/frontend-mini-challenges/assets/angular-3fNDZm1N.png",Nv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAgVBMVEXw208yMzDw2kjz4nTy3U/24FAiJi8pLC+5qkXo1E1zbDkwMTAnKi9aVjUtLzDs104AACz75VEWHS4eIy4RGS2XjD+mmUGNgz3j0E1WUjXAsEbUwkqvoUODejwAEC1JRzNBQDLKuUgACCw7OzFPTDRjXjcKFS17czugk0BsZjjbyUs9K7YPAAAIX0lEQVR4nO2c25aqOBCGYSZFQBDkDAIKIqi8/wMOuNvdSsLBQy+qZ+W/6YvGkC+HSlUlQZL+N/rn36Vr8EEJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWCVgsErAYJWAwSoBg1UCBqsEDFYJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWPXDMITVrB8BgG0DkO5P93fOz5bomYlqdfW2EtVfxaVuGnp5rLKgiKRZzfCjMLCN1z3FoTVWKUKsRj2Vh52jGNTsRA3XO3ixfwWaeN/Pwqiu0ZN30YarREDbhmXtmnJPuuF46yCxYBznh2Go3quWshqGAWt70h2G5EuGs/eTcRpEMHaSlW7/+XtRNw4kGHkfGhhiBzE7vvq9Y64ae/h9WGCIHZrGBEor3T0mwzRIYAicjKlu+eqcvBikwQFDIDPGZsu96DANChgC4ejM7/dNMmAFUMBAKs8bY19lVA2fBgMMJLHyBIssuxnfiiCAIVboPMUim3rKdW0wwBTlM4PsWkqc4IQhVvZkx7RyuAMNAUxi8i0ZVVxXYQq4ynBCpDBBzamu7tT5KstOsVKzjoGTqxrvfYvDEGnNcWMUI0ys6/8jdV3Txx7zTg0/tFkeptlxWNaNfQuzAdTyznLrbrm1BxzvxWEgZWGMyrr3WGztb+fpVMkIXt8MMrfPope9FR6s6s9D1IwHu0VCAGOzU8YN+20PWt4+pSv70BoJZ5aHAdYtqyOm8e1C0Q15VSAPm4Hxl3Wd0/rgb+IgQp7QIJLX7xi658CQKEyWTjXNgGGWTC6MRLTpLODyMF7/EZM3zCYzoZ2WhpHAYbyv3ZyK87Q8DGvNnGDM/o5ocRjOOmOWL3bN4jBwYjwAmZ5eo1keJmBsc+uBhVNLCleLw5CC4zWbxqkgY1llvpaHiXiBpq7E5+c7Z3kYacXNMxlyFWgjHjJPi8NIROWMs65zDDk+a/Yzgw0BTJNTLk1rB/Q8bJ7AQQBj+byMxh8cUzEuiT138iwPI0GyH+iaK4+yOarWvL1zBDBEOrPr5r2MgxzM2GtGASNBc5lInJs72Z/ca8YBI8F2yAZ84zi5X0jII82rCAmmN2io+0u2zokVKtNbZ1RZtwvPyPtwwHQ0rL/JytArFXPe7EuE+JsZNK1bECLOaN5EIN1MWYFOphEPngRAA9MdN5FnTJzOBR0aaohgJLAyyt9cehQ1AqRbGvcioK7NGWONKmduXI0KRiJ25MfGNI5pBDwaXDDtTyDxY2/ySBCVt5zIABtMh1P4sTN1ykHZN2w5+GDamUOSYO2Me9Kyc2G7BiFMhyNF25U7eMLxqlpllhuUMNcDwVYSOkxS/U60/C0wUscDxHcPw6bNSfs0eGE62ZDuBw5ptPY5/10w7cIDaiXzcXSz6NkA5DAdDkkrvltg9nel0cNc3YLzkWeo6brnov0CmLYcu6g4x7jMfe/ww6+AaS1Bc2FpzHz7K2EkaNhMoS6fHyfNb4GRiMomCWiIFmYckkQx40sbJ6Qwrc0aTfcTy2dmjbL6CZiBvDaojCc/lGoiVrhhPceHJ1JmnCmXz5vmlmTbX4yvgpRtTN5GMiFaKnvmfrRviMrpmY/DgJRkmzVvyJOAA8M8113Oqjw6tWPOhfmwaSbQBLkjmwHbqu3QYRZuJes/B1KR6dfnTPk8vG9BpDMzzIwPw4ClXpSuVWP26gRpLowBov7jY8Ru/P0tCqO5OpgZJxq7kUuzTxoAAkX2dbSVZsydRVIwuX1dfjwXY1vBWvleDY29OtQ3pGC32Pue5lswtuXvbxeSTDnotWprTJlRZrZt//0E2NuL/tDeRp7y+4ZIFdMx/ZZ5B4bY6lH/blVa9jwlSEwmiL8fje0IO5X9C01U94Fj04jNOWJj5sWn5oytXR6DQPp4ehoszq0Yo/o7GNsZLXPumZnGMWF2y22oODEAPVqfMc2EnN1+Xc06lOB2UNxuSt7776YsBJSbfqGb6275twBShZdHo6vPBGckWdecWLY2zolmWZbWbFe8DQq9vFvlefbpj5TD3i8iS7I6RUUo11xqs5/ReBEGiiM/kq3rMl7Hubvj1rNd5O8Ghr3NhzJj1NnR/eWUrS5HYzeQPzPLvv18tWfAH0yaUIM/fOS+mztSiHw99q+4ymBuhncw/dU5A816zj5XH+bR/IBWzbg1OwTrMq7cy9bMTvX5VytvLFVvywuSyQMAg6qZjnkdhkinp1t1w7g8UIxlYMdEmRnzzjoD0bOt6vRNqdR18JxNZo5qzgbNGx4AFM/Vw3S5N4HTzSt9c/A5Ttw7vpm9fYZGP3ADOALq7vl5U7Nu7Zsw7RjxZl8X1b2+I3qjsQvGQ5sqyz1ZvIZ5LwQAVZ7ZqqbhD4aRkFSDKxO3LBpq3AD73Xhme5z1UQIq+yOfaAEtzGedZ+ikG/mZ2y9vR5oEkpM+aaJ15ZiOfm4GYLsy5908p8plOxSOvp0DgCg4OuNjTVFOE5fFuqxZWinTXzig3vHcDJ5rej87AyTx83oYR6mrdMbhcQJNuqKjzaIr3tFPeLHbx2DaaliJf9xx60E9r0qbeUd5gUTb8Fh7fNNmKrVySZPRk40fyWhet7qzvK7db2ugm4q3c2I/iebfUCCkjV7Oa/dwX1BnCZ36IK/SRJs4QvuhXDO57nWn2dHYfGlXXny1GUrcjpVDtCTI1vruVlItr7M0sWZ8T+xzifMuvrVbES2KIuv2XbKXCrp+1cwGK+pKIvbson5gF4AAeeUmD6egmR93+yvxGT2sEjBYJWCwSsBg1T///gf8ZY+ACnxg6gAAAABJRU5ErkJggg==",Vv="/frontend-mini-challenges/assets/react-22r7ljPB.png",jv="/frontend-mini-challenges/assets/vue-wXUHXaQI.png",vD="/frontend-mini-challenges/assets/logo-r_4QCHBg.png",gD="/frontend-mini-challenges/assets/logo_dark-zTelYMdF.png",yD="/frontend-mini-challenges/assets/cover-transparent-Ecfv1-zo.png",SD="_hero_9pexl_1",wD="_figure_9pexl_11",bD="_heroImage_9pexl_19",xD="_link_9pexl_24",CD="_heroTechImg_9pexl_40",Ra={hero:SD,figure:wD,heroImage:bD,link:xD,heroTechImg:CD};var TE={exports:{}},ED="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kD=ED,PD=kD;function RE(){}function ME(){}ME.resetWarningCache=RE;var TD=function(){function e(r,i,o,a,s,l){if(l!==PD){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ME,resetWarningCache:RE};return n.PropTypes=n,n};TE.exports=TD();var RD=TE.exports;const g1=hc(RD);/*! ***************************************************************************** +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:cp.assertOptions(i,{encode:_r.function,serialize:_r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&D.merge(o.common,o[n.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const S=[p1.bind(this),void 0];for(S.unshift.apply(S,s),S.push.apply(S,u),d=S.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new la(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _v(function(i){t=i}),cancel:t}}}const nD=_v;function rD(e){return function(n){return e.apply(null,n)}}function iD(e){return D.isObject(e)&&e.isAxiosError===!0}const fp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fp).forEach(([e,t])=>{fp[t]=e});const oD=fp;function PE(e){const t=new uu(e),n=rE(uu.prototype.request,t);return D.extend(n,uu.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return PE(Ki(e,i))},n}const lt=PE(Fv);lt.Axios=uu;lt.CanceledError=la;lt.CancelToken=nD;lt.isCancel=yE;lt.VERSION=kE;lt.toFormData=zc;lt.AxiosError=me;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=rD;lt.isAxiosError=iD;lt.mergeConfig=Ki;lt.AxiosHeaders=zn;lt.formToJSON=e=>gE(D.isHTMLForm(e)?new FormData(e):e);lt.getAdapter=EE.getAdapter;lt.HttpStatusCode=oD;lt.default=lt;const aD=lt;async function sD(){return(await aD.get("https://api.github.com/repos/sadanandpai/frontend-mini-challenges/contributors?per_page=1000")).data.map(t=>{var n,r;return{username:t.login,avatar:((r=(n=t.avatar_url)==null?void 0:n.match(/\d+/))==null?void 0:r[0])??""}})}function lD(){const[e,t]=w.useState([]),[n]=w.useState(R_);return w.useEffect(()=>{sD().then(r=>t(r.slice(2)))},[]),w.useEffect(()=>{const r=setInterval(()=>t(i=>i.map(o=>o).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(r)}},[]),M.jsxs(M.Fragment,{children:[M.jsx("h2",{className:Va.heading,id:"contributors",children:"Contributors"}),M.jsxs("section",{className:Va.maintainerContainer,children:[M.jsx(yd,{...n[0]},n[0].username),M.jsx(yd,{...n[1]},n[1].username)]}),M.jsx(t1.Group,{axis:"y",onReorder:t,values:e,className:Va.contributionContainer,children:e.map(r=>M.jsx(t1.Item,{value:r.username,className:Va.listContributor,children:M.jsx(yd,{...r},r.username)},r.username))})]})}const uD="_heading_1m5el_1",cD="_features_1m5el_6",v1={heading:uD,features:cD},fD=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function dD(){return M.jsxs("section",{id:"whyUs",children:[M.jsx("h2",{className:v1.heading,children:"Why Us?"}),M.jsx("div",{className:v1.features,children:fD.map((e,t)=>M.jsxs("article",{children:[M.jsx("h3",{children:e.title}),M.jsx("p",{children:e.info})]},t))})]})}const hD="_footer_1l7qe_1",pD={footer:hD};function mD(){const e=new Date().getFullYear();return M.jsxs("footer",{className:pD.footer,children:["Copyright © ",e]})}const Iv="/frontend-mini-challenges/assets/css-NOfCHX53.png",Dv="/frontend-mini-challenges/assets/angular-3fNDZm1N.png",Nv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAgVBMVEXw208yMzDw2kjz4nTy3U/24FAiJi8pLC+5qkXo1E1zbDkwMTAnKi9aVjUtLzDs104AACz75VEWHS4eIy4RGS2XjD+mmUGNgz3j0E1WUjXAsEbUwkqvoUODejwAEC1JRzNBQDLKuUgACCw7OzFPTDRjXjcKFS17czugk0BsZjjbyUs9K7YPAAAIX0lEQVR4nO2c25aqOBCGYSZFQBDkDAIKIqi8/wMOuNvdSsLBQy+qZ+W/6YvGkC+HSlUlQZL+N/rn36Vr8EEJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWCVgsErAYJWAwSoBg1UCBqsEDFYJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWPXDMITVrB8BgG0DkO5P93fOz5bomYlqdfW2EtVfxaVuGnp5rLKgiKRZzfCjMLCN1z3FoTVWKUKsRj2Vh52jGNTsRA3XO3ixfwWaeN/Pwqiu0ZN30YarREDbhmXtmnJPuuF46yCxYBznh2Go3quWshqGAWt70h2G5EuGs/eTcRpEMHaSlW7/+XtRNw4kGHkfGhhiBzE7vvq9Y64ae/h9WGCIHZrGBEor3T0mwzRIYAicjKlu+eqcvBikwQFDIDPGZsu96DANChgC4ejM7/dNMmAFUMBAKs8bY19lVA2fBgMMJLHyBIssuxnfiiCAIVboPMUim3rKdW0wwBTlM4PsWkqc4IQhVvZkx7RyuAMNAUxi8i0ZVVxXYQq4ynBCpDBBzamu7tT5KstOsVKzjoGTqxrvfYvDEGnNcWMUI0ys6/8jdV3Txx7zTg0/tFkeptlxWNaNfQuzAdTyznLrbrm1BxzvxWEgZWGMyrr3WGztb+fpVMkIXt8MMrfPope9FR6s6s9D1IwHu0VCAGOzU8YN+20PWt4+pSv70BoJZ5aHAdYtqyOm8e1C0Q15VSAPm4Hxl3Wd0/rgb+IgQp7QIJLX7xi658CQKEyWTjXNgGGWTC6MRLTpLODyMF7/EZM3zCYzoZ2WhpHAYbyv3ZyK87Q8DGvNnGDM/o5ocRjOOmOWL3bN4jBwYjwAmZ5eo1keJmBsc+uBhVNLCleLw5CC4zWbxqkgY1llvpaHiXiBpq7E5+c7Z3kYacXNMxlyFWgjHjJPi8NIROWMs65zDDk+a/Yzgw0BTJNTLk1rB/Q8bJ7AQQBj+byMxh8cUzEuiT138iwPI0GyH+iaK4+yOarWvL1zBDBEOrPr5r2MgxzM2GtGASNBc5lInJs72Z/ca8YBI8F2yAZ84zi5X0jII82rCAmmN2io+0u2zokVKtNbZ1RZtwvPyPtwwHQ0rL/JytArFXPe7EuE+JsZNK1bECLOaN5EIN1MWYFOphEPngRAA9MdN5FnTJzOBR0aaohgJLAyyt9cehQ1AqRbGvcioK7NGWONKmduXI0KRiJ25MfGNI5pBDwaXDDtTyDxY2/ySBCVt5zIABtMh1P4sTN1ykHZN2w5+GDamUOSYO2Me9Kyc2G7BiFMhyNF25U7eMLxqlpllhuUMNcDwVYSOkxS/U60/C0wUscDxHcPw6bNSfs0eGE62ZDuBw5ptPY5/10w7cIDaiXzcXSz6NkA5DAdDkkrvltg9nel0cNc3YLzkWeo6brnov0CmLYcu6g4x7jMfe/ww6+AaS1Bc2FpzHz7K2EkaNhMoS6fHyfNb4GRiMomCWiIFmYckkQx40sbJ6Qwrc0aTfcTy2dmjbL6CZiBvDaojCc/lGoiVrhhPceHJ1JmnCmXz5vmlmTbX4yvgpRtTN5GMiFaKnvmfrRviMrpmY/DgJRkmzVvyJOAA8M8113Oqjw6tWPOhfmwaSbQBLkjmwHbqu3QYRZuJes/B1KR6dfnTPk8vG9BpDMzzIwPw4ClXpSuVWP26gRpLowBov7jY8Ru/P0tCqO5OpgZJxq7kUuzTxoAAkX2dbSVZsydRVIwuX1dfjwXY1vBWvleDY29OtQ3pGC32Pue5lswtuXvbxeSTDnotWprTJlRZrZt//0E2NuL/tDeRp7y+4ZIFdMx/ZZ5B4bY6lH/blVa9jwlSEwmiL8fje0IO5X9C01U94Fj04jNOWJj5sWn5oytXR6DQPp4ehoszq0Yo/o7GNsZLXPumZnGMWF2y22oODEAPVqfMc2EnN1+Xc06lOB2UNxuSt7776YsBJSbfqGb6275twBShZdHo6vPBGckWdecWLY2zolmWZbWbFe8DQq9vFvlefbpj5TD3i8iS7I6RUUo11xqs5/ReBEGiiM/kq3rMl7Hubvj1rNd5O8Ghr3NhzJj1NnR/eWUrS5HYzeQPzPLvv18tWfAH0yaUIM/fOS+mztSiHw99q+4ymBuhncw/dU5A816zj5XH+bR/IBWzbg1OwTrMq7cy9bMTvX5VytvLFVvywuSyQMAg6qZjnkdhkinp1t1w7g8UIxlYMdEmRnzzjoD0bOt6vRNqdR18JxNZo5qzgbNGx4AFM/Vw3S5N4HTzSt9c/A5Ttw7vpm9fYZGP3ADOALq7vl5U7Nu7Zsw7RjxZl8X1b2+I3qjsQvGQ5sqyz1ZvIZ5LwQAVZ7ZqqbhD4aRkFSDKxO3LBpq3AD73Xhme5z1UQIq+yOfaAEtzGedZ+ikG/mZ2y9vR5oEkpM+aaJ15ZiOfm4GYLsy5908p8plOxSOvp0DgCg4OuNjTVFOE5fFuqxZWinTXzig3vHcDJ5rej87AyTx83oYR6mrdMbhcQJNuqKjzaIr3tFPeLHbx2DaaliJf9xx60E9r0qbeUd5gUTb8Fh7fNNmKrVySZPRk40fyWhet7qzvK7db2ugm4q3c2I/iebfUCCkjV7Oa/dwX1BnCZ36IK/SRJs4QvuhXDO57nWn2dHYfGlXXny1GUrcjpVDtCTI1vruVlItr7M0sWZ8T+xzifMuvrVbES2KIuv2XbKXCrp+1cwGK+pKIvbson5gF4AAeeUmD6egmR93+yvxGT2sEjBYJWCwSsBg1T///gf8ZY+ACnxg6gAAAABJRU5ErkJggg==",Vv="/frontend-mini-challenges/assets/react-22r7ljPB.png",jv="/frontend-mini-challenges/assets/vue-wXUHXaQI.png",vD="/frontend-mini-challenges/assets/logo-r_4QCHBg.png",gD="/frontend-mini-challenges/assets/logo_dark-zTelYMdF.png",yD="/frontend-mini-challenges/assets/cover-transparent-Ecfv1-zo.png",SD="_hero_9pexl_1",wD="_figure_9pexl_11",bD="_heroImage_9pexl_19",xD="_link_9pexl_24",CD="_heroTechImg_9pexl_40",Ra={hero:SD,figure:wD,heroImage:bD,link:xD,heroTechImg:CD};var TE={exports:{}},ED="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kD=ED,PD=kD;function RE(){}function ME(){}ME.resetWarningCache=RE;var TD=function(){function e(r,i,o,a,s,l){if(l!==PD){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ME,resetWarningCache:RE};return n.PropTypes=n,n};TE.exports=TD();var RD=TE.exports;const g1=hc(RD);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -83,7 +83,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var dp=function(){return dp=Object.assign||function(t){for(var n,r=1,i=arguments.length;rO.jsx("img",{src:e.imgSrc,width:35,height:35,alt:`${e.title}-img`},e.title))})]}),O.jsxs("figure",{className:Ra.figure,children:[O.jsx("img",{className:Ra.heroImage,src:yD,alt:"brand"}),O.jsx("figcaption",{children:"Collection of frontend challenges for learning and interviews"})]})]})}var FE={exports:{}};/*! +***************************************************************************** */var dp=function(){return dp=Object.assign||function(t){for(var n,r=1,i=arguments.length;rM.jsx("img",{src:e.imgSrc,width:35,height:35,alt:`${e.title}-img`},e.title))})]}),M.jsxs("figure",{className:Ra.figure,children:[M.jsx("img",{className:Ra.heroImage,src:yD,alt:"brand"}),M.jsx("figcaption",{children:"Collection of frontend challenges for learning and interviews"})]})]})}var FE={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -223,7 +223,7 @@ html body { (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 -`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(x){return x&&x.exact?o:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+i+t(x)+")","g")};l.v4=function(v){return v&&v.exact?a:new RegExp(""+t(v)+n+t(v),"g")},l.v6=function(v){return v&&v.exact?s:new RegExp(""+t(v)+i+t(v),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",h='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+g+S+p+")"+m+h;return Bl=new RegExp("(?:^"+y+"$)","i"),Bl},fS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(fS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(e5())},hex:function(t){return typeof t=="string"&&!!t.match(fS.hex)}},t5=function(t,n,r,i,o){if(t.required&&n===void 0){tP(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||i.push(sn(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push(sn(o.messages.types[s],t.fullField,t.type))},n5=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",g=typeof n=="string",S=Array.isArray(n);if(d?f="number":g?f="string":S&&(f="array"),!f)return!1;S&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&i.push(sn(o.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(sn(o.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(sn(o.messages[f].range,t.fullField,t.min,t.max))},oo="enum",r5=function(t,n,r,i,o){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(n)===-1&&i.push(sn(o.messages[oo],t.fullField,t[oo].join(", ")))},i5=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Se={required:tP,whitespace:Z3,type:t5,range:n5,enum:r5,pattern:i5},o5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o,"string"),dt(n,"string")||(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o),Se.pattern(t,n,i,a,o),t.whitespace===!0&&Se.whitespace(t,n,i,a,o))}r(a)},a5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},s5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},l5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},u5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),dt(n)||Se.type(t,n,i,a,o)}r(a)},c5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},f5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},d5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Se.required(t,n,i,a,o,"array"),n!=null&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},h5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},p5="enum",m5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se[p5](t,n,i,a,o)}r(a)},v5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o),dt(n,"string")||Se.pattern(t,n,i,a,o)}r(a)},g5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"date")&&!t.required)return r();if(Se.required(t,n,i,a,o),!dt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Se.type(t,l,i,a,o),l&&Se.range(t,l.getTime(),i,a,o)}}r(a)},y5=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Se.required(t,n,i,a,o,s),r(a)},Id=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(dt(n,a)&&!t.required)return r();Se.required(t,n,i,s,o,a),dt(n,a)||Se.type(t,n,i,s,o)}r(s)},S5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o)}r(a)},as={string:o5,method:a5,number:s5,boolean:l5,regexp:u5,integer:c5,float:f5,array:d5,object:h5,enum:m5,pattern:v5,date:g5,url:Id,hex:Id,email:Id,required:y5,any:S5};function Hp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wp=Hp(),el=function(){function e(n){this.rules=null,this._messages=Wp,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=cS(Hp(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var m=[],h={};function y(x){if(Array.isArray(x)){var E;m=(E=m).concat.apply(E,x)}else m.push(x)}for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rP(t,r,n)})}function rP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function E5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Le(e)!=="object"||Le(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return de(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function k5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Le(t.target)==="object"&&e in t.target?t.target[e]:t}function mS(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(de(e.slice(0,n)),[i],de(e.slice(n,t)),de(e.slice(t+1,r))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[i],de(e.slice(n+1,r))):e}var P5=["name"],gn=[];function vS(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ig=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),j(xe(i),"state",{resetCount:0}),j(xe(i),"cancelRegisterFunc",null),j(xe(i),"mounted",!1),j(xe(i),"touched",!1),j(xe(i),"dirty",!1),j(xe(i),"validatePromise",void 0),j(xe(i),"prevValidating",void 0),j(xe(i),"errors",gn),j(xe(i),"warnings",gn),j(xe(i),"cancelRegister",function(){var l=i.props,u=l.preserve,c=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,u,et(f)),i.cancelRegisterFunc=null}),j(xe(i),"getNamePath",function(){var l=i.props,u=l.name,c=l.fieldContext,f=c.prefixName,d=f===void 0?[]:f;return u!==void 0?[].concat(de(d),de(u)):[]}),j(xe(i),"getRules",function(){var l=i.props,u=l.rules,c=u===void 0?[]:u,f=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(f):d})}),j(xe(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),j(xe(i),"metaCache",null),j(xe(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var c=I(I({},i.getMeta()),{},{destroy:l});YE(i.metaCache,c)||u(c),i.metaCache=c}else i.metaCache=null}),j(xe(i),"onStoreChange",function(l,u,c){var f=i.props,d=f.shouldUpdate,g=f.dependencies,S=g===void 0?[]:g,p=f.onReset,m=c.store,h=i.getNamePath(),y=i.getValue(l),v=i.getValue(m),x=u&&jo(u,h);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==v&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=gn,i.warnings=gn,i.triggerMetaEvent()),c.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),p==null||p(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{var E=c.data;if(x){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||gn),"warnings"in E&&(i.warnings=E.warnings||gn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&jo(u,h,!0)){i.reRender();return}if(d&&!h.length&&vS(d,l,m,y,v,c)){i.reRender();return}break}case"dependenciesUpdate":{var b=S.map(et);if(b.some(function(C){return jo(c.relatedFields,C)})){i.reRender();return}break}default:if(x||(!S.length||h.length||d)&&vS(d,l,m,y,v,c)){i.reRender();return}break}d===!0&&i.reRender()}),j(xe(i),"validateRules",function(l){var u=i.getNamePath(),c=i.getValue(),f=l||{},d=f.triggerName,g=f.validateOnly,S=g===void 0?!1:g,p=Promise.resolve().then(Zs(Kn().mark(function m(){var h,y,v,x,E,b,C;return Kn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(h=i.props,y=h.validateFirst,v=y===void 0?!1:y,x=h.messageVariables,E=h.validateDebounce,b=i.getRules(),d&&(b=b.filter(function(F){return F}).filter(function(F){var V=F.validateTrigger;if(!V)return!0;var H=$p(V);return H.includes(d)})),!(E&&d)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,E)});case 8:if(i.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return C=b5(u,c,b,l,v,x),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn;if(i.validatePromise===p){var V;i.validatePromise=null;var H=[],U=[];(V=F.forEach)===null||V===void 0||V.call(F,function(Q){var W=Q.rule.warningOnly,_=Q.errors,L=_===void 0?gn:_;W?U.push.apply(U,de(L)):H.push.apply(H,de(L))}),i.errors=H,i.warnings=U,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},m)})));return S||(i.validatePromise=p,i.dirty=!0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),i.reRender()),p}),j(xe(i),"isFieldValidating",function(){return!!i.validatePromise}),j(xe(i),"isFieldTouched",function(){return i.touched}),j(xe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(Li),c=u.getInitialValue;return c(i.getNamePath())!==void 0}),j(xe(i),"getErrors",function(){return i.errors}),j(xe(i),"getWarnings",function(){return i.warnings}),j(xe(i),"isListField",function(){return i.props.isListField}),j(xe(i),"isList",function(){return i.props.isList}),j(xe(i),"isPreserve",function(){return i.props.preserve}),j(xe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),j(xe(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return I(I({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var c=pp(l);return c.length!==1||!w.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),j(xe(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return nr(l||u(!0),c)}),j(xe(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,c=u.trigger,f=u.validateTrigger,d=u.getValueFromEvent,g=u.normalize,S=u.valuePropName,p=u.getValueProps,m=u.fieldContext,h=f!==void 0?f:m.validateTrigger,y=i.getNamePath(),v=m.getInternalHooks,x=m.getFieldsValue,E=v(Li),b=E.dispatch,C=i.getValue(),k=p||function(U){return j({},S,U)},T=l[c],F=k(C),V=I(I({},l),F);V[c]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,Q=arguments.length,W=new Array(Q),_=0;_=0&&F<=V.length?(c.keys=[].concat(de(c.keys.slice(0,F)),[c.id],de(c.keys.slice(F))),v([].concat(de(V.slice(0,F)),[T],de(V.slice(F))))):(c.keys=[].concat(de(c.keys),[c.id]),v([].concat(de(V),[T]))),c.id+=1},remove:function(T){var F=E(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(H,U){return!V.has(U)}),v(F.filter(function(H,U){return!V.has(U)})))},move:function(T,F){if(T!==F){var V=E();T<0||T>=V.length||F<0||F>=V.length||(c.keys=mS(c.keys,T,F),v(mS(V,T,F)))}}},C=y||[];return Array.isArray(C)||(C=[]),r(C.map(function(k,T){var F=c.keys[T];return F===void 0&&(c.keys[T]=c.id,F=c.keys[T],c.id+=1),{name:T,key:F,isListField:!0}}),b,m)})))}function R5(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var oP="__@field_split__";function Dd(e){return e.map(function(t){return"".concat(Le(t),":").concat(t)}).join(oP)}var ao=function(){function e(){Tn(this,e),j(this,"kvs",new Map)}return Rn(e,[{key:"set",value:function(n,r){this.kvs.set(Dd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dd(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dd(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var i=oe(r,2),o=i[0],a=i[1],s=o.split(oP);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=oe(u,3),f=c[1],d=c[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),M5=["name"],O5=Rn(function e(t){var n=this;Tn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===Li?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Yt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ro(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Dn(a,l,nr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),j(this,"destroyForm",function(){var r=new ao;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),j(this,"getInitialValue",function(r){var i=nr(n.initialValues,r);return r.length?Ro(i):i}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new ao;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=et(o);return i.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),j(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Le(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(c){var f,d,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var S,p;if((S=(p=c).isList)!==null&&S!==void 0&&S.call(p))return}else if(!o&&(f=(d=c).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)u.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&u.push(g)}}),pS(n.store,u.map(et))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var i=et(r);return nr(n.store,i)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(r[a]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new ao,o=n.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var f=i.get(c)||new Set;f.add({entity:l,value:u}),i.set(c,f)}});var a=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var d=c.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)Yt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var S=i.get(d);if(S&&S.size>1)Yt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var p=n.getFieldValue(d),m=c.isListField();!m&&(!r.skipExist||p===void 0)&&n.updateStore(Dn(n.store,d,de(S)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=i.get(l);if(u){var c;(c=s).push.apply(c,de(de(u).map(function(f){return f.entity})))}})):s=o,a(s)}),j(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ro(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(et);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Dn(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),j(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=St(a,M5),u=et(s);o.push(u),"value"in l&&n.updateStore(Dn(n.store,u,l.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=I(I({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),j(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=nr(n.store,o);a===void 0&&n.updateStore(Dn(n.store,o,i))}}),j(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(f){return!rP(f.getNamePath(),i)})){var c=n.store;n.updateStore(Dn(c,i,u,!0)),n.notifyObservers(c,[i],{type:"remove"}),n.triggerDependenciesUpdate(c,i)}}n.notifyWatch([i])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=I(I({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(de(o))}),o}),j(this,"updateValue",function(r,i){var o=et(r),a=n.store;n.updateStore(Dn(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var u=pS(n.store,[o]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(de(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ro(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),j(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new ao;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var f=et(c);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(u){var c=a.get(u)||new Set;c.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),l(d))}})};return s(r),o}),j(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new ao;i.forEach(function(u){var c=u.name,f=u.errors;s.set(c,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var c=u.name;return jo(r,c)});l.length&&o(l,a)}}),j(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(et):[],u=[],c=String(Date.now()),f=new Set,d=a||{},g=d.recursive,S=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(S&&!y.isFieldDirty())){var v=y.getNamePath();if(f.add(v.join(c)),!s||jo(l,v,g)){var x=y.validateRules(I({validateMessages:I(I({},nP),n.validateMessages)},a));u.push(x.then(function(){return{name:v,errors:[],warnings:[]}}).catch(function(E){var b,C=[],k=[];return(b=E.forEach)===null||b===void 0||b.call(E,function(T){var F=T.rule.warningOnly,V=T.errors;F?k.push.apply(k,de(V)):C.push.apply(C,de(V))}),C.length?Promise.reject({name:v,errors:C,warnings:k}):{name:v,errors:C,warnings:k}}))}}});var p=R5(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var v=y.map(function(x){var E=x.name;return E});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,y)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var v=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==p})});m.catch(function(y){return y});var h=l.filter(function(y){return f.has(y.join(c))});return n.triggerOnFieldsChange(h),m}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function aP(e){var t=w.useRef(),n=w.useState({}),r=oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new O5(o);t.current=a.getForm()}return[t.current]}var Yp=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),A5=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=w.useContext(Yp),s=w.useRef({});return w.createElement(Yp.Provider,{value:I(I({},a),{},{validateMessages:I(I({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:s.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){i&&i(u,{values:c,forms:s.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=I(I({},s.current),{},j({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=I({},s.current);delete c[u],s.current=c,a.unregisterForm(u)}})},o)},F5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],L5=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,S=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,h=t.onFinishFailed,y=St(t,F5),v=w.useContext(Yp),x=aP(a),E=oe(x,1),b=E[0],C=b.getInternalHooks(Li),k=C.useSubscribe,T=C.setInitialValues,F=C.setCallbacks,V=C.setValidateMessages,H=C.setPreserve,U=C.destroyForm;w.useImperativeHandle(n,function(){return b}),w.useEffect(function(){return v.registerForm(r,b),function(){v.unregisterForm(r)}},[v,b,r]),V(I(I({},v.validateMessages),f)),F({onValuesChange:S,onFieldsChange:function(K){if(v.triggerFormChange(r,K),p){for(var J=arguments.length,te=new Array(J>1?J-1:0),fe=1;fe{let{children:t,status:n,override:r}=e;const i=w.useContext(yS),o=w.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return w.createElement(yS.Provider,{value:o},t)};function SS(){}const N5=w.createContext({add:SS,remove:SS});function V5(e){const t=w.useContext(N5),n=w.useRef();return ij(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}var wS=w.createContext(null),sP=w.createContext({}),j5=["prefixCls","className","containerRef"],$5=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=St(t,j5),a=w.useContext(sP),s=a.panel,l=VE(s,i);return w.createElement("div",ee({className:Vt("".concat(n,"-content"),r),role:"dialog",ref:l},oc(t,{aria:!0}),{"aria-modal":"true"},o))};function bS(e){return typeof e=="string"&&String(Number(e))===e?(Yt(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var xS={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B5(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,c=e.forceRender,f=e.autoFocus,d=e.keyboard,g=e.classNames,S=e.rootClassName,p=e.rootStyle,m=e.zIndex,h=e.className,y=e.id,v=e.style,x=e.motion,E=e.width,b=e.height,C=e.children,k=e.mask,T=e.maskClosable,F=e.maskMotion,V=e.maskClassName,H=e.maskStyle,U=e.afterOpenChange,Q=e.onClose,W=e.onMouseEnter,_=e.onMouseOver,L=e.onMouseLeave,P=e.onClick,N=e.onKeyDown,z=e.onKeyUp,$=e.styles,K=w.useRef(),J=w.useRef(),te=w.useRef();w.useImperativeHandle(t,function(){return K.current});var fe=function(ve){var He=ve.keyCode,pt=ve.shiftKey;switch(He){case le.TAB:{if(He===le.TAB){if(!pt&&document.activeElement===te.current){var zt;(zt=J.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(pt&&document.activeElement===J.current){var On;(On=te.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case le.ESC:{Q&&d&&(ve.stopPropagation(),Q(ve));break}}};w.useEffect(function(){if(a&&f){var he;(he=K.current)===null||he===void 0||he.focus({preventScroll:!0})}},[a]);var ce=w.useState(!1),be=oe(ce,2),ht=be[0],bt=be[1],Ae=w.useContext(wS),Ee;typeof u=="boolean"?Ee=u?{}:{distance:0}:Ee=u||{};var rt=(n=(r=(i=Ee)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Ae==null?void 0:Ae.pushDistance)!==null&&n!==void 0?n:180,Mn=w.useMemo(function(){return{pushDistance:rt,push:function(){bt(!0)},pull:function(){bt(!1)}}},[rt]);w.useEffect(function(){if(a){var he;Ae==null||(he=Ae.push)===null||he===void 0||he.call(Ae)}else{var ve;Ae==null||(ve=Ae.pull)===null||ve===void 0||ve.call(Ae)}},[a]),w.useEffect(function(){return function(){var he;Ae==null||(he=Ae.pull)===null||he===void 0||he.call(Ae)}},[]);var qn=k&&w.createElement(_p,ee({key:"mask"},F,{visible:a}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",{className:Vt("".concat(o,"-mask"),He,g==null?void 0:g.mask,V),style:I(I(I({},pt),H),$==null?void 0:$.mask),onClick:T&&a?Q:void 0,ref:ve})}),Ye=typeof x=="function"?x(s):x,Zt={};if(ht&&rt)switch(s){case"top":Zt.transform="translateY(".concat(rt,"px)");break;case"bottom":Zt.transform="translateY(".concat(-rt,"px)");break;case"left":Zt.transform="translateX(".concat(rt,"px)");break;default:Zt.transform="translateX(".concat(-rt,"px)");break}s==="left"||s==="right"?Zt.width=bS(E):Zt.height=bS(b);var ur={onMouseEnter:W,onMouseOver:_,onMouseLeave:L,onClick:P,onKeyDown:N,onKeyUp:z},cr=w.createElement(_p,ee({key:"panel"},Ye,{visible:a,forceRender:c,onVisibleChanged:function(ve){U==null||U(ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",ee({className:Vt("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,He),style:I(I(I({},Zt),pt),$==null?void 0:$.wrapper)},oc(e,{data:!0})),w.createElement($5,ee({id:y,containerRef:ve,prefixCls:o,className:Vt(h,g==null?void 0:g.content),style:I(I({},v),$==null?void 0:$.content)},oc(e,{aria:!0}),ur),C))}),Qe=I({},p);return m&&(Qe.zIndex=m),w.createElement(wS.Provider,{value:Mn},w.createElement("div",{className:Vt(o,"".concat(o,"-").concat(s),S,j(j({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Qe,tabIndex:-1,ref:K,onKeyDown:fe},qn,w.createElement("div",{tabIndex:0,ref:J,style:xS,"aria-hidden":"true","data-sentinel":"start"}),cr,w.createElement("div",{tabIndex:0,ref:te,style:xS,"aria-hidden":"true","data-sentinel":"end"})))}var z5=w.forwardRef(B5),U5=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,u=l===void 0?!0:l,c=t.keyboard,f=c===void 0?!0:c,d=t.width,g=d===void 0?378:d,S=t.mask,p=S===void 0?!0:S,m=t.maskClosable,h=m===void 0?!0:m,y=t.getContainer,v=t.forceRender,x=t.afterOpenChange,E=t.destroyOnClose,b=t.onMouseEnter,C=t.onMouseOver,k=t.onMouseLeave,T=t.onClick,F=t.onKeyDown,V=t.onKeyUp,H=t.panelRef,U=w.useState(!1),Q=oe(U,2),W=Q[0],_=Q[1],L=w.useState(!1),P=oe(L,2),N=P[0],z=P[1];Zo(function(){z(!0)},[]);var $=N?r:!1,K=w.useRef(),J=w.useRef();Zo(function(){$&&(J.current=document.activeElement)},[$]);var te=function(bt){var Ae;if(_(bt),x==null||x(bt),!bt&&J.current&&!((Ae=K.current)!==null&&Ae!==void 0&&Ae.contains(J.current))){var Ee;(Ee=J.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},fe=w.useMemo(function(){return{panel:H}},[H]);if(!v&&!W&&!$&&E)return null;var ce={onMouseEnter:b,onMouseOver:C,onMouseLeave:k,onClick:T,onKeyDown:F,onKeyUp:V},be=I(I({},t),{},{open:$,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:p,maskClosable:h,inline:y===!1,afterOpenChange:te,ref:K},ce);return w.createElement(sP.Provider,{value:fe},w.createElement(N3,{open:$||v||W,autoDestroy:!1,getContainer:y,autoLock:p&&($||W)},w.createElement(z5,be)))};const H5=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,closeIcon:s,closable:l,onClose:u,headerStyle:c,bodyStyle:f,footerStyle:d,children:g,classNames:S,styles:p}=e,{drawer:m}=w.useContext(Qi),h=w.useCallback(C=>w.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},C),[u]),y=w.useMemo(()=>typeof(m==null?void 0:m.closable)=="object"&&m.closable.closeIcon?m.closable.closeIcon:m==null?void 0:m.closeIcon,[m==null?void 0:m.closable,m==null?void 0:m.closeIcon]),[v,x]=$3({closable:l??(m==null?void 0:m.closable),closeIcon:typeof s<"u"?s:y,customCloseIconRender:h,defaultClosable:!0}),E=w.useMemo(()=>{var C,k;return!i&&!v?null:w.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=m==null?void 0:m.styles)===null||C===void 0?void 0:C.header),c),p==null?void 0:p.header),className:Vt(`${r}-header`,{[`${r}-header-close-only`]:v&&!i&&!a},(k=m==null?void 0:m.classNames)===null||k===void 0?void 0:k.header,S==null?void 0:S.header)},w.createElement("div",{className:`${r}-header-title`},x,i&&w.createElement("div",{className:`${r}-title`},i)),a&&w.createElement("div",{className:`${r}-extra`},a))},[v,x,a,c,r,i]),b=w.useMemo(()=>{var C,k;if(!o)return null;const T=`${r}-footer`;return w.createElement("div",{className:Vt(T,(C=m==null?void 0:m.classNames)===null||C===void 0?void 0:C.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(k=m==null?void 0:m.styles)===null||k===void 0?void 0:k.footer),d),p==null?void 0:p.footer)},o)},[o,d,r]);return w.createElement(w.Fragment,null,E,w.createElement("div",{className:Vt(`${r}-body`,S==null?void 0:S.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),f),p==null?void 0:p.body)},g),b)},lP=H5,W5=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},uP=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),cP=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},uP({opacity:e},{opacity:1})),K5=(e,t)=>[cP(.7,t),uP({transform:W5(e)},{transform:"none"})],G5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:cP(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:K5(i,n)}),{})}}},q5=G5,X5=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:f,lineType:d,colorSplit:g,marginSM:S,colorIcon:p,colorIconHover:m,colorText:h,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:x}=e,E=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${$r(s)} ${$r(l)}`,fontSize:u,lineHeight:c,borderBottom:`${$r(f)} ${d} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:S,color:p,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$r(v)} ${$r(x)}`,borderTop:`${$r(f)} ${d} ${g}`},"&-rtl":{direction:"rtl"}}}},Y5=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),fP=wj("Drawer",e=>{const t=tg(e,{});return[X5(t),q5(t)]},Y5);var dP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Q5,open:s,afterOpenChange:l,onClose:u,prefixCls:c,getContainer:f,style:d,className:g,visible:S,afterVisibleChange:p,maskStyle:m,drawerStyle:h,contentWrapperStyle:y}=e,v=dP(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:E,direction:b,drawer:C}=w.useContext(Qi),k=E("drawer",c),[T,F,V]=fP(k),H=f===void 0&&x?()=>x(document.body):f,U=Vt({"no-mask":!o,[`${k}-rtl`]:b==="rtl"},t,F,V),Q=w.useMemo(()=>n??(i==="large"?736:378),[n,i]),W=w.useMemo(()=>r??(i==="large"?736:378),[r,i]),_={motionName:tS(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=fe=>({motionName:tS(k,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=V5(),[N,z]=T3("Drawer",v.zIndex),{classNames:$={},styles:K={}}=v,{classNames:J={},styles:te={}}=C||{};return T(w.createElement(M3,null,w.createElement(D5,{status:!0,override:!0},w.createElement(Jk.Provider,{value:z},w.createElement(U5,Object.assign({prefixCls:k,onClose:u,maskMotion:_,motion:L},v,{classNames:{mask:Vt($.mask,J.mask),content:Vt($.content,J.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),m),te.mask),content:Object.assign(Object.assign(Object.assign({},K.content),h),te.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),y),te.wrapper)},open:s??S,mask:o,push:a,width:Q,height:W,style:Object.assign(Object.assign({},C==null?void 0:C.style),d),className:Vt(C==null?void 0:C.className,g),rootClassName:U,getContainer:H,afterOpenChange:l??p,panelRef:P,zIndex:N}),w.createElement(lP,Object.assign({prefixCls:k},v,{onClose:u})))))))},J5=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=dP(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=w.useContext(Qi),s=a("drawer",t),[l,u,c]=fP(s),f=Vt(s,`${s}-pure`,`${s}-${i}`,u,c,r);return l(w.createElement("div",{className:f,style:n},w.createElement(lP,Object.assign({prefixCls:s},o))))};hP._InternalPanelDoNotUseOrYouWillBeFired=J5;const Z5=hP,e4="_containerWrapper_1iakk_1",t4="_container_1iakk_1",n4="_hr_1iakk_14",Su={containerWrapper:e4,container:t4,hr:n4},og=w.createContext({theme:"light",toggleTheme:()=>{}}),r4=({children:e})=>{const[t,n]=w.useState(localStorage.getItem("theme")||"light"),r=()=>{const i=t==="light"?"dark":"light";localStorage.setItem("theme",i),n(i)};return O.jsx(og.Provider,{value:{theme:t,toggleTheme:r},children:O.jsx("div",{className:Su.containerWrapper,"data-theme":t,children:e})})};/** +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(x){return x&&x.exact?o:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+i+t(x)+")","g")};l.v4=function(v){return v&&v.exact?a:new RegExp(""+t(v)+n+t(v),"g")},l.v6=function(v){return v&&v.exact?s:new RegExp(""+t(v)+i+t(v),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",h='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+g+S+p+")"+m+h;return Bl=new RegExp("(?:^"+y+"$)","i"),Bl},fS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(fS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(e5())},hex:function(t){return typeof t=="string"&&!!t.match(fS.hex)}},t5=function(t,n,r,i,o){if(t.required&&n===void 0){tP(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||i.push(sn(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push(sn(o.messages.types[s],t.fullField,t.type))},n5=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",g=typeof n=="string",S=Array.isArray(n);if(d?f="number":g?f="string":S&&(f="array"),!f)return!1;S&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&i.push(sn(o.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(sn(o.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(sn(o.messages[f].range,t.fullField,t.min,t.max))},oo="enum",r5=function(t,n,r,i,o){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(n)===-1&&i.push(sn(o.messages[oo],t.fullField,t[oo].join(", ")))},i5=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Se={required:tP,whitespace:Z3,type:t5,range:n5,enum:r5,pattern:i5},o5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o,"string"),dt(n,"string")||(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o),Se.pattern(t,n,i,a,o),t.whitespace===!0&&Se.whitespace(t,n,i,a,o))}r(a)},a5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},s5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},l5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},u5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),dt(n)||Se.type(t,n,i,a,o)}r(a)},c5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},f5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},d5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Se.required(t,n,i,a,o,"array"),n!=null&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},h5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},p5="enum",m5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se[p5](t,n,i,a,o)}r(a)},v5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o),dt(n,"string")||Se.pattern(t,n,i,a,o)}r(a)},g5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"date")&&!t.required)return r();if(Se.required(t,n,i,a,o),!dt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Se.type(t,l,i,a,o),l&&Se.range(t,l.getTime(),i,a,o)}}r(a)},y5=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Se.required(t,n,i,a,o,s),r(a)},Id=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(dt(n,a)&&!t.required)return r();Se.required(t,n,i,s,o,a),dt(n,a)||Se.type(t,n,i,s,o)}r(s)},S5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o)}r(a)},as={string:o5,method:a5,number:s5,boolean:l5,regexp:u5,integer:c5,float:f5,array:d5,object:h5,enum:m5,pattern:v5,date:g5,url:Id,hex:Id,email:Id,required:y5,any:S5};function Hp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wp=Hp(),el=function(){function e(n){this.rules=null,this._messages=Wp,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=cS(Hp(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var m=[],h={};function y(x){if(Array.isArray(x)){var E;m=(E=m).concat.apply(E,x)}else m.push(x)}for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rP(t,r,n)})}function rP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function E5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Le(e)!=="object"||Le(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return de(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function k5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Le(t.target)==="object"&&e in t.target?t.target[e]:t}function mS(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(de(e.slice(0,n)),[i],de(e.slice(n,t)),de(e.slice(t+1,r))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[i],de(e.slice(n+1,r))):e}var P5=["name"],gn=[];function vS(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ig=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),j(xe(i),"state",{resetCount:0}),j(xe(i),"cancelRegisterFunc",null),j(xe(i),"mounted",!1),j(xe(i),"touched",!1),j(xe(i),"dirty",!1),j(xe(i),"validatePromise",void 0),j(xe(i),"prevValidating",void 0),j(xe(i),"errors",gn),j(xe(i),"warnings",gn),j(xe(i),"cancelRegister",function(){var l=i.props,u=l.preserve,c=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,u,et(f)),i.cancelRegisterFunc=null}),j(xe(i),"getNamePath",function(){var l=i.props,u=l.name,c=l.fieldContext,f=c.prefixName,d=f===void 0?[]:f;return u!==void 0?[].concat(de(d),de(u)):[]}),j(xe(i),"getRules",function(){var l=i.props,u=l.rules,c=u===void 0?[]:u,f=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(f):d})}),j(xe(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),j(xe(i),"metaCache",null),j(xe(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var c=I(I({},i.getMeta()),{},{destroy:l});YE(i.metaCache,c)||u(c),i.metaCache=c}else i.metaCache=null}),j(xe(i),"onStoreChange",function(l,u,c){var f=i.props,d=f.shouldUpdate,g=f.dependencies,S=g===void 0?[]:g,p=f.onReset,m=c.store,h=i.getNamePath(),y=i.getValue(l),v=i.getValue(m),x=u&&jo(u,h);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==v&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=gn,i.warnings=gn,i.triggerMetaEvent()),c.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),p==null||p(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{var E=c.data;if(x){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||gn),"warnings"in E&&(i.warnings=E.warnings||gn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&jo(u,h,!0)){i.reRender();return}if(d&&!h.length&&vS(d,l,m,y,v,c)){i.reRender();return}break}case"dependenciesUpdate":{var b=S.map(et);if(b.some(function(C){return jo(c.relatedFields,C)})){i.reRender();return}break}default:if(x||(!S.length||h.length||d)&&vS(d,l,m,y,v,c)){i.reRender();return}break}d===!0&&i.reRender()}),j(xe(i),"validateRules",function(l){var u=i.getNamePath(),c=i.getValue(),f=l||{},d=f.triggerName,g=f.validateOnly,S=g===void 0?!1:g,p=Promise.resolve().then(Zs(Kn().mark(function m(){var h,y,v,x,E,b,C;return Kn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(h=i.props,y=h.validateFirst,v=y===void 0?!1:y,x=h.messageVariables,E=h.validateDebounce,b=i.getRules(),d&&(b=b.filter(function(F){return F}).filter(function(F){var V=F.validateTrigger;if(!V)return!0;var H=$p(V);return H.includes(d)})),!(E&&d)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,E)});case 8:if(i.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return C=b5(u,c,b,l,v,x),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn;if(i.validatePromise===p){var V;i.validatePromise=null;var H=[],U=[];(V=F.forEach)===null||V===void 0||V.call(F,function(Q){var W=Q.rule.warningOnly,_=Q.errors,L=_===void 0?gn:_;W?U.push.apply(U,de(L)):H.push.apply(H,de(L))}),i.errors=H,i.warnings=U,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},m)})));return S||(i.validatePromise=p,i.dirty=!0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),i.reRender()),p}),j(xe(i),"isFieldValidating",function(){return!!i.validatePromise}),j(xe(i),"isFieldTouched",function(){return i.touched}),j(xe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(Li),c=u.getInitialValue;return c(i.getNamePath())!==void 0}),j(xe(i),"getErrors",function(){return i.errors}),j(xe(i),"getWarnings",function(){return i.warnings}),j(xe(i),"isListField",function(){return i.props.isListField}),j(xe(i),"isList",function(){return i.props.isList}),j(xe(i),"isPreserve",function(){return i.props.preserve}),j(xe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),j(xe(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return I(I({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var c=pp(l);return c.length!==1||!w.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),j(xe(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return nr(l||u(!0),c)}),j(xe(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,c=u.trigger,f=u.validateTrigger,d=u.getValueFromEvent,g=u.normalize,S=u.valuePropName,p=u.getValueProps,m=u.fieldContext,h=f!==void 0?f:m.validateTrigger,y=i.getNamePath(),v=m.getInternalHooks,x=m.getFieldsValue,E=v(Li),b=E.dispatch,C=i.getValue(),k=p||function(U){return j({},S,U)},T=l[c],F=k(C),V=I(I({},l),F);V[c]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,Q=arguments.length,W=new Array(Q),_=0;_=0&&F<=V.length?(c.keys=[].concat(de(c.keys.slice(0,F)),[c.id],de(c.keys.slice(F))),v([].concat(de(V.slice(0,F)),[T],de(V.slice(F))))):(c.keys=[].concat(de(c.keys),[c.id]),v([].concat(de(V),[T]))),c.id+=1},remove:function(T){var F=E(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(H,U){return!V.has(U)}),v(F.filter(function(H,U){return!V.has(U)})))},move:function(T,F){if(T!==F){var V=E();T<0||T>=V.length||F<0||F>=V.length||(c.keys=mS(c.keys,T,F),v(mS(V,T,F)))}}},C=y||[];return Array.isArray(C)||(C=[]),r(C.map(function(k,T){var F=c.keys[T];return F===void 0&&(c.keys[T]=c.id,F=c.keys[T],c.id+=1),{name:T,key:F,isListField:!0}}),b,m)})))}function R5(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var oP="__@field_split__";function Dd(e){return e.map(function(t){return"".concat(Le(t),":").concat(t)}).join(oP)}var ao=function(){function e(){Tn(this,e),j(this,"kvs",new Map)}return Rn(e,[{key:"set",value:function(n,r){this.kvs.set(Dd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dd(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dd(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var i=oe(r,2),o=i[0],a=i[1],s=o.split(oP);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=oe(u,3),f=c[1],d=c[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),M5=["name"],O5=Rn(function e(t){var n=this;Tn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===Li?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Yt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ro(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Dn(a,l,nr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),j(this,"destroyForm",function(){var r=new ao;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),j(this,"getInitialValue",function(r){var i=nr(n.initialValues,r);return r.length?Ro(i):i}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new ao;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=et(o);return i.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),j(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Le(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(c){var f,d,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var S,p;if((S=(p=c).isList)!==null&&S!==void 0&&S.call(p))return}else if(!o&&(f=(d=c).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)u.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&u.push(g)}}),pS(n.store,u.map(et))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var i=et(r);return nr(n.store,i)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(r[a]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new ao,o=n.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var f=i.get(c)||new Set;f.add({entity:l,value:u}),i.set(c,f)}});var a=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var d=c.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)Yt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var S=i.get(d);if(S&&S.size>1)Yt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var p=n.getFieldValue(d),m=c.isListField();!m&&(!r.skipExist||p===void 0)&&n.updateStore(Dn(n.store,d,de(S)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=i.get(l);if(u){var c;(c=s).push.apply(c,de(de(u).map(function(f){return f.entity})))}})):s=o,a(s)}),j(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ro(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(et);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Dn(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),j(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=St(a,M5),u=et(s);o.push(u),"value"in l&&n.updateStore(Dn(n.store,u,l.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=I(I({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),j(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=nr(n.store,o);a===void 0&&n.updateStore(Dn(n.store,o,i))}}),j(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(f){return!rP(f.getNamePath(),i)})){var c=n.store;n.updateStore(Dn(c,i,u,!0)),n.notifyObservers(c,[i],{type:"remove"}),n.triggerDependenciesUpdate(c,i)}}n.notifyWatch([i])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=I(I({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(de(o))}),o}),j(this,"updateValue",function(r,i){var o=et(r),a=n.store;n.updateStore(Dn(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var u=pS(n.store,[o]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(de(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ro(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),j(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new ao;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var f=et(c);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(u){var c=a.get(u)||new Set;c.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),l(d))}})};return s(r),o}),j(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new ao;i.forEach(function(u){var c=u.name,f=u.errors;s.set(c,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var c=u.name;return jo(r,c)});l.length&&o(l,a)}}),j(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(et):[],u=[],c=String(Date.now()),f=new Set,d=a||{},g=d.recursive,S=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(S&&!y.isFieldDirty())){var v=y.getNamePath();if(f.add(v.join(c)),!s||jo(l,v,g)){var x=y.validateRules(I({validateMessages:I(I({},nP),n.validateMessages)},a));u.push(x.then(function(){return{name:v,errors:[],warnings:[]}}).catch(function(E){var b,C=[],k=[];return(b=E.forEach)===null||b===void 0||b.call(E,function(T){var F=T.rule.warningOnly,V=T.errors;F?k.push.apply(k,de(V)):C.push.apply(C,de(V))}),C.length?Promise.reject({name:v,errors:C,warnings:k}):{name:v,errors:C,warnings:k}}))}}});var p=R5(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var v=y.map(function(x){var E=x.name;return E});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,y)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var v=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==p})});m.catch(function(y){return y});var h=l.filter(function(y){return f.has(y.join(c))});return n.triggerOnFieldsChange(h),m}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function aP(e){var t=w.useRef(),n=w.useState({}),r=oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new O5(o);t.current=a.getForm()}return[t.current]}var Yp=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),A5=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=w.useContext(Yp),s=w.useRef({});return w.createElement(Yp.Provider,{value:I(I({},a),{},{validateMessages:I(I({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:s.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){i&&i(u,{values:c,forms:s.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=I(I({},s.current),{},j({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=I({},s.current);delete c[u],s.current=c,a.unregisterForm(u)}})},o)},F5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],L5=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,S=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,h=t.onFinishFailed,y=St(t,F5),v=w.useContext(Yp),x=aP(a),E=oe(x,1),b=E[0],C=b.getInternalHooks(Li),k=C.useSubscribe,T=C.setInitialValues,F=C.setCallbacks,V=C.setValidateMessages,H=C.setPreserve,U=C.destroyForm;w.useImperativeHandle(n,function(){return b}),w.useEffect(function(){return v.registerForm(r,b),function(){v.unregisterForm(r)}},[v,b,r]),V(I(I({},v.validateMessages),f)),F({onValuesChange:S,onFieldsChange:function(K){if(v.triggerFormChange(r,K),p){for(var J=arguments.length,te=new Array(J>1?J-1:0),fe=1;fe{let{children:t,status:n,override:r}=e;const i=w.useContext(yS),o=w.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return w.createElement(yS.Provider,{value:o},t)};function SS(){}const N5=w.createContext({add:SS,remove:SS});function V5(e){const t=w.useContext(N5),n=w.useRef();return ij(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}var wS=w.createContext(null),sP=w.createContext({}),j5=["prefixCls","className","containerRef"],$5=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=St(t,j5),a=w.useContext(sP),s=a.panel,l=VE(s,i);return w.createElement("div",ee({className:Vt("".concat(n,"-content"),r),role:"dialog",ref:l},oc(t,{aria:!0}),{"aria-modal":"true"},o))};function bS(e){return typeof e=="string"&&String(Number(e))===e?(Yt(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var xS={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B5(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,c=e.forceRender,f=e.autoFocus,d=e.keyboard,g=e.classNames,S=e.rootClassName,p=e.rootStyle,m=e.zIndex,h=e.className,y=e.id,v=e.style,x=e.motion,E=e.width,b=e.height,C=e.children,k=e.mask,T=e.maskClosable,F=e.maskMotion,V=e.maskClassName,H=e.maskStyle,U=e.afterOpenChange,Q=e.onClose,W=e.onMouseEnter,_=e.onMouseOver,L=e.onMouseLeave,P=e.onClick,N=e.onKeyDown,z=e.onKeyUp,$=e.styles,K=w.useRef(),J=w.useRef(),te=w.useRef();w.useImperativeHandle(t,function(){return K.current});var fe=function(ve){var He=ve.keyCode,pt=ve.shiftKey;switch(He){case le.TAB:{if(He===le.TAB){if(!pt&&document.activeElement===te.current){var zt;(zt=J.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(pt&&document.activeElement===J.current){var On;(On=te.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case le.ESC:{Q&&d&&(ve.stopPropagation(),Q(ve));break}}};w.useEffect(function(){if(a&&f){var he;(he=K.current)===null||he===void 0||he.focus({preventScroll:!0})}},[a]);var ce=w.useState(!1),be=oe(ce,2),ht=be[0],bt=be[1],Ae=w.useContext(wS),Ee;typeof u=="boolean"?Ee=u?{}:{distance:0}:Ee=u||{};var rt=(n=(r=(i=Ee)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Ae==null?void 0:Ae.pushDistance)!==null&&n!==void 0?n:180,Mn=w.useMemo(function(){return{pushDistance:rt,push:function(){bt(!0)},pull:function(){bt(!1)}}},[rt]);w.useEffect(function(){if(a){var he;Ae==null||(he=Ae.push)===null||he===void 0||he.call(Ae)}else{var ve;Ae==null||(ve=Ae.pull)===null||ve===void 0||ve.call(Ae)}},[a]),w.useEffect(function(){return function(){var he;Ae==null||(he=Ae.pull)===null||he===void 0||he.call(Ae)}},[]);var qn=k&&w.createElement(_p,ee({key:"mask"},F,{visible:a}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",{className:Vt("".concat(o,"-mask"),He,g==null?void 0:g.mask,V),style:I(I(I({},pt),H),$==null?void 0:$.mask),onClick:T&&a?Q:void 0,ref:ve})}),Ye=typeof x=="function"?x(s):x,Zt={};if(ht&&rt)switch(s){case"top":Zt.transform="translateY(".concat(rt,"px)");break;case"bottom":Zt.transform="translateY(".concat(-rt,"px)");break;case"left":Zt.transform="translateX(".concat(rt,"px)");break;default:Zt.transform="translateX(".concat(-rt,"px)");break}s==="left"||s==="right"?Zt.width=bS(E):Zt.height=bS(b);var ur={onMouseEnter:W,onMouseOver:_,onMouseLeave:L,onClick:P,onKeyDown:N,onKeyUp:z},cr=w.createElement(_p,ee({key:"panel"},Ye,{visible:a,forceRender:c,onVisibleChanged:function(ve){U==null||U(ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",ee({className:Vt("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,He),style:I(I(I({},Zt),pt),$==null?void 0:$.wrapper)},oc(e,{data:!0})),w.createElement($5,ee({id:y,containerRef:ve,prefixCls:o,className:Vt(h,g==null?void 0:g.content),style:I(I({},v),$==null?void 0:$.content)},oc(e,{aria:!0}),ur),C))}),Qe=I({},p);return m&&(Qe.zIndex=m),w.createElement(wS.Provider,{value:Mn},w.createElement("div",{className:Vt(o,"".concat(o,"-").concat(s),S,j(j({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Qe,tabIndex:-1,ref:K,onKeyDown:fe},qn,w.createElement("div",{tabIndex:0,ref:J,style:xS,"aria-hidden":"true","data-sentinel":"start"}),cr,w.createElement("div",{tabIndex:0,ref:te,style:xS,"aria-hidden":"true","data-sentinel":"end"})))}var z5=w.forwardRef(B5),U5=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,u=l===void 0?!0:l,c=t.keyboard,f=c===void 0?!0:c,d=t.width,g=d===void 0?378:d,S=t.mask,p=S===void 0?!0:S,m=t.maskClosable,h=m===void 0?!0:m,y=t.getContainer,v=t.forceRender,x=t.afterOpenChange,E=t.destroyOnClose,b=t.onMouseEnter,C=t.onMouseOver,k=t.onMouseLeave,T=t.onClick,F=t.onKeyDown,V=t.onKeyUp,H=t.panelRef,U=w.useState(!1),Q=oe(U,2),W=Q[0],_=Q[1],L=w.useState(!1),P=oe(L,2),N=P[0],z=P[1];Zo(function(){z(!0)},[]);var $=N?r:!1,K=w.useRef(),J=w.useRef();Zo(function(){$&&(J.current=document.activeElement)},[$]);var te=function(bt){var Ae;if(_(bt),x==null||x(bt),!bt&&J.current&&!((Ae=K.current)!==null&&Ae!==void 0&&Ae.contains(J.current))){var Ee;(Ee=J.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},fe=w.useMemo(function(){return{panel:H}},[H]);if(!v&&!W&&!$&&E)return null;var ce={onMouseEnter:b,onMouseOver:C,onMouseLeave:k,onClick:T,onKeyDown:F,onKeyUp:V},be=I(I({},t),{},{open:$,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:p,maskClosable:h,inline:y===!1,afterOpenChange:te,ref:K},ce);return w.createElement(sP.Provider,{value:fe},w.createElement(N3,{open:$||v||W,autoDestroy:!1,getContainer:y,autoLock:p&&($||W)},w.createElement(z5,be)))};const H5=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,closeIcon:s,closable:l,onClose:u,headerStyle:c,bodyStyle:f,footerStyle:d,children:g,classNames:S,styles:p}=e,{drawer:m}=w.useContext(Qi),h=w.useCallback(C=>w.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},C),[u]),y=w.useMemo(()=>typeof(m==null?void 0:m.closable)=="object"&&m.closable.closeIcon?m.closable.closeIcon:m==null?void 0:m.closeIcon,[m==null?void 0:m.closable,m==null?void 0:m.closeIcon]),[v,x]=$3({closable:l??(m==null?void 0:m.closable),closeIcon:typeof s<"u"?s:y,customCloseIconRender:h,defaultClosable:!0}),E=w.useMemo(()=>{var C,k;return!i&&!v?null:w.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=m==null?void 0:m.styles)===null||C===void 0?void 0:C.header),c),p==null?void 0:p.header),className:Vt(`${r}-header`,{[`${r}-header-close-only`]:v&&!i&&!a},(k=m==null?void 0:m.classNames)===null||k===void 0?void 0:k.header,S==null?void 0:S.header)},w.createElement("div",{className:`${r}-header-title`},x,i&&w.createElement("div",{className:`${r}-title`},i)),a&&w.createElement("div",{className:`${r}-extra`},a))},[v,x,a,c,r,i]),b=w.useMemo(()=>{var C,k;if(!o)return null;const T=`${r}-footer`;return w.createElement("div",{className:Vt(T,(C=m==null?void 0:m.classNames)===null||C===void 0?void 0:C.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(k=m==null?void 0:m.styles)===null||k===void 0?void 0:k.footer),d),p==null?void 0:p.footer)},o)},[o,d,r]);return w.createElement(w.Fragment,null,E,w.createElement("div",{className:Vt(`${r}-body`,S==null?void 0:S.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),f),p==null?void 0:p.body)},g),b)},lP=H5,W5=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},uP=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),cP=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},uP({opacity:e},{opacity:1})),K5=(e,t)=>[cP(.7,t),uP({transform:W5(e)},{transform:"none"})],G5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:cP(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:K5(i,n)}),{})}}},q5=G5,X5=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:f,lineType:d,colorSplit:g,marginSM:S,colorIcon:p,colorIconHover:m,colorText:h,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:x}=e,E=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${$r(s)} ${$r(l)}`,fontSize:u,lineHeight:c,borderBottom:`${$r(f)} ${d} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:S,color:p,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$r(v)} ${$r(x)}`,borderTop:`${$r(f)} ${d} ${g}`},"&-rtl":{direction:"rtl"}}}},Y5=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),fP=wj("Drawer",e=>{const t=tg(e,{});return[X5(t),q5(t)]},Y5);var dP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Q5,open:s,afterOpenChange:l,onClose:u,prefixCls:c,getContainer:f,style:d,className:g,visible:S,afterVisibleChange:p,maskStyle:m,drawerStyle:h,contentWrapperStyle:y}=e,v=dP(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:E,direction:b,drawer:C}=w.useContext(Qi),k=E("drawer",c),[T,F,V]=fP(k),H=f===void 0&&x?()=>x(document.body):f,U=Vt({"no-mask":!o,[`${k}-rtl`]:b==="rtl"},t,F,V),Q=w.useMemo(()=>n??(i==="large"?736:378),[n,i]),W=w.useMemo(()=>r??(i==="large"?736:378),[r,i]),_={motionName:tS(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=fe=>({motionName:tS(k,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=V5(),[N,z]=T3("Drawer",v.zIndex),{classNames:$={},styles:K={}}=v,{classNames:J={},styles:te={}}=C||{};return T(w.createElement(M3,null,w.createElement(D5,{status:!0,override:!0},w.createElement(Jk.Provider,{value:z},w.createElement(U5,Object.assign({prefixCls:k,onClose:u,maskMotion:_,motion:L},v,{classNames:{mask:Vt($.mask,J.mask),content:Vt($.content,J.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),m),te.mask),content:Object.assign(Object.assign(Object.assign({},K.content),h),te.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),y),te.wrapper)},open:s??S,mask:o,push:a,width:Q,height:W,style:Object.assign(Object.assign({},C==null?void 0:C.style),d),className:Vt(C==null?void 0:C.className,g),rootClassName:U,getContainer:H,afterOpenChange:l??p,panelRef:P,zIndex:N}),w.createElement(lP,Object.assign({prefixCls:k},v,{onClose:u})))))))},J5=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=dP(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=w.useContext(Qi),s=a("drawer",t),[l,u,c]=fP(s),f=Vt(s,`${s}-pure`,`${s}-${i}`,u,c,r);return l(w.createElement("div",{className:f,style:n},w.createElement(lP,Object.assign({prefixCls:s},o))))};hP._InternalPanelDoNotUseOrYouWillBeFired=J5;const Z5=hP,e4="_containerWrapper_1iakk_1",t4="_container_1iakk_1",n4="_hr_1iakk_14",Su={containerWrapper:e4,container:t4,hr:n4},og=w.createContext({theme:"light",toggleTheme:()=>{}}),r4=({children:e})=>{const[t,n]=w.useState(localStorage.getItem("theme")||"light"),r=()=>{const i=t==="light"?"dark":"light";localStorage.setItem("theme",i),n(i)};return M.jsx(og.Provider,{value:{theme:t,toggleTheme:r},children:M.jsx("div",{className:Su.containerWrapper,"data-theme":t,children:e})})};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -253,7 +253,7 @@ html body { * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ES=ff("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),l4="_navbar_9vml7_1",u4="_logo_9vml7_13",c4="_heading_9vml7_28",f4="_right_9vml7_34",d4="_links_9vml7_38",h4="_github_9vml7_41",p4="_hamburger_9vml7_53",m4="_themeButton_9vml7_64",v4="_drawerContent_9vml7_99",g4="_drawerList_9vml7_103",y4="_drawerListItem_9vml7_109",Ht={navbar:l4,logo:u4,heading:c4,right:f4,links:d4,github:h4,hamburger:p4,themeButton:m4,drawerContent:v4,drawerList:g4,drawerListItem:y4,"ant-drawer-close":"_ant-drawer-close_9vml7_113","ant-drawer-header":"_ant-drawer-header_9vml7_119","ant-drawer-title":"_ant-drawer-title_9vml7_124"};function ag({children:e,title:t,subheading:n}){const{theme:r,toggleTheme:i}=w.useContext(og),[o,a]=w.useState(!1),s=()=>{a(!o)};return O.jsxs("nav",{className:Ht.navbar,children:[O.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[O.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),O.jsx("span",{children:t??"Frontend Mini Challenges"})]}),O.jsx("div",{className:Ht.heading,children:O.jsx("span",{children:n??""})}),O.jsxs("div",{className:Ht.right,children:[O.jsx("div",{className:Ht.links,children:e}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})})]}),O.jsx("div",{className:Ht.hamburger,children:O.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:O.jsx(a4,{})})}),O.jsx(Z5,{title:O.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:O.jsxs("div",{className:Ht.drawerContent,children:[O.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>O.jsx("li",{className:Ht.drawerListItem,children:l},u))}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&O.jsx("button",{className:w4.topBtn,onClick:n,children:O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[O.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),O.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function b4(){return O.jsxs(O.Fragment,{children:[O.jsxs(ag,{children:[O.jsx(hp,{to:"#whyUs",children:"Why us?"}),O.jsx(hp,{to:"#contributors",children:"Contributors"}),O.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),O.jsxs("div",{className:Su.container,children:[O.jsx(FD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(dD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(lD,{}),O.jsx(mD,{}),O.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var M=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(M||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[M.Easy,M.Medium,M.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:M.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:M.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:M.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:M.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:M.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:M.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:M.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:M.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:M.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:M.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:M.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:M.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:M.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:M.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:M.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:M.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:M.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:M.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:M.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:M.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:M.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:M.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:M.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:M.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:M.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:M.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:M.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:M.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:M.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:M.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:M.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:M.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:M.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:M.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:M.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:M.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:M.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:M.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:M.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:M.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:M.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:M.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:M.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:M.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:M.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:M.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:M.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:M.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:M.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:M.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:M.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:M.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:M.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:M.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:M.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:M.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:M.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:M.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:M.Hard,developer:"SujithGunasekaran",tags:[q.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:M.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:M.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:M.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:M.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:M.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:M.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:M.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:M.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:M.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:M.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:M.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:M.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:M.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:M.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:M.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:M.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:M.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>O.jsxs("tr",{className:mt.leaderboardRowContainer,children:[O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:O.jsxs("div",{className:mt.profileLink,children:[O.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),O.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:O.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?O.jsx("div",{className:mt.techStackDiv,children:O.jsxs("div",{className:mt.techStackDivWrapper,children:[O.jsx("img",{src:r,className:mt.techStackImg}),O.jsx("div",{children:i})]})},n):null}),O.jsxs("div",{className:mt.totalContributions,children:[O.jsx("div",{children:"Total"}),O.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return O.jsx("div",{className:"container",children:O.jsx("div",{className:mt.leaderboardTableWrapper,children:O.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("td",{children:"#"}),O.jsx("td",{children:"Name"}),O.jsx("td",{children:"Contributions"})]})}),O.jsx("tbody",{children:i6})]})})})}function a6(){return O.jsxs(O.Fragment,{children:[O.jsx(ag,{subheading:"Leaderboard"}),O.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return O.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return O.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?O.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>O.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&O.jsx("div",{className:ot.newTag,children:"NEW"}),O.jsxs("div",{className:"flex-space-between",children:[O.jsx("div",{className:"flex-space-between",children:O.jsx("h3",{children:n.title})}),O.jsxs("div",{className:ot.difficultyBadge,children:[O.jsx("div",{className:ot.ellips}),n.difficulty]})]}),O.jsxs("div",{className:"flex-space-between",children:[O.jsxs("div",{className:"flex-space-between",children:[n.developer&&O.jsxs("div",{className:ot.developer,children:[O.jsx("img",{src:t==null?void 0:t.pic,alt:""}),O.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),O.jsx("div",{children:n.contributors&&O.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&O.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h{a(!o)};return M.jsxs("nav",{className:Ht.navbar,children:[M.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[M.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),M.jsx("span",{children:t??"Frontend Mini Challenges"})]}),M.jsx("div",{className:Ht.heading,children:M.jsx("span",{children:n??""})}),M.jsxs("div",{className:Ht.right,children:[M.jsx("div",{className:Ht.links,children:e}),M.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:M.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),M.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?M.jsx(ES,{}):M.jsx(CS,{})})]}),M.jsx("div",{className:Ht.hamburger,children:M.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:M.jsx(a4,{})})}),M.jsx(Z5,{title:M.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:M.jsxs("div",{className:Ht.drawerContent,children:[M.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>M.jsx("li",{className:Ht.drawerListItem,children:l},u))}),M.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?M.jsx(ES,{}):M.jsx(CS,{})}),M.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:M.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&M.jsx("button",{className:w4.topBtn,onClick:n,children:M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[M.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),M.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function b4(){return M.jsxs(M.Fragment,{children:[M.jsxs(ag,{children:[M.jsx(hp,{to:"#whyUs",children:"Why us?"}),M.jsx(hp,{to:"#contributors",children:"Contributors"}),M.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),M.jsxs("div",{className:Su.container,children:[M.jsx(FD,{}),M.jsx("hr",{className:Su.hr}),M.jsx(dD,{}),M.jsx("hr",{className:Su.hr}),M.jsx(lD,{}),M.jsx(mD,{}),M.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var O=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(O||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[O.Easy,O.Medium,O.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:O.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:O.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:O.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:O.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:O.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:O.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:O.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:O.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:O.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:O.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:O.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:O.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:O.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:O.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:O.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:O.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:O.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:O.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:O.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:O.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:O.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:O.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:O.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:O.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:O.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:O.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:O.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:O.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:O.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:O.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:O.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:O.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:O.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:O.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:O.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:O.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:O.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:O.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:O.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:O.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:O.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:O.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:O.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:O.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:O.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:O.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:O.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:O.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:O.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:O.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:O.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:O.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:O.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:O.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:O.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:O.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:O.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:O.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:O.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:O.Medium,developer:"deepu0",tags:[q.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:O.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:O.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:O.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:O.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:O.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:O.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:O.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:O.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:O.Hard,developer:"SujithGunasekaran",tags:[q.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:O.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:O.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:O.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:O.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:O.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:O.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:O.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:O.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:O.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:O.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:O.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:O.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:O.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:O.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:O.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:O.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:O.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:O.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:O.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:O.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:O.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:O.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:O.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:O.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>M.jsxs("tr",{className:mt.leaderboardRowContainer,children:[M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:M.jsxs("div",{className:mt.profileLink,children:[M.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),M.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:M.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?M.jsx("div",{className:mt.techStackDiv,children:M.jsxs("div",{className:mt.techStackDivWrapper,children:[M.jsx("img",{src:r,className:mt.techStackImg}),M.jsx("div",{children:i})]})},n):null}),M.jsxs("div",{className:mt.totalContributions,children:[M.jsx("div",{children:"Total"}),M.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return M.jsx("div",{className:"container",children:M.jsx("div",{className:mt.leaderboardTableWrapper,children:M.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[M.jsx("thead",{children:M.jsxs("tr",{children:[M.jsx("td",{children:"#"}),M.jsx("td",{children:"Name"}),M.jsx("td",{children:"Contributions"})]})}),M.jsx("tbody",{children:i6})]})})})}function a6(){return M.jsxs(M.Fragment,{children:[M.jsx(ag,{subheading:"Leaderboard"}),M.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return M.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return M.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?M.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>M.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&M.jsx("div",{className:ot.newTag,children:"NEW"}),M.jsxs("div",{className:"flex-space-between",children:[M.jsx("div",{className:"flex-space-between",children:M.jsx("h3",{children:n.title})}),M.jsxs("div",{className:ot.difficultyBadge,children:[M.jsx("div",{className:ot.ellips}),n.difficulty]})]}),M.jsxs("div",{className:"flex-space-between",children:[M.jsxs("div",{className:"flex-space-between",children:[n.developer&&M.jsxs("div",{className:ot.developer,children:[M.jsx("img",{src:t==null?void 0:t.pic,alt:""}),M.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),M.jsx("div",{children:n.contributors&&M.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&M.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var a$={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,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},s$=/[A-Z]|^ms/g,l$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,TP=function(t){return t.charCodeAt(1)===45},TS=function(t){return t!=null&&typeof t!="boolean"},Vd=j6(function(e){return TP(e)?e:e.replace(s$,"-$&").toLowerCase()}),RS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(l$,function(r,i,o){return er={name:i,styles:o,next:er},i})}return a$[t]!==1&&!TP(t)&&typeof n=="number"&&n!==0?n+"px":n};function Is(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return er={name:n.name,styles:n.styles,next:er},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)er={name:r.name,styles:r.styles,next:er},r=r.next;var i=n.styles+";";return i}return u$(e,t,n)}case"function":{if(e!==void 0){var o=er,a=n(e);return er=o,Is(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function u$(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e});function C$(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function OP(e){return FP(e)?(e.nodeName||"").toLowerCase():"#document"}function Hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function AP(e){var t;return(t=(FP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function FP(e){return e instanceof Node||e instanceof Hn(e).Node}function Jp(e){return e instanceof Element||e instanceof Hn(e).Element}function dg(e){return e instanceof HTMLElement||e instanceof Hn(e).HTMLElement}function OS(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hn(e).ShadowRoot}function LP(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function E$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function k$(e){return["html","body","#document"].includes(OP(e))}function hg(e){return Hn(e).getComputedStyle(e)}function P$(e){if(OP(e)==="html")return e;const t=e.assignedSlot||e.parentNode||OS(e)&&e.host||AP(e);return OS(t)?t.host:t}function _P(e){const t=P$(e);return k$(t)?e.ownerDocument?e.ownerDocument.body:e.body:dg(t)&&LP(t)?t:_P(t)}function uc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_P(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Hn(i);return o?t.concat(a,a.visualViewport||[],LP(i)?i:[],a.frameElement&&n?uc(a.frameElement):[]):t.concat(i,uc(i,[],n))}function T$(e){const t=hg(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dg(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=sc(n)!==o||sc(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function pg(e){return Jp(e)?e:e.contextElement}function jd(e){const t=pg(e);if(!dg(t))return lc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=T$(t);let a=(o?sc(n.width):n.width)/r,s=(o?sc(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const R$=lc(0);function M$(e){const t=Hn(e);return!E$()||!t.visualViewport?R$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Hn(e)?!1:t}function AS(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=pg(e);let a=lc(1);t&&(r?Jp(r)&&(a=jd(r)):a=jd(e));const s=O$(o,n,r)?M$(o):lc(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=Hn(o),g=r&&Jp(r)?Hn(r):r;let S=d.frameElement;for(;S&&r&&g!==d;){const p=jd(S),m=S.getBoundingClientRect(),h=hg(S),y=m.left+(S.clientLeft+parseFloat(h.paddingLeft))*p.x,v=m.top+(S.clientTop+parseFloat(h.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=y,u+=v,S=Hn(S).frameElement}}return C$({width:c,height:f,x:l,y:u})}function A$(e,t){let n=null,r;const i=AP(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const g=zl(c),S=zl(i.clientWidth-(u+f)),p=zl(i.clientHeight-(c+d)),m=zl(u),y={rootMargin:-g+"px "+-S+"px "+-p+"px "+-m+"px",threshold:x$(0,b$(1,l))||1};let v=!0;function x(E){const b=E[0].intersectionRatio;if(b!==l){if(!v)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return a(!0),o}function F$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=pg(e),c=i||o?[...u?uc(u):[],...uc(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&s?A$(u,n):null;let d=-1,g=null;a&&(g=new ResizeObserver(h=>{let[y]=h;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let S,p=l?AS(e):null;l&&m();function m(){const h=AS(e);p&&(h.x!==p.x||h.y!==p.y||h.width!==p.width||h.height!==p.height)&&n(),p=h,S=requestAnimationFrame(m)}return n(),()=>{c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(S)}}var Zp=w.useLayoutEffect,L$=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cc=function(){};function _$(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function I$(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function D$(e){return Cf(e)?window.innerHeight:e.clientHeight}function DP(e){return Cf(e)?window.pageYOffset:e.scrollTop}function fc(e,t){if(Cf(e)){window.scrollTo(0,t);return}e.scrollTop=t}function N$(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function V$(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cc,i=DP(e),o=t-i,a=10,s=0;function l(){s+=a;var u=V$(s,i,o,n);fc(e,u),sn.bottom?fc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=S)return{placement:"bottom",maxHeight:t};if(T>=S&&!a)return o&&Ul(l,F,H),{placement:"bottom",maxHeight:t};if(!a&&T>=r||a&&C>=r){o&&Ul(l,F,H);var U=a?C-x:T-x;return{placement:"bottom",maxHeight:U}}if(i==="auto"||a){var Q=t,W=a?b:k;return W>=r&&(Q=Math.min(W-x-s,t)),{placement:"top",maxHeight:Q}}if(i==="bottom")return o&&fc(l,F),{placement:"bottom",maxHeight:t};break;case"top":if(b>=S)return{placement:"top",maxHeight:t};if(k>=S&&!a)return o&&Ul(l,V,H),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&b>=r){var _=t;return(!a&&k>=r||a&&b>=r)&&(_=a?b-E:k-E),o&&Ul(l,V,H),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function X$(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var VP=function(t){return t==="auto"?"bottom":t},Y$=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return I((r={label:"menu"},j(r,X$(i),"100%"),j(r,"position","absolute"),j(r,"width","100%"),j(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},jP=w.createContext(null),Q$=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(jP)||{},c=u.setPortalPlacement,f=w.useRef(null),d=w.useState(i),g=oe(d,2),S=g[0],p=g[1],m=w.useState(null),h=oe(m,2),y=h[0],v=h[1],x=l.spacing.controlHeight;return Zp(function(){var E=f.current;if(E){var b=a==="fixed",C=s&&!b,k=q$({maxHeight:i,menuEl:E,minHeight:r,placement:o,shouldScroll:C,isFixedPosition:b,controlHeight:x});p(k.maxHeight),v(k.placement),c==null||c(k.placement)}},[i,o,a,s,r,c,x]),n({ref:f,placerProps:I(I({},t),{},{placement:y||VP(o),maxHeight:S})})},J$=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return se("div",ee({},Xe(t,"menu",{menu:!0}),{ref:r},i),n)},Z$=J$,eB=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return I({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},tB=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return se("div",ee({},Xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},$P=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return I({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},nB=$P,rB=$P,iB=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=St(t,K$);return se("div",ee({},Xe(I(I({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},oB=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=St(t,G$);return se("div",ee({},Xe(I(I({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},aB=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},sB=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(VP(a)),f=oe(c,2),d=f[0],g=f[1],S=w.useMemo(function(){return{setPortalPlacement:g}},[]),p=w.useState(null),m=oe(p,2),h=m[0],y=m[1],v=w.useCallback(function(){if(i){var C=j$(i),k=s==="fixed"?0:window.pageYOffset,T=C[d]+k;(T!==(h==null?void 0:h.offset)||C.left!==(h==null?void 0:h.rect.left)||C.width!==(h==null?void 0:h.rect.width))&&y({offset:T,rect:C})}},[i,s,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);Zp(function(){v()},[v]);var x=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=F$(i,l.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);Zp(function(){x()},[x]);var E=w.useCallback(function(C){l.current=C,x()},[x]);if(!n&&s!=="fixed"||!h)return null;var b=se("div",ee({ref:E},Xe(I(I({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return se(jP.Provider,{value:S},n?Bs.createPortal(b,n):b)},lB=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},uB=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return se("div",ee({},Xe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},cB=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return I({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},fB=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return se("div",ee({},Xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dB=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},hB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"indicatorsContainer",{indicators:!0}),r),n)},IS,pB=["size"],mB=["innerProps","isRtl","size"],vB={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},BP=function(t){var n=t.size,r=St(t,pB);return se("svg",ee({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vB},r))},mg=function(t){return se(BP,ee({size:20},t),se("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zP=function(t){return se(BP,ee({size:20},t),se("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},UP=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return I({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},gB=UP,yB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||se(zP,null))},SB=UP,wB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||se(mg,null))},bB=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return I({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},xB=function(t){var n=t.innerProps;return se("span",ee({},n,Xe(t,"indicatorSeparator",{"indicator-separator":!0})))},CB=S$(IS||(IS=w$([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),EB=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return I({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},$d=function(t){var n=t.delay,r=t.offset;return se("span",{css:fg({animation:"".concat(CB," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kB=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=St(t,mB);return se("div",ee({},Xe(I(I({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),se($d,{delay:0,offset:r}),se($d,{delay:160,offset:!0}),se($d,{delay:320,offset:!r}))},PB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return I({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},TB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return se("div",ee({ref:o},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},RB=TB,MB=["data"],OB=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},AB=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return se("div",ee({},Xe(t,"group",{group:!0}),l),se(a,ee({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),se("div",null,n))},FB=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return I({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},LB=function(t){var n=IP(t);n.data;var r=St(n,MB);return se("div",ee({},Xe(t,"groupHeading",{"group-heading":!0}),r))},_B=AB,IB=["innerRef","isDisabled","isHidden","inputClassName"],DB=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return I(I({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},NB),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},HP={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":I({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HP)},VB=function(t){return I({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},HP)},jB=function(t){var n=t.cx,r=t.value,i=IP(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=St(i,IB);return se("div",ee({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),se("input",ee({className:n({input:!0},l),ref:o,style:VB(s),disabled:a},u)))},$B=jB,BB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return I({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},zB=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return I({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},UB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return I({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},WP=function(t){var n=t.children,r=t.innerProps;return se("div",r,n)},HB=WP,WB=WP;function KB(e){var t=e.children,n=e.innerProps;return se("div",ee({role:"button"},n),t||se(mg,{size:14}))}var GB=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return se(u,{data:i,innerProps:I(I({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},se(c,{data:i,innerProps:I({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),se(f,{data:i,innerProps:I(I({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},qB=GB,XB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return I({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},YB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return se("div",ee({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},QB=YB,JB=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return I({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ZB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"placeholder",{placeholder:!0}),r),n)},e8=ZB,t8=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return I({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},n8=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return se("div",ee({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},r8=n8,vg={ClearIndicator:wB,Control:RB,DropdownIndicator:yB,DownChevron:zP,CrossIcon:mg,Group:_B,GroupHeading:LB,IndicatorsContainer:hB,IndicatorSeparator:xB,Input:$B,LoadingIndicator:kB,Menu:Z$,MenuList:tB,MenuPortal:sB,LoadingMessage:oB,NoOptionsMessage:iB,MultiValue:qB,MultiValueContainer:HB,MultiValueLabel:WB,MultiValueRemove:KB,Option:QB,Placeholder:e8,SelectContainer:uB,SingleValue:r8,ValueContainer:fB},i8=function(t){return I(I({},vg),t.components)},DS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function o8(e,t){return!!(e===t||DS(e)&&DS(t))}function a8(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",g="".concat(u?" selected":"").concat(d);return"".concat(a).concat(g,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},f8=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,g=l.inputValue,S=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,h=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,x=l.tabSelectsValue,E=l.isLoading,b=l["aria-label"],C=l["aria-live"],k=w.useMemo(function(){return I(I({},c8),f||{})},[f]),T=w.useMemo(function(){var W="";if(n&&k.onChange){var _=n.option,L=n.options,P=n.removedValue,N=n.removedValues,z=n.value,$=function(ht){return Array.isArray(ht)?null:ht},K=P||_||$(z),J=K?d(K):"",te=L||N||void 0,fe=te?te.map(d):[],ce=I({isDisabled:K&&p(K,s),label:J,labels:fe},n);W=k.onChange(ce)}return W},[n,k,p,s,d]),F=w.useMemo(function(){var W="",_=r||i,L=!!(r&&s&&s.includes(r));if(_&&k.onFocus){var P={focused:_,label:d(_),isDisabled:p(_,s),isSelected:L,options:o,context:_===r?"menu":"value",selectValue:s,isAppleDevice:c};W=k.onFocus(P)}return W},[r,i,d,p,k,o,s,c]),V=w.useMemo(function(){var W="";if(h&&y.length&&!E&&k.onFilter){var _=v({count:o.length});W=k.onFilter({inputValue:g,resultsMessage:_})}return W},[o,g,h,k,y,v,E]),H=(n==null?void 0:n.action)==="initial-input-focus",U=w.useMemo(function(){var W="";if(k.guidance){var _=i?"value":h?"menu":"input";W=k.guidance({"aria-label":b,context:_,isDisabled:r&&p(r,s),isMulti:S,isSearchable:m,tabSelectsValue:x,isInitialFocus:H})}return W},[b,r,i,S,p,m,h,k,s,x,H]),Q=se(w.Fragment,null,se("span",{id:"aria-selection"},T),se("span",{id:"aria-focused"},F),se("span",{id:"aria-results"},V),se("span",{id:"aria-guidance"},U));return se(w.Fragment,null,se(NS,{id:u},H&&Q),se(NS,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!H&&Q))},d8=f8,em=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],h8=new RegExp("["+em.map(function(e){return e.letters}).join("")+"]","g"),KP={};for(var Bd=0;Bd-1}},g8=["innerRef"];function y8(e){var t=e.innerRef,n=St(e,g8),r=W$(n,"onExited","in","enter","exit","appear");return se("input",ee({ref:t},r,{css:fg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var S8=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function w8(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(m,h){if(u.current!==null){var y=u.current,v=y.scrollTop,x=y.scrollHeight,E=y.clientHeight,b=u.current,C=h>0,k=x-E-v,T=!1;k>h&&a.current&&(r&&r(m),a.current=!1),C&&s.current&&(o&&o(m),s.current=!1),C&&h>k?(n&&!a.current&&n(m),b.scrollTop=x,T=!0,a.current=!0):!C&&-h>v&&(i&&!s.current&&i(m),b.scrollTop=0,T=!0,s.current=!0),T&&S8(m)}},[n,r,i,o]),f=w.useCallback(function(m){c(m,m.deltaY)},[c]),d=w.useCallback(function(m){l.current=m.changedTouches[0].clientY},[]),g=w.useCallback(function(m){var h=l.current-m.changedTouches[0].clientY;c(m,h)},[c]),S=w.useCallback(function(m){if(m){var h=z$?{passive:!1}:!1;m.addEventListener("wheel",f,h),m.addEventListener("touchstart",d,h),m.addEventListener("touchmove",g,h)}},[g,d,f]),p=w.useCallback(function(m){m&&(m.removeEventListener("wheel",f,!1),m.removeEventListener("touchstart",d,!1),m.removeEventListener("touchmove",g,!1))},[g,d,f]);return w.useEffect(function(){if(t){var m=u.current;return S(m),function(){p(m)}}},[t,S,p]),function(m){u.current=m}}var jS=["boxSizing","height","overflow","paddingRight","position"],$S={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function BS(e){e.preventDefault()}function zS(e){e.stopPropagation()}function US(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function HS(){return"ontouchstart"in window||navigator.maxTouchPoints}var WS=!!(typeof window<"u"&&window.document&&window.document.createElement),Fa=0,so={capture:!1,passive:!1};function b8(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;if(r&&jS.forEach(function(S){var p=c&&c[S];i.current[S]=p}),r&&Fa<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,g=window.innerWidth-d+f||0;Object.keys($S).forEach(function(S){var p=$S[S];c&&(c[S]=p)}),c&&(c.paddingRight="".concat(g,"px"))}u&&HS()&&(u.addEventListener("touchmove",BS,so),l&&(l.addEventListener("touchstart",US,so),l.addEventListener("touchmove",zS,so))),Fa+=1}},[r]),s=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;Fa=Math.max(Fa-1,0),r&&Fa<1&&jS.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&HS()&&(u.removeEventListener("touchmove",BS,so),l&&(l.removeEventListener("touchstart",US,so),l.removeEventListener("touchmove",zS,so)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var x8=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},C8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function E8(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=w8({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=b8({isEnabled:n}),f=function(g){u(g),c(g)};return se(w.Fragment,null,n&&se("div",{onClick:x8,css:C8}),t(f))}var k8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},P8=function(t){var n=t.name,r=t.onFocus;return se("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:k8,value:"",onChange:function(){}})},T8=P8;function gg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function R8(){return gg(/^iPhone/i)}function qP(){return gg(/^Mac/i)}function M8(){return gg(/^iPad/i)||qP()&&navigator.maxTouchPoints>1}function O8(){return R8()||M8()}function A8(){return qP()||O8()}var F8=function(t){return t.label},L8=function(t){return t.label},_8=function(t){return t.value},I8=function(t){return!!t.isDisabled},D8={clearIndicator:SB,container:lB,control:PB,dropdownIndicator:gB,group:OB,groupHeading:FB,indicatorsContainer:dB,indicatorSeparator:bB,input:DB,loadingIndicator:EB,loadingMessage:rB,menu:Y$,menuList:eB,menuPortal:aB,multiValue:BB,multiValueLabel:zB,multiValueRemove:UB,noOptionsMessage:nB,option:XB,placeholder:JB,singleValue:t8,valueContainer:cB},N8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},V8=4,XP=4,j8=38,$8=XP*2,B8={baseUnit:XP,controlHeight:j8,menuGutter:$8},Hd={borderRadius:V8,colors:N8,spacing:B8},z8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_S(),captureMenuScroll:!_S(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:v8(),formatGroupLabel:F8,getOptionLabel:L8,getOptionValue:_8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:I8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!$$(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KS(e,t,n,r){var i=JP(e,t,n),o=ZP(e,t,n),a=QP(e,t),s=dc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function wu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return KS(e,a,t,s)}).filter(function(a){return qS(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=KS(e,n,t,r);return qS(e,o)?o:void 0}).filter(U$)}function YP(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,de(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function GS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,de(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function U8(e,t){return YP(wu(e,t))}function qS(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!tT(e)||!o)&&eT(e,{label:a,value:s,data:i},r)}function H8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Wd=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},QP=function(t,n){return t.getOptionLabel(n)},dc=function(t,n){return t.getOptionValue(n)};function JP(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZP(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dc(e,t);return n.some(function(i){return dc(e,i)===r})}function eT(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tT=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},K8=1,nT=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=A8(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,g=f.isMulti,S=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:S}),d&&(i.setState({inputIsHiddenAfterUpdate:!g}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,g=i.state.selectValue,S=f&&i.isOptionSelected(l,g),p=i.isOptionDisabled(l,g);if(S){var m=i.getOptionValue(l);i.setValue(g.filter(function(h){return i.getOptionValue(h)!==m}),"deselect-option",l)}else if(!p)f?i.setValue([].concat(de(g),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(S){return i.getOptionValue(S)!==f}),g=Wl(u,d,d[0]||null);i.onChange(g,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Wl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Wd(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return GS(wu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cg||d>g}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tT(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,g=u.inputValue,S=u.isClearable,p=u.isDisabled,m=u.menuIsOpen,h=u.onKeyDown,y=u.tabSelectsValue,v=u.openMenuOnFocus,x=i.state,E=x.focusedOption,b=x.focusedValue,C=x.selectValue;if(!p&&!(typeof h=="function"&&(h(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||g)return;i.focusValue("previous");break;case"ArrowRight":if(!c||g)return;i.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(b)i.removeValue(b);else{if(!f)return;c?i.popValue():S&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!y||!E||v&&i.isOptionSelected(E,C))return;i.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:g}),i.onMenuClose()):S&&d&&i.clearValue();break;case" ":if(g)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++K8),i.state.selectValue=FS(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wd(o,a[s])}return i}return Rn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&LS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(LS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):I(I({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,g=f.isRtl,S=f.options,p=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:p,isMulti:d,isRtl:g,options:S,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return JP(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return ZP(this.props,i,o)}},{key:"filterOption",value:function(i,o){return eT(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,g=this.getComponents(),S=g.Input,p=this.state,m=p.inputIsHidden,h=p.ariaSelection,y=this.commonProps,v=s||this.getElementId("input"),x=I(I(I({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?w.createElement(S,ee({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},x)):w.createElement(y8,ee({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cc,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,g=this.props,S=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,h=g.inputValue,y=g.placeholder,v=this.state,x=v.selectValue,E=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!S)return h?null:w.createElement(f,ee({},d,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(k,T){var F=k===E,V="".concat(i.getOptionLabel(k),"-").concat(i.getOptionValue(k));return w.createElement(a,ee({},d,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return i.removeValue(k)},onTouchEnd:function(){return i.removeValue(k)},onMouseDown:function(U){U.preventDefault()}},data:k}),i.formatOptionLabel(k,"value"))});if(h)return null;var C=x[0];return w.createElement(c,ee({},d,{data:C,isDisabled:p}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return w.createElement(a,ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,g=o.Option,S=this.commonProps,p=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,x=m.loadingMessage,E=m.minMenuHeight,b=m.maxMenuHeight,C=m.menuIsOpen,k=m.menuPlacement,T=m.menuPosition,F=m.menuPortalTarget,V=m.menuShouldBlockScroll,H=m.menuShouldScrollIntoView,U=m.noOptionsMessage,Q=m.onMenuScrollToTop,W=m.onMenuScrollToBottom;if(!C)return null;var _=function(J,te){var fe=J.type,ce=J.data,be=J.isDisabled,ht=J.isSelected,bt=J.label,Ae=J.value,Ee=p===ce,rt=be?void 0:function(){return i.onOptionHover(ce)},Mn=be?void 0:function(){return i.selectOption(ce)},qn="".concat(i.getElementId("option"),"-").concat(te),Ye={id:qn,onClick:Mn,onMouseMove:rt,onMouseOver:rt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ht};return w.createElement(g,ee({},S,{innerProps:Ye,data:ce,isDisabled:be,isSelected:ht,key:qn,label:bt,type:fe,value:Ae,isFocused:Ee,innerRef:Ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(J.data,"menu"))},L;if(this.hasOptions())L=this.getCategorizedOptions().map(function(K){if(K.type==="group"){var J=K.data,te=K.options,fe=K.index,ce="".concat(i.getElementId("group"),"-").concat(fe),be="".concat(ce,"-heading");return w.createElement(a,ee({},S,{key:ce,data:J,options:te,Heading:s,headingProps:{id:be,data:K.data},label:i.formatGroupLabel(K.data)}),K.options.map(function(ht){return _(ht,"".concat(fe,"-").concat(ht.index))}))}else if(K.type==="option")return _(K,"".concat(K.index))});else if(v){var P=x({inputValue:y});if(P===null)return null;L=w.createElement(f,S,P)}else{var N=U({inputValue:y});if(N===null)return null;L=w.createElement(d,S,N)}var z={minMenuHeight:E,maxMenuHeight:b,menuPlacement:k,menuPosition:T,menuShouldScrollIntoView:H},$=w.createElement(Q$,ee({},S,z),function(K){var J=K.ref,te=K.placerProps,fe=te.placement,ce=te.maxHeight;return w.createElement(l,ee({},S,z,{innerRef:J,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:fe}),w.createElement(E8,{captureEnabled:h,onTopArrive:Q,onBottomArrive:W,lockEnabled:V},function(be){return w.createElement(u,ee({},S,{innerRef:function(bt){i.getMenuListRef(bt),be(bt)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:ce,focusedOption:p}),L)}))});return F||T==="fixed"?w.createElement(c,ee({},S,{appendTo:F,controlElement:this.controlRef,menuPlacement:k,menuPosition:T}),$):$}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return w.createElement(T8,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(p){return i.getOptionValue(p)}).join(a);return w.createElement("input",{name:u,type:"hidden",value:d})}else{var g=f.length>0?f.map(function(p,m){return w.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:i.getOptionValue(p)})}):w.createElement("input",{name:u,type:"hidden",value:""});return w.createElement("div",null,g)}else{var S=f[0]?this.getOptionValue(f[0]):"";return w.createElement("input",{name:u,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return w.createElement(d8,ee({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,g=u.menuIsOpen,S=this.state.isFocused,p=this.commonProps=this.getCommonProps();return w.createElement(s,ee({},p,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:S}),this.renderLiveRegion(),w.createElement(o,ee({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:S,menuIsOpen:g}),w.createElement(l,ee({},p,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(a,ee({},p,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,g=i.options,S=i.value,p=i.menuIsOpen,m=i.inputValue,h=i.isMulti,y=FS(S),v={};if(a&&(S!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?U8(i,y):[],E=p?GS(wu(i,y),"".concat(d,"-option")):[],b=s?H8(o,y):null,C=W8(o,x),k=Wd(E,C);v={selectValue:y,focusedOption:C,focusedOptionId:k,focusableOptionsWithIds:E,focusedValue:b,clearFocusValueOnUpdate:!1}}var T=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,V=c&&f;return c&&!V&&(F={value:Wl(h,y,y[0]||null),options:y,action:"initial-input-focus"},V=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),I(I(I({},v),T),{},{prevProps:i,ariaSelection:F,prevWasFocused:V})}}]),n}(w.Component);nT.defaultProps=z8;var G8=w.forwardRef(function(e,t){var n=I6(e);return w.createElement(nT,ee({ref:t},n))}),q8=G8;const rT=e=>O.jsx("div",{children:O.jsxs(vg.Option,{...e,children:[O.jsx("input",{type:"checkbox",checked:e.isSelected,onChange:()=>null})," ",O.jsx("label",{children:e.label})]})});rT.propTypes={isSelected:g1.bool.isRequired,label:g1.string.isRequired};const X8=e=>O.jsx(vg.MultiValue,{...e,children:O.jsx("span",{children:e.data.label})}),XS=({data:e,width:t="100%",optionSelected:n,setOptionSelected:r})=>{const{theme:i}=w.useContext(og),o=a=>{r(a)};return O.jsx("span",{style:{width:t},children:O.jsx(q8,{options:e,isMulti:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1,components:{Option:rT,MultiValue:X8},onChange:a=>o(a),value:n,styles:{control:a=>({...a,width:t,height:"0.1rem",textAlign:"left",outline:"none",borderRadius:"5px",border:"2px solid #ccc",maxHeight:"200px",overflowY:"auto",background:i==="dark"?"#000000":"#ffffff"}),menu:a=>({...a,zIndex:"2"}),menuList:a=>({...a,textAlign:"left",background:i==="dark"?"#000000":"#ffffff"}),option:(a,s)=>{const l=i==="dark",u=i==="light",c=s.isSelected,f=s.isFocused;return{...a,color:c?"#ffffff":l&&f?"#000000":"inherit",background:(()=>{if(l){if(c)return"blue";if(f)return"#ffffff"}if(u){if(c)return"#2684FF";if(f)return"#B2D4FF"}return"initial"})()}},placeholder:a=>({...a,color:i==="dark"?"#b0b3b8":"grey"})}})})},Y8=[{label:"Easy",value:M.Easy},{label:"Medium",value:M.Medium},{label:"Hard",value:M.Hard}],Q8=({checked:e,setNewChallenge:t,label:n,className:r,containerClass:i})=>O.jsxs("div",{className:i,children:[O.jsx("input",{className:r,type:"checkbox",id:"checkbox",name:"checkbox",onChange:o=>t(o.target.checked),checked:e}),O.jsx("label",{htmlFor:"checkbox",children:n})]}),J8="_segment_2sm8x_1",Z8="_segmentBtn_2sm8x_8",YS={segment:J8,segmentBtn:Z8};function ez({tag:e,setTag:t,setSelectedChallengesByTags:n}){return O.jsx("div",{className:YS.segment,children:Object.entries(q).map(([r,i])=>O.jsx("button",{"data-active":e===i,className:YS.segmentBtn,onClick:()=>{t(i),n([i])},children:i},r))})}const tz=({searchInput:e,setSearchInput:t,optionSelected:n,setOptionSelected:r,selectedDifficulties:i,setSelectedDifficulties:o,links:a,tag:s,setTag:l,setSelectedChallengesByTags:u,setNewChallenge:c,newChallenge:f})=>{const d=w.useMemo(()=>{const g=new Map;for(const[p,m]of df)g.set(p,m);const S=[];return g.forEach((p,m)=>{m!==""&&(p==null?void 0:p.name)!==""&&S.push({value:m,label:p==null?void 0:p.name})}),S},[]);return O.jsxs("div",{className:ot.filterOptionWrapper,children:[O.jsxs("div",{className:ot.searchInputWrapper,children:[O.jsx("input",{type:"text",name:"searchTextInput",placeholder:"Search challenge...",className:ot.searchInput,value:e,onChange:g=>t(g.target.value.trim())}),O.jsx(s4,{size:15,className:ot.searchIcon})]}),O.jsx(XS,{data:d,optionSelected:n,setOptionSelected:g=>r(g)}),O.jsx(XS,{data:Y8,optionSelected:i,setOptionSelected:g=>o(g)}),O.jsx(Q8,{className:ot.checkbox,checked:f,setNewChallenge:c,label:"New Challenges",containerClass:ot.checkboxContainer}),O.jsx(ez,{tag:s,setTag:l,setSelectedChallengesByTags:u}),O.jsx("div",{className:ot.filterByTechWrapper,children:a.map(g=>O.jsx(Fc,{to:`/${g.tech}`,children:O.jsx("img",{src:g.imgSrc,width:35,height:35,className:g.active?ot.activeTech:"",alt:`filter by ${g.tech}`})},g.tech))})]})};function nz({challenges:e,linkPrefix:t,links:n,techImg:r}){const i=R4(),[o,a]=w.useState(i.searchInput),[s,l]=w.useState(e),[u,c]=w.useState(i.optionSelected),[f,d]=w.useState(i.selectedDifficulties),[g,S]=w.useState(i.selectedChallengesByTags),[p,m]=w.useState(i.tag),[h,y]=w.useState(i.newChallenge);return w.useEffect(()=>{l(()=>T4({challenges:[...e.values()],title:o,contributors:u,difficulties:f,tags:g,newChallenge:h}));const v={searchInput:o,optionSelected:u,selectedDifficulties:f,tag:p,selectedChallengesByTags:g,newChallenge:h};sessionStorage.setItem("searchFilters",JSON.stringify(v)),!o&&!u&&!f&&!h&&l(e)},[e,o,u,f,p,g,h]),O.jsxs("div",{className:ot.container,children:[O.jsx(tz,{links:n,searchInput:o,setSearchInput:a,optionSelected:u,setOptionSelected:c,selectedDifficulties:f,setSelectedDifficulties:d,setSelectedChallengesByTags:S,tag:p,setTag:m,newChallenge:h,setNewChallenge:y}),s.length?O.jsx("div",{className:ot.challengeGrid,children:s.map(v=>O.jsx(L6,{link:t+v.link,contributor:df.get(v.developer),challenge:v,techImg:r},v.title))}):O.jsxs("div",{className:ot.emptyMessage,children:["No challenges found..."," ",O.jsxs("div",{children:["maybe try adding one"," ",O.jsxs("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/blob/main/CONTRIBUTING.md#challenge-contribution",target:"_blank",rel:"noopener noreferrer",children:["here"," "]}),"🤓"]})]})]})}var rz={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:sr,VITE_CSS_APP_URL:iz,VITE_JS_APP_URL:oz,VITE_REACT_APP_URL:az,VITE_VUE_APP_URL:sz,VITE_NG_APP_URL:lz,DEV:rl}=rz,uz=rl?`${iz}${sr}`:`/${sr}`,cz=rl?`${oz}${sr}`:`/${sr}`,fz=rl?`${az}${sr}`:`/${sr}`,dz=rl?`${sz}${sr}`:`/${sr}`,hz=rl?`${lz}${sr}`:`/${sr}`,uo=new Map([["css",{title:"CSS",challenges:mP,link:uz+"/css/src/challenges/",imgSrc:Iv}],["javascript",{title:"JS",challenges:vP,link:cz+"/javascript/src/challenges/",imgSrc:Nv}],["react",{title:"React",challenges:gP,link:fz+"/react/#/",imgSrc:Vv}],["vue",{title:"Vue",challenges:yP,link:dz+"/vue/#",imgSrc:jv}],["angular",{title:"Angular",challenges:SP,link:hz+"/angular/#",imgSrc:Dv}]]),QS=Array.from(uo.keys());function pz(){const{tech:e}=CM(),t=kx();if(w.useEffect(()=>{(!e||!QS.includes(e))&&t("/")},[t,e]),!e||!uo.get(e))return null;const n=QS.map(r=>({tech:r,imgSrc:uo.get(r).imgSrc,active:r===e}));return O.jsxs(O.Fragment,{children:[O.jsx(ag,{}),O.jsxs("div",{className:"container text-center",children:[O.jsx(nz,{challenges:[...uo.get(e).challenges.values()],linkPrefix:uo.get(e).link,links:n,techImg:uo.get(e).imgSrc}),O.jsx(pP,{})]})]})}const mz=zM([{path:"/leaderboard",element:O.jsx(a6,{})},{path:"/:tech",element:O.jsx(pz,{})},{path:"/",element:O.jsx(b4,{})}]);Kd.createRoot(document.getElementById("root")).render(O.jsx(qe.StrictMode,{children:O.jsx(r4,{children:O.jsx(YM,{router:mz})})})); +`]))),EB=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return I({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},$d=function(t){var n=t.delay,r=t.offset;return se("span",{css:fg({animation:"".concat(CB," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kB=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=St(t,mB);return se("div",ee({},Xe(I(I({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),se($d,{delay:0,offset:r}),se($d,{delay:160,offset:!0}),se($d,{delay:320,offset:!r}))},PB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return I({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},TB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return se("div",ee({ref:o},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},RB=TB,MB=["data"],OB=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},AB=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return se("div",ee({},Xe(t,"group",{group:!0}),l),se(a,ee({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),se("div",null,n))},FB=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return I({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},LB=function(t){var n=IP(t);n.data;var r=St(n,MB);return se("div",ee({},Xe(t,"groupHeading",{"group-heading":!0}),r))},_B=AB,IB=["innerRef","isDisabled","isHidden","inputClassName"],DB=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return I(I({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},NB),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},HP={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":I({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HP)},VB=function(t){return I({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},HP)},jB=function(t){var n=t.cx,r=t.value,i=IP(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=St(i,IB);return se("div",ee({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),se("input",ee({className:n({input:!0},l),ref:o,style:VB(s),disabled:a},u)))},$B=jB,BB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return I({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},zB=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return I({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},UB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return I({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},WP=function(t){var n=t.children,r=t.innerProps;return se("div",r,n)},HB=WP,WB=WP;function KB(e){var t=e.children,n=e.innerProps;return se("div",ee({role:"button"},n),t||se(mg,{size:14}))}var GB=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return se(u,{data:i,innerProps:I(I({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},se(c,{data:i,innerProps:I({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),se(f,{data:i,innerProps:I(I({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},qB=GB,XB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return I({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},YB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return se("div",ee({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},QB=YB,JB=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return I({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ZB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"placeholder",{placeholder:!0}),r),n)},e8=ZB,t8=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return I({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},n8=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return se("div",ee({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},r8=n8,vg={ClearIndicator:wB,Control:RB,DropdownIndicator:yB,DownChevron:zP,CrossIcon:mg,Group:_B,GroupHeading:LB,IndicatorsContainer:hB,IndicatorSeparator:xB,Input:$B,LoadingIndicator:kB,Menu:Z$,MenuList:tB,MenuPortal:sB,LoadingMessage:oB,NoOptionsMessage:iB,MultiValue:qB,MultiValueContainer:HB,MultiValueLabel:WB,MultiValueRemove:KB,Option:QB,Placeholder:e8,SelectContainer:uB,SingleValue:r8,ValueContainer:fB},i8=function(t){return I(I({},vg),t.components)},DS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function o8(e,t){return!!(e===t||DS(e)&&DS(t))}function a8(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",g="".concat(u?" selected":"").concat(d);return"".concat(a).concat(g,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},f8=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,g=l.inputValue,S=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,h=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,x=l.tabSelectsValue,E=l.isLoading,b=l["aria-label"],C=l["aria-live"],k=w.useMemo(function(){return I(I({},c8),f||{})},[f]),T=w.useMemo(function(){var W="";if(n&&k.onChange){var _=n.option,L=n.options,P=n.removedValue,N=n.removedValues,z=n.value,$=function(ht){return Array.isArray(ht)?null:ht},K=P||_||$(z),J=K?d(K):"",te=L||N||void 0,fe=te?te.map(d):[],ce=I({isDisabled:K&&p(K,s),label:J,labels:fe},n);W=k.onChange(ce)}return W},[n,k,p,s,d]),F=w.useMemo(function(){var W="",_=r||i,L=!!(r&&s&&s.includes(r));if(_&&k.onFocus){var P={focused:_,label:d(_),isDisabled:p(_,s),isSelected:L,options:o,context:_===r?"menu":"value",selectValue:s,isAppleDevice:c};W=k.onFocus(P)}return W},[r,i,d,p,k,o,s,c]),V=w.useMemo(function(){var W="";if(h&&y.length&&!E&&k.onFilter){var _=v({count:o.length});W=k.onFilter({inputValue:g,resultsMessage:_})}return W},[o,g,h,k,y,v,E]),H=(n==null?void 0:n.action)==="initial-input-focus",U=w.useMemo(function(){var W="";if(k.guidance){var _=i?"value":h?"menu":"input";W=k.guidance({"aria-label":b,context:_,isDisabled:r&&p(r,s),isMulti:S,isSearchable:m,tabSelectsValue:x,isInitialFocus:H})}return W},[b,r,i,S,p,m,h,k,s,x,H]),Q=se(w.Fragment,null,se("span",{id:"aria-selection"},T),se("span",{id:"aria-focused"},F),se("span",{id:"aria-results"},V),se("span",{id:"aria-guidance"},U));return se(w.Fragment,null,se(NS,{id:u},H&&Q),se(NS,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!H&&Q))},d8=f8,em=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],h8=new RegExp("["+em.map(function(e){return e.letters}).join("")+"]","g"),KP={};for(var Bd=0;Bd-1}},g8=["innerRef"];function y8(e){var t=e.innerRef,n=St(e,g8),r=W$(n,"onExited","in","enter","exit","appear");return se("input",ee({ref:t},r,{css:fg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var S8=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function w8(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(m,h){if(u.current!==null){var y=u.current,v=y.scrollTop,x=y.scrollHeight,E=y.clientHeight,b=u.current,C=h>0,k=x-E-v,T=!1;k>h&&a.current&&(r&&r(m),a.current=!1),C&&s.current&&(o&&o(m),s.current=!1),C&&h>k?(n&&!a.current&&n(m),b.scrollTop=x,T=!0,a.current=!0):!C&&-h>v&&(i&&!s.current&&i(m),b.scrollTop=0,T=!0,s.current=!0),T&&S8(m)}},[n,r,i,o]),f=w.useCallback(function(m){c(m,m.deltaY)},[c]),d=w.useCallback(function(m){l.current=m.changedTouches[0].clientY},[]),g=w.useCallback(function(m){var h=l.current-m.changedTouches[0].clientY;c(m,h)},[c]),S=w.useCallback(function(m){if(m){var h=z$?{passive:!1}:!1;m.addEventListener("wheel",f,h),m.addEventListener("touchstart",d,h),m.addEventListener("touchmove",g,h)}},[g,d,f]),p=w.useCallback(function(m){m&&(m.removeEventListener("wheel",f,!1),m.removeEventListener("touchstart",d,!1),m.removeEventListener("touchmove",g,!1))},[g,d,f]);return w.useEffect(function(){if(t){var m=u.current;return S(m),function(){p(m)}}},[t,S,p]),function(m){u.current=m}}var jS=["boxSizing","height","overflow","paddingRight","position"],$S={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function BS(e){e.preventDefault()}function zS(e){e.stopPropagation()}function US(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function HS(){return"ontouchstart"in window||navigator.maxTouchPoints}var WS=!!(typeof window<"u"&&window.document&&window.document.createElement),Fa=0,so={capture:!1,passive:!1};function b8(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;if(r&&jS.forEach(function(S){var p=c&&c[S];i.current[S]=p}),r&&Fa<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,g=window.innerWidth-d+f||0;Object.keys($S).forEach(function(S){var p=$S[S];c&&(c[S]=p)}),c&&(c.paddingRight="".concat(g,"px"))}u&&HS()&&(u.addEventListener("touchmove",BS,so),l&&(l.addEventListener("touchstart",US,so),l.addEventListener("touchmove",zS,so))),Fa+=1}},[r]),s=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;Fa=Math.max(Fa-1,0),r&&Fa<1&&jS.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&HS()&&(u.removeEventListener("touchmove",BS,so),l&&(l.removeEventListener("touchstart",US,so),l.removeEventListener("touchmove",zS,so)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var x8=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},C8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function E8(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=w8({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=b8({isEnabled:n}),f=function(g){u(g),c(g)};return se(w.Fragment,null,n&&se("div",{onClick:x8,css:C8}),t(f))}var k8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},P8=function(t){var n=t.name,r=t.onFocus;return se("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:k8,value:"",onChange:function(){}})},T8=P8;function gg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function R8(){return gg(/^iPhone/i)}function qP(){return gg(/^Mac/i)}function M8(){return gg(/^iPad/i)||qP()&&navigator.maxTouchPoints>1}function O8(){return R8()||M8()}function A8(){return qP()||O8()}var F8=function(t){return t.label},L8=function(t){return t.label},_8=function(t){return t.value},I8=function(t){return!!t.isDisabled},D8={clearIndicator:SB,container:lB,control:PB,dropdownIndicator:gB,group:OB,groupHeading:FB,indicatorsContainer:dB,indicatorSeparator:bB,input:DB,loadingIndicator:EB,loadingMessage:rB,menu:Y$,menuList:eB,menuPortal:aB,multiValue:BB,multiValueLabel:zB,multiValueRemove:UB,noOptionsMessage:nB,option:XB,placeholder:JB,singleValue:t8,valueContainer:cB},N8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},V8=4,XP=4,j8=38,$8=XP*2,B8={baseUnit:XP,controlHeight:j8,menuGutter:$8},Hd={borderRadius:V8,colors:N8,spacing:B8},z8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_S(),captureMenuScroll:!_S(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:v8(),formatGroupLabel:F8,getOptionLabel:L8,getOptionValue:_8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:I8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!$$(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KS(e,t,n,r){var i=JP(e,t,n),o=ZP(e,t,n),a=QP(e,t),s=dc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function wu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return KS(e,a,t,s)}).filter(function(a){return qS(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=KS(e,n,t,r);return qS(e,o)?o:void 0}).filter(U$)}function YP(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,de(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function GS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,de(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function U8(e,t){return YP(wu(e,t))}function qS(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!tT(e)||!o)&&eT(e,{label:a,value:s,data:i},r)}function H8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Wd=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},QP=function(t,n){return t.getOptionLabel(n)},dc=function(t,n){return t.getOptionValue(n)};function JP(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZP(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dc(e,t);return n.some(function(i){return dc(e,i)===r})}function eT(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tT=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},K8=1,nT=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=A8(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,g=f.isMulti,S=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:S}),d&&(i.setState({inputIsHiddenAfterUpdate:!g}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,g=i.state.selectValue,S=f&&i.isOptionSelected(l,g),p=i.isOptionDisabled(l,g);if(S){var m=i.getOptionValue(l);i.setValue(g.filter(function(h){return i.getOptionValue(h)!==m}),"deselect-option",l)}else if(!p)f?i.setValue([].concat(de(g),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(S){return i.getOptionValue(S)!==f}),g=Wl(u,d,d[0]||null);i.onChange(g,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Wl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Wd(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return GS(wu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cg||d>g}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tT(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,g=u.inputValue,S=u.isClearable,p=u.isDisabled,m=u.menuIsOpen,h=u.onKeyDown,y=u.tabSelectsValue,v=u.openMenuOnFocus,x=i.state,E=x.focusedOption,b=x.focusedValue,C=x.selectValue;if(!p&&!(typeof h=="function"&&(h(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||g)return;i.focusValue("previous");break;case"ArrowRight":if(!c||g)return;i.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(b)i.removeValue(b);else{if(!f)return;c?i.popValue():S&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!y||!E||v&&i.isOptionSelected(E,C))return;i.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:g}),i.onMenuClose()):S&&d&&i.clearValue();break;case" ":if(g)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++K8),i.state.selectValue=FS(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wd(o,a[s])}return i}return Rn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&LS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(LS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):I(I({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,g=f.isRtl,S=f.options,p=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:p,isMulti:d,isRtl:g,options:S,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return JP(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return ZP(this.props,i,o)}},{key:"filterOption",value:function(i,o){return eT(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,g=this.getComponents(),S=g.Input,p=this.state,m=p.inputIsHidden,h=p.ariaSelection,y=this.commonProps,v=s||this.getElementId("input"),x=I(I(I({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?w.createElement(S,ee({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},x)):w.createElement(y8,ee({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cc,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,g=this.props,S=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,h=g.inputValue,y=g.placeholder,v=this.state,x=v.selectValue,E=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!S)return h?null:w.createElement(f,ee({},d,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(k,T){var F=k===E,V="".concat(i.getOptionLabel(k),"-").concat(i.getOptionValue(k));return w.createElement(a,ee({},d,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return i.removeValue(k)},onTouchEnd:function(){return i.removeValue(k)},onMouseDown:function(U){U.preventDefault()}},data:k}),i.formatOptionLabel(k,"value"))});if(h)return null;var C=x[0];return w.createElement(c,ee({},d,{data:C,isDisabled:p}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return w.createElement(a,ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,g=o.Option,S=this.commonProps,p=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,x=m.loadingMessage,E=m.minMenuHeight,b=m.maxMenuHeight,C=m.menuIsOpen,k=m.menuPlacement,T=m.menuPosition,F=m.menuPortalTarget,V=m.menuShouldBlockScroll,H=m.menuShouldScrollIntoView,U=m.noOptionsMessage,Q=m.onMenuScrollToTop,W=m.onMenuScrollToBottom;if(!C)return null;var _=function(J,te){var fe=J.type,ce=J.data,be=J.isDisabled,ht=J.isSelected,bt=J.label,Ae=J.value,Ee=p===ce,rt=be?void 0:function(){return i.onOptionHover(ce)},Mn=be?void 0:function(){return i.selectOption(ce)},qn="".concat(i.getElementId("option"),"-").concat(te),Ye={id:qn,onClick:Mn,onMouseMove:rt,onMouseOver:rt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ht};return w.createElement(g,ee({},S,{innerProps:Ye,data:ce,isDisabled:be,isSelected:ht,key:qn,label:bt,type:fe,value:Ae,isFocused:Ee,innerRef:Ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(J.data,"menu"))},L;if(this.hasOptions())L=this.getCategorizedOptions().map(function(K){if(K.type==="group"){var J=K.data,te=K.options,fe=K.index,ce="".concat(i.getElementId("group"),"-").concat(fe),be="".concat(ce,"-heading");return w.createElement(a,ee({},S,{key:ce,data:J,options:te,Heading:s,headingProps:{id:be,data:K.data},label:i.formatGroupLabel(K.data)}),K.options.map(function(ht){return _(ht,"".concat(fe,"-").concat(ht.index))}))}else if(K.type==="option")return _(K,"".concat(K.index))});else if(v){var P=x({inputValue:y});if(P===null)return null;L=w.createElement(f,S,P)}else{var N=U({inputValue:y});if(N===null)return null;L=w.createElement(d,S,N)}var z={minMenuHeight:E,maxMenuHeight:b,menuPlacement:k,menuPosition:T,menuShouldScrollIntoView:H},$=w.createElement(Q$,ee({},S,z),function(K){var J=K.ref,te=K.placerProps,fe=te.placement,ce=te.maxHeight;return w.createElement(l,ee({},S,z,{innerRef:J,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:fe}),w.createElement(E8,{captureEnabled:h,onTopArrive:Q,onBottomArrive:W,lockEnabled:V},function(be){return w.createElement(u,ee({},S,{innerRef:function(bt){i.getMenuListRef(bt),be(bt)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:ce,focusedOption:p}),L)}))});return F||T==="fixed"?w.createElement(c,ee({},S,{appendTo:F,controlElement:this.controlRef,menuPlacement:k,menuPosition:T}),$):$}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return w.createElement(T8,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(p){return i.getOptionValue(p)}).join(a);return w.createElement("input",{name:u,type:"hidden",value:d})}else{var g=f.length>0?f.map(function(p,m){return w.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:i.getOptionValue(p)})}):w.createElement("input",{name:u,type:"hidden",value:""});return w.createElement("div",null,g)}else{var S=f[0]?this.getOptionValue(f[0]):"";return w.createElement("input",{name:u,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return w.createElement(d8,ee({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,g=u.menuIsOpen,S=this.state.isFocused,p=this.commonProps=this.getCommonProps();return w.createElement(s,ee({},p,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:S}),this.renderLiveRegion(),w.createElement(o,ee({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:S,menuIsOpen:g}),w.createElement(l,ee({},p,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(a,ee({},p,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,g=i.options,S=i.value,p=i.menuIsOpen,m=i.inputValue,h=i.isMulti,y=FS(S),v={};if(a&&(S!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?U8(i,y):[],E=p?GS(wu(i,y),"".concat(d,"-option")):[],b=s?H8(o,y):null,C=W8(o,x),k=Wd(E,C);v={selectValue:y,focusedOption:C,focusedOptionId:k,focusableOptionsWithIds:E,focusedValue:b,clearFocusValueOnUpdate:!1}}var T=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,V=c&&f;return c&&!V&&(F={value:Wl(h,y,y[0]||null),options:y,action:"initial-input-focus"},V=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),I(I(I({},v),T),{},{prevProps:i,ariaSelection:F,prevWasFocused:V})}}]),n}(w.Component);nT.defaultProps=z8;var G8=w.forwardRef(function(e,t){var n=I6(e);return w.createElement(nT,ee({ref:t},n))}),q8=G8;const rT=e=>M.jsx("div",{children:M.jsxs(vg.Option,{...e,children:[M.jsx("input",{type:"checkbox",checked:e.isSelected,onChange:()=>null})," ",M.jsx("label",{children:e.label})]})});rT.propTypes={isSelected:g1.bool.isRequired,label:g1.string.isRequired};const X8=e=>M.jsx(vg.MultiValue,{...e,children:M.jsx("span",{children:e.data.label})}),XS=({data:e,width:t="100%",optionSelected:n,setOptionSelected:r})=>{const{theme:i}=w.useContext(og),o=a=>{r(a)};return M.jsx("span",{style:{width:t},children:M.jsx(q8,{options:e,isMulti:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1,components:{Option:rT,MultiValue:X8},onChange:a=>o(a),value:n,styles:{control:a=>({...a,width:t,height:"0.1rem",textAlign:"left",outline:"none",borderRadius:"5px",border:"2px solid #ccc",maxHeight:"200px",overflowY:"auto",background:i==="dark"?"#000000":"#ffffff"}),menu:a=>({...a,zIndex:"2"}),menuList:a=>({...a,textAlign:"left",background:i==="dark"?"#000000":"#ffffff"}),option:(a,s)=>{const l=i==="dark",u=i==="light",c=s.isSelected,f=s.isFocused;return{...a,color:c?"#ffffff":l&&f?"#000000":"inherit",background:(()=>{if(l){if(c)return"blue";if(f)return"#ffffff"}if(u){if(c)return"#2684FF";if(f)return"#B2D4FF"}return"initial"})()}},placeholder:a=>({...a,color:i==="dark"?"#b0b3b8":"grey"})}})})},Y8=[{label:"Easy",value:O.Easy},{label:"Medium",value:O.Medium},{label:"Hard",value:O.Hard}],Q8=({checked:e,setNewChallenge:t,label:n,className:r,containerClass:i})=>M.jsxs("div",{className:i,children:[M.jsx("input",{className:r,type:"checkbox",id:"checkbox",name:"checkbox",onChange:o=>t(o.target.checked),checked:e}),M.jsx("label",{htmlFor:"checkbox",children:n})]}),J8="_segment_2sm8x_1",Z8="_segmentBtn_2sm8x_8",YS={segment:J8,segmentBtn:Z8};function ez({tag:e,setTag:t,setSelectedChallengesByTags:n}){return M.jsx("div",{className:YS.segment,children:Object.entries(q).map(([r,i])=>M.jsx("button",{"data-active":e===i,className:YS.segmentBtn,onClick:()=>{t(i),n([i])},children:i},r))})}const tz=({searchInput:e,setSearchInput:t,optionSelected:n,setOptionSelected:r,selectedDifficulties:i,setSelectedDifficulties:o,links:a,tag:s,setTag:l,setSelectedChallengesByTags:u,setNewChallenge:c,newChallenge:f})=>{const d=w.useMemo(()=>{const g=new Map;for(const[p,m]of df)g.set(p,m);const S=[];return g.forEach((p,m)=>{m!==""&&(p==null?void 0:p.name)!==""&&S.push({value:m,label:p==null?void 0:p.name})}),S},[]);return M.jsxs("div",{className:ot.filterOptionWrapper,children:[M.jsxs("div",{className:ot.searchInputWrapper,children:[M.jsx("input",{type:"text",name:"searchTextInput",placeholder:"Search challenge...",className:ot.searchInput,value:e,onChange:g=>t(g.target.value.trim())}),M.jsx(s4,{size:15,className:ot.searchIcon})]}),M.jsx(XS,{data:d,optionSelected:n,setOptionSelected:g=>r(g)}),M.jsx(XS,{data:Y8,optionSelected:i,setOptionSelected:g=>o(g)}),M.jsx(Q8,{className:ot.checkbox,checked:f,setNewChallenge:c,label:"New Challenges",containerClass:ot.checkboxContainer}),M.jsx(ez,{tag:s,setTag:l,setSelectedChallengesByTags:u}),M.jsx("div",{className:ot.filterByTechWrapper,children:a.map(g=>M.jsx(Fc,{to:`/${g.tech}`,children:M.jsx("img",{src:g.imgSrc,width:35,height:35,className:g.active?ot.activeTech:"",alt:`filter by ${g.tech}`})},g.tech))})]})};function nz({challenges:e,linkPrefix:t,links:n,techImg:r}){const i=R4(),[o,a]=w.useState(i.searchInput),[s,l]=w.useState(e),[u,c]=w.useState(i.optionSelected),[f,d]=w.useState(i.selectedDifficulties),[g,S]=w.useState(i.selectedChallengesByTags),[p,m]=w.useState(i.tag),[h,y]=w.useState(i.newChallenge);return w.useEffect(()=>{l(()=>T4({challenges:[...e.values()],title:o,contributors:u,difficulties:f,tags:g,newChallenge:h}));const v={searchInput:o,optionSelected:u,selectedDifficulties:f,tag:p,selectedChallengesByTags:g,newChallenge:h};sessionStorage.setItem("searchFilters",JSON.stringify(v)),!o&&!u&&!f&&!h&&l(e)},[e,o,u,f,p,g,h]),M.jsxs("div",{className:ot.container,children:[M.jsx(tz,{links:n,searchInput:o,setSearchInput:a,optionSelected:u,setOptionSelected:c,selectedDifficulties:f,setSelectedDifficulties:d,setSelectedChallengesByTags:S,tag:p,setTag:m,newChallenge:h,setNewChallenge:y}),s.length?M.jsx("div",{className:ot.challengeGrid,children:s.map(v=>M.jsx(L6,{link:t+v.link,contributor:df.get(v.developer),challenge:v,techImg:r},v.title))}):M.jsxs("div",{className:ot.emptyMessage,children:["No challenges found..."," ",M.jsxs("div",{children:["maybe try adding one"," ",M.jsxs("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/blob/main/CONTRIBUTING.md#challenge-contribution",target:"_blank",rel:"noopener noreferrer",children:["here"," "]}),"🤓"]})]})]})}var rz={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:sr,VITE_CSS_APP_URL:iz,VITE_JS_APP_URL:oz,VITE_REACT_APP_URL:az,VITE_VUE_APP_URL:sz,VITE_NG_APP_URL:lz,DEV:rl}=rz,uz=rl?`${iz}${sr}`:`/${sr}`,cz=rl?`${oz}${sr}`:`/${sr}`,fz=rl?`${az}${sr}`:`/${sr}`,dz=rl?`${sz}${sr}`:`/${sr}`,hz=rl?`${lz}${sr}`:`/${sr}`,uo=new Map([["css",{title:"CSS",challenges:mP,link:uz+"/css/src/challenges/",imgSrc:Iv}],["javascript",{title:"JS",challenges:vP,link:cz+"/javascript/src/challenges/",imgSrc:Nv}],["react",{title:"React",challenges:gP,link:fz+"/react/#/",imgSrc:Vv}],["vue",{title:"Vue",challenges:yP,link:dz+"/vue/#",imgSrc:jv}],["angular",{title:"Angular",challenges:SP,link:hz+"/angular/#",imgSrc:Dv}]]),QS=Array.from(uo.keys());function pz(){const{tech:e}=CM(),t=kx();if(w.useEffect(()=>{(!e||!QS.includes(e))&&t("/")},[t,e]),!e||!uo.get(e))return null;const n=QS.map(r=>({tech:r,imgSrc:uo.get(r).imgSrc,active:r===e}));return M.jsxs(M.Fragment,{children:[M.jsx(ag,{}),M.jsxs("div",{className:"container text-center",children:[M.jsx(nz,{challenges:[...uo.get(e).challenges.values()],linkPrefix:uo.get(e).link,links:n,techImg:uo.get(e).imgSrc}),M.jsx(pP,{})]})]})}const mz=zM([{path:"/leaderboard",element:M.jsx(a6,{})},{path:"/:tech",element:M.jsx(pz,{})},{path:"/",element:M.jsx(b4,{})}]);Kd.createRoot(document.getElementById("root")).render(M.jsx(qe.StrictMode,{children:M.jsx(r4,{children:M.jsx(YM,{router:mz})})})); diff --git a/docs/javascript/assets/header-Lm9KQkip.js b/docs/css/assets/header-DCsdonMe.js similarity index 95% rename from docs/javascript/assets/header-Lm9KQkip.js rename to docs/css/assets/header-DCsdonMe.js index 147a4d2c..bf7a32c1 100644 --- a/docs/javascript/assets/header-Lm9KQkip.js +++ b/docs/css/assets/header-DCsdonMe.js @@ -1 +1 @@ -import{j as d}from"./navbar-7u3xAeMJ.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; +import{c as d}from"./navbar-DycdQRDP.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; diff --git a/docs/css/assets/index-DlF0nm40.js b/docs/css/assets/index-537CtnaM.js similarity index 98% rename from docs/css/assets/index-DlF0nm40.js rename to docs/css/assets/index-537CtnaM.js index fa5d04da..d1c92e7f 100644 --- a/docs/css/assets/index-DlF0nm40.js +++ b/docs/css/assets/index-537CtnaM.js @@ -1,2 +1,2 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const f=document.querySelector(".slider"),n=document.querySelector(".leftButton"),o=document.querySelector(".rightButton"),X=document.querySelector(".leftButton span"),q=document.querySelector(".rightButton span"),w=document.getElementById("leftcolor"),C=document.getElementById("rightcolor"),g=document.getElementById("position"),$=document.getElementById("rotation"),N=document.getElementById("random"),h=document.getElementById("preview"),W=document.getElementById("copy"),S=document.querySelector(".full-screen"),k=document.querySelector(".close");let b=!1,E,I=90,i,r,L,l=0,y=100,u=parseInt(f.getBoundingClientRect().width-20);function c(){E=`linear-gradient(${I}deg, ${i} ${l}%, ${r} ${y}%)`,h.style.background=E,f.style.background=E}function M(){const t=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256),m=Math.floor(Math.random()*256);return`rgb(${t}, ${e}, ${m})`}function R(t,e,m){const a=x=>{const d=x.toString(16);return d.length===1?"0"+d:d},s=a(t),p=a(e),v=a(m);return`#${s}${p}${v}`}function D(t){t=t.replace(/^#/,"");const e=parseInt(t,16),m=e>>16&255,a=e>>8&255,s=e&255;return{r:m,g:a,b:s}}function H(){i=M(),r=M(),c(),X.style.background=`${i} ${l}%`,q.style.background=`${r} ${y}%`;const t=R(parseInt(i.slice(4,-1).split(", ")[0]),parseInt(i.slice(4,-1).split(", ")[1]),parseInt(i.slice(4,-1).split(", ")[2])),e=R(parseInt(r.slice(4,-1).split(", ")[0]),parseInt(r.slice(4,-1).split(", ")[1]),parseInt(r.slice(4,-1).split(", ")[2]));w.value=t,C.value=e,$.value=`${I}°`}function B(t,e){b=!0;const a=(e.type.startsWith("touch")?e.touches[0].clientX:e.clientX)-t.getBoundingClientRect().left;u=parseInt(f.getBoundingClientRect().width-20);function s(v){if(b){const x=v.type.startsWith("touch")?v.touches[0].clientX:v.clientX,d=parseInt(Math.min(u,Math.max(0,x-f.getBoundingClientRect().left-a)));t===n?(l=parseInt(d/u*100),g.value=`${l}%`):t===o&&(y=parseInt(d/u*100),g.value=`${y}%`),c(),t.style.transform=`translate3d(${d}px, -50%, 0px)`}}function p(){b=!1,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",p)}document.addEventListener("mousemove",s),document.addEventListener("mouseup",p),document.addEventListener("touchmove",s),document.addEventListener("touchend",p)}n.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});n.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});w.addEventListener("input",()=>{const t=w.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(i=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),X.style.background=`${i} ${l}%`)}});C.addEventListener("input",()=>{const t=C.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(r=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),q.style.background=`${r} ${l}%`)}});g.addEventListener("change",()=>{const t=parseInt(g.value);L=t/100*u,!isNaN(t)&&t>=0&&t<=100&&(n.classList.contains("active")?(l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):o.classList.contains("active")?(y=t,o.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):(n.classList.add("active"),l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()),g.value=`${t}%`)});$.addEventListener("change",()=>{const t=parseInt($.value);!isNaN(t)&&t>=0&&t<=360&&(I=t,c(),$.value=`${I}°`)});N.addEventListener("click",H);W.addEventListener("click",()=>{document.execCommand("copy"),alert(`CSS copied to clipboard: +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";const f=document.querySelector(".slider"),n=document.querySelector(".leftButton"),o=document.querySelector(".rightButton"),X=document.querySelector(".leftButton span"),q=document.querySelector(".rightButton span"),w=document.getElementById("leftcolor"),C=document.getElementById("rightcolor"),g=document.getElementById("position"),$=document.getElementById("rotation"),N=document.getElementById("random"),h=document.getElementById("preview"),W=document.getElementById("copy"),S=document.querySelector(".full-screen"),k=document.querySelector(".close");let b=!1,E,I=90,i,r,L,l=0,y=100,u=parseInt(f.getBoundingClientRect().width-20);function c(){E=`linear-gradient(${I}deg, ${i} ${l}%, ${r} ${y}%)`,h.style.background=E,f.style.background=E}function M(){const t=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256),m=Math.floor(Math.random()*256);return`rgb(${t}, ${e}, ${m})`}function R(t,e,m){const a=x=>{const d=x.toString(16);return d.length===1?"0"+d:d},s=a(t),p=a(e),v=a(m);return`#${s}${p}${v}`}function D(t){t=t.replace(/^#/,"");const e=parseInt(t,16),m=e>>16&255,a=e>>8&255,s=e&255;return{r:m,g:a,b:s}}function H(){i=M(),r=M(),c(),X.style.background=`${i} ${l}%`,q.style.background=`${r} ${y}%`;const t=R(parseInt(i.slice(4,-1).split(", ")[0]),parseInt(i.slice(4,-1).split(", ")[1]),parseInt(i.slice(4,-1).split(", ")[2])),e=R(parseInt(r.slice(4,-1).split(", ")[0]),parseInt(r.slice(4,-1).split(", ")[1]),parseInt(r.slice(4,-1).split(", ")[2]));w.value=t,C.value=e,$.value=`${I}°`}function B(t,e){b=!0;const a=(e.type.startsWith("touch")?e.touches[0].clientX:e.clientX)-t.getBoundingClientRect().left;u=parseInt(f.getBoundingClientRect().width-20);function s(v){if(b){const x=v.type.startsWith("touch")?v.touches[0].clientX:v.clientX,d=parseInt(Math.min(u,Math.max(0,x-f.getBoundingClientRect().left-a)));t===n?(l=parseInt(d/u*100),g.value=`${l}%`):t===o&&(y=parseInt(d/u*100),g.value=`${y}%`),c(),t.style.transform=`translate3d(${d}px, -50%, 0px)`}}function p(){b=!1,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",p)}document.addEventListener("mousemove",s),document.addEventListener("mouseup",p),document.addEventListener("touchmove",s),document.addEventListener("touchend",p)}n.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});n.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});w.addEventListener("input",()=>{const t=w.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(i=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),X.style.background=`${i} ${l}%`)}});C.addEventListener("input",()=>{const t=C.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(r=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),q.style.background=`${r} ${l}%`)}});g.addEventListener("change",()=>{const t=parseInt(g.value);L=t/100*u,!isNaN(t)&&t>=0&&t<=100&&(n.classList.contains("active")?(l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):o.classList.contains("active")?(y=t,o.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):(n.classList.add("active"),l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()),g.value=`${t}%`)});$.addEventListener("change",()=>{const t=parseInt($.value);!isNaN(t)&&t>=0&&t<=360&&(I=t,c(),$.value=`${I}°`)});N.addEventListener("click",H);W.addEventListener("click",()=>{document.execCommand("copy"),alert(`CSS copied to clipboard: `+E)});S.addEventListener("click",()=>{h.classList.remove("preview"),h.classList.add("full-screen-mode"),S.style.display="none",k.style.display="block"});k.addEventListener("click",()=>{h.classList.add("preview"),h.classList.remove("full-screen-mode"),S.style.display="block",k.style.display="none"});function P(){u=parseInt(f.getBoundingClientRect().width-20),o.style.transform=`translate3d(${u}px, -50%, 0px)`}window.addEventListener("load",()=>{P(),H()});window.addEventListener("resize",()=>{P()}); diff --git a/docs/css/assets/index-Csou1Z_M.js b/docs/css/assets/index-8LoM1Fbs.js similarity index 69% rename from docs/css/assets/index-Csou1Z_M.js rename to docs/css/assets/index-8LoM1Fbs.js index 1c707ef3..ed30994f 100644 --- a/docs/css/assets/index-Csou1Z_M.js +++ b/docs/css/assets/index-8LoM1Fbs.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); diff --git a/docs/css/assets/index-Btl89E7F.js b/docs/css/assets/index-CJO_CgVS.js similarity index 94% rename from docs/css/assets/index-Btl89E7F.js rename to docs/css/assets/index-CJO_CgVS.js index 4ac8131d..e89de6c5 100644 --- a/docs/css/assets/index-Btl89E7F.js +++ b/docs/css/assets/index-CJO_CgVS.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";function i(e,n){const t=document.createElement(e);for(let l in n)t.setAttribute(l,n[l]);return t}function m(e,n,t=0){const l=document.createDocumentFragment();for(let r=t;r{const n=i("span",{class:"star","data-index":e}),t=i("span",{class:"star-partial","data-index":e});return t.textContent="★",n.textContent="☆",n.appendChild(t),n},1));const s=c.querySelectorAll(".star");function y(e){const n=Math.floor(e);for(let t=0;tu(+e.target.value));d.setAttribute("max",o);u(f); +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";function i(e,n){const t=document.createElement(e);for(let l in n)t.setAttribute(l,n[l]);return t}function m(e,n,t=0){const l=document.createDocumentFragment();for(let r=t;r{const n=i("span",{class:"star","data-index":e}),t=i("span",{class:"star-partial","data-index":e});return t.textContent="★",n.textContent="☆",n.appendChild(t),n},1));const s=c.querySelectorAll(".star");function y(e){const n=Math.floor(e);for(let t=0;tu(+e.target.value));d.setAttribute("max",o);u(f); diff --git a/docs/css/assets/index-ZvMbrF7t.js b/docs/css/assets/index-Cm8HEPHZ.js similarity index 91% rename from docs/css/assets/index-ZvMbrF7t.js rename to docs/css/assets/index-Cm8HEPHZ.js index 10b20388..bcfc96c7 100644 --- a/docs/css/assets/index-ZvMbrF7t.js +++ b/docs/css/assets/index-Cm8HEPHZ.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const r=document.getElementById("css-code"),t=document.querySelectorAll("input[type='range']");t.forEach(function(e){e.addEventListener("input",s)});const o=document.querySelectorAll("input[type='number']");o.forEach(function(e){e.addEventListener("change",s)});function s(){const e=t[0].value,n=t[1].value,c=t[2].value,u=t[3].value,i=o[0].value,l=o[1].value,d=`${e}% ${100-e}% ${100-c}% ${c}% / ${u}% ${n}% ${100-n}% ${100-u}%`;document.getElementById("blob").style.cssText=`border-radius: ${d}; height: ${i}px; width: ${l}px`,r.value=`border-radius: ${d};`}document.getElementById("copy").addEventListener("click",function(){r.select(),document.execCommand("copy"),alert("Code copied!")}); +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";const r=document.getElementById("css-code"),t=document.querySelectorAll("input[type='range']");t.forEach(function(e){e.addEventListener("input",s)});const o=document.querySelectorAll("input[type='number']");o.forEach(function(e){e.addEventListener("change",s)});function s(){const e=t[0].value,n=t[1].value,c=t[2].value,u=t[3].value,i=o[0].value,l=o[1].value,d=`${e}% ${100-e}% ${100-c}% ${c}% / ${u}% ${n}% ${100-n}% ${100-u}%`;document.getElementById("blob").style.cssText=`border-radius: ${d}; height: ${i}px; width: ${l}px`,r.value=`border-radius: ${d};`}document.getElementById("copy").addEventListener("click",function(){r.select(),document.execCommand("copy"),alert("Code copied!")}); diff --git a/docs/css/assets/index-B82ICcIk.js b/docs/css/assets/index-DEFN99ij.js similarity index 94% rename from docs/css/assets/index-B82ICcIk.js rename to docs/css/assets/index-DEFN99ij.js index 43671a79..46531ac6 100644 --- a/docs/css/assets/index-B82ICcIk.js +++ b/docs/css/assets/index-DEFN99ij.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const k=document.getElementById("showDialog"),e=document.getElementById("dialogPopup"),u=document.querySelectorAll(".closeDialog"),c=document.getElementById("closeOnOutsideClick"),n=document.getElementById("closeOnEscape"),o=document.getElementById("hasCloseButton"),s=document.getElementById("hasBackdrop"),l=document.getElementById("closeIcon");k.addEventListener("click",()=>{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";const k=document.getElementById("showDialog"),e=document.getElementById("dialogPopup"),u=document.querySelectorAll(".closeDialog"),c=document.getElementById("closeOnOutsideClick"),n=document.getElementById("closeOnEscape"),o=document.getElementById("hasCloseButton"),s=document.getElementById("hasBackdrop"),l=document.getElementById("closeIcon");k.addEventListener("click",()=>{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); diff --git a/docs/css/assets/index-CXV0u4G4.js b/docs/css/assets/index-DPBQdxrj.js similarity index 91% rename from docs/css/assets/index-CXV0u4G4.js rename to docs/css/assets/index-DPBQdxrj.js index 77fd7b89..8fd27755 100644 --- a/docs/css/assets/index-CXV0u4G4.js +++ b/docs/css/assets/index-DPBQdxrj.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const s=document.querySelectorAll(".accordion-item"),t=document.getElementById("multiple-open-checkbox");let n=!1;const l=(e,o)=>{e.classList.remove("open"),o.classList.remove("open"),e.style.maxHeight=null},d=(e,o)=>{e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),o.classList.add("open")},i=()=>{s.forEach(e=>{const o=e.querySelector(".accordion-panel"),c=e.querySelector(".accordion-arrow");l(o,c)})};t.addEventListener("change",function(){t.checked?n=!0:(n=!1,i())});s.forEach(e=>{const o=e.querySelector(".accordion-header"),c=e.querySelector(".accordion-panel"),r=e.querySelector(".accordion-arrow");o.addEventListener("click",()=>{const a=c.classList.contains("open");n||i(),a?l(c,r):d(c,r)})}); +import"./header-DCsdonMe.js";import"./navbar-DycdQRDP.js";const s=document.querySelectorAll(".accordion-item"),t=document.getElementById("multiple-open-checkbox");let n=!1;const l=(e,o)=>{e.classList.remove("open"),o.classList.remove("open"),e.style.maxHeight=null},d=(e,o)=>{e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),o.classList.add("open")},i=()=>{s.forEach(e=>{const o=e.querySelector(".accordion-panel"),c=e.querySelector(".accordion-arrow");l(o,c)})};t.addEventListener("change",function(){t.checked?n=!0:(n=!1,i())});s.forEach(e=>{const o=e.querySelector(".accordion-header"),c=e.querySelector(".accordion-panel"),r=e.querySelector(".accordion-arrow");o.addEventListener("click",()=>{const a=c.classList.contains("open");n||i(),a?l(c,r):d(c,r)})}); diff --git a/docs/css/assets/index-vKstxybl.js b/docs/css/assets/index-Dds4ZHUM.js similarity index 89% rename from docs/css/assets/index-vKstxybl.js rename to docs/css/assets/index-Dds4ZHUM.js index 1e7f41e5..3a28e6c6 100644 --- a/docs/css/assets/index-vKstxybl.js +++ b/docs/css/assets/index-Dds4ZHUM.js @@ -1 +1 @@ -import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const r=document.querySelector("#items"),o=document.querySelector("#stagger"),e=document.querySelector(".stagger-wrapper");function s(i=1){const a=document.createDocumentFragment();for(let t=0;t -`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; +`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; diff --git a/docs/css/src/challenges/accordion/index.html b/docs/css/src/challenges/accordion/index.html index 633bbf93..4114cbcf 100644 --- a/docs/css/src/challenges/accordion/index.html +++ b/docs/css/src/challenges/accordion/index.html @@ -2,9 +2,9 @@ - - - + + + diff --git a/docs/css/src/challenges/blobmaker/index.html b/docs/css/src/challenges/blobmaker/index.html index aa57a1e6..567cba6e 100644 --- a/docs/css/src/challenges/blobmaker/index.html +++ b/docs/css/src/challenges/blobmaker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dialog/index.html b/docs/css/src/challenges/dialog/index.html index edf3bab9..07250767 100644 --- a/docs/css/src/challenges/dialog/index.html +++ b/docs/css/src/challenges/dialog/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dynamic-tooltip/index.html b/docs/css/src/challenges/dynamic-tooltip/index.html index b6c77972..5ca7c570 100644 --- a/docs/css/src/challenges/dynamic-tooltip/index.html +++ b/docs/css/src/challenges/dynamic-tooltip/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/footer/index.html b/docs/css/src/challenges/footer/index.html index ac2aadb4..9188a6b4 100644 --- a/docs/css/src/challenges/footer/index.html +++ b/docs/css/src/challenges/footer/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/gradient-generator/index.html b/docs/css/src/challenges/gradient-generator/index.html index 0401fab5..b24a946f 100644 --- a/docs/css/src/challenges/gradient-generator/index.html +++ b/docs/css/src/challenges/gradient-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/light-dark-mode/index.html b/docs/css/src/challenges/light-dark-mode/index.html index fa575acc..3fef3c8d 100644 --- a/docs/css/src/challenges/light-dark-mode/index.html +++ b/docs/css/src/challenges/light-dark-mode/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/loaders/index.html b/docs/css/src/challenges/loaders/index.html index 6706d871..eaa29bc5 100644 --- a/docs/css/src/challenges/loaders/index.html +++ b/docs/css/src/challenges/loaders/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/navigation-bar/index.html b/docs/css/src/challenges/navigation-bar/index.html index 23697637..faa7ff05 100644 --- a/docs/css/src/challenges/navigation-bar/index.html +++ b/docs/css/src/challenges/navigation-bar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/shapes/index.html b/docs/css/src/challenges/shapes/index.html index b6742930..44f7c2e5 100644 --- a/docs/css/src/challenges/shapes/index.html +++ b/docs/css/src/challenges/shapes/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/skeleton-loader/index.html b/docs/css/src/challenges/skeleton-loader/index.html index 1ccc0d6c..09f032e6 100644 --- a/docs/css/src/challenges/skeleton-loader/index.html +++ b/docs/css/src/challenges/skeleton-loader/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/stagger-animation/index.html b/docs/css/src/challenges/stagger-animation/index.html index a76a91f8..8858a8e8 100644 --- a/docs/css/src/challenges/stagger-animation/index.html +++ b/docs/css/src/challenges/stagger-animation/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/star-rating-display/index.html b/docs/css/src/challenges/star-rating-display/index.html index acc02bd6..c165b19a 100644 --- a/docs/css/src/challenges/star-rating-display/index.html +++ b/docs/css/src/challenges/star-rating-display/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/index.html b/docs/index.html index 3f48f82d..77f40e88 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ /> Frontend Mini Challenges - + diff --git a/docs/css/assets/header-C4h0fwPc.js b/docs/javascript/assets/header-HAvl2F_b.js similarity index 95% rename from docs/css/assets/header-C4h0fwPc.js rename to docs/javascript/assets/header-HAvl2F_b.js index 43827822..42d2657b 100644 --- a/docs/css/assets/header-C4h0fwPc.js +++ b/docs/javascript/assets/header-HAvl2F_b.js @@ -1 +1 @@ -import{c as d}from"./navbar-DsfoHSrr.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; +import{j as d}from"./navbar-znH5OniC.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; diff --git a/docs/javascript/assets/index-Q8YEJ5A6.js b/docs/javascript/assets/index-0bZgD25a.js similarity index 96% rename from docs/javascript/assets/index-Q8YEJ5A6.js rename to docs/javascript/assets/index-0bZgD25a.js index ffbe1efe..16816c1b 100644 --- a/docs/javascript/assets/index-Q8YEJ5A6.js +++ b/docs/javascript/assets/index-0bZgD25a.js @@ -1 +1 @@ -var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); +var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); diff --git a/docs/javascript/assets/index-9NvLSOKC.js b/docs/javascript/assets/index-0vJpnASW.js similarity index 99% rename from docs/javascript/assets/index-9NvLSOKC.js rename to docs/javascript/assets/index-0vJpnASW.js index e55aa23e..e7540841 100644 --- a/docs/javascript/assets/index-9NvLSOKC.js +++ b/docs/javascript/assets/index-0vJpnASW.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const E="data:audio/mpeg;base64,//uSxAAAAAABpBQAAAXbyCHDL1ABw0MQQAyOsIHAx7oq+yLgiAAwMlEEYgMNnCxcZAWWBhG4MaBgW4AXjvGUAwSGgMwzXjsFsIGB4dtgZWOgHDs158kzQvgecZwLQADadPA5yjfrOE4VDMDqKxAyIvgNQDQD1kEAxIQfzcroWSAsTwPFvUDHISC1kDiyWAFIP80QWbm6DADE8DOYDAy4dgMpBYGo/A0CgQMohH/s7VppqYDBQ4AzAWACioAUZAMIg0NkA0KUwMQgsDCIB/+hvTdSCCwNRG4DGAIDBAGjyqACEgAhYBlAIAYpJoGQwmBh8DAZSMn//vepmW79QGRgcBhgGgZNKIBRTAKSYGIgwFgwM1CoEAEAxMEAM0jMDBYfAxmEwMZA4CAE////9Blpuq1q001M26001Gho8AIUAYABgGFgQHuAYvGIGNRWAcKwMPCIDFQmAaDgBw4BsHiOAM2kEDCYHAweAQNKFoDDwKACEAGfx6EgEKIBioCgZPKYGMQOBkJHAbATAEjgRAk8mwCIk0A6wgwcQn4TEaYnMkBcY//7ksQLABnCQWoZNQALFDQtV7DABXBUzYPGMRsEwiCsIQCoMhwLkgFALQhhmIsejceCwQiwLgrFCMYDYsRkpw2GQ9HTRw4kF5OPChpOVLkgvkSlyo1HhCRmkhEWPNcw84fqaQnEZxY85UONPU4kMNPNOJ0c1jUOPQgQxS7q5hzHqhhimmHIcbNMUxkqjns6MeecYjHrarnojnTrKacpx89HWYxk9mmsjGKefbejGK56MZdefstro62RjKIx1lZJNU+ehl1OSl0V5KjFay2Yv//rUSWkbRvDjhKX9aHf7VhlhT8L6WIZMUd5dD4QHNaEJ0t+hjiSDl+piiM6tFY+PS3LypqFelZaXpEStt184QoibZGeHBSbaW2PlC84ZOYY1B2mebTRKkcsHBJSxxuktw4be0o0ULKl5UmYWMkhp+6h80du3GSYdlsrXj30JFWYbnr8zGfQv+0kbcfbqePMORMqZpBKH9b0w/zdeXUpMLOO/V27G+9Zy7EN3KU8076mdtrV9pdnC/A7uP4X+A/xD/v/jpUAAAAAAAAAtsvks1bBEI3/+5LECAAXIjdlzLxtys/G7PmHmbkvI9ZU7OVY5/KsBDwg5x7i0SJoKCJFil9SB0PLPlEzKx5CTy0sK9nwrn7yV+2srU2TP5Zn1YeJYEaKHZgYxAzcBRwwgOAtBQQEwlBwQKDAyCgiEA9aLdXXF00eB68VQUeKrREFEKkQejEwIwaFg4DhErMTkTMTm5aU34bPTbNITQ5jFSikS5MaLSbpyH7xSMnNYb6ExuaOpO8qkiEpcQhX8Q/6B3/dv8GKaAABAAAAAAGakUOrJrLZB7JFYw3K2UvNjvMVEkgY7aziOjHmbzbOVmZPXLCwQ48KzE4ubA8tCfQZ38Z8zQ3kr+HCjxbwoiiSpEmLNrYdSJm5ZhXW7YtM3dPOMlBvcHzt0q1uzXRT58jbl58vPmH7a2Pn2K9a3ravw3bcnczTbKm3q4v5FRNv0rLbNLxSFs8HFbHndtslqaHZ529jZl7+zniHaf32N/8TX/7N//9jf/3r//mahQAAAAAAAAFMOKx6k+UBWh3S0OV28rrAUfFZrWWIbwzyWTR6MSdRpls9rsJ+o1AP//uSxBgAF1Y1Zcw8bcraRmz5h5m57PHzEzMqvZKvXqhYmTOndnJtswQLQnrdKxmHDiQwSAbwMDCGAIgkE4hBZMHR8ARDMjHRd8hLm91BJUDSBiCQSQNUQ2NmDugY1Eo4ta61EY42IgkiKGgls3rhpg9kB2WjIE3QWsDolIEkEGhr19CZz3NW9EzUqWiszaOykszgZm93jf6AxP/o3/QMTMKAAAAAAAALOlku01jFrkaHbI1u3Vxz3ARjoRSlMMJfSGkLZ6bvDcVEoGTztyeQpWqNn3jdlbCeTahMTExNcf5z22BApeGiiBWQ0wzUk0F1q6lBOOtU4tF2bKSlKTS/iJX8RSUl1W60tePiM05jZ9KfLea221T9sjcqm1rysd8ldGzEfqptWunovPmaxbUx/g8qnLd3a5+Z4vKbX8ZX++9yZztGV//d1M5+0S3/72VW//s+f/91AIVgAAAAAAAFXs1yQ2H5keKWx5MPDmt63ttJCJgj7YvhiYhJkA/f1vXEqMV8Te7SsqKX1GyTZkYo7Kz+SkVhZW5js8vCkfDgIoAQOv/7ksQlgBbmM2XMPG3KykXsuYYZuagIIDABlMOwpQyDmjhUMQDcyCMoSi1rCRBk7cjKQeES0hW6EhsDrhLrCAqwhxx6ohED4WG0BELjKREryhA1Ng5iGURHo4KoKpHUEnVe8RyYzPRWqkRoTkzN+7VS4jjiWP/eH//BJf/hG//oCUxKgAABAAAATjAXYqy2ZygEQBCbN7f53msoQOCOjz5ZYDoAoEgOKPyWlxVLBLM35s9DGIJ0TDxy2rTpeoXv3bZq0ZJWiDyh5OWpPYakUTj2QtOnNQ1VpNF2RY9sc+DHypLzK1Z7HxlxpVKZr2/lFstobC8XLe3vMKfO2tl5pb9vtS2xl62Xla8ZLs7b3t4zZqnyHtnzfH8Ts5933bPLftESk+//3cV8/7GSSn//+4z//9hIiIMAAAAAAAFTZuDWoRCWXSySxwRHPQmCUuWH1ChH8SYyIl8Ur2FWkFRzrM/zjGl0p48e/1WE+a1AxsbJq3evaTuFIHlKFBSyI1Pcs+SMyBTd7aR0mHmc+92q2E8bX25xcp+Hl11NPuVW3ZRbNEn/+5LENwAWZi9lzDzNysZFrHj3mbmzjvEbrUlUZi1XrzPvZqX2qbn07Vb7eMfDzjvd9BNVS7+7pVUc1v/dU8zm+OztVf+LuNnP/3fc///7OSrf//4mf//+wIlCsQAAAAAAABpLmOhTcaeEK70FkAQmvE3TOrZgsJJS5x9Ut7ZUpKS8E7Otkvv77arV02PIE19e0uUNYmS/1r109cVoFn3dkTQkomhKBBC3diQHOqyO2klEkbQVG1aMap8lsU8knQetyI7W7Yr5zGOekcQ7cps288MzvsbLaU2N9KeK3OzNtSVPzwzfVz93YiNi8qqf3uw7V67f7Ekvr/9siMrf//7JmJV///7O3///9ySI1yAAAAAvnHJ2GZiAal+zjBQVQA9tft1+d4tR8xEKLA4b37fFrspIUwXBk/tnGnyub1A3s+/v3hK5POapUcr+1qaGKNKUR4S5FkZQ9GFlClS7wdZNOLwRo0CzFD1Hikn2PRVhsZnkuTbrRXKK8cQrVXTsl6wz7Tb47WmZBrl2YNYaOUVpU0oXmDpWne7FDTxwtei3PTss//uSxEsAFgItYWw9DcrixSuSsLABLVV+7llSatf+9par/+hA45v//hFr//9wfNr6RgAANOfaWRO3BOUTwwqTwWKZGM0qUn0ymQ06NwFwQyHPvdqPWVNXAVAIIo6z8y59QbOG4njeuyYljmmxKD0bjsHsn29rLlFEkwfN0DSkJWhI1LTB5obnmHU6uHWiyT6hxWL3tk1ZKycINfF05LQh6DDek6tE8+F4N2HHtZnaiamzlH1LYbbr5q2UnsdLanfDJeyVkkm8XWynzR513P8pn0HmrW//8ve3b//vs0Pbv//e99f//8Ew8AYAAAAAAAAAggQACfWmqkiVC+QVZNAHKgJNADEYUUFkipjJ96IuEEkLpeGXGAXTFEipwZoEdG5uQ0ONrRJoZ4mi8H4idBSroEVEopJJKSSWURkQ4GkZGoywypkuktS1sKTI5ZiLNWYkNJxJMsNRatETsOEipkQIWWUC8TQ6R4N0zApGrlxbV0lUhqjSSnSKHEjKOknSdPpMQIxSWYl5Tr1/FxLMSiMuTpqZE0QFkkpEzJJZgtBNZQIMgv/7ksRdAB0aQVGZSQAKxbYeg57wAWgYG3/S/VMBkkkpMESWimLSiynJBeShDfd2LbqZEiySS2JpLOJqsSg7v6///qV+CrWWRPKKOfpOXJhZW45lE3iuhIVWK6IaZK6LchS5Jy7OUuKho+fbrb1YVay0Tx1TJ5RRoKtityemYlc+3WuLatZ9Gt6vd51i1vBe7rXWLer3cF7XFt5r4L2uva1vbea11CfahPt1rqz7Vn1t/Nf/8Wtutd1r7W3Wu61r/819a1///zWv/tb4/rX2tq0bea6xb2tb////FrbrFSioTYsFN//BXfb/8KyOi5HBTYqFkFPFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/+5LEVgAAAAGkAAAAAAAANIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",k="/frontend-mini-challenges/javascript/assets/green-DzOf4mZj.mp3",d="/frontend-mini-challenges/javascript/assets/red-4-OrdHCN.mp3",c="/frontend-mini-challenges/javascript/assets/yellow-pAJ_bTb8.mp3",Q="/frontend-mini-challenges/javascript/assets/wrong-ScTJZo6t.mp3";let t=[],l=!1,n=0,b=["red","blue","green","yellow"];const a=new Map([["red",new Audio(d)],["blue",new Audio(E)],["green",new Audio(k)],["yellow",new Audio(c)],["wrong",new Audio(Q)]]);let s=[],r=document.querySelectorAll(".btn");for(let A=0;A0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const u=document.getElementById("amount"),d=document.querySelectorAll(".btn"),l=document.getElementById("customTip"),i=document.getElementById("person"),a=document.getElementById("generate-bill"),v=document.querySelector(".tipValue"),m=document.querySelector(".totalValue"),L=document.querySelector(".bill"),n=document.getElementById("reset");let s=0,o=0,r=0;function c(){return s>0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); diff --git a/docs/javascript/assets/index-YMGF9Hv6.js b/docs/javascript/assets/index-3iee48ku.js similarity index 88% rename from docs/javascript/assets/index-YMGF9Hv6.js rename to docs/javascript/assets/index-3iee48ku.js index a8055357..6efa3153 100644 --- a/docs/javascript/assets/index-YMGF9Hv6.js +++ b/docs/javascript/assets/index-3iee48ku.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} diff --git a/docs/javascript/assets/index-OVFEMI52.js b/docs/javascript/assets/index-4cfNLZCF.js similarity index 97% rename from docs/javascript/assets/index-OVFEMI52.js rename to docs/javascript/assets/index-4cfNLZCF.js index f7e000b1..154829e4 100644 --- a/docs/javascript/assets/index-OVFEMI52.js +++ b/docs/javascript/assets/index-4cfNLZCF.js @@ -1 +1 @@ -var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); +var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); diff --git a/docs/javascript/assets/index-FYoyBEIz.js b/docs/javascript/assets/index-4rjnPycG.js similarity index 97% rename from docs/javascript/assets/index-FYoyBEIz.js rename to docs/javascript/assets/index-4rjnPycG.js index d70996ef..73845cb2 100644 --- a/docs/javascript/assets/index-FYoyBEIz.js +++ b/docs/javascript/assets/index-4rjnPycG.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); diff --git a/docs/javascript/assets/index-Ww7nRwXx.js b/docs/javascript/assets/index-540VPkde.js similarity index 91% rename from docs/javascript/assets/index-Ww7nRwXx.js rename to docs/javascript/assets/index-540VPkde.js index b15ae3a1..fd6be7f2 100644 --- a/docs/javascript/assets/index-Ww7nRwXx.js +++ b/docs/javascript/assets/index-540VPkde.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); diff --git a/docs/javascript/assets/index-GnxvMYmu.js b/docs/javascript/assets/index-7-3AxdGt.js similarity index 89% rename from docs/javascript/assets/index-GnxvMYmu.js rename to docs/javascript/assets/index-7-3AxdGt.js index 67d67a31..0c5afdca 100644 --- a/docs/javascript/assets/index-GnxvMYmu.js +++ b/docs/javascript/assets/index-7-3AxdGt.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); diff --git a/docs/javascript/assets/index-vXQGMaN2.js b/docs/javascript/assets/index-97tejs4H.js similarity index 94% rename from docs/javascript/assets/index-vXQGMaN2.js rename to docs/javascript/assets/index-97tejs4H.js index 637eceb3..b04b0296 100644 --- a/docs/javascript/assets/index-vXQGMaN2.js +++ b/docs/javascript/assets/index-97tejs4H.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o={USD:1,EUR:.85,GBP:.74,INR:74.63};document.getElementById("addCurrencyButton").addEventListener("click",function(){const e=document.getElementById("customCurrency").value.toUpperCase();if(e&&!o[e]){const t=parseFloat(prompt(`Enter exchange rate for 1 USD to ${e}`));isNaN(t)?alert("Invalid exchange rate. Please enter a valid number."):(o[e]=t,u())}else o[e]?alert(`Currency ${e} already exists.`):alert("Invalid currency code. Please enter a valid code (e.g., CAD).")});function u(){const e=document.getElementById("fromCurrency"),t=document.getElementById("toCurrency");e.innerHTML="",t.innerHTML="";for(const r in o){const n=document.createElement("option");n.value=r,n.innerText=r,e.appendChild(n);const c=n.cloneNode(!0);t.appendChild(c)}t.innerHTML+=''}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const o={USD:1,EUR:.85,GBP:.74,INR:74.63};document.getElementById("addCurrencyButton").addEventListener("click",function(){const e=document.getElementById("customCurrency").value.toUpperCase();if(e&&!o[e]){const t=parseFloat(prompt(`Enter exchange rate for 1 USD to ${e}`));isNaN(t)?alert("Invalid exchange rate. Please enter a valid number."):(o[e]=t,u())}else o[e]?alert(`Currency ${e} already exists.`):alert("Invalid currency code. Please enter a valid code (e.g., CAD).")});function u(){const e=document.getElementById("fromCurrency"),t=document.getElementById("toCurrency");e.innerHTML="",t.innerHTML="";for(const r in o){const n=document.createElement("option");n.value=r,n.innerText=r,e.appendChild(n);const c=n.cloneNode(!0);t.appendChild(c)}t.innerHTML+=''}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); diff --git a/docs/javascript/assets/index--6gezNEF.js b/docs/javascript/assets/index-9FL-jEsm.js similarity index 97% rename from docs/javascript/assets/index--6gezNEF.js rename to docs/javascript/assets/index-9FL-jEsm.js index 88b0c5f6..bd80afd3 100644 --- a/docs/javascript/assets/index--6gezNEF.js +++ b/docs/javascript/assets/index-9FL-jEsm.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); diff --git a/docs/javascript/assets/index-q79cPQBF.js b/docs/javascript/assets/index-A9hv55If.js similarity index 99% rename from docs/javascript/assets/index-q79cPQBF.js rename to docs/javascript/assets/index-A9hv55If.js index 8d8d5c11..e6dc9e3f 100644 --- a/docs/javascript/assets/index-q79cPQBF.js +++ b/docs/javascript/assets/index-A9hv55If.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABCCAYAAAAWqotYAAAAAXNSR0IArs4c6QAABhVJREFUeAHtm/1xozgYh+0Klg6iDpYOTh3YHZgO1h04HcQdmFQQtoKQCkIqMKlgSQV7z88n5WQMGIj35v7Qb+aJvt4P6TXszYi55W+0WCxKkEr4uVwuKw3mipAG3xVYSCB1reI2oLYkz0/a2SJPgrPPY+h7avqekr7OpLyzRS6fJyWI8n4smOzSkckfYMZmwzaBDTzDWP3C8AG0odHCfgUHmKIDxirAaGGfgvanfbZVLpm5J5p1Ef9ybdgUDETnr4e/NrR2JLSh3hg0ULk2pZWN2m8QSjY5PHY9JeSRzwbWYCDUO4M6wND33NEPVTMoQHmU80zkSZhQngxSCPXBQD4NFOGCnkI9PVuooE/PLIiuX4Pp3zXswZwFbw1Yz6CAPr2y8AxH6FLDZA62FfpsqHVnJ/su6RzPoHx90j6zs8BDA4xT2IOKcU3amA6yHorZtYaPgS1UMEYFRhkkXfH65mTv/OQ/Rjr3FkxfzGXfQjhPAMtYSPb099/Ht2Ksf/wbNz+7IU+KswUVRn21dYDyaPwluYJYgpiAhn4FapVH/ahYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIHuCugyVBeg77e4rehKQfyE+e9u7eNP3la4s5xSkeelaz+3mHO3MsmCTqgjgwcwc5Pgq3uzDQxdLuoC8gDp3Dzyw38FTzAkrU+6fm/vCf8UDqB9e5Xt4vkFta+wAT05V4XdCrTRqTrisANzNQkG2HUdhOmr0sEPMOoHw87ADzhCl07fMCx7Mg719Rq3lTNRQg3v0IBeRRXWQgbtIssuB9lWIMkmdXQ9DSVrBcj+9Iqza78fy1wGBkLpu0IODZTgZekYWMM3CFUzyKGEhV5x8qR0ZafWgvza0te+CmrX0gQiiCp+DzVMVYNDDtrAoLDR651BBXNU4NR1wIu8sgPZz5H2t4XkIvDQBA4WVIwGhqSNZUOxhtbwNbCHGoZUsbiFaQdxyeXn/BVnSNrHHgYfguXQocI1AhnGHm2+gubW//Ukj2Jr074t6evVOrXq30rksi6W2tN51JKrcfOxiRWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgV6K6AvmHsWNItgm4VbvaNwd3C3BHTOGhOKvVXF5Cn0Rf/uFsYfzGbBuF0Hp3r7Va3JORSfF2YWnhfMNHWKxO6fk4wmCz8NvAE13TE4AHM5CQ44GfhAL9gSFo/gJ2Zx+C7gyOEGvyGIUMVYXUtKTYpHODaQTDp1CuzGxj8wVjvOwhLo3TEagdm6Eys69J0A9pXn8rTZSir2rQeSbEFvW6hGgYlVKC+MA7rWppP+e8KBTM1r03tV8hl6RvIwH+foPupkp6QlC+FBKzr05zpkZHPI/uTyCM/A2vYQFuyLaEB9VOQrEP9UC8MctB5StpuKTHk0MAUFRivu6NezmKrJ+keapiiCuMMksuolzOyc/bymyLtS/szl1FHzOC4hgK6Eit4CRmMOkhfSvxTyEHx2mqY0Pw9zDuISyx/F0fxFLctzedg+/Y6e56gCZjZASY4kse/ShO8ppv+V3mm7yx6xArECsQKxArECsQKxArECsQKxArECsQKxArECvxvK6BvGM9udyVtA4+3uPMnri4gDehmRNdVQvEr1ypPTf9LIo8lgC5VjcPnqRmLF/KUtF8SeQwBdCbFT+FtwWSXRl2/E+BMBNKd3AHGXsePun4/S8KA+AZ2cIQxOmK0A9OONTTGXtdvG3iGtk7fMEpmRZeOTO6gNylrPkHffX+Fjc+htoG2VOwD6BftFesreIIu1UyGeTTukvwHv8uwnsIBtK+2tH/l2S/DnTKhzW9hDfrEFqp0A9/KNgHfuuVTo/9fIed1KcJJ3yePoZ857mhDVQwa8K2hH8LwU2/09lCQSz5nIk/CxBq28P1s8Z9XumbOI9sUfEv3U+/0ckGemrZfSgoZqMJjpV96C6Y/8uUK9msoYKwaDPegg46W7J2f/MeqwHDdl+Tsyesywtkwn4EFSf84S/rVG6hAv3xJO1vkSXDOwIL6Kejp169eO0ry5PS/JHJlBLBgHP7pf2HcQAk6U00b9Scq8DdqEfrKo4jnpQAAAABJRU5ErkJggg==",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.json();document.querySelector(".city").innerHTML=e.name,document.querySelector(".temp").innerHTML=Math.round(e.main.temp)+"°C",document.querySelector(".humidity").innerHTML=e.main.humidity+"%",document.querySelector(".wind").innerHTML=e.wind.speed+"km/h",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABCCAYAAAAWqotYAAAAAXNSR0IArs4c6QAABhVJREFUeAHtm/1xozgYh+0Klg6iDpYOTh3YHZgO1h04HcQdmFQQtoKQCkIqMKlgSQV7z88n5WQMGIj35v7Qb+aJvt4P6TXszYi55W+0WCxKkEr4uVwuKw3mipAG3xVYSCB1reI2oLYkz0/a2SJPgrPPY+h7avqekr7OpLyzRS6fJyWI8n4smOzSkckfYMZmwzaBDTzDWP3C8AG0odHCfgUHmKIDxirAaGGfgvanfbZVLpm5J5p1Ef9ybdgUDETnr4e/NrR2JLSh3hg0ULk2pZWN2m8QSjY5PHY9JeSRzwbWYCDUO4M6wND33NEPVTMoQHmU80zkSZhQngxSCPXBQD4NFOGCnkI9PVuooE/PLIiuX4Pp3zXswZwFbw1Yz6CAPr2y8AxH6FLDZA62FfpsqHVnJ/su6RzPoHx90j6zs8BDA4xT2IOKcU3amA6yHorZtYaPgS1UMEYFRhkkXfH65mTv/OQ/Rjr3FkxfzGXfQjhPAMtYSPb099/Ht2Ksf/wbNz+7IU+KswUVRn21dYDyaPwluYJYgpiAhn4FapVH/ahYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIHuCugyVBeg77e4rehKQfyE+e9u7eNP3la4s5xSkeelaz+3mHO3MsmCTqgjgwcwc5Pgq3uzDQxdLuoC8gDp3Dzyw38FTzAkrU+6fm/vCf8UDqB9e5Xt4vkFta+wAT05V4XdCrTRqTrisANzNQkG2HUdhOmr0sEPMOoHw87ADzhCl07fMCx7Mg719Rq3lTNRQg3v0IBeRRXWQgbtIssuB9lWIMkmdXQ9DSVrBcj+9Iqza78fy1wGBkLpu0IODZTgZekYWMM3CFUzyKGEhV5x8qR0ZafWgvza0te+CmrX0gQiiCp+DzVMVYNDDtrAoLDR651BBXNU4NR1wIu8sgPZz5H2t4XkIvDQBA4WVIwGhqSNZUOxhtbwNbCHGoZUsbiFaQdxyeXn/BVnSNrHHgYfguXQocI1AhnGHm2+gubW//Ukj2Jr074t6evVOrXq30rksi6W2tN51JKrcfOxiRWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgV6K6AvmHsWNItgm4VbvaNwd3C3BHTOGhOKvVXF5Cn0Rf/uFsYfzGbBuF0Hp3r7Va3JORSfF2YWnhfMNHWKxO6fk4wmCz8NvAE13TE4AHM5CQ44GfhAL9gSFo/gJ2Zx+C7gyOEGvyGIUMVYXUtKTYpHODaQTDp1CuzGxj8wVjvOwhLo3TEagdm6Eys69J0A9pXn8rTZSir2rQeSbEFvW6hGgYlVKC+MA7rWppP+e8KBTM1r03tV8hl6RvIwH+foPupkp6QlC+FBKzr05zpkZHPI/uTyCM/A2vYQFuyLaEB9VOQrEP9UC8MctB5StpuKTHk0MAUFRivu6NezmKrJ+keapiiCuMMksuolzOyc/bymyLtS/szl1FHzOC4hgK6Eit4CRmMOkhfSvxTyEHx2mqY0Pw9zDuISyx/F0fxFLctzedg+/Y6e56gCZjZASY4kse/ShO8ppv+V3mm7yx6xArECsQKxArECsQKxArECsQKxArECsQKxArECvxvK6BvGM9udyVtA4+3uPMnri4gDehmRNdVQvEr1ypPTf9LIo8lgC5VjcPnqRmLF/KUtF8SeQwBdCbFT+FtwWSXRl2/E+BMBNKd3AHGXsePun4/S8KA+AZ2cIQxOmK0A9OONTTGXtdvG3iGtk7fMEpmRZeOTO6gNylrPkHffX+Fjc+htoG2VOwD6BftFesreIIu1UyGeTTukvwHv8uwnsIBtK+2tH/l2S/DnTKhzW9hDfrEFqp0A9/KNgHfuuVTo/9fIed1KcJJ3yePoZ857mhDVQwa8K2hH8LwU2/09lCQSz5nIk/CxBq28P1s8Z9XumbOI9sUfEv3U+/0ckGemrZfSgoZqMJjpV96C6Y/8uUK9msoYKwaDPegg46W7J2f/MeqwHDdl+Tsyesywtkwn4EFSf84S/rVG6hAv3xJO1vkSXDOwIL6Kejp169eO0ry5PS/JHJlBLBgHP7pf2HcQAk6U00b9Scq8DdqEfrKo4jnpQAAAABJRU5ErkJggg==",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.json();document.querySelector(".city").innerHTML=e.name,document.querySelector(".temp").innerHTML=Math.round(e.main.temp)+"°C",document.querySelector(".humidity").innerHTML=e.main.humidity+"%",document.querySelector(".wind").innerHTML=e.wind.speed+"km/h",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); diff --git a/docs/javascript/assets/index-mVJD8gFo.js b/docs/javascript/assets/index-CCDDmKT6.js similarity index 97% rename from docs/javascript/assets/index-mVJD8gFo.js rename to docs/javascript/assets/index-CCDDmKT6.js index 2c0b021b..c9e09468 100644 --- a/docs/javascript/assets/index-mVJD8gFo.js +++ b/docs/javascript/assets/index-CCDDmKT6.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o="/frontend-mini-challenges/javascript/assets/tom-1-ZxwkIOhV.mp3",a="/frontend-mini-challenges/javascript/assets/tom-2-zXm4l6or.mp3",i="/frontend-mini-challenges/javascript/assets/tom-3-9-KQMv6G.mp3",c="/frontend-mini-challenges/javascript/assets/tom-4-NV-LM3zZ.mp3",r="/frontend-mini-challenges/javascript/assets/snare-zXeTDHza.mp3",l="/frontend-mini-challenges/javascript/assets/crash-B1TgC1_6.mp3",m="data:audio/mpeg;base64,//uSRAAAAAAAaQUAAAAAAA0goAAAIg5BJBlqgAlgyCsDIqAB0xnAMfjEgN/CmMUoKIBhLG+BrERFjnpAZiCXAY5AyZJngONv8Dd7R5PpmAGixOBjkagZFLPlQqGaYGWxSBqpIAaKRAGdBd83QTZQGsUqBn81gZHCIGNBYBh4EfmiCZuboCsgY+FgGKBgBjIIAaBMoGWSv/ZqFaYGSQyBlIkAZAGwBQ8BuMSkAUAP+mgyCd6YGRxqBi0XgYrBYGViMBj4cAYqAwGNRWBiEKgoA//upBBbv4NzwDQKAMFwMeC4DFAoAxEBAMgjMDFonAGGYGFgkBgwBf/9mW7qt1u6hggYKAQGAgUAMHAMbisDE4nAw+AwMaCoDEQcAUDgGBQGFp4ygGFweBg0J//////////////+FlgB88csGznh8g7PAbAr/jcfj//JwvBEDT/wvxFk5IZ//JCAkFsf//5OPCRv//+TnnjweGHn////q5IYYTnuY3////8wxic88wxj88//////////////8AOWMAtVA2H8MtgZ3sGWAuSZpHSKF//7kkQKgANpkFgGUUACVbILMMocAEsUlUY914AJYY4oj7jAAYiBOlxy4Tg8G7nnEgFwelRiXNLMRigmKNHrsTmFTyciKKSyE7V1VyE4mOdl/t0Y01Djk//qzZpxx3//6mm/OU3///zUOf5qHHKb//////////////////+ANaBRSBpmIgiBswQXGD6mZQNC4kVC6jxoLyiUAsKVNjtzhYXeeyq/POQ03p+ahyev/SpqHHf/6r1Q47//9TTfpX///zf9c7///////////////////B4hQw5KOUzYHVophUDrdoep55hqQsAQ1Ir1Vuz7K00U0ooRw4YHsRXrl0N44ihQnDJCV2GtiVzWywr3pmC4xc7jQreDWlq11aNfPpBzKd+VjkybmUpyVMFAAhLAGHaudaSJssfGCwQ7MpX2+TBHDhuWvY4jyPpJImIhwZiW8NKGH5XEQpLnVJye9ZUvVWeR3e7r7uazXY3h5DaVLTDzS9d/ONVNQ3Ia4z8tc////u//VAC3NwDX4WNncIzWVASJTAIMXkNArTDGGSDgo4xwBmn/+5JkD4ADUjZQm48y4j0ianNpJjhNiONAbjDLiP4Tqc2zCSi+nRPzvWGxVq5QIewKrCPb3E4tw3Dbxx1Sa+qkVVMwxT1IlBOta9ecA3FakbFtG7rvBqv6a00ji8t/O99RnF7pUcxaNRA7//Z/nt9ALc3ANfwOm4CLl9dCuY3SktJoQ+aUmTFj4maJGOhIUOl+W8R9TNONTSWr6lf/3QqX3quj/+JLSuvt/N6/gCd34BhVqG8ooaMCBgIKAIALqZNJWlU7lVWS6TB2DtKudQw8VomySsbUjoaGKta8cPrX7IulxUJSCT8TgLxwNpRtorTrcjIBY8zcfGzSSFjkk90saWMdFIl9e+lh7vE3TJzAgITn5Jdt/7+u6And+AZVFG7n48aJhPLHpXYwiMcjhxzgZwGCsiI1cppPcrBrhXTehSKVk7bfVsqldZqjUPSDZEPBIHX6XoK9lQAAFzQA2Spj0sbPdDEHBoMBhbISDC8nwfl1IicrCXlgwhozSDRziL0aRdzlV6OLwMklSGnihje4PmR9V0pWJlUFondQl4KWI5I+//uSZCSAA2o8TZuPMuBAQqojcYk4DbDvMm68y4kOimgN1KTg9ipnynhI60pLMLinRFXWdfNLje3kuj4c0jvbxsx9+65xXWLaAAXNABBZjO51MVid0WuwJhIC8Jo2LJyMaHC1a0hFQye1AqIYkMUTnI6i+Xbp7A2IjxiwuXrkayQxvXO9ZtBhPpABd4AM5xlOyK9NQA1BAxoTxoFwQAULUNUxXrYMEpGUniPRo5mcwjiZC7sTcoy2l8GMIvBExDOX04xNu2BLJ6PIrqZMixphtOXM7xxoFlUx5uHd86XecW8GnoJzQh8ZCmN3MeZQSnsanjyWjmEtABd4AMO4iMkhvMjQQLUwUwhROHyOMdaBldRERk0g7EOlXIVVZNNn0loRajcEw6SFFmDx5G+o0gAl6p0YeptlmhLG7UA=",B=new Map([["w",o],["a",a],["s",i],["d",c],["j",r],["k",l],["l",m]]),d=document.querySelectorAll(".drum").length;for(let n=0;n{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const u=document.querySelector(".game-score b"),f=document.querySelector(".game-highestScore b"),p=document.querySelector(".modal-game-score b"),w=document.querySelector(".modal-game-highestScore b"),T=document.querySelector(".main-game"),q=document.querySelectorAll(".arrow"),b=document.querySelector(".btn"),g=document.querySelector(".modal-container");let m=!1,c=0,h=90,S,l=0,d=0,i=9,s=7,t=[],r=0,n=0,a=JSON.parse(localStorage.getItem("score"))||0;f.innerText=a;u.innerText=0;function x(){g.classList.add("show-modal"),p.innerText=c,w.innerText=a,clearInterval(S)}function y(){l=Math.floor(Math.random()*35+1),d=Math.floor(Math.random()*35+1)}function k(o){o.key==="ArrowUp"&&n!=1?(r=0,n=-1):o.key==="ArrowDown"&&n!==-1?(r=0,n=1):o.key==="ArrowLeft"&&r!==1?(r=-1,n=0):o.key==="ArrowRight"&&r!==-1&&(r=1,n=0)}q.forEach(o=>{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); diff --git a/docs/javascript/assets/index-2MclBnUG.js b/docs/javascript/assets/index-DCoumoxV.js similarity index 92% rename from docs/javascript/assets/index-2MclBnUG.js rename to docs/javascript/assets/index-DCoumoxV.js index 39d169f8..9bb44c2a 100644 --- a/docs/javascript/assets/index-2MclBnUG.js +++ b/docs/javascript/assets/index-DCoumoxV.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-Xkfnst05.js b/docs/javascript/assets/index-EV8ZTasl.js similarity index 96% rename from docs/javascript/assets/index-Xkfnst05.js rename to docs/javascript/assets/index-EV8ZTasl.js index 16153c6d..cd2d0fd7 100644 --- a/docs/javascript/assets/index-Xkfnst05.js +++ b/docs/javascript/assets/index-EV8ZTasl.js @@ -1,4 +1,4 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` In a fantastical realm, there resided a ${e} of incredible bravery. From a young age, this ${e} aspired to ${t} ${n}ly, diligently honing their skills ${o}. One magical day, while ${t}ing near the ancient ${e}, they stumbled upon an enchanted ${e}. diff --git a/docs/javascript/assets/index-gwf-hSca.js b/docs/javascript/assets/index-F5k_7kop.js similarity index 95% rename from docs/javascript/assets/index-gwf-hSca.js rename to docs/javascript/assets/index-F5k_7kop.js index f0f6a40d..9e066ff7 100644 --- a/docs/javascript/assets/index-gwf-hSca.js +++ b/docs/javascript/assets/index-F5k_7kop.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const w=document.querySelector(".post-container"),E=document.querySelector(".loader"),C=document.querySelector(".end-of-content"),b=document.querySelector(".fetch-error");let s=0,u=y(s),d=!1,a=!1,m=!1,r=0;const H=3;function y(e){const c=Math.ceil(window.innerHeight/90);return e+c}function p(e=[]){e.forEach((n,c)=>{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const w=document.querySelector(".post-container"),E=document.querySelector(".loader"),C=document.querySelector(".end-of-content"),b=document.querySelector(".fetch-error");let s=0,u=y(s),d=!1,a=!1,m=!1,r=0;const H=3;function y(e){const c=Math.ceil(window.innerHeight/90);return e+c}function p(e=[]){e.forEach((n,c)=>{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); diff --git a/docs/javascript/assets/index-ybWMLSvg.js b/docs/javascript/assets/index-FAOGTh74.js similarity index 93% rename from docs/javascript/assets/index-ybWMLSvg.js rename to docs/javascript/assets/index-FAOGTh74.js index 8ce4b91c..707f6ca6 100644 --- a/docs/javascript/assets/index-ybWMLSvg.js +++ b/docs/javascript/assets/index-FAOGTh74.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); diff --git a/docs/javascript/assets/index--sBM6KCw.js b/docs/javascript/assets/index-GofVdcaI.js similarity index 90% rename from docs/javascript/assets/index--sBM6KCw.js rename to docs/javascript/assets/index-GofVdcaI.js index a4b40ddf..6ade70fb 100644 --- a/docs/javascript/assets/index--sBM6KCw.js +++ b/docs/javascript/assets/index-GofVdcaI.js @@ -1,4 +1,4 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
+import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
diff --git a/docs/javascript/assets/index-Ipw4ybPa.js b/docs/javascript/assets/index-Ia98ZXGr.js similarity index 94% rename from docs/javascript/assets/index-Ipw4ybPa.js rename to docs/javascript/assets/index-Ia98ZXGr.js index 7f0af88e..9ff1a7b8 100644 --- a/docs/javascript/assets/index-Ipw4ybPa.js +++ b/docs/javascript/assets/index-Ia98ZXGr.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const i=document.querySelector(".grid"),l=window.innerHeight/60-3,m=window.innerWidth/60-3,r=[],u=document.createDocumentFragment();for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const a=document.querySelector("button"),c=document.querySelectorAll(".options button")[0],u=document.querySelectorAll(".options button")[1],l=document.querySelectorAll(".options button")[2],s=document.querySelectorAll(".options button")[3];a.addEventListener("click",d);c.addEventListener("click",f);u.addEventListener("click",p);l.addEventListener("click",m);s.addEventListener("click",g);const r="1234";let o=!1,n=1e3;function d(){document.getElementById("pin").value===r?(o=!0,e("Login successful.")):(o=!1,e("Invalid PIN. Please try again."))}function f(){if(!o){e("Please login first.");return}e(`Your balance is $${n}`)}function p(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to deposit:"));!isNaN(t)&&t>0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} diff --git a/docs/javascript/assets/index-al9vDnL4.js b/docs/javascript/assets/index-KjOONGHc.js similarity index 91% rename from docs/javascript/assets/index-al9vDnL4.js rename to docs/javascript/assets/index-KjOONGHc.js index eede9966..192bb61a 100644 --- a/docs/javascript/assets/index-al9vDnL4.js +++ b/docs/javascript/assets/index-KjOONGHc.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.querySelector("#rows"),u=document.querySelector("#columns"),p=document.querySelector(".table-body");let m=+d.value,s=+u.value;function f(l,r){const o=Array.from(Array(l),()=>[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const d=document.querySelector("#rows"),u=document.querySelector("#columns"),p=document.querySelector(".table-body");let m=+d.value,s=+u.value;function f(l,r){const o=Array.from(Array(l),()=>[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); diff --git a/docs/javascript/assets/index-ZIPepd_A.js b/docs/javascript/assets/index-Lc_ngFiT.js similarity index 97% rename from docs/javascript/assets/index-ZIPepd_A.js rename to docs/javascript/assets/index-Lc_ngFiT.js index d9321e4d..b1fa9fc9 100644 --- a/docs/javascript/assets/index-ZIPepd_A.js +++ b/docs/javascript/assets/index-Lc_ngFiT.js @@ -1 +1 @@ -var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); +var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); diff --git a/docs/javascript/assets/index-IZJ1ZTNB.js b/docs/javascript/assets/index-PnuQsunO.js similarity index 94% rename from docs/javascript/assets/index-IZJ1ZTNB.js rename to docs/javascript/assets/index-PnuQsunO.js index a39ec31a..6bc100d8 100644 --- a/docs/javascript/assets/index-IZJ1ZTNB.js +++ b/docs/javascript/assets/index-PnuQsunO.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} diff --git a/docs/javascript/assets/index-qeEaZX2T.js b/docs/javascript/assets/index-QRTAJEkT.js similarity index 96% rename from docs/javascript/assets/index-qeEaZX2T.js rename to docs/javascript/assets/index-QRTAJEkT.js index 9750ce29..39ec6c81 100644 --- a/docs/javascript/assets/index-qeEaZX2T.js +++ b/docs/javascript/assets/index-QRTAJEkT.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function m(e,t=500){let o=null;return function(...u){o&&(clearTimeout(o),o=null),o=setTimeout(e,t,...u)}}const p=5,i=document.getElementById("userInput"),l=document.querySelector(".suggestions"),g=document.getElementById("loader"),E=document.getElementById("info");let s="",n=null,r=null;const L=m(v);function h(e){var t;(t=l.querySelector(".highlight"))==null||t.classList.remove("highlight"),l.childNodes[e].classList.add("highlight"),i.value=l.childNodes[e].textContent}function f(){var e;(e=l.querySelector(".highlight"))==null||e.classList.remove("highlight"),i.value=s,n=null}function a(){l.innerHTML="",n=null,i.value=s}async function y(e){r=new AbortController;try{const t=await fetch(`https://api.github.com/search/users?per_page=${p}&q=${e}`,{signal:r.signal});r=null;const o=await t.json();return c(!1),{text:e,result:o.items}}catch(t){return t.name!=="AbortError"&&d(),c(!1),{text:e,result:[]}}}async function v(){if(l.innerHTML="",n=null,s=i.value,s.length>0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";function m(e,t=500){let o=null;return function(...u){o&&(clearTimeout(o),o=null),o=setTimeout(e,t,...u)}}const p=5,i=document.getElementById("userInput"),l=document.querySelector(".suggestions"),g=document.getElementById("loader"),E=document.getElementById("info");let s="",n=null,r=null;const L=m(v);function h(e){var t;(t=l.querySelector(".highlight"))==null||t.classList.remove("highlight"),l.childNodes[e].classList.add("highlight"),i.value=l.childNodes[e].textContent}function f(){var e;(e=l.querySelector(".highlight"))==null||e.classList.remove("highlight"),i.value=s,n=null}function a(){l.innerHTML="",n=null,i.value=s}async function y(e){r=new AbortController;try{const t=await fetch(`https://api.github.com/search/users?per_page=${p}&q=${e}`,{signal:r.signal});r=null;const o=await t.json();return c(!1),{text:e,result:o.items}}catch(t){return t.name!=="AbortError"&&d(),c(!1),{text:e,result:[]}}}async function v(){if(l.innerHTML="",n=null,s=i.value,s.length>0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); diff --git a/docs/javascript/assets/index-MqTtmBRo.js b/docs/javascript/assets/index-RA9vF-Iz.js similarity index 97% rename from docs/javascript/assets/index-MqTtmBRo.js rename to docs/javascript/assets/index-RA9vF-Iz.js index c8824fd1..07bb109d 100644 --- a/docs/javascript/assets/index-MqTtmBRo.js +++ b/docs/javascript/assets/index-RA9vF-Iz.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); diff --git a/docs/javascript/assets/index-dTpJmV2Y.js b/docs/javascript/assets/index-RUS8S837.js similarity index 93% rename from docs/javascript/assets/index-dTpJmV2Y.js rename to docs/javascript/assets/index-RUS8S837.js index 1485e2eb..171a8ecc 100644 --- a/docs/javascript/assets/index-dTpJmV2Y.js +++ b/docs/javascript/assets/index-RUS8S837.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); diff --git a/docs/javascript/assets/index-ij1Mg93K.js b/docs/javascript/assets/index-SRpM0UNk.js similarity index 95% rename from docs/javascript/assets/index-ij1Mg93K.js rename to docs/javascript/assets/index-SRpM0UNk.js index e72a4bda..2a498f3c 100644 --- a/docs/javascript/assets/index-ij1Mg93K.js +++ b/docs/javascript/assets/index-SRpM0UNk.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; diff --git a/docs/javascript/assets/index-zZRvzYOB.js b/docs/javascript/assets/index-Sb4Ubd1n.js similarity index 98% rename from docs/javascript/assets/index-zZRvzYOB.js rename to docs/javascript/assets/index-Sb4Ubd1n.js index 11c63467..dd533891 100644 --- a/docs/javascript/assets/index-zZRvzYOB.js +++ b/docs/javascript/assets/index-Sb4Ubd1n.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); diff --git a/docs/javascript/assets/index-q90i9K9z.js b/docs/javascript/assets/index-SjnaQJKF.js similarity index 94% rename from docs/javascript/assets/index-q90i9K9z.js rename to docs/javascript/assets/index-SjnaQJKF.js index e070d308..04be5f4e 100644 --- a/docs/javascript/assets/index-q90i9K9z.js +++ b/docs/javascript/assets/index-SjnaQJKF.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function u(e,t){const n=document.createElement(e);for(let s in t)n.setAttribute(s,t[s]);return n}function L(e,t,n=0){const s=document.createDocumentFragment();for(let l=n;lu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;tu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;t{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=["JavaScript","HTML","CSS","React","Angular","Zustand","NextJS","TypeScript"],a=document.getElementById("listContainer"),s=document.getElementById("todoItemInput"),r=document.getElementById("todoForm"),d=document.getElementById("todo");r.addEventListener("submit",e=>{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); diff --git a/docs/javascript/assets/index-tpi2KuyJ.js b/docs/javascript/assets/index-UQ7yX0UH.js similarity index 90% rename from docs/javascript/assets/index-tpi2KuyJ.js rename to docs/javascript/assets/index-UQ7yX0UH.js index 488f847a..09e9e143 100644 --- a/docs/javascript/assets/index-tpi2KuyJ.js +++ b/docs/javascript/assets/index-UQ7yX0UH.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-tH1bX5Qe.js b/docs/javascript/assets/index-UVR_vpP9.js similarity index 92% rename from docs/javascript/assets/index-tH1bX5Qe.js rename to docs/javascript/assets/index-UVR_vpP9.js index 3f7ab4d9..15c09a23 100644 --- a/docs/javascript/assets/index-tH1bX5Qe.js +++ b/docs/javascript/assets/index-UVR_vpP9.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); diff --git a/docs/javascript/assets/index-LOHlWgmY.js b/docs/javascript/assets/index-UqDoLpeC.js similarity index 95% rename from docs/javascript/assets/index-LOHlWgmY.js rename to docs/javascript/assets/index-UqDoLpeC.js index fd8b3917..dc3a3cf9 100644 --- a/docs/javascript/assets/index-LOHlWgmY.js +++ b/docs/javascript/assets/index-UqDoLpeC.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function a(o,t){this.row=o,this.col=t}a.prototype.setColor=function(o){this.color=o};a.prototype.generateGrid=function(){const o=document.createDocumentFragment();for(let t=0;t{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const c=document.getElementById("increment"),a=document.getElementById("decrement"),e=document.getElementById("changeBy"),d=document.getElementById("reset"),t=document.querySelector(".value");c.addEventListener("click",()=>{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); diff --git a/docs/javascript/assets/index-j2GT3Iz1.js b/docs/javascript/assets/index-VWZCeGey.js similarity index 91% rename from docs/javascript/assets/index-j2GT3Iz1.js rename to docs/javascript/assets/index-VWZCeGey.js index 88d23e43..b5d362be 100644 --- a/docs/javascript/assets/index-j2GT3Iz1.js +++ b/docs/javascript/assets/index-VWZCeGey.js @@ -1,4 +1,4 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` ${n} $${t.toFixed(2)} `,l.appendChild(a),d+=e==="income"?t:-t,i()}m.addEventListener("click",()=>{const n=o.value,t=parseFloat(c.value),e=u.value;if(n.trim()===""||isNaN(t)||t<=0){alert("Please enter a valid description and amount.");return}r(n,t,e),o.value="",c.value=""});i(); diff --git a/docs/javascript/assets/index-M3iNOhED.js b/docs/javascript/assets/index-V_q6IVPo.js similarity index 95% rename from docs/javascript/assets/index-M3iNOhED.js rename to docs/javascript/assets/index-V_q6IVPo.js index d7c746bb..6175672a 100644 --- a/docs/javascript/assets/index-M3iNOhED.js +++ b/docs/javascript/assets/index-V_q6IVPo.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const i=["map","filter"];function c(t,e){this.dropdown=p(t),this.input=s(e),this.output=m()}c.prototype.setOutput=function(t){return this.output.value=t,t};c.prototype.evaluate=function(t){const e=Function(`return function func(value, index, array){ return ${this.input.value} }`);return t[this.dropdown.value](e())};function p(t=i[0]){const e=document.createElement("select");return i.forEach(u=>{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const i=["map","filter"];function c(t,e){this.dropdown=p(t),this.input=s(e),this.output=m()}c.prototype.setOutput=function(t){return this.output.value=t,t};c.prototype.evaluate=function(t){const e=Function(`return function func(value, index, array){ return ${this.input.value} }`);return t[this.dropdown.value](e())};function p(t=i[0]){const e=document.createElement("select");return i.forEach(u=>{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); diff --git a/docs/javascript/assets/index-ls-MhjRy.js b/docs/javascript/assets/index-ZdrEHw4D.js similarity index 99% rename from docs/javascript/assets/index-ls-MhjRy.js rename to docs/javascript/assets/index-ZdrEHw4D.js index 0e79728a..ea069bdf 100644 --- a/docs/javascript/assets/index-ls-MhjRy.js +++ b/docs/javascript/assets/index-ZdrEHw4D.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); diff --git a/docs/javascript/assets/index-nXAAC7Fr.js b/docs/javascript/assets/index-d1042wqR.js similarity index 90% rename from docs/javascript/assets/index-nXAAC7Fr.js rename to docs/javascript/assets/index-d1042wqR.js index 6e35a4a4..b8a2b4ce 100644 --- a/docs/javascript/assets/index-nXAAC7Fr.js +++ b/docs/javascript/assets/index-d1042wqR.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.querySelector(".second-text"),c=document.querySelector(".input"),d=document.querySelector(".button"),a=document.querySelector(".speedRange"),r=["Student","Developer","Writer"];a.default=200;let o=200;function i(n){return new Promise(t=>setTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const s=document.querySelector(".second-text"),c=document.querySelector(".input"),d=document.querySelector(".button"),a=document.querySelector(".speedRange"),r=["Student","Developer","Writer"];a.default=200;let o=200;function i(n){return new Promise(t=>setTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); diff --git a/docs/javascript/assets/index-1s-CQ7B4.js b/docs/javascript/assets/index-dnm4yVGv.js similarity index 94% rename from docs/javascript/assets/index-1s-CQ7B4.js rename to docs/javascript/assets/index-dnm4yVGv.js index 76850ee9..a11d2cba 100644 --- a/docs/javascript/assets/index-1s-CQ7B4.js +++ b/docs/javascript/assets/index-dnm4yVGv.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function u(e,t=e){const a=document.createDocumentFragment();for(let n=0;n=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const E=(e,t,{type:s="div",...a})=>{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); diff --git a/docs/javascript/assets/index-WnGtw4Yv.js b/docs/javascript/assets/index-fM26JL-7.js similarity index 97% rename from docs/javascript/assets/index-WnGtw4Yv.js rename to docs/javascript/assets/index-fM26JL-7.js index 18f7d44e..71d119ed 100644 --- a/docs/javascript/assets/index-WnGtw4Yv.js +++ b/docs/javascript/assets/index-fM26JL-7.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); diff --git a/docs/javascript/assets/index-Z6LUmVc5.js b/docs/javascript/assets/index-fWMoJoNC.js similarity index 97% rename from docs/javascript/assets/index-Z6LUmVc5.js rename to docs/javascript/assets/index-fWMoJoNC.js index 4509ddd5..de3699f3 100644 --- a/docs/javascript/assets/index-Z6LUmVc5.js +++ b/docs/javascript/assets/index-fWMoJoNC.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); diff --git a/docs/javascript/assets/index-1EOrkoZY.js b/docs/javascript/assets/index-feEuELVc.js similarity index 90% rename from docs/javascript/assets/index-1EOrkoZY.js rename to docs/javascript/assets/index-feEuELVc.js index 341b01c2..8fc9a658 100644 --- a/docs/javascript/assets/index-1EOrkoZY.js +++ b/docs/javascript/assets/index-feEuELVc.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} diff --git a/docs/javascript/assets/index-3xFoa--y.js b/docs/javascript/assets/index-iJZqsohR.js similarity index 95% rename from docs/javascript/assets/index-3xFoa--y.js rename to docs/javascript/assets/index-iJZqsohR.js index 9c79ff95..fd3f56c3 100644 --- a/docs/javascript/assets/index-3xFoa--y.js +++ b/docs/javascript/assets/index-iJZqsohR.js @@ -1 +1 @@ -var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); +var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); diff --git a/docs/javascript/assets/index-5tuPAyS6.js b/docs/javascript/assets/index-jD5K_xrH.js similarity index 98% rename from docs/javascript/assets/index-5tuPAyS6.js rename to docs/javascript/assets/index-jD5K_xrH.js index 452c12e3..b0824cc2 100644 --- a/docs/javascript/assets/index-5tuPAyS6.js +++ b/docs/javascript/assets/index-jD5K_xrH.js @@ -1,4 +1,4 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=document.getElementById("input-floor"),E=document.getElementById("input-lift"),D=document.getElementById("btn-submit"),I=document.getElementById("form1"),y=document.getElementById("btn-reset"),b=document.getElementById("content");let c=0,m=[{id:1,floor:1},{id:2,floor:1},{id:3,floor:1},{id:4,floor:1}];const L=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n diff --git a/docs/javascript/assets/index-7IDTvWUm.js b/docs/javascript/assets/index-jWz8ob7F.js similarity index 94% rename from docs/javascript/assets/index-7IDTvWUm.js rename to docs/javascript/assets/index-jWz8ob7F.js index 3d5df377..f715f4ef 100644 --- a/docs/javascript/assets/index-7IDTvWUm.js +++ b/docs/javascript/assets/index-jWz8ob7F.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); diff --git a/docs/javascript/assets/index-AL1lEY3i.js b/docs/javascript/assets/index-k-czZGZh.js similarity index 96% rename from docs/javascript/assets/index-AL1lEY3i.js rename to docs/javascript/assets/index-k-czZGZh.js index f37ac26c..53033f4a 100644 --- a/docs/javascript/assets/index-AL1lEY3i.js +++ b/docs/javascript/assets/index-k-czZGZh.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("main__container"),l=document.getElementById("loading__container"),r=document.getElementById("submitForm");function u(){return"https://opentdb.com/api.php?amount=1&type=multiple"}function m(t){for(let e=1;e<=t.length;e++){const n=document.getElementById(`choice_${e}`),o=document.getElementById(`choice${e}`);n.value=t[e-1],o.innerHTML=t[e-1]}}function y(t){const{question:e,correct_answer:n,incorrect_answers:o}=t;document.getElementById("question").innerHTML=e;const c=p(n,o);m(c)}function p(t,e){const n=[t,...e];for(let o=n.length-1;o>0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const s=document.getElementById("main__container"),l=document.getElementById("loading__container"),r=document.getElementById("submitForm");function u(){return"https://opentdb.com/api.php?amount=1&type=multiple"}function m(t){for(let e=1;e<=t.length;e++){const n=document.getElementById(`choice_${e}`),o=document.getElementById(`choice${e}`);n.value=t[e-1],o.innerHTML=t[e-1]}}function y(t){const{question:e,correct_answer:n,incorrect_answers:o}=t;document.getElementById("question").innerHTML=e;const c=p(n,o);m(c)}function p(t,e){const n=[t,...e];for(let o=n.length-1;o>0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} diff --git a/docs/javascript/assets/index-lOie_DTd.js b/docs/javascript/assets/index-kkuw4xuQ.js similarity index 94% rename from docs/javascript/assets/index-lOie_DTd.js rename to docs/javascript/assets/index-kkuw4xuQ.js index 21971696..63aa37e3 100644 --- a/docs/javascript/assets/index-lOie_DTd.js +++ b/docs/javascript/assets/index-kkuw4xuQ.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); diff --git a/docs/javascript/assets/index-J1HMAy0J.js b/docs/javascript/assets/index-l38kchPZ.js similarity index 88% rename from docs/javascript/assets/index-J1HMAy0J.js rename to docs/javascript/assets/index-l38kchPZ.js index ceacc9ee..2d265899 100644 --- a/docs/javascript/assets/index-J1HMAy0J.js +++ b/docs/javascript/assets/index-l38kchPZ.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("follower"),n=document.getElementById("speed"),l=document.getElementById("cursor"),e={x:0,y:0},t={x:0,y:0};let o=n.valueAsNumber;function s(){e.x+=(t.x-e.x)*o,e.y+=(t.y-e.y)*o,c.style.transform=`translate(${e.x}px, ${e.y}px)`,requestAnimationFrame(()=>s())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const c=document.getElementById("follower"),n=document.getElementById("speed"),l=document.getElementById("cursor"),e={x:0,y:0},t={x:0,y:0};let o=n.valueAsNumber;function s(){e.x+=(t.x-e.x)*o,e.y+=(t.y-e.y)*o,c.style.transform=`translate(${e.x}px, ${e.y}px)`,requestAnimationFrame(()=>s())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); diff --git a/docs/javascript/assets/index-ZBQZRxSt.js b/docs/javascript/assets/index-nE7-hymP.js similarity index 97% rename from docs/javascript/assets/index-ZBQZRxSt.js rename to docs/javascript/assets/index-nE7-hymP.js index 930c428d..2367f809 100644 --- a/docs/javascript/assets/index-ZBQZRxSt.js +++ b/docs/javascript/assets/index-nE7-hymP.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); diff --git a/docs/javascript/assets/index-QZykYu5p.js b/docs/javascript/assets/index-oaqrj_WA.js similarity index 94% rename from docs/javascript/assets/index-QZykYu5p.js rename to docs/javascript/assets/index-oaqrj_WA.js index 7a990e7a..95c9d8c4 100644 --- a/docs/javascript/assets/index-QZykYu5p.js +++ b/docs/javascript/assets/index-oaqrj_WA.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.querySelector(".dice-container"),o=document.querySelector(".play"),s=document.getElementById("dice1"),m=document.getElementById("dice2"),a=document.getElementById("dice3"),y=document.getElementById("dice4"),r=document.getElementById("dice5"),u=document.getElementById("dice6");let t=[2,3],d=[];const n=[s,m,a,y,r,u];n[t[0]].style.display="block";n[t[1]].style.display="block";function p(){if(n.forEach(e=>e.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":le.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":le==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const f=document.querySelector(".calculator"),p=document.querySelector(".display");let t="",c=null,s=null,l=null,i=!1,a=!1;const d=(r,e)=>e==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); diff --git a/docs/javascript/assets/index-Oxep-haE.js b/docs/javascript/assets/index-qhM9YBXo.js similarity index 96% rename from docs/javascript/assets/index-Oxep-haE.js rename to docs/javascript/assets/index-qhM9YBXo.js index 43fddb8b..595c39fd 100644 --- a/docs/javascript/assets/index-Oxep-haE.js +++ b/docs/javascript/assets/index-qhM9YBXo.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); diff --git a/docs/javascript/assets/index-ZDcccaCN.js b/docs/javascript/assets/index-s0v7lbYS.js similarity index 78% rename from docs/javascript/assets/index-ZDcccaCN.js rename to docs/javascript/assets/index-s0v7lbYS.js index 6bef324b..ad430eb6 100644 --- a/docs/javascript/assets/index-ZDcccaCN.js +++ b/docs/javascript/assets/index-s0v7lbYS.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); diff --git a/docs/javascript/assets/index-Pz9voqvc.js b/docs/javascript/assets/index-udB8Yp_9.js similarity index 93% rename from docs/javascript/assets/index-Pz9voqvc.js rename to docs/javascript/assets/index-udB8Yp_9.js index b424a850..7b27f24c 100644 --- a/docs/javascript/assets/index-Pz9voqvc.js +++ b/docs/javascript/assets/index-udB8Yp_9.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.getElementById("generate"),r=document.getElementById("play"),u=9,o=[];s();function s(){for(let t=0;tt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;nt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;n{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); diff --git a/docs/javascript/assets/index-jCxp8ORr.js b/docs/javascript/assets/index-usQhUb1_.js similarity index 98% rename from docs/javascript/assets/index-jCxp8ORr.js rename to docs/javascript/assets/index-usQhUb1_.js index fcb55a1b..a604e2bd 100644 --- a/docs/javascript/assets/index-jCxp8ORr.js +++ b/docs/javascript/assets/index-usQhUb1_.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); diff --git a/docs/javascript/assets/index-lp0aKgI9.js b/docs/javascript/assets/index-vHbBfCc6.js similarity index 92% rename from docs/javascript/assets/index-lp0aKgI9.js rename to docs/javascript/assets/index-vHbBfCc6.js index 2bcbf8b4..84935a9e 100644 --- a/docs/javascript/assets/index-lp0aKgI9.js +++ b/docs/javascript/assets/index-vHbBfCc6.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); diff --git a/docs/javascript/assets/index-DmFzD-VH.js b/docs/javascript/assets/index-vPLwd63_.js similarity index 99% rename from docs/javascript/assets/index-DmFzD-VH.js rename to docs/javascript/assets/index-vPLwd63_.js index 25fe120a..2752a820 100644 --- a/docs/javascript/assets/index-DmFzD-VH.js +++ b/docs/javascript/assets/index-vPLwd63_.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); diff --git a/docs/javascript/assets/index-bZDEenvy.js b/docs/javascript/assets/index-xl-5gtN0.js similarity index 95% rename from docs/javascript/assets/index-bZDEenvy.js rename to docs/javascript/assets/index-xl-5gtN0.js index f092d494..0cc10ee3 100644 --- a/docs/javascript/assets/index-bZDEenvy.js +++ b/docs/javascript/assets/index-xl-5gtN0.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); diff --git a/docs/javascript/assets/index-NbEo-x74.js b/docs/javascript/assets/index-yG87rcLN.js similarity index 99% rename from docs/javascript/assets/index-NbEo-x74.js rename to docs/javascript/assets/index-yG87rcLN.js index a6cda751..37216f19 100644 --- a/docs/javascript/assets/index-NbEo-x74.js +++ b/docs/javascript/assets/index-yG87rcLN.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} diff --git a/docs/javascript/assets/index--zF3jDPY.js b/docs/javascript/assets/index-yyOd6fPH.js similarity index 99% rename from docs/javascript/assets/index--zF3jDPY.js rename to docs/javascript/assets/index-yyOd6fPH.js index e9e40554..295a17c7 100644 --- a/docs/javascript/assets/index--zF3jDPY.js +++ b/docs/javascript/assets/index-yyOd6fPH.js @@ -1 +1 @@ -import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const v=[{question:"A flashing red traffic light signifies that a driver should do what?",options:["stop","speed up","proceed with caution","honk the horn"],correct:"stop",id:"0"},{question:"A knish is traditionally stuffed with what filling?",options:["potato","creamed corn","lemon custard","raspberry jelly"],correct:"potato",id:"1"},{question:"A pita is a type of what?",options:["fresh fruit","flat bread","French tart","friend bean dip"],correct:"flat bread",id:"2"},{question:"A portrait that comically exaggerates a person's physical traits is called a what?",options:["landscape","caricature","still life","Impressionism"],correct:"caricature",id:"3"},{question:"A second-year college student is usually called a what?",options:["sophomore","senior","freshman ","junior "],correct:"sophomore",id:"4"},{question:"A student who earns a J.D. can begin his or her career as a what?",options:["lawyer","bricklayer","doctor","accountant"],correct:"lawyer",id:"5"},{question:"A triptych is a work of art that is painted on how many panels?",options:["two","three","five","eight"],correct:"three",id:"6"},{question:"According to a famous line from the existentialist play 'No Exit' what is hell?",options:["oneself","other people","little made large","hued in green and blue"],correct:"other people",id:"7"},{question:"According to a popular slogan, what state should people not 'mess with'?",options:["New York","Texas","Montana","Rhode Island"],correct:"Texas",id:"8"},{question:"According to a Yale University study, what smell is the most recognizable to American adults?",options:["tuna","laundry","popcorn","coffee"],correct:"coffee",id:"9"},{question:"According to folklore, the 'jackalope' is an antlered version of what animal?",options:["chicken","rabbit","moose","snake"],correct:"rabbit",id:"10"},{question:"According to Greek mythology, who was Apollo's twin sister?",options:["Aphrodite","Artemis","Venus","Athena"],correct:"Artemis",id:"11"},{question:"According to legend, if you give someone the 'evil eye' what are you doing?",options:["cursing them","blessing a child","counting money","passing time"],correct:"cursing them",id:"12"},{question:"According to legend, in what country are you most likely to meet a leprechaun?",options:["Ireland","Poland","Greenland","Scotland"],correct:"Ireland",id:"13"},{question:"According to the American Kennel Club, what is the most popular breed of dog in the US as of 1999?",options:["Poodle","Beagle","German shepherd","Labrador retriever"],correct:"Labrador retriever",id:"14"},{question:"According to the Bible, Moses and Aaron had a sister named what?",options:["Jochebed","Ruth","Leah","Miriam"],correct:"Miriam",id:"15"},{question:"According to the children's nursery rhyme, what type of ocean did Columbus sail in 1492?",options:["calm","blue","windy","really big"],correct:"blue",id:"16"},{question:"According to the Mother Goose nursery rhyme, which child is full of woe?",options:["Monday's child","Wednesday's child","Thursday's child","Saturday's child"],correct:"Wednesday's child",id:"17"},{question:"According to the popular saying, what should you do 'when in Rome'?",options:["watch your wallet","see the Coliseum","as the Romans do","don't drink the water"],correct:"as the Romans do",id:"18"},{question:"According to the proverb, necessity is the mother of what?",options:["Invention","Luck","Problems","Procrastination"],correct:"Invention",id:"19"},{question:"According to the title of a popular children's TV show, what color is Bear's big house?",options:["red","green","purple","blue"],correct:"blue",id:"20"},{question:"According to the USDA, which food group should you eat the most servings of per day?",options:["vegetables","dairy","meats","breads"],correct:"breads",id:"21"},{question:"Ada Lovelace is credited with being the first person to have made what?",options:["a computer program","a souffle","a brassiere","a mystery novel"],correct:"a computer program",id:"22"},{question:"After Prince Charles, who is next in line to be the king of England?",options:["Prince William","Prince Andrew","Prince Edward","Fresh Prince"],correct:"Prince William",id:"23"},{question:"An airplane's black box is usually what color?",options:["black","white","orange","purple"],correct:"orange",id:"24"},{question:"As of 1999, which state has the most Girl Scouts?",options:["California","Illinois","New York","Pennsylvania"],correct:"California",id:"25"},{question:"Astronaut John Glenn served as a pilot in what branch of the military?",options:["Army","Air Force","Marines","Navy"],correct:"Marines",id:"26"},{question:"At the equator, how fast is the earth's surface turning?",options:["about 100 miles per hour","about 500 miles per hour","about 1000 miles per hour","about 2000 miles per hour"],correct:"about 1000 miles per hour",id:"27"},{question:"At what age can someone first attend an R-rated movie without an accompanying adult?",options:["15","17","18","21"],correct:"18",id:"28"},{question:"Backgammon is a how many player game?",options:["Two","Three","Four","Six"],correct:"Two",id:"29"},{question:"Before he went into coaching, Phil Jackson played for which of the following NBA teams?",options:["Boston Celtics","Los Angeles Lakers","New York Knicks","Philadelphia 76ers"],correct:"New York Knicks",id:"30"},{question:"By what name is Bob Keeshan better known?",options:["Bozo the Clown","Pee Wee Herman","Captain Kangaroo","Buffalo Bob"],correct:"Captain Kangaroo",id:"31"},{question:"By what collective name do Christians refer to God the Father, God the Son and the Holy Ghost?",options:["the Trio","the Troika","the Triumvirate","the Trinity"],correct:"the Trinity",id:"32"},{question:"By what nickname is the Federal National Mortgage Association known?",options:["Morty","FEMA","Freddie Mac","Fannie Mae"],correct:"Fannie Mae",id:"33"},{question:"Cheddar cheese got its name from a village in what country?",options:["England","France","Switzerland","Denmark"],correct:"England",id:"34"},{question:"Cheese is a necessary ingredient in which of these dishes?",options:["sushi","french fries","veal parmigiano","chicken pot pie"],correct:"veal parmigiano",id:"35"},{question:"During what war did Francis Scott Key write the words to 'The Star-Spangled Banner'?",options:["American Revolution","War of 1812","Civil War","World War I"],correct:"War of 1812",id:"36"},{question:"During which war did US troops fight the Battle of New Orleans?",options:["American Revolution","Civil War","Mexican War","War of 1812"],correct:"War of 1812",id:"37"},{question:"Each year in pro baseball, the player voted as the best fielder at his position wins what?",options:["a brand new car","the Gold Glove","the Silver Bat","the Brass Baseball"],correct:"the Gold Glove",id:"38"},{question:"Elephant tusks are made of what material?",options:["coral","ivory","bone","calcium"],correct:"ivory",id:"39"},{question:"Excluding wisdom teeth, how many adult teeth do humans have?",options:["28","32","35","40"],correct:"28",id:"40"},{question:"For a man and woman on a date, 'dutch treat' means what?",options:["the man pays","the woman pays","the Dutch pay","each pays their own way"],correct:"each pays their own way",id:"41"},{question:"For what purpose would you use an awl?",options:["to shoot ducks","to polish floors","to make holes","to weigh fruit"],correct:"to make holes",id:"42"},{question:"From 1971 to 1997, the Democratic Republic of Congo was known as what?",options:["Zaire","Angola","Rhodesia","Belgian Congo"],correct:"Zaire",id:"43"},{question:"From what language does the term 'R.S.V.P.' originate?",options:["Russian","Italian","Portuguese","French"],correct:"French",id:"44"},{question:"From whom does the Lutheran Church get its name?",options:["Martin Luther King Jr","Martin Luther","Luther Vandross","Lex Luthor"],correct:"Martin Luther",id:"45"},{question:"Gerry Adams is the president of what organization?",options:["Greenpeace","NASCAR","Sinn Fein","PLO"],correct:"Sinn Fein",id:"46"},{question:"Girls of what religious community traditionally wear bonnets?",options:["Amish","Sikh","Roman Catholic","Christian"],correct:"Amish",id:"47"},{question:"How are actors Charlie Sheen and Emilio Estevez related?",options:["they're cousins","they're brothers","they're father and son","they're uncle and nephew"],correct:"they're brothers",id:"48"},{question:"How do you express 3/4 as a decimal?",options:[".25",".50",".75",".90"],correct:".75",id:"49"},{question:"How is 4:00 pm expressed in military time?",options:["1600","004","0400 ","4:00"],correct:"1600",id:"50"},{question:"How is the Arabic numeral for '2' written?",options:["2","II","I","ii"],correct:"2",id:"51"},{question:"How is the word 'ambulance' normally written on the front of American ambulances?",options:["in French","in reverse","in braille","in gibberish"],correct:"in reverse",id:"52"},{question:"How long is a single term in the US Senate?",options:["two years","four years","six years","eight years"],correct:"six years",id:"53"},{question:"How long is the time on an NBA shot clock?",options:["18 seconds","24 seconds","30 seconds","35 seconds"],correct:"24 seconds",id:"54"},{question:"How many $100 bills does it take to equal one million dollars?",options:["one thousand","five thousand","ten thousand","one hundred thousand"],correct:"ten thousand",id:"55"},{question:"How many axles does a standard automobile have?",options:["one","two","four","eight"],correct:"two",id:"56"},{question:"How many digits are in a standard Visa credit card number?",options:["12","15","16","20"],correct:"16",id:"57"},{question:"How many eyes does a Giraffe have?",options:["one","two","three","four"],correct:"two",id:"58"},{question:"How many innings are there in a regular Major League Baseball game?",options:["seven","eight","nine","ten"],correct:"nine",id:"59"},{question:"How many keys are on a standard piano?",options:["20","54","88","100"],correct:"88",id:"60"},{question:"How many men has actress Elizabeth Taylor been divorced from?",options:["five","six","seven","eight"],correct:"seven",id:"61"},{question:"How many ounces are in a pound?",options:["4","12","16","32"],correct:"16",id:"62"},{question:"How many periods are there in an ice hockey game?",options:["One","Two","Three","Four"],correct:"Three",id:"63"},{question:"How many quarts are there in a gallon?",options:["one","two","three","four"],correct:"four",id:"64"},{question:"How many ribs are there in the human body?",options:["18","24","30","42"],correct:"24",id:"65"},{question:"How many ships did Columbus set sail with on his initial voyage to the New World?",options:["Two","Three","Five","Ten"],correct:"Three",id:"66"},{question:"How many spikes are on the Statue of Liberty's crown?",options:["five","seven","nine","thirteen"],correct:"seven",id:"67"},{question:"How many stars are on the American flag?",options:["13","48","50","51"],correct:"50",id:"68"},{question:"How many states were in the Confederate States of America?",options:["11","13","16","22"],correct:"11",id:"69"},{question:"How much does Peanuts character Lucy charge for her psychiatric advice?",options:["5 cents","10 cents","75 cents","$125"],correct:"5 cents",id:"70"},{question:"How long is Hanukkah?",options:["one day","five days","eight days","two weeks"],correct:"eight days",id:"71"},{question:"Huffy, Schwinn and Raleigh are all brands of what?",options:["sportswear","dishwashers","cigarettes","bicycles"],correct:"bicycles",id:"72"},{question:"If a business files under Chapter 11 what is it doing?",options:["declaring bankruptcy","selling stock","buying a smaller","company suing the government"],correct:"declaring bankruptcy",id:"73"},{question:"If a piece of music is in 'common time' how many quarter notes are there per measure?",options:["one","four","five","ten"],correct:"four",id:"74"},{question:"If a ring has the number 925 stamped into it, it is most likely made of what material?",options:["platinum","gold","steel","silver"],correct:"silver",id:"75"},{question:"If Christmas Day is on a Saturday, then the following New Year's Day falls on what day of the week?",options:["Sunday","Monday","Friday","Saturday"],correct:"Saturday",id:"76"},{question:"If someone has cataracts, what part of their body might need an operation?",options:["ear","hand","eye","knee"],correct:"eye",id:"77"},{question:"If you are 'riding fakie' inside a 'half pipe' what are you probably doing?",options:["skiing","biking","snowboarding","surfing"],correct:"snowboarding",id:"78"},{question:"If you are truly afraid of the dark, what do you suffer from?",options:["hypnophobia","cryptophobia","hadephobia","nyctophobia"],correct:"nyctophobia",id:"79"}],l=document.querySelector(".time-left"),y=document.getElementById("container"),A=document.getElementById("next-button"),u=document.querySelector(".number-of-question"),h=document.getElementById("display-container"),w=document.querySelector(".score-container"),k=document.getElementById("restart"),L=document.getElementById("user-score"),f=document.querySelector(".start-screen"),C=document.getElementById("start-button");let r=0,p=0,s=10,c,n=[];function H(e,o){return e.sort(()=>Math.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); +import"./header-HAvl2F_b.js";import"./navbar-znH5OniC.js";const v=[{question:"A flashing red traffic light signifies that a driver should do what?",options:["stop","speed up","proceed with caution","honk the horn"],correct:"stop",id:"0"},{question:"A knish is traditionally stuffed with what filling?",options:["potato","creamed corn","lemon custard","raspberry jelly"],correct:"potato",id:"1"},{question:"A pita is a type of what?",options:["fresh fruit","flat bread","French tart","friend bean dip"],correct:"flat bread",id:"2"},{question:"A portrait that comically exaggerates a person's physical traits is called a what?",options:["landscape","caricature","still life","Impressionism"],correct:"caricature",id:"3"},{question:"A second-year college student is usually called a what?",options:["sophomore","senior","freshman ","junior "],correct:"sophomore",id:"4"},{question:"A student who earns a J.D. can begin his or her career as a what?",options:["lawyer","bricklayer","doctor","accountant"],correct:"lawyer",id:"5"},{question:"A triptych is a work of art that is painted on how many panels?",options:["two","three","five","eight"],correct:"three",id:"6"},{question:"According to a famous line from the existentialist play 'No Exit' what is hell?",options:["oneself","other people","little made large","hued in green and blue"],correct:"other people",id:"7"},{question:"According to a popular slogan, what state should people not 'mess with'?",options:["New York","Texas","Montana","Rhode Island"],correct:"Texas",id:"8"},{question:"According to a Yale University study, what smell is the most recognizable to American adults?",options:["tuna","laundry","popcorn","coffee"],correct:"coffee",id:"9"},{question:"According to folklore, the 'jackalope' is an antlered version of what animal?",options:["chicken","rabbit","moose","snake"],correct:"rabbit",id:"10"},{question:"According to Greek mythology, who was Apollo's twin sister?",options:["Aphrodite","Artemis","Venus","Athena"],correct:"Artemis",id:"11"},{question:"According to legend, if you give someone the 'evil eye' what are you doing?",options:["cursing them","blessing a child","counting money","passing time"],correct:"cursing them",id:"12"},{question:"According to legend, in what country are you most likely to meet a leprechaun?",options:["Ireland","Poland","Greenland","Scotland"],correct:"Ireland",id:"13"},{question:"According to the American Kennel Club, what is the most popular breed of dog in the US as of 1999?",options:["Poodle","Beagle","German shepherd","Labrador retriever"],correct:"Labrador retriever",id:"14"},{question:"According to the Bible, Moses and Aaron had a sister named what?",options:["Jochebed","Ruth","Leah","Miriam"],correct:"Miriam",id:"15"},{question:"According to the children's nursery rhyme, what type of ocean did Columbus sail in 1492?",options:["calm","blue","windy","really big"],correct:"blue",id:"16"},{question:"According to the Mother Goose nursery rhyme, which child is full of woe?",options:["Monday's child","Wednesday's child","Thursday's child","Saturday's child"],correct:"Wednesday's child",id:"17"},{question:"According to the popular saying, what should you do 'when in Rome'?",options:["watch your wallet","see the Coliseum","as the Romans do","don't drink the water"],correct:"as the Romans do",id:"18"},{question:"According to the proverb, necessity is the mother of what?",options:["Invention","Luck","Problems","Procrastination"],correct:"Invention",id:"19"},{question:"According to the title of a popular children's TV show, what color is Bear's big house?",options:["red","green","purple","blue"],correct:"blue",id:"20"},{question:"According to the USDA, which food group should you eat the most servings of per day?",options:["vegetables","dairy","meats","breads"],correct:"breads",id:"21"},{question:"Ada Lovelace is credited with being the first person to have made what?",options:["a computer program","a souffle","a brassiere","a mystery novel"],correct:"a computer program",id:"22"},{question:"After Prince Charles, who is next in line to be the king of England?",options:["Prince William","Prince Andrew","Prince Edward","Fresh Prince"],correct:"Prince William",id:"23"},{question:"An airplane's black box is usually what color?",options:["black","white","orange","purple"],correct:"orange",id:"24"},{question:"As of 1999, which state has the most Girl Scouts?",options:["California","Illinois","New York","Pennsylvania"],correct:"California",id:"25"},{question:"Astronaut John Glenn served as a pilot in what branch of the military?",options:["Army","Air Force","Marines","Navy"],correct:"Marines",id:"26"},{question:"At the equator, how fast is the earth's surface turning?",options:["about 100 miles per hour","about 500 miles per hour","about 1000 miles per hour","about 2000 miles per hour"],correct:"about 1000 miles per hour",id:"27"},{question:"At what age can someone first attend an R-rated movie without an accompanying adult?",options:["15","17","18","21"],correct:"18",id:"28"},{question:"Backgammon is a how many player game?",options:["Two","Three","Four","Six"],correct:"Two",id:"29"},{question:"Before he went into coaching, Phil Jackson played for which of the following NBA teams?",options:["Boston Celtics","Los Angeles Lakers","New York Knicks","Philadelphia 76ers"],correct:"New York Knicks",id:"30"},{question:"By what name is Bob Keeshan better known?",options:["Bozo the Clown","Pee Wee Herman","Captain Kangaroo","Buffalo Bob"],correct:"Captain Kangaroo",id:"31"},{question:"By what collective name do Christians refer to God the Father, God the Son and the Holy Ghost?",options:["the Trio","the Troika","the Triumvirate","the Trinity"],correct:"the Trinity",id:"32"},{question:"By what nickname is the Federal National Mortgage Association known?",options:["Morty","FEMA","Freddie Mac","Fannie Mae"],correct:"Fannie Mae",id:"33"},{question:"Cheddar cheese got its name from a village in what country?",options:["England","France","Switzerland","Denmark"],correct:"England",id:"34"},{question:"Cheese is a necessary ingredient in which of these dishes?",options:["sushi","french fries","veal parmigiano","chicken pot pie"],correct:"veal parmigiano",id:"35"},{question:"During what war did Francis Scott Key write the words to 'The Star-Spangled Banner'?",options:["American Revolution","War of 1812","Civil War","World War I"],correct:"War of 1812",id:"36"},{question:"During which war did US troops fight the Battle of New Orleans?",options:["American Revolution","Civil War","Mexican War","War of 1812"],correct:"War of 1812",id:"37"},{question:"Each year in pro baseball, the player voted as the best fielder at his position wins what?",options:["a brand new car","the Gold Glove","the Silver Bat","the Brass Baseball"],correct:"the Gold Glove",id:"38"},{question:"Elephant tusks are made of what material?",options:["coral","ivory","bone","calcium"],correct:"ivory",id:"39"},{question:"Excluding wisdom teeth, how many adult teeth do humans have?",options:["28","32","35","40"],correct:"28",id:"40"},{question:"For a man and woman on a date, 'dutch treat' means what?",options:["the man pays","the woman pays","the Dutch pay","each pays their own way"],correct:"each pays their own way",id:"41"},{question:"For what purpose would you use an awl?",options:["to shoot ducks","to polish floors","to make holes","to weigh fruit"],correct:"to make holes",id:"42"},{question:"From 1971 to 1997, the Democratic Republic of Congo was known as what?",options:["Zaire","Angola","Rhodesia","Belgian Congo"],correct:"Zaire",id:"43"},{question:"From what language does the term 'R.S.V.P.' originate?",options:["Russian","Italian","Portuguese","French"],correct:"French",id:"44"},{question:"From whom does the Lutheran Church get its name?",options:["Martin Luther King Jr","Martin Luther","Luther Vandross","Lex Luthor"],correct:"Martin Luther",id:"45"},{question:"Gerry Adams is the president of what organization?",options:["Greenpeace","NASCAR","Sinn Fein","PLO"],correct:"Sinn Fein",id:"46"},{question:"Girls of what religious community traditionally wear bonnets?",options:["Amish","Sikh","Roman Catholic","Christian"],correct:"Amish",id:"47"},{question:"How are actors Charlie Sheen and Emilio Estevez related?",options:["they're cousins","they're brothers","they're father and son","they're uncle and nephew"],correct:"they're brothers",id:"48"},{question:"How do you express 3/4 as a decimal?",options:[".25",".50",".75",".90"],correct:".75",id:"49"},{question:"How is 4:00 pm expressed in military time?",options:["1600","004","0400 ","4:00"],correct:"1600",id:"50"},{question:"How is the Arabic numeral for '2' written?",options:["2","II","I","ii"],correct:"2",id:"51"},{question:"How is the word 'ambulance' normally written on the front of American ambulances?",options:["in French","in reverse","in braille","in gibberish"],correct:"in reverse",id:"52"},{question:"How long is a single term in the US Senate?",options:["two years","four years","six years","eight years"],correct:"six years",id:"53"},{question:"How long is the time on an NBA shot clock?",options:["18 seconds","24 seconds","30 seconds","35 seconds"],correct:"24 seconds",id:"54"},{question:"How many $100 bills does it take to equal one million dollars?",options:["one thousand","five thousand","ten thousand","one hundred thousand"],correct:"ten thousand",id:"55"},{question:"How many axles does a standard automobile have?",options:["one","two","four","eight"],correct:"two",id:"56"},{question:"How many digits are in a standard Visa credit card number?",options:["12","15","16","20"],correct:"16",id:"57"},{question:"How many eyes does a Giraffe have?",options:["one","two","three","four"],correct:"two",id:"58"},{question:"How many innings are there in a regular Major League Baseball game?",options:["seven","eight","nine","ten"],correct:"nine",id:"59"},{question:"How many keys are on a standard piano?",options:["20","54","88","100"],correct:"88",id:"60"},{question:"How many men has actress Elizabeth Taylor been divorced from?",options:["five","six","seven","eight"],correct:"seven",id:"61"},{question:"How many ounces are in a pound?",options:["4","12","16","32"],correct:"16",id:"62"},{question:"How many periods are there in an ice hockey game?",options:["One","Two","Three","Four"],correct:"Three",id:"63"},{question:"How many quarts are there in a gallon?",options:["one","two","three","four"],correct:"four",id:"64"},{question:"How many ribs are there in the human body?",options:["18","24","30","42"],correct:"24",id:"65"},{question:"How many ships did Columbus set sail with on his initial voyage to the New World?",options:["Two","Three","Five","Ten"],correct:"Three",id:"66"},{question:"How many spikes are on the Statue of Liberty's crown?",options:["five","seven","nine","thirteen"],correct:"seven",id:"67"},{question:"How many stars are on the American flag?",options:["13","48","50","51"],correct:"50",id:"68"},{question:"How many states were in the Confederate States of America?",options:["11","13","16","22"],correct:"11",id:"69"},{question:"How much does Peanuts character Lucy charge for her psychiatric advice?",options:["5 cents","10 cents","75 cents","$125"],correct:"5 cents",id:"70"},{question:"How long is Hanukkah?",options:["one day","five days","eight days","two weeks"],correct:"eight days",id:"71"},{question:"Huffy, Schwinn and Raleigh are all brands of what?",options:["sportswear","dishwashers","cigarettes","bicycles"],correct:"bicycles",id:"72"},{question:"If a business files under Chapter 11 what is it doing?",options:["declaring bankruptcy","selling stock","buying a smaller","company suing the government"],correct:"declaring bankruptcy",id:"73"},{question:"If a piece of music is in 'common time' how many quarter notes are there per measure?",options:["one","four","five","ten"],correct:"four",id:"74"},{question:"If a ring has the number 925 stamped into it, it is most likely made of what material?",options:["platinum","gold","steel","silver"],correct:"silver",id:"75"},{question:"If Christmas Day is on a Saturday, then the following New Year's Day falls on what day of the week?",options:["Sunday","Monday","Friday","Saturday"],correct:"Saturday",id:"76"},{question:"If someone has cataracts, what part of their body might need an operation?",options:["ear","hand","eye","knee"],correct:"eye",id:"77"},{question:"If you are 'riding fakie' inside a 'half pipe' what are you probably doing?",options:["skiing","biking","snowboarding","surfing"],correct:"snowboarding",id:"78"},{question:"If you are truly afraid of the dark, what do you suffer from?",options:["hypnophobia","cryptophobia","hadephobia","nyctophobia"],correct:"nyctophobia",id:"79"}],l=document.querySelector(".time-left"),y=document.getElementById("container"),A=document.getElementById("next-button"),u=document.querySelector(".number-of-question"),h=document.getElementById("display-container"),w=document.querySelector(".score-container"),k=document.getElementById("restart"),L=document.getElementById("user-score"),f=document.querySelector(".start-screen"),C=document.getElementById("start-button");let r=0,p=0,s=10,c,n=[];function H(e,o){return e.sort(()=>Math.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); diff --git a/docs/javascript/assets/navbar-7u3xAeMJ.js b/docs/javascript/assets/navbar-znH5OniC.js similarity index 58% rename from docs/javascript/assets/navbar-7u3xAeMJ.js rename to docs/javascript/assets/navbar-znH5OniC.js index 1a959d09..dfbb855e 100644 --- a/docs/javascript/assets/navbar-7u3xAeMJ.js +++ b/docs/javascript/assets/navbar-znH5OniC.js @@ -40,4 +40,4 @@ const g=`
-`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M as j}; +`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M as j}; diff --git a/docs/javascript/src/challenges/25-5-clock/index.html b/docs/javascript/src/challenges/25-5-clock/index.html index 3e45e109..33dcd8d0 100644 --- a/docs/javascript/src/challenges/25-5-clock/index.html +++ b/docs/javascript/src/challenges/25-5-clock/index.html @@ -10,9 +10,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" rel="stylesheet" /> - - - + + + diff --git a/docs/javascript/src/challenges/analog-clock/index.html b/docs/javascript/src/challenges/analog-clock/index.html index e68f57b3..91c4436a 100644 --- a/docs/javascript/src/challenges/analog-clock/index.html +++ b/docs/javascript/src/challenges/analog-clock/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/area-selector/index.html b/docs/javascript/src/challenges/area-selector/index.html index e7e8ca16..a0f62020 100644 --- a/docs/javascript/src/challenges/area-selector/index.html +++ b/docs/javascript/src/challenges/area-selector/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/array-methods/index.html b/docs/javascript/src/challenges/array-methods/index.html index e588eb75..320149cd 100644 --- a/docs/javascript/src/challenges/array-methods/index.html +++ b/docs/javascript/src/challenges/array-methods/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/atm-simulator/index.html b/docs/javascript/src/challenges/atm-simulator/index.html index 8e6b18e5..963fbf09 100644 --- a/docs/javascript/src/challenges/atm-simulator/index.html +++ b/docs/javascript/src/challenges/atm-simulator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/basic-calculator/index.html b/docs/javascript/src/challenges/basic-calculator/index.html index 7b6de743..e54a53c5 100644 --- a/docs/javascript/src/challenges/basic-calculator/index.html +++ b/docs/javascript/src/challenges/basic-calculator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/bill-spilt/index.html b/docs/javascript/src/challenges/bill-spilt/index.html index f50971c5..083dd21f 100644 --- a/docs/javascript/src/challenges/bill-spilt/index.html +++ b/docs/javascript/src/challenges/bill-spilt/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/bmi-calculator/index.html b/docs/javascript/src/challenges/bmi-calculator/index.html index 311dbbd6..f865105b 100644 --- a/docs/javascript/src/challenges/bmi-calculator/index.html +++ b/docs/javascript/src/challenges/bmi-calculator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/calendar/index.html b/docs/javascript/src/challenges/calendar/index.html index 2e1972a5..0f291aea 100644 --- a/docs/javascript/src/challenges/calendar/index.html +++ b/docs/javascript/src/challenges/calendar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/carousel/index.html b/docs/javascript/src/challenges/carousel/index.html index 18712b10..acd54ff9 100644 --- a/docs/javascript/src/challenges/carousel/index.html +++ b/docs/javascript/src/challenges/carousel/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chess-board/index.html b/docs/javascript/src/challenges/chess-board/index.html index 5f18adc7..fa9b97ad 100644 --- a/docs/javascript/src/challenges/chess-board/index.html +++ b/docs/javascript/src/challenges/chess-board/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chips-input/index.html b/docs/javascript/src/challenges/chips-input/index.html index 2ce56318..009d253a 100644 --- a/docs/javascript/src/challenges/chips-input/index.html +++ b/docs/javascript/src/challenges/chips-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-me/index.html b/docs/javascript/src/challenges/color-me/index.html index e0fad7f8..b5302fad 100644 --- a/docs/javascript/src/challenges/color-me/index.html +++ b/docs/javascript/src/challenges/color-me/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-spotter/index.html b/docs/javascript/src/challenges/color-spotter/index.html index 59afaccb..70bf655f 100644 --- a/docs/javascript/src/challenges/color-spotter/index.html +++ b/docs/javascript/src/challenges/color-spotter/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/column-table/index.html b/docs/javascript/src/challenges/column-table/index.html index 11fa59ac..0b434f54 100644 --- a/docs/javascript/src/challenges/column-table/index.html +++ b/docs/javascript/src/challenges/column-table/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/connect-four/index.html b/docs/javascript/src/challenges/connect-four/index.html index b013502f..62089466 100644 --- a/docs/javascript/src/challenges/connect-four/index.html +++ b/docs/javascript/src/challenges/connect-four/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/count-down-timer/index.html b/docs/javascript/src/challenges/count-down-timer/index.html index e5fe84e2..5204e8a4 100644 --- a/docs/javascript/src/challenges/count-down-timer/index.html +++ b/docs/javascript/src/challenges/count-down-timer/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/counter/index.html b/docs/javascript/src/challenges/counter/index.html index 117a0d49..031b5c4a 100644 --- a/docs/javascript/src/challenges/counter/index.html +++ b/docs/javascript/src/challenges/counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/currency-converter/index.html b/docs/javascript/src/challenges/currency-converter/index.html index 3642e6f7..121a54e5 100644 --- a/docs/javascript/src/challenges/currency-converter/index.html +++ b/docs/javascript/src/challenges/currency-converter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/dice-game/index.html b/docs/javascript/src/challenges/dice-game/index.html index 806fbe7b..08451522 100644 --- a/docs/javascript/src/challenges/dice-game/index.html +++ b/docs/javascript/src/challenges/dice-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html index 9046ac2e..9d950ac9 100644 --- a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html +++ b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/file-uploader/index.html b/docs/javascript/src/challenges/file-uploader/index.html index cfa663e1..7b37f2b6 100644 --- a/docs/javascript/src/challenges/file-uploader/index.html +++ b/docs/javascript/src/challenges/file-uploader/index.html @@ -6,9 +6,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" /> - - - + + + diff --git a/docs/javascript/src/challenges/finance-tracker/index.html b/docs/javascript/src/challenges/finance-tracker/index.html index a0315751..49c6b877 100644 --- a/docs/javascript/src/challenges/finance-tracker/index.html +++ b/docs/javascript/src/challenges/finance-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/fitness-tracker/index.html b/docs/javascript/src/challenges/fitness-tracker/index.html index 1499526f..394adfa6 100644 --- a/docs/javascript/src/challenges/fitness-tracker/index.html +++ b/docs/javascript/src/challenges/fitness-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/guess-the-number/index.html b/docs/javascript/src/challenges/guess-the-number/index.html index 3422bcb9..d0cefe73 100644 --- a/docs/javascript/src/challenges/guess-the-number/index.html +++ b/docs/javascript/src/challenges/guess-the-number/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/hangman-game/index.html b/docs/javascript/src/challenges/hangman-game/index.html index d9d44795..3cc07d01 100644 --- a/docs/javascript/src/challenges/hangman-game/index.html +++ b/docs/javascript/src/challenges/hangman-game/index.html @@ -4,9 +4,9 @@ Hangman Game - - - + + + diff --git a/docs/javascript/src/challenges/infinite-scroll/index.html b/docs/javascript/src/challenges/infinite-scroll/index.html index 342cfe8b..75a5ddef 100644 --- a/docs/javascript/src/challenges/infinite-scroll/index.html +++ b/docs/javascript/src/challenges/infinite-scroll/index.html @@ -3,9 +3,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/json-creator/index.html b/docs/javascript/src/challenges/json-creator/index.html index 6dedc95c..7a2a52a4 100644 --- a/docs/javascript/src/challenges/json-creator/index.html +++ b/docs/javascript/src/challenges/json-creator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/lift-simulation/index.html b/docs/javascript/src/challenges/lift-simulation/index.html index 174fb5c4..350a11f1 100644 --- a/docs/javascript/src/challenges/lift-simulation/index.html +++ b/docs/javascript/src/challenges/lift-simulation/index.html @@ -5,9 +5,9 @@ Lift Simulation - - - + + + diff --git a/docs/javascript/src/challenges/match-pair/index.html b/docs/javascript/src/challenges/match-pair/index.html index be21027f..04bef712 100644 --- a/docs/javascript/src/challenges/match-pair/index.html +++ b/docs/javascript/src/challenges/match-pair/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/meme-generator/index.html b/docs/javascript/src/challenges/meme-generator/index.html index 5bde061e..5bc2d9f4 100644 --- a/docs/javascript/src/challenges/meme-generator/index.html +++ b/docs/javascript/src/challenges/meme-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/mouse-follower/index.html b/docs/javascript/src/challenges/mouse-follower/index.html index ad879f8a..d382e70e 100644 --- a/docs/javascript/src/challenges/mouse-follower/index.html +++ b/docs/javascript/src/challenges/mouse-follower/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/movie-info/index.html b/docs/javascript/src/challenges/movie-info/index.html index 84dc9461..548e5c70 100644 --- a/docs/javascript/src/challenges/movie-info/index.html +++ b/docs/javascript/src/challenges/movie-info/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/multi-typing/index.html b/docs/javascript/src/challenges/multi-typing/index.html index 981341b2..2b7df33a 100644 --- a/docs/javascript/src/challenges/multi-typing/index.html +++ b/docs/javascript/src/challenges/multi-typing/index.html @@ -6,9 +6,9 @@ Typing Text Animation - - - + + + diff --git a/docs/javascript/src/challenges/music-kit/index.html b/docs/javascript/src/challenges/music-kit/index.html index a4922508..d22fd3c5 100644 --- a/docs/javascript/src/challenges/music-kit/index.html +++ b/docs/javascript/src/challenges/music-kit/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/nested-comments/index.html b/docs/javascript/src/challenges/nested-comments/index.html index f25a24e9..e2f82048 100644 --- a/docs/javascript/src/challenges/nested-comments/index.html +++ b/docs/javascript/src/challenges/nested-comments/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/otp-input/index.html b/docs/javascript/src/challenges/otp-input/index.html index d279b195..09940a53 100644 --- a/docs/javascript/src/challenges/otp-input/index.html +++ b/docs/javascript/src/challenges/otp-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/paginator/index.html b/docs/javascript/src/challenges/paginator/index.html index e6e4f114..de9eb0ed 100644 --- a/docs/javascript/src/challenges/paginator/index.html +++ b/docs/javascript/src/challenges/paginator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/password-generator/index.html b/docs/javascript/src/challenges/password-generator/index.html index bda6e5ef..5a375bb0 100644 --- a/docs/javascript/src/challenges/password-generator/index.html +++ b/docs/javascript/src/challenges/password-generator/index.html @@ -6,9 +6,9 @@ password-generator - - - + + + diff --git a/docs/javascript/src/challenges/password-strength/index.html b/docs/javascript/src/challenges/password-strength/index.html index 62e646c2..8451361d 100644 --- a/docs/javascript/src/challenges/password-strength/index.html +++ b/docs/javascript/src/challenges/password-strength/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/pixel-art/index.html b/docs/javascript/src/challenges/pixel-art/index.html index 3e976d3d..37be5478 100644 --- a/docs/javascript/src/challenges/pixel-art/index.html +++ b/docs/javascript/src/challenges/pixel-art/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/progress-bar/index.html b/docs/javascript/src/challenges/progress-bar/index.html index 2635e514..b877c0d1 100644 --- a/docs/javascript/src/challenges/progress-bar/index.html +++ b/docs/javascript/src/challenges/progress-bar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/quiz-app/index.html b/docs/javascript/src/challenges/quiz-app/index.html index 46c02e1a..cf2e2e99 100644 --- a/docs/javascript/src/challenges/quiz-app/index.html +++ b/docs/javascript/src/challenges/quiz-app/index.html @@ -8,9 +8,9 @@ quiz's time - - - + + + diff --git a/docs/javascript/src/challenges/rock-paper-scissor/index.html b/docs/javascript/src/challenges/rock-paper-scissor/index.html index c8324a18..aa4bb4e1 100644 --- a/docs/javascript/src/challenges/rock-paper-scissor/index.html +++ b/docs/javascript/src/challenges/rock-paper-scissor/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/roll-dice/index.html b/docs/javascript/src/challenges/roll-dice/index.html index c567a698..2e2a9996 100644 --- a/docs/javascript/src/challenges/roll-dice/index.html +++ b/docs/javascript/src/challenges/roll-dice/index.html @@ -5,9 +5,9 @@ Roll dice - - - + + + diff --git a/docs/javascript/src/challenges/simon-game/index.html b/docs/javascript/src/challenges/simon-game/index.html index dfe1b191..f9cd933a 100644 --- a/docs/javascript/src/challenges/simon-game/index.html +++ b/docs/javascript/src/challenges/simon-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/snake-game/index.html b/docs/javascript/src/challenges/snake-game/index.html index b95a1b7d..bcedf228 100644 --- a/docs/javascript/src/challenges/snake-game/index.html +++ b/docs/javascript/src/challenges/snake-game/index.html @@ -4,9 +4,9 @@ snake game-js - - - + + + diff --git a/docs/javascript/src/challenges/sorting-visualizer/index.html b/docs/javascript/src/challenges/sorting-visualizer/index.html index 2485b032..63a16f55 100644 --- a/docs/javascript/src/challenges/sorting-visualizer/index.html +++ b/docs/javascript/src/challenges/sorting-visualizer/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/star-rating/index.html b/docs/javascript/src/challenges/star-rating/index.html index 16081833..9213e8fc 100644 --- a/docs/javascript/src/challenges/star-rating/index.html +++ b/docs/javascript/src/challenges/star-rating/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/story-generator/index.html b/docs/javascript/src/challenges/story-generator/index.html index e7586df3..9a16eb9a 100644 --- a/docs/javascript/src/challenges/story-generator/index.html +++ b/docs/javascript/src/challenges/story-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/string-transformers/index.html b/docs/javascript/src/challenges/string-transformers/index.html index 73e43fe3..b9ea5454 100644 --- a/docs/javascript/src/challenges/string-transformers/index.html +++ b/docs/javascript/src/challenges/string-transformers/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/telephone-formatter/index.html b/docs/javascript/src/challenges/telephone-formatter/index.html index a28033b4..3a055a77 100644 --- a/docs/javascript/src/challenges/telephone-formatter/index.html +++ b/docs/javascript/src/challenges/telephone-formatter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/tic-tac-toe/index.html b/docs/javascript/src/challenges/tic-tac-toe/index.html index 8a2bb4a4..58cd4568 100644 --- a/docs/javascript/src/challenges/tic-tac-toe/index.html +++ b/docs/javascript/src/challenges/tic-tac-toe/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/timer-quiz/index.html b/docs/javascript/src/challenges/timer-quiz/index.html index d6b617ad..a6f56e95 100644 --- a/docs/javascript/src/challenges/timer-quiz/index.html +++ b/docs/javascript/src/challenges/timer-quiz/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/toast-snackbar/index.html b/docs/javascript/src/challenges/toast-snackbar/index.html index 475930d4..70d4f57c 100644 --- a/docs/javascript/src/challenges/toast-snackbar/index.html +++ b/docs/javascript/src/challenges/toast-snackbar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/todo-list/index.html b/docs/javascript/src/challenges/todo-list/index.html index 29ed1009..6a17d973 100644 --- a/docs/javascript/src/challenges/todo-list/index.html +++ b/docs/javascript/src/challenges/todo-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/transfer-list/index.html b/docs/javascript/src/challenges/transfer-list/index.html index 6af0e0dd..e5ddfeee 100644 --- a/docs/javascript/src/challenges/transfer-list/index.html +++ b/docs/javascript/src/challenges/transfer-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead-online/index.html b/docs/javascript/src/challenges/type-ahead-online/index.html index a0876aee..e15c591e 100644 --- a/docs/javascript/src/challenges/type-ahead-online/index.html +++ b/docs/javascript/src/challenges/type-ahead-online/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead/index.html b/docs/javascript/src/challenges/type-ahead/index.html index 351cb481..bdf3f8de 100644 --- a/docs/javascript/src/challenges/type-ahead/index.html +++ b/docs/javascript/src/challenges/type-ahead/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/typing-speed-test/index.html b/docs/javascript/src/challenges/typing-speed-test/index.html index db1b34d7..4c03cfe1 100644 --- a/docs/javascript/src/challenges/typing-speed-test/index.html +++ b/docs/javascript/src/challenges/typing-speed-test/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/weather-app/index.html b/docs/javascript/src/challenges/weather-app/index.html index e0dc0cc2..a8d778dc 100644 --- a/docs/javascript/src/challenges/weather-app/index.html +++ b/docs/javascript/src/challenges/weather-app/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/word-counter/index.html b/docs/javascript/src/challenges/word-counter/index.html index 43347031..fd44bf4b 100644 --- a/docs/javascript/src/challenges/word-counter/index.html +++ b/docs/javascript/src/challenges/word-counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/react/assets/index-BbSpON3q.js b/docs/react/assets/index-BbSpON3q.js deleted file mode 100644 index ea225f4d..00000000 --- a/docs/react/assets/index-BbSpON3q.js +++ /dev/null @@ -1,182 +0,0 @@ -var $b=Object.defineProperty;var Rb=(e,t,n)=>t in e?$b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _h=(e,t,n)=>(Rb(e,typeof t!="symbol"?t+"":t,n),n);function r0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o0={exports:{}},Oc={},i0={exports:{}},le={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var pa=Symbol.for("react.element"),Nb=Symbol.for("react.portal"),Tb=Symbol.for("react.fragment"),Pb=Symbol.for("react.strict_mode"),Ob=Symbol.for("react.profiler"),Ab=Symbol.for("react.provider"),Mb=Symbol.for("react.context"),Db=Symbol.for("react.forward_ref"),Ib=Symbol.for("react.suspense"),Lb=Symbol.for("react.memo"),Fb=Symbol.for("react.lazy"),Sh=Symbol.iterator;function zb(e){return e===null||typeof e!="object"?null:(e=Sh&&e[Sh]||e["@@iterator"],typeof e=="function"?e:null)}var s0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a0=Object.assign,l0={};function Mi(e,t,n){this.props=e,this.context=t,this.refs=l0,this.updater=n||s0}Mi.prototype.isReactComponent={};Mi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function c0(){}c0.prototype=Mi.prototype;function Uf(e,t,n){this.props=e,this.context=t,this.refs=l0,this.updater=n||s0}var Hf=Uf.prototype=new c0;Hf.constructor=Uf;a0(Hf,Mi.prototype);Hf.isPureReactComponent=!0;var Eh=Array.isArray,u0=Object.prototype.hasOwnProperty,Wf={current:null},d0={key:!0,ref:!0,__self:!0,__source:!0};function f0(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)u0.call(t,r)&&!d0.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,pe=L[re];if(0>>1;reo(He,J))yeo(at,He)?(L[re]=at,L[ye]=J,re=ye):(L[re]=He,L[Me]=J,re=Me);else if(yeo(at,J))L[re]=at,L[ye]=J,re=ye;else break e}}return V}function o(L,V){var J=L.sortIndex-V.sortIndex;return J!==0?J:L.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=L)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function C(L){if(y=!1,b(L),!m)if(n(a)!==null)m=!0,q(E);else{var V=n(u);V!==null&&Q(C,V.startTime-L)}}function E(L,V){m=!1,y&&(y=!1,v(j),j=-1),g=!0;var J=p;try{for(b(V),f=n(a);f!==null&&(!(f.expirationTime>V)||L&&!M());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),b(V)}else r(a);f=n(a)}if(f!==null)var st=!0;else{var Me=n(u);Me!==null&&Q(C,Me.startTime-V),st=!1}return st}finally{f=null,p=J,g=!1}}var _=!1,k=null,j=-1,P=5,T=-1;function M(){return!(e.unstable_now()-TL||125re?(L.sortIndex=J,t(u,L),n(a)===null&&L===n(u)&&(y?(v(j),j=-1):y=!0,Q(C,J-re))):(L.sortIndex=pe,t(a,L),m||g||(m=!0,q(E))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var V=p;return function(){var J=p;p=V;try{return L.apply(this,arguments)}finally{p=J}}}})(v0);g0.exports=v0;var Xb=g0.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var y0=h,Ft=Xb;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pd=Object.prototype.hasOwnProperty,Jb=/^[: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]*$/,kh={},jh={};function Zb(e){return pd.call(jh,e)?!0:pd.call(kh,e)?!1:Jb.test(e)?jh[e]=!0:(kh[e]=!0,!1)}function e_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t_(e,t,n,r){if(t===null||typeof t>"u"||e_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gf=/[\-:]([a-z])/g;function Kf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gf,Kf);it[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gf,Kf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gf,Kf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function qf(e,t,n,r){var o=it.hasOwnProperty(t)?it[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{mu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xs(e):""}function n_(e){switch(e.tag){case 5:return xs(e.type);case 16:return xs("Lazy");case 13:return xs("Suspense");case 19:return xs("SuspenseList");case 0:case 2:case 15:return e=gu(e.type,!1),e;case 11:return e=gu(e.type.render,!1),e;case 1:return e=gu(e.type,!0),e;default:return""}}function vd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xo:return"Fragment";case Qo:return"Portal";case hd:return"Profiler";case Yf:return"StrictMode";case md:return"Suspense";case gd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b0:return(e.displayName||"Context")+".Consumer";case w0:return(e._context.displayName||"Context")+".Provider";case Qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xf:return t=e.displayName||null,t!==null?t:vd(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return vd(e(t))}catch{}}return null}function r_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vd(t);case 8:return t===Yf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o_(e){var t=S0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ia(e){e._valueTracker||(e._valueTracker=o_(e))}function E0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=S0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Il(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yd(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function C0(e,t){t=t.checked,t!=null&&qf(e,"checked",t,!1)}function xd(e,t){C0(e,t);var n=Ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wd(e,t.type,n):t.hasOwnProperty("defaultValue")&&wd(e,t.type,Ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wd(e,t,n){(t!=="number"||Il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ws=Array.isArray;function fi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=La.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i_=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){i_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function R0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function N0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=R0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var s_=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sd(e,t){if(t){if(s_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Ed(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Cd=null;function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kd=null,pi=null,hi=null;function Oh(e){if(e=ga(e)){if(typeof kd!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Lc(t),kd(e.stateNode,e.type,t))}}function T0(e){pi?hi?hi.push(e):hi=[e]:pi=e}function P0(){if(pi){var e=pi,t=hi;if(hi=pi=null,Oh(e),t)for(e=0;e>>=0,e===0?32:31-(v_(e)/y_|0)|0}var Fa=64,za=4194304;function bs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=bs(l):(i&=s,i!==0&&(r=bs(i)))}else s=n&~o,s!==0?r=bs(s):i!==0&&(r=bs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function __(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ks),Uh=String.fromCharCode(32),Hh=!1;function J0(e,t){switch(e){case"keyup":return Q_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jo=!1;function J_(e,t){switch(e){case"compositionend":return Z0(t);case"keypress":return t.which!==32?null:(Hh=!0,Uh);case"textInput":return e=t.data,e===Uh&&Hh?null:e;default:return null}}function Z_(e,t){if(Jo)return e==="compositionend"||!sp&&J0(e,t)?(e=Q0(),vl=rp=Cr=null,Jo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=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=Kh(n)}}function ry(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oy(){for(var e=window,t=Il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Il(e.document)}return t}function ap(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lS(e){var t=oy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ry(n.ownerDocument.documentElement,n)){if(r!==null&&ap(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qh(n,i);var s=qh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zo=null,Pd=null,$s=null,Od=!1;function Yh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Od||Zo==null||Zo!==Il(r)||(r=Zo,"selectionStart"in r&&ap(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$s&&Ks($s,r)||($s=r,r=Wl(Pd,"onSelect"),0ni||(e.current=Fd[ni],Fd[ni]=null,ni--)}function _e(e,t){ni++,Fd[ni]=e.current,e.current=t}var Lr={},ht=Gr(Lr),Rt=Gr(!1),mo=Lr;function Ci(e,t){var n=e.type.contextTypes;if(!n)return Lr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Nt(e){return e=e.childContextTypes,e!=null}function Gl(){Ee(Rt),Ee(ht)}function nm(e,t,n){if(ht.current!==Lr)throw Error(F(168));_e(ht,t),_e(Rt,n)}function py(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,r_(e)||"Unknown",o));return Ae({},n,r)}function Kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lr,mo=ht.current,_e(ht,e),_e(Rt,Rt.current),!0}function rm(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=py(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,Ee(Rt),Ee(ht),_e(ht,e)):Ee(Rt),_e(Rt,n)}var Hn=null,Fc=!1,Nu=!1;function hy(e){Hn===null?Hn=[e]:Hn.push(e)}function wS(e){Fc=!0,hy(e)}function Kr(){if(!Nu&&Hn!==null){Nu=!0;var e=0,t=he;try{var n=Hn;for(he=1;e>=s,o-=s,Gn=1<<32-dn(t)+o|n<j?(P=k,k=null):P=k.sibling;var T=p(v,k,b[j],C);if(T===null){k===null&&(k=P);break}e&&k&&T.alternate===null&&t(v,k),x=i(T,x,j),_===null?E=T:_.sibling=T,_=T,k=P}if(j===b.length)return n(v,k),je&&Jr(v,j),E;if(k===null){for(;jj?(P=k,k=null):P=k.sibling;var M=p(v,k,T.value,C);if(M===null){k===null&&(k=P);break}e&&k&&M.alternate===null&&t(v,k),x=i(M,x,j),_===null?E=M:_.sibling=M,_=M,k=P}if(T.done)return n(v,k),je&&Jr(v,j),E;if(k===null){for(;!T.done;j++,T=b.next())T=f(v,T.value,C),T!==null&&(x=i(T,x,j),_===null?E=T:_.sibling=T,_=T);return je&&Jr(v,j),E}for(k=r(v,k);!T.done;j++,T=b.next())T=g(k,v,j,T.value,C),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?j:T.key),x=i(T,x,j),_===null?E=T:_.sibling=T,_=T);return e&&k.forEach(function(I){return t(v,I)}),je&&Jr(v,j),E}function w(v,x,b,C){if(typeof b=="object"&&b!==null&&b.type===Xo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Da:e:{for(var E=b.key,_=x;_!==null;){if(_.key===E){if(E=b.type,E===Xo){if(_.tag===7){n(v,_.sibling),x=o(_,b.props.children),x.return=v,v=x;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===xr&&um(E)===_.type){n(v,_.sibling),x=o(_,b.props),x.ref=ns(v,_,b),x.return=v,v=x;break e}n(v,_);break}else t(v,_);_=_.sibling}b.type===Xo?(x=uo(b.props.children,v.mode,C,b.key),x.return=v,v=x):(C=Cl(b.type,b.key,b.props,null,v.mode,C),C.ref=ns(v,x,b),C.return=v,v=C)}return s(v);case Qo:e:{for(_=b.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(v,x.sibling),x=o(x,b.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=Lu(b,v.mode,C),x.return=v,v=x}return s(v);case xr:return _=b._init,w(v,x,_(b._payload),C)}if(ws(b))return m(v,x,b,C);if(Xi(b))return y(v,x,b,C);Ka(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(v,x.sibling),x=o(x,b),x.return=v,v=x):(n(v,x),x=Iu(b,v.mode,C),x.return=v,v=x),s(v)):n(v,x)}return w}var ji=_y(!0),Sy=_y(!1),va={},Tn=Gr(va),Xs=Gr(va),Js=Gr(va);function so(e){if(e===va)throw Error(F(174));return e}function gp(e,t){switch(_e(Js,t),_e(Xs,e),_e(Tn,va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_d(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_d(t,e)}Ee(Tn),_e(Tn,t)}function $i(){Ee(Tn),Ee(Xs),Ee(Js)}function Ey(e){so(Js.current);var t=so(Tn.current),n=_d(t,e.type);t!==n&&(_e(Xs,e),_e(Tn,n))}function vp(e){Xs.current===e&&(Ee(Tn),Ee(Xs))}var Te=Gr(0);function Zl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tu=[];function yp(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{he=n,Pu.transition=r}}function zy(){return en().memoizedState}function ES(e,t,n){var r=Or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},By(e))Uy(t,n);else if(n=yy(e,t,n,r),n!==null){var o=_t();fn(n,e,r,o),Hy(n,t,r)}}function CS(e,t,n){var r=Or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(By(e))Uy(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,hn(l,s)){var a=t.interleaved;a===null?(o.next=o,hp(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=yy(e,t,o,r),n!==null&&(o=_t(),fn(n,e,r,o),Hy(n,t,r))}}function By(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Uy(e,t){Rs=ec=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ep(e,n)}}var tc={readContext:Zt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},kS={readContext:Zt,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:fm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bl(4194308,4,My.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return bl(4,2,e,t)},useMemo:function(e,t){var n=En();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=En();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ES.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:dm,useDebugValue:Sp,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=dm(!1),t=e[0];return e=SS.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=En();if(je){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));vo&30||jy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,fm(Ry.bind(null,r,i,e),[e]),r.flags|=2048,ta(9,$y.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=En(),t=Ze.identifierPrefix;if(je){var n=Kn,r=Gn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[Qs]=r,Jy(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ed(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o<_s.length;o++)Se(_s[o],e);o=r;break;case"source":Se("error",e),o=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),o=r;break;case"details":Se("toggle",e),o=r;break;case"input":Rh(e,r),o=yd(e,r),Se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ae({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Th(e,r),o=bd(e,r),Se("invalid",e);break;default:o=r}Sd(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?N0(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&$0(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Bs(e,a):typeof a=="number"&&Bs(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zs.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Se("scroll",e):a!=null&&qf(e,i,a,s))}switch(n){case"input":Ia(e),Nh(e,r,!1);break;case"textarea":Ia(e),Ph(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ir(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?fi(e,!!r.multiple,i,!1):r.defaultValue!=null&&fi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Vl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)e1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=so(Js.current),so(Tn.current),Ga(t)){if(r=t.stateNode,n=t.memoizedProps,r[$n]=t,(i=r.nodeValue!==n)&&(e=It,e!==null))switch(e.tag){case 3:Va(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Va(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$n]=t,t.stateNode=r}return ut(t),null;case 13:if(Ee(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&Dt!==null&&t.mode&1&&!(t.flags&128))vy(),ki(),t.flags|=98560,i=!1;else if(i=Ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(F(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(F(317));i[$n]=t}else ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ut(t),i=!1}else un!==null&&(of(un),un=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Te.current&1?Ve===0&&(Ve=3):Np())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return $i(),Qd(e,t),e===null&&qs(t.stateNode.containerInfo),ut(t),null;case 10:return pp(t.type._context),ut(t),null;case 17:return Nt(t.type)&&Gl(),ut(t),null;case 19:if(Ee(Te),i=t.memoizedState,i===null)return ut(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)rs(i,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Zl(e),s!==null){for(t.flags|=128,rs(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Te,Te.current&1|2),t.child}e=e.sibling}i.tail!==null&&Be()>Ni&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!je)return ut(t),null}else 2*Be()-i.renderingStartTime>Ni&&n!==1073741824&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Be(),t.sibling=null,n=Te.current,_e(Te,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return Rp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function AS(e,t){switch(cp(t),t.tag){case 1:return Nt(t.type)&&Gl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(),Ee(Rt),Ee(ht),yp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vp(t),null;case 13:if(Ee(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Te),null;case 4:return $i(),null;case 10:return pp(t.type._context),null;case 22:case 23:return Rp(),null;case 24:return null;default:return null}}var Ya=!1,dt=!1,MS=typeof WeakSet=="function"?WeakSet:Set,G=null;function si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Xd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var bm=!1;function DS(e,t){if(Ad=Ul,e=oy(),ap(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++d===r&&(a=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Md={focusedElem:e,selectionRange:n},Ul=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:an(t.type,y),w);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=bm,bm=!1,m}function Ns(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xd(t,n,i)}o=o.next}while(o!==r)}}function Uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Jd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function t1(e){var t=e.alternate;t!==null&&(e.alternate=null,t1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[Qs],delete t[Ld],delete t[yS],delete t[xS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function n1(e){return e.tag===5||e.tag===3||e.tag===4}function _m(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vl));else if(r!==4&&(e=e.child,e!==null))for(Zd(e,t,n),e=e.sibling;e!==null;)Zd(e,t,n),e=e.sibling}function ef(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ef(e,t,n),e=e.sibling;e!==null;)ef(e,t,n),e=e.sibling}var nt=null,ln=!1;function dr(e,t,n){for(n=n.child;n!==null;)r1(e,t,n),n=n.sibling}function r1(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Ac,n)}catch{}switch(n.tag){case 5:dt||si(n,t);case 6:var r=nt,o=ln;nt=null,dr(e,t,n),nt=r,ln=o,nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?Ru(e.parentNode,n):e.nodeType===1&&Ru(e,n),Vs(e)):Ru(nt,n.stateNode));break;case 4:r=nt,o=ln,nt=n.stateNode.containerInfo,ln=!0,dr(e,t,n),nt=r,ln=o;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Xd(n,t,s),o=o.next}while(o!==r)}dr(e,t,n);break;case 1:if(!dt&&(si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}dr(e,t,n);break;case 21:dr(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,dr(e,t,n),dt=r):dr(e,t,n);break;default:dr(e,t,n)}}function Sm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new MS),t.forEach(function(r){var o=VS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LS(r/1960))-r,10e?16:e,kr===null)var r=!1;else{if(e=kr,kr=null,oc=0,fe&6)throw Error(F(331));var o=fe;for(fe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aBe()-jp?co(e,0):kp|=n),Tt(e,t)}function d1(e,t){t===0&&(e.mode&1?(t=za,za<<=1,!(za&130023424)&&(za=4194304)):t=1);var n=_t();e=er(e,t),e!==null&&(ha(e,t,n),Tt(e,n))}function WS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d1(e,n)}function VS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),d1(e,n)}var f1;f1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,PS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,je&&t.flags&1048576&&my(t,Yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_l(e,t),e=t.pendingProps;var o=Ci(t,ht.current);gi(t,n),o=wp(null,t,r,e,o,n);var i=bp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nt(r)?(i=!0,Kl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mp(t),o.updater=zc,t.stateNode=o,o._reactInternals=t,Wd(t,r,e,n),t=Kd(null,t,r,!0,i,n)):(t.tag=0,je&&i&&lp(t),yt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_l(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=KS(r),e=an(r,e),o){case 0:t=Gd(null,t,r,e,n);break e;case 1:t=ym(null,t,r,e,n);break e;case 11:t=gm(null,t,r,e,n);break e;case 14:t=vm(null,t,r,an(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),Gd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),ym(e,t,r,o,n);case 3:e:{if(Yy(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,xy(e,t),Jl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ri(Error(F(423)),t),t=xm(e,t,r,n,o);break e}else if(r!==o){o=Ri(Error(F(424)),t),t=xm(e,t,r,n,o);break e}else for(Dt=Nr(t.stateNode.containerInfo.firstChild),It=t,je=!0,un=null,n=Sy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ki(),r===o){t=tr(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return Ey(t),e===null&&Bd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Dd(r,o)?s=null:i!==null&&Dd(r,i)&&(t.flags|=32),qy(e,t),yt(e,t,s,n),t.child;case 6:return e===null&&Bd(t),null;case 13:return Qy(e,t,n);case 4:return gp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),gm(e,t,r,o,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_e(Ql,r._currentValue),r._currentValue=s,i!==null)if(hn(i.value,s)){if(i.children===o.children&&!Rt.current){t=tr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Yn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ud(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ud(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}yt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gi(t,n),o=Zt(o),r=r(o),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,o=an(r,t.pendingProps),o=an(r.type,o),vm(e,t,r,o,n);case 15:return Gy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),_l(e,t),t.tag=1,Nt(r)?(e=!0,Kl(t)):e=!1,gi(t,n),by(t,r,o),Wd(t,r,o,n),Kd(null,t,r,!0,e,n);case 19:return Xy(e,t,n);case 22:return Ky(e,t,n)}throw Error(F(156,t.tag))};function p1(e,t){return F0(e,t)}function GS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,n,r){return new GS(e,t,n,r)}function Tp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KS(e){if(typeof e=="function")return Tp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qf)return 11;if(e===Xf)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=Yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Tp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xo:return uo(n.children,o,i,t);case Yf:s=8,o|=8;break;case hd:return e=Yt(12,n,t,o|2),e.elementType=hd,e.lanes=i,e;case md:return e=Yt(13,n,t,o),e.elementType=md,e.lanes=i,e;case gd:return e=Yt(19,n,t,o),e.elementType=gd,e.lanes=i,e;case _0:return Wc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w0:s=10;break e;case b0:s=9;break e;case Qf:s=11;break e;case Xf:s=14;break e;case xr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function uo(e,t,n,r){return e=Yt(7,e,r,t),e.lanes=n,e}function Wc(e,t,n,r){return e=Yt(22,e,r,t),e.elementType=_0,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}function Lu(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yu(0),this.expirationTimes=yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Pp(e,t,n,r,o,i,s,l,a){return e=new qS(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mp(i),e}function YS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v1)}catch(e){console.error(e)}}v1(),m0.exports=zt;var Co=m0.exports;const Dp=Pc(Co),eE=r0({__proto__:null,default:Dp},[Co]);var Tm=Co;fd.createRoot=Tm.createRoot,fd.hydrateRoot=Tm.hydrateRoot;/** - * @remix-run/router v1.14.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nE(){return Math.random().toString(36).substr(2,8)}function Om(e,t){return{usr:e.state,key:e.key,idx:t}}function ra(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||nE()})}function ya(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function An(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=ze.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:v})}function p(w,v){l=ze.Push;let x=ra(y.location,w,v);n&&n(x,w),u=d()+1;let b=Om(x,u),C=y.createHref(x);try{s.pushState(b,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:l,location:y.location,delta:1})}function g(w,v){l=ze.Replace;let x=ra(y.location,w,v);n&&n(x,w),u=d();let b=Om(x,u),C=y.createHref(x);s.replaceState(b,"",C),i&&a&&a({action:l,location:y.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:ya(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Pm,f),a=w,()=>{o.removeEventListener(Pm,f),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(w){return s.go(w)}};return y}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const oE=new Set(["lazy","caseSensitive","path","id","index","children"]);function iE(e){return e.index===!0}function sf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],l=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),iE(o)){let a=Le({},o,t(o),{id:l});return r[l]=a,a}else{let a=Le({},o,t(o),{id:l,children:void 0});return r[l]=a,o.children&&(a.children=sf(o.children,t,s,r)),a}})}function li(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?An(t):t,o=xa(r.pathname||"/",n);if(o==null)return null;let i=y1(e);aE(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=fo([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),y1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:hE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of x1(i.path))o(i,s,a)}),t}function x1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=x1(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function aE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lE=/^:\w+$/,cE=3,uE=2,dE=1,fE=10,pE=-2,Am=e=>e==="*";function hE(e,t){let n=e.split("/"),r=n.length;return n.some(Am)&&(r+=pE),t&&(r+=uE),n.filter(o=>!Am(o)).reduce((o,i)=>o+(lE.test(i)?cE:i===""?dE:fE),r)}function mE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function gE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[p]=void 0:u[p]=wE(m||"",p),u},{}),pathname:i,pathnameBase:s,pattern:e}}function yE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function xE(e){try{return decodeURI(e)}catch(t){return Fr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function wE(e,t){try{return decodeURIComponent(e)}catch(n){return Fr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function xa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function bE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?An(e):e;return{pathname:n?n.startsWith("/")?n:_E(n,t):t,search:kE(r),hash:jE(o)}}function _E(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Fu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function w1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SE(e,t){let n=w1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=An(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Fu("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Fu("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Fu("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f.pop();o.pathname=p.join("/")}l="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?t[f]:"/"}let a=bE(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const fo=e=>e.join("/").replace(/\/\/+/g,"/"),CE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ip{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function b1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _1=["post","put","patch","delete"],$E=new Set(_1),RE=["get",..._1],NE=new Set(RE),TE=new Set([301,302,303,307,308]),PE=new Set([307,308]),zu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},OE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},is={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},S1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),E1="remix-router-transitions";function ME(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=N=>({hasErrorBoundary:$(N)})}else o=AE;let i={},s=sf(e.routes,o,void 0,i),l,a=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,p=null,g=null,m=null,y=e.hydrationData!=null,w=li(s,e.history.location,a),v=null;if(w==null){let $=Wt(404,{pathname:e.history.location.pathname}),{matches:N,route:O}=Um(s);w=N,v={[O.id]:$}}let x,b=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(b)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null;x=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||N&&N[O.route.id]!==void 0))}else x=e.hydrationData!=null;let E,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:zu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},k=ze.Pop,j=!1,P,T=!1,M=new Map,I=null,H=!1,B=!1,Y=[],q=[],Q=new Map,L=0,V=-1,J=new Map,re=new Set,pe=new Map,st=new Map,Me=new Set,He=new Map,ye=new Map,at=!1;function yn(){if(d=e.history.listen($=>{let{action:N,location:O,delta:U}=$;if(at){at=!1;return}Fr(ye.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Ao({currentLocation:_.location,nextLocation:O,historyAction:N});if(X&&U!=null){at=!0,e.history.go(U*-1),cr(X,{state:"blocked",location:O,proceed(){cr(X,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(U)},reset(){let se=new Map(_.blockers);se.set(X,is),Ke({blockers:se})}});return}return qe(N,O)}),n){KE(t,M);let $=()=>qE(t,M);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return _.initialized||qe(ze.Pop,_.location,{initialHydration:!0}),E}function Dn(){d&&d(),I&&I(),f.clear(),P&&P.abort(),_.fetchers.forEach(($,N)=>lt(N)),_.blockers.forEach(($,N)=>Oo(N))}function jo($){return f.add($),()=>f.delete($)}function Ke($,N){N===void 0&&(N={}),_=Le({},_,$);let O=[],U=[];u.v7_fetcherPersist&&_.fetchers.forEach((X,se)=>{X.state==="idle"&&(Me.has(se)?U.push(se):O.push(se))}),[...f].forEach(X=>X(_,{deletedFetchers:U,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(X=>_.fetchers.delete(X)),U.forEach(X=>lt(X)))}function xn($,N,O){var U,X;let{flushSync:se}=O===void 0?{}:O,ie=_.actionData!=null&&_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&_.navigation.state==="loading"&&((U=$.state)==null?void 0:U._isRedirect)!==!0,oe;N.actionData?Object.keys(N.actionData).length>0?oe=N.actionData:oe=null:ie?oe=_.actionData:oe=null;let Z=N.loaderData?Bm(_.loaderData,N.loaderData,N.matches||[],N.errors):_.loaderData,ce=_.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,is)));let Ye=j===!0||_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;l&&(s=l,l=void 0),H||k===ze.Pop||(k===ze.Push?e.history.push($,$.state):k===ze.Replace&&e.history.replace($,$.state));let ae;if(k===ze.Pop){let we=M.get(_.location.pathname);we&&we.has($.pathname)?ae={currentLocation:_.location,nextLocation:$}:M.has($.pathname)&&(ae={currentLocation:$,nextLocation:_.location})}else if(T){let we=M.get(_.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),M.set(_.location.pathname,we)),ae={currentLocation:_.location,nextLocation:$}}Ke(Le({},N,{actionData:oe,loaderData:Z,historyAction:k,location:$,initialized:!0,navigation:zu,revalidation:"idle",restoreScrollPosition:bh($,N.matches||_.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),k=ze.Pop,j=!1,T=!1,H=!1,B=!1,Y=[],q=[]}async function rn($,N){if(typeof $=="number"){e.history.go($);return}let O=af(_.location,_.matches,a,u.v7_prependBasename,$,u.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:U,submission:X,error:se}=Mm(u.v7_normalizeFormMethod,!1,O,N),ie=_.location,oe=ra(_.location,U,N&&N.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=N&&N.replace!=null?N.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||X!=null&&cn(X.formMethod)&&X.formAction===_.location.pathname+_.location.search&&(ce=ze.Replace);let Ye=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,ae=(N&&N.unstable_flushSync)===!0,we=Ao({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){cr(we,{state:"blocked",location:oe,proceed(){cr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),rn($,N)},reset(){let tt=new Map(_.blockers);tt.set(we,is),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:X,pendingError:se,preventScrollReset:Ye,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:ae})}function qr(){if(W(),Ke({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){qe(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}qe(k||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function qe($,N,O){P&&P.abort(),P=null,k=$,H=(O&&O.startUninterruptedRevalidation)===!0,Cb(_.location,_.matches),j=(O&&O.preventScrollReset)===!0,T=(O&&O.enableViewTransition)===!0;let U=l||s,X=O&&O.overrideNavigation,se=li(U,N,a),ie=(O&&O.flushSync)===!0;if(!se){let tt=Wt(404,{pathname:N.pathname}),{matches:Ut,route:Qe}=Um(U);Qr(),xn(N,{matches:Ut,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(_.initialized&&!B&&BE(_.location,N)&&!(O&&O.submission&&cn(O.submission.formMethod))){xn(N,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=as(e.history,N,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Os(se).route.id]:O.pendingError};else if(O&&O.submission&&cn(O.submission.formMethod)){let tt=await In(oe,N,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,X=Bu(N,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await qi(oe,N,se,X,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,xn(N,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function In($,N,O,U,X){X===void 0&&(X={}),W();let se=VE(N,O);Ke({navigation:se},{flushSync:X.flushSync===!0});let ie,oe=cf(U,N);if(!oe.route.action&&!oe.route.lazy)ie={type:De.error,error:Wt(405,{method:$.method,pathname:N.pathname,routeId:oe.route.id})};else if(ie=await ss("action",$,oe,U,i,o,a,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(yi(ie)){let Z;return X&&X.replace!=null?Z=X.replace:Z=ie.location===_.location.pathname+_.location.search,await Pt(_,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(As(ie)){let Z=Os(U,oe.route.id);return(X&&X.replace)!==!0&&(k=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(ao(ie))throw Wt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function qi($,N,O,U,X,se,ie,oe,Z,ce,Ye){let ae=U||Bu(N,X),we=X||se||Vm(ae),tt=l||s,[Ut,Qe]=Dm(e.history,_,O,we,N,u.v7_partialHydration&&oe===!0,B,Y,q,Me,pe,re,tt,a,ce,Ye);if(Qr(xe=>!(O&&O.some(ke=>ke.route.id===xe))||Ut&&Ut.some(ke=>ke.route.id===xe)),V=++L,Ut.length===0&&Qe.length===0){let xe=No();return xn(N,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!H&&(!u.v7_partialHydration||!oe)){Qe.forEach(ke=>{let wn=_.fetchers.get(ke.key),Aa=ls(void 0,wn?wn.data:void 0);_.fetchers.set(ke.key,Aa)});let xe=ce||_.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Q.has(xe.key)&>(xe.key),xe.controller&&Q.set(xe.key,xe.controller)});let Mo=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Mo);let{results:cu,loaderResults:Do,fetcherResults:ur}=await Pa(_.matches,O,Ut,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Mo),Qe.forEach(xe=>Q.delete(xe.key));let Xr=Hm(cu);if(Xr){if(Xr.idx>=Ut.length){let xe=Qe[Xr.idx-Ut.length].key;re.add(xe)}return await Pt(_,Xr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:uu,errors:du}=zm(_,O,Ut,Do,Ye,Qe,ur,He);He.forEach((xe,ke)=>{xe.subscribe(wn=>{(wn||xe.done)&&He.delete(ke)})});let fu=No(),Io=To(V),Oa=fu||Io||Qe.length>0;return Le({loaderData:uu,errors:du},Oa?{fetchers:new Map(_.fetchers)}:{})}function Yi($,N,O,U){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has($)&>($);let X=(U&&U.unstable_flushSync)===!0,se=l||s,ie=af(_.location,_.matches,a,u.v7_prependBasename,O,u.v7_relativeSplatPath,N,U==null?void 0:U.relative),oe=li(se,ie,a);if(!oe){$e($,N,Wt(404,{pathname:ie}),{flushSync:X});return}let{path:Z,submission:ce,error:Ye}=Mm(u.v7_normalizeFormMethod,!0,ie,U);if(Ye){$e($,N,Ye,{flushSync:X});return}let ae=cf(oe,Z);if(j=(U&&U.preventScrollReset)===!0,ce&&cn(ce.formMethod)){Qi($,N,Z,ae,oe,X,ce);return}pe.set($,{routeId:N,path:Z}),$o($,N,Z,ae,oe,X,ce)}async function Qi($,N,O,U,X,se,ie){if(W(),pe.delete($),!U.route.action&&!U.route.lazy){let ke=Wt(405,{method:ie.formMethod,pathname:O,routeId:N});$e($,N,ke,{flushSync:se});return}let oe=_.fetchers.get($);te($,GE(ie,oe),{flushSync:se});let Z=new AbortController,ce=as(e.history,O,Z.signal,ie);Q.set($,Z);let Ye=L,ae=await ss("action",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(ce.signal.aborted){Q.get($)===Z&&Q.delete($);return}if(Me.has($)){te($,vr(void 0));return}if(yi(ae))if(Q.delete($),V>Ye){te($,vr(void 0));return}else return re.add($),te($,ls(ie)),Pt(_,ae,{fetcherSubmission:ie});if(As(ae)){$e($,N,ae.error);return}if(ao(ae))throw Wt(400,{type:"defer-action"});let we=_.navigation.location||_.location,tt=as(e.history,we,Z.signal),Ut=l||s,Qe=_.navigation.state!=="idle"?li(Ut,_.navigation.location,a):_.matches;ue(Qe,"Didn't find any matches after fetcher action");let Mo=++L;J.set($,Mo);let cu=ls(ie,ae.data);_.fetchers.set($,cu);let[Do,ur]=Dm(e.history,_,Qe,ie,we,!1,B,Y,q,Me,pe,re,Ut,a,{[U.route.id]:ae.data},void 0);ur.filter(ke=>ke.key!==$).forEach(ke=>{let wn=ke.key,Aa=_.fetchers.get(wn),jb=ls(void 0,Aa?Aa.data:void 0);_.fetchers.set(wn,jb),Q.has(wn)&>(wn),ke.controller&&Q.set(wn,ke.controller)}),Ke({fetchers:new Map(_.fetchers)});let Xr=()=>ur.forEach(ke=>gt(ke.key));Z.signal.addEventListener("abort",Xr);let{results:uu,loaderResults:du,fetcherResults:fu}=await Pa(_.matches,Qe,Do,ur,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Xr),J.delete($),Q.delete($),ur.forEach(ke=>Q.delete(ke.key));let Io=Hm(uu);if(Io){if(Io.idx>=Do.length){let ke=ur[Io.idx-Do.length].key;re.add(ke)}return Pt(_,Io.result)}let{loaderData:Oa,errors:xe}=zm(_,_.matches,Do,du,void 0,ur,fu,He);if(_.fetchers.has($)){let ke=vr(ae.data);_.fetchers.set($,ke)}To(Mo),_.navigation.state==="loading"&&Mo>V?(ue(k,"Expected pending action"),P&&P.abort(),xn(_.navigation.location,{matches:Qe,loaderData:Oa,errors:xe,fetchers:new Map(_.fetchers)})):(Ke({errors:xe,loaderData:Bm(_.loaderData,Oa,Qe,xe),fetchers:new Map(_.fetchers)}),B=!1)}async function $o($,N,O,U,X,se,ie){let oe=_.fetchers.get($);te($,ls(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=as(e.history,O,Z.signal);Q.set($,Z);let Ye=L,ae=await ss("loader",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(ao(ae)&&(ae=await j1(ae,ce.signal,!0)||ae),Q.get($)===Z&&Q.delete($),!ce.signal.aborted){if(Me.has($)){te($,vr(void 0));return}if(yi(ae))if(V>Ye){te($,vr(void 0));return}else{re.add($),await Pt(_,ae);return}if(As(ae)){$e($,N,ae.error);return}ue(!ao(ae),"Unhandled fetcher deferred data"),te($,vr(ae.data))}}async function Pt($,N,O){let{submission:U,fetcherSubmission:X,replace:se}=O===void 0?{}:O;N.revalidate&&(B=!0);let ie=ra($.location,N.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(N.reloadDocument)we=!0;else if(S1.test(N.location)){const tt=e.history.createURL(N.location);we=tt.origin!==t.location.origin||xa(tt.pathname,a)==null}if(we){se?t.location.replace(N.location):t.location.assign(N.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!U&&!X&&Z&&ce&&Ye&&(U=Vm($.navigation));let ae=U||X;if(PE.has(N.status)&&ae&&cn(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:N.location}),preventScrollReset:j});else{let we=Bu(ie,U);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:X,preventScrollReset:j})}}async function Pa($,N,O,U,X){let se=await Promise.all([...O.map(Z=>ss("loader",X,Z,N,i,o,a,u.v7_relativeSplatPath)),...U.map(Z=>Z.matches&&Z.match&&Z.controller?ss("loader",as(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,a,u.v7_relativeSplatPath):{type:De.error,error:Wt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([Wm($,O,ie,ie.map(()=>X.signal),!1,_.loaderData),Wm($,U.map(Z=>Z.match),oe,U.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function W(){B=!0,Y.push(...Qr()),pe.forEach(($,N)=>{Q.has(N)&&(q.push(N),gt(N))})}function te($,N,O){O===void 0&&(O={}),_.fetchers.set($,N),Ke({fetchers:new Map(_.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,N,O,U){U===void 0&&(U={});let X=Os(_.matches,N);lt($),Ke({errors:{[X.route.id]:O},fetchers:new Map(_.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(st.set($,(st.get($)||0)+1),Me.has($)&&Me.delete($)),_.fetchers.get($)||OE}function lt($){let N=_.fetchers.get($);Q.has($)&&!(N&&N.state==="loading"&&J.has($))&>($),pe.delete($),J.delete($),re.delete($),Me.delete($),_.fetchers.delete($)}function Yr($){if(u.v7_fetcherPersist){let N=(st.get($)||0)-1;N<=0?(st.delete($),Me.add($)):st.set($,N)}else lt($);Ke({fetchers:new Map(_.fetchers)})}function gt($){let N=Q.get($);ue(N,"Expected fetch controller: "+$),N.abort(),Q.delete($)}function Ro($){for(let N of $){let O=et(N),U=vr(O.data);_.fetchers.set(N,U)}}function No(){let $=[],N=!1;for(let O of re){let U=_.fetchers.get(O);ue(U,"Expected fetcher: "+O),U.state==="loading"&&(re.delete(O),$.push(O),N=!0)}return Ro($),N}function To($){let N=[];for(let[O,U]of J)if(U<$){let X=_.fetchers.get(O);ue(X,"Expected fetcher: "+O),X.state==="loading"&&(gt(O),J.delete(O),N.push(O))}return Ro(N),N.length>0}function Po($,N){let O=_.blockers.get($)||is;return ye.get($)!==N&&ye.set($,N),O}function Oo($){_.blockers.delete($),ye.delete($)}function cr($,N){let O=_.blockers.get($)||is;ue(O.state==="unblocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="proceeding"||O.state==="blocked"&&N.state==="unblocked"||O.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+N.state);let U=new Map(_.blockers);U.set($,N),Ke({blockers:U})}function Ao($){let{currentLocation:N,nextLocation:O,historyAction:U}=$;if(ye.size===0)return;ye.size>1&&Fr(!1,"A router only supports one blocker at a time");let X=Array.from(ye.entries()),[se,ie]=X[X.length-1],oe=_.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:N,nextLocation:O,historyAction:U}))return se}function Qr($){let N=[];return He.forEach((O,U)=>{(!$||$(U))&&(O.cancel(),N.push(U),He.delete(U))}),N}function lu($,N,O){if(p=$,m=N,g=O||null,!y&&_.navigation===zu){y=!0;let U=bh(_.location,_.matches);U!=null&&Ke({restoreScrollPosition:U})}return()=>{p=null,m=null,g=null}}function wh($,N){return g&&g($,N.map(U=>sE(U,_.loaderData)))||$.key}function Cb($,N){if(p&&m){let O=wh($,N);p[O]=m()}}function bh($,N){if(p){let O=wh($,N),U=p[O];if(typeof U=="number")return U}return null}function kb($){i={},l=sf($,o,void 0,i)}return E={get basename(){return a},get future(){return u},get state(){return _},get routes(){return s},get window(){return t},initialize:yn,subscribe:jo,enableScrollRestoration:lu,navigate:rn,fetch:Yi,revalidate:qr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:Yr,dispose:Dn,getBlocker:Po,deleteBlocker:Oo,_internalFetchControllers:Q,_internalActiveDeferreds:He,_internalSetRoutes:kb},E}function DE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function af(e,t,n,r,o,i,s,l){let a,u;if(s){a=[];for(let f of t)if(a.push(f),f.route.id===s){u=f;break}}else a=t,u=t[t.length-1];let d=EE(o||".",SE(a,i),xa(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Lp(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:fo([n,d.pathname])),ya(d)}function Mm(e,t,n,r){if(!r||!DE(r))return{path:n};if(r.formMethod&&!WE(r.formMethod))return{path:n,error:Wt(405,{method:r.formMethod})};let o=()=>({path:n,error:Wt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),l=k1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cn(s))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,w]=m;return""+g+y+"="+w+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!cn(s))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ue(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=lf(r.formData),u=r.formData;else if(r.body instanceof FormData)a=lf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Fm(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Fm(a)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cn(d.formMethod))return{path:n,submission:d};let f=An(n);return t&&f.search&&Lp(f.search)&&a.append("index",""),f.search="?"+a,{path:ya(f),submission:d}}function IE(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Dm(e,t,n,r,o,i,s,l,a,u,d,f,p,g,m,y){let w=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),x=e.createURL(o),b=y?Object.keys(y)[0]:void 0,E=IE(n,b).filter((k,j)=>{if(i)return LE(t,k.route);if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(FE(t.loaderData,t.matches[j],k)||l.some(M=>M===k.route.id))return!0;let P=t.matches[j],T=k;return Im(k,Le({currentUrl:v,currentParams:P.params,nextUrl:x,nextParams:T.params},r,{actionResult:w,defaultShouldRevalidate:s||v.pathname+v.search===x.pathname+x.search||v.search!==x.search||C1(P,T)}))}),_=[];return d.forEach((k,j)=>{if(i||!n.some(H=>H.route.id===k.routeId)||u.has(j))return;let P=li(p,k.path,g);if(!P){_.push({key:j,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(j),M=cf(P,k.path),I=!1;f.has(j)?I=!1:a.includes(j)?I=!0:T&&T.state!=="idle"&&T.data===void 0?I=s:I=Im(M,Le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),I&&_.push({key:j,routeId:k.routeId,path:k.path,matches:P,match:M,controller:new AbortController})}),[E,_]}function LE(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function FE(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function C1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Im(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ue(o,"No route found in manifest");let i={};for(let s in r){let a=o[s]!==void 0&&s!=="hasErrorBoundary";Fr(!a,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!oE.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Le({},t(o),{lazy:void 0}))}async function ss(e,t,n,r,o,i,s,l,a){a===void 0&&(a={});let u,d,f,p=y=>{let w,v=new Promise((x,b)=>w=b);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:a.requestContext}),v])};try{let y=n.route[e];if(n.route.lazy)if(y){let w,v=await Promise.all([p(y).catch(x=>{w=x}),Lm(n.route,i,o)]);if(w)throw w;d=v[0]}else if(await Lm(n.route,i,o),y=n.route[e],y)d=await p(y);else if(e==="action"){let w=new URL(t.url),v=w.pathname+w.search;throw Wt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:De.data,data:void 0};else if(y)d=await p(y);else{let w=new URL(t.url),v=w.pathname+w.search;throw Wt(404,{pathname:v})}ue(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=De.error,d=y}finally{f&&t.signal.removeEventListener("abort",f)}if(HE(d)){let y=d.status;if(TE.has(y)){let v=d.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!S1.test(v))v=af(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!a.isStaticRequest){let x=new URL(t.url),b=v.startsWith("//")?new URL(x.protocol+v):new URL(v),C=xa(b.pathname,s)!=null;b.origin===x.origin&&C&&(v=b.pathname+b.search+b.hash)}if(a.isStaticRequest)throw d.headers.set("Location",v),d;return{type:De.redirect,status:y,location:v,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===De.error?De.error:De.data,response:d};let w;try{let v=d.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?w=await d.json():w=await d.text()}catch(v){return{type:De.error,error:v}}return u===De.error?{type:u,error:new Ip(y,d.statusText,w),headers:d.headers}:{type:De.data,data:w,statusCode:d.status,headers:d.headers}}if(u===De.error)return{type:u,error:d};if(UE(d)){var g,m;return{type:De.deferred,deferredData:d,statusCode:(g=d.init)==null?void 0:g.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:De.data,data:d}}function as(e,t,n,r){let o=e.createURL(k1(t)).toString(),i={signal:n};if(r&&cn(r.formMethod)){let{formMethod:s,formEncType:l}=r;i.method=s.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=lf(r.formData):i.body=r.formData}return new Request(o,i)}function lf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Fm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zE(e,t,n,r,o){let i={},s=null,l,a=!1,u={};return n.forEach((d,f)=>{let p=t[f].route.id;if(ue(!yi(d),"Cannot handle redirect results in processLoaderData"),As(d)){let g=Os(e,p),m=d.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=m),i[p]=void 0,a||(a=!0,l=b1(d.error)?d.error.status:500),d.headers&&(u[p]=d.headers)}else ao(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!a&&(l=d.statusCode),d.headers&&(u[p]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:l||200,loaderHeaders:u}}function zm(e,t,n,r,o,i,s,l){let{loaderData:a,errors:u}=zE(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Um(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Ip(e||500,s,new Error(l),!0)}function Hm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(yi(n))return{result:n,idx:t}}}function k1(e){let t=typeof e=="string"?An(e):e;return ya(Le({},t,{hash:""}))}function BE(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ao(e){return e.type===De.deferred}function As(e){return e.type===De.error}function yi(e){return(e&&e.type)===De.redirect}function UE(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function HE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WE(e){return NE.has(e.toLowerCase())}function cn(e){return $E.has(e.toLowerCase())}async function Wm(e,t,n,r,o,i){for(let s=0;sf.route.id===a.route.id),d=u!=null&&!C1(u,a)&&(i&&i[a.route.id])!==void 0;if(ao(l)&&(o||d)){let f=r[s];ue(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await j1(l,f,o).then(p=>{p&&(n[s]=p||n[s])})}}}async function j1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(o){return{type:De.error,error:o}}return{type:De.data,data:e.deferredData.data}}}function Lp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cf(e,t){let n=typeof t=="string"?An(t).search:t.search;if(e[e.length-1].route.index&&Lp(n||""))return e[e.length-1];let r=w1(e);return r[r.length-1]}function Vm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Bu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function VE(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ls(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function GE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function KE(e,t){try{let n=e.sessionStorage.getItem(E1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function qE(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(E1,JSON.stringify(n))}catch(r){Fr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:fo([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:fo([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?h.createElement(Yc.Provider,{value:{location:ac({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ze.Pop}},y):y}function JE(){let e=sC(),t=b1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const ZE=h.createElement(JE,null);class eC extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(wa.Provider,{value:this.props.routeContext},h.createElement(T1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tC(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext($1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(wa.Provider,{value:t},r)}function nC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}return s.reduceRight((d,f,p)=>{let g,m=!1,y=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||ZE,a&&(u<0&&p===0?(aC("route-fallback",!1),m=!0,w=null):u===p&&(m=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,p+1)),x=()=>{let b;return g?b=y:m?b=w:f.route.Component?b=h.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,h.createElement(tC,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?h.createElement(eC,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var uf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(uf||{});function rC(e){let t=h.useContext(R1);return t||ue(!1),t}function oC(e){let t=h.useContext(wa);return t||ue(!1),t}function iC(e){let t=oC(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function sC(){var e;let t=h.useContext(T1),n=rC(uf.UseRouteError),r=iC(uf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Gm={};function aC(e,t,n){!t&&!Gm[e]&&(Gm[e]=!0)}function lC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ze.Pop,navigator:i,static:s=!1,future:l}=e;Fp()&&ue(!1);let a=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:a,navigator:i,static:s,future:ac({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=An(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:m="default"}=r,y=h.useMemo(()=>{let w=xa(d,a);return w==null?null:{location:{pathname:w,search:f,hash:p,state:g,key:m},navigationType:o}},[a,d,f,p,g,m,o]);return y==null?null:h.createElement(N1.Provider,{value:u},h.createElement(Yc.Provider,{children:n,value:y}))}new Promise(()=>{});function cC(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function xC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,y]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},x=h.useCallback(k=>{v?vC(k):k()},[v]),b=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:T,unstable_viewTransitionOpts:M}=j;P.forEach(H=>w.current.delete(H)),k.fetchers.forEach((H,B)=>{H.data!==void 0&&w.current.set(B,H.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){T?cs(()=>i(k)):x(()=>i(k));return}if(T){cs(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let H=n.window.document.startViewTransition(()=>{cs(()=>i(k))});H.finished.finally(()=>{cs(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),cs(()=>g(H));return}p?(d&&d.resolve(),p.skipTransition(),y({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,x]);h.useLayoutEffect(()=>n.subscribe(b),[n,b]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new yC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{x(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[x,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement($1.Provider,{value:_},h.createElement(R1.Provider,{value:o},h.createElement(hC.Provider,{value:w.current},h.createElement(pC.Provider,{value:a},h.createElement(lC,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(wC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function wC(e){let{routes:t,future:n,state:r}=e;return XE(t,void 0,r,n)}var Ym;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ym||(Ym={}));var Qm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qm||(Qm={}));var R=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(R||{}),z=(e=>(e.interview="interview",e.all="all",e))(z||{});const Xm=[R.Easy,R.Medium,R.Hard];function ba(e){return new Map([...e.entries()].sort((t,n)=>{const r=Xm.indexOf(t[1].difficulty),o=Xm.indexOf(n[1].difficulty);return r-o}))}const bC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:R.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[z.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:R.Easy,developer:"officialbidisha",tags:[z.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[z.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);ba(bC);const _C=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[z.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:R.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[z.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[z.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[z.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[z.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[z.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}]]);ba(_C);const SC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[z.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[z.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[z.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[z.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[z.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[z.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[z.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[z.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[z.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[z.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[z.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[z.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[z.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[z.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:R.Hard,developer:"SujithGunasekaran",tags:[z.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[z.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[z.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[z.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:R.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}]]),Jm=ba(SC),EC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[z.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[z.interview]}]]);ba(EC);const CC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[z.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);ba(CC);const kC=` -`,jC="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",$C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",RC="/frontend-mini-challenges/react/assets/github-KMwwOUMo.svg",NC="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class TC extends HTMLElement{updateYoutubeLink(){const t=this.getAttribute("youtubeLink"),n=this.querySelector(".youtube");n&&(t?(n.setAttribute("href",t),this.querySelector(".youtube img").setAttribute("src",NC)):n.remove())}updateSourceCodeLink(){const t=this.getAttribute("sourceCodeLink"),n=this.querySelector(".source-code");n&&(t?(n.setAttribute("href",t),this.querySelector(".source-code img").setAttribute("src",$C)):n.remove())}connectedCallback(){this.innerHTML=kC,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",jC),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",RC)}}window.customElements.define("nav-bar",TC);var PC={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:cc,VITE_HOST_URL:P1,DEV:O1}=PC,OC=O1?`${P1}${cc}/#/react`:`/${cc}/#/react/`,AC=O1?`${P1}${cc}/`:`/${cc}/`,MC="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/react/src/challenges/";function DC({title:e,link:t}){return c.jsx("nav-bar",{backURL:OC,homeURL:AC,titleText:e,sourceCodeLink:MC+t})}const IC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],LC="_tile_5pn2z_1",FC="_empty_5pn2z_5",zC="_correctTilePoz_5pn2z_17",BC="_moveLeft_5pn2z_17",UC="_moveRight_5pn2z_17",HC="_moveUp_5pn2z_17",WC="_moveDown_5pn2z_17",Ja={tile:LC,empty:FC,correctTilePoz:zC,moveLeft:BC,moveRight:UC,moveUp:HC,moveDown:WC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function VC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Ja.tile} ${e===0?Ja.empty:""} ${n?Ja.correctTilePoz:""} ${r?Ja[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const GC="_grid_e2nmy_1",KC="_menu_e2nmy_9",Zm={grid:GC,menu:KC},qC=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},YC=e=>{const t=e.length;for(let n=0;n{let n;do n=YC(Array.from({length:e*t-1},(r,o)=>o+1));while(!qC(n));return n},eg=(e=4,t=4)=>{const n=QC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function XC(){const[e,t]=h.useState([]),[n,r]=h.useState(0),[o,i]=h.useState(!1),[s,l]=h.useState({moves:[],capacity:5}),[a,u]=h.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:x}=s;v.length===x&&v.shift(),v.push(w)},f=(w,v)=>{const x=e.map(b=>[...b]);[x[w.row][w.col],x[v.row][v.col]]=[x[v.row][v.col],x[w.row][w.col]],t(x)},p=(w,v,x)=>{f(w,v),u({element:v,type:x}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{a.element||IC.forEach(x=>{const{direction:b,delta:C}=x,E=w.row+C[0],_=w.col+C[1];if(E>=0&&E<4&&_>=0&&_<4&&e[E][_]===0){if(p(w,{row:E,col:_},b),v){d({row:E,col:_}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(a.element||w.length===0)return;const v=w[w.length-1];g(v,!1),l({...s,moves:w.slice(0,w.length-1)})},y=()=>{t(eg(4,4)),r(0),l({...s,moves:[]})};return h.useEffect(()=>{t(eg(4,4))},[]),h.useEffect(()=>{const w=e.flat().every((v,x,b)=>v===x+1||x===b.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Zm.grid,children:e.map((w,v)=>w.map((x,b)=>c.jsx(VC,{animDirection:a.element&&a.element.col===b&&a.element.row===v?a.type:"",digit:x,onClick:()=>g({row:v,col:b}),isOnCorrectPoz:v*3+b+v+1===x},x)))}),c.jsxs("div",{className:Zm.menu,children:[c.jsx("button",{type:"button",onClick:y,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function JC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(XC,{})]})}const ZC="_App_150vf_1",ek="_accordion_150vf_6",kl={App:ZC,accordion:ek,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},tk=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=h.useState(!1),l=()=>{s(a=>!a),o(n)};return h.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:kl.accordion,children:[c.jsxs("div",{className:kl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:l,className:kl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},nk=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function rk(){const[e,t]=h.useState(!0),[n,r]=h.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:kl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:nk.map(s=>c.jsx(tk,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class ok{constructor(t=[]){_h(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const ik=e=>{const[n,r]=h.useState(""),[o,i]=h.useState([]),[s,l]=h.useState(null),a=h.useRef(new ok(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?a.current.getWordsFromTrie(m,5):[]),l(null)};return h.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),l(null)}g.key==="ArrowDown"&&(g.preventDefault(),l(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),l(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),l(null)},g=>{l(g)}]},sk=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],ak="_main_xk16z_1",lk="_retryTimer_xk16z_15",ck="_suggestions_xk16z_21",uk="_highlight_xk16z_36",dk="_loader_xk16z_46",Sr={main:ak,retryTimer:lk,suggestions:ck,highlight:uk,loader:dk},fk=()=>{const[e,t,n,r,o,i,s]=ik(sk),l=h.useRef(null);return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:l,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:Sr.suggestions,children:r.map((a,u)=>c.jsx("li",{className:n===u?`${Sr.highlight}`:"",onClick:()=>i(a),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:a},u))})]})};function pk(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const hk=5;async function tg(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${hk}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function mk(){const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),[s,l]=h.useState(!1),[a,u]=h.useState(0),[d,f]=h.useState(""),p=h.useCallback(pk(async x=>{l(!0);try{const b=await tg(x);u(b.timeDelta),b.errorMsgFromApi?(r([]),f(b.errorMsgFromApi)):b.items.length>0?(r(b.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}l(!1)},300),[tg]),g=()=>{r([]),i(null),f("")},m=x=>{if(x.key==="Enter"&&o!==null){const b=n[o];t(b),g()}x.key==="ArrowDown"&&(x.preventDefault(),i(b=>b===null||b===n.length-1?0:b+1)),x.key==="ArrowUp"&&(x.preventDefault(),i(b=>b===null||b===0?n.length-1:b-1))},y=x=>{const b=x.target.value;t(b),b.length>0?p(b):g()},w=x=>{t(x),g()};return h.useEffect(()=>{if(o!==null){const x=n[o];t(x)}},[o,n]),h.useEffect(()=>{const x=setTimeout(()=>{a>0&&u(b=>b-1)},1e3);return()=>clearTimeout(x)},[a]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:a,handleInputChange:y,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:x=>{i(x)}}}function gk(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:l,handleKeyDown:a,handleSuggestionFocus:u}=mk();return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:a,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:Sr.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:Sr.retryTimer,children:i}),c.jsx("ul",{className:Sr.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${Sr.highlight}`:"",onClick:()=>l(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const vk="_container_zsbjj_3",yk="_inputContainer_zsbjj_12",xk="_input_zsbjj_12",wk="_button_zsbjj_23",bk="_result_zsbjj_35",Fo={container:vk,inputContainer:yk,input:xk,button:wk,result:bk},_k=()=>{const e=(a,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(a),p=d(u);return f.split("").sort().join("")===p.split("").sort().join("")},[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(null),l=()=>{const a=e(t,r);s(a)};return c.jsxs("div",{className:Fo.container,children:[c.jsxs("div",{className:Fo.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:a=>n(a.target.value),className:Fo.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:a=>o(a.target.value),className:Fo.input}),c.jsx("button",{onClick:l,className:Fo.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Fo.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},Sk=()=>c.jsx("div",{children:c.jsx(_k,{})}),Ek="_App_7yaca_1",Ck="_container_7yaca_1",kk="_input_7yaca_7",jk="_calculateButton_7yaca_21",$k="_card_7yaca_30",Rk="_ranges_7yaca_41",xi={App:Ek,container:Ck,input:kk,calculateButton:jk,card:$k,ranges:Rk},Nk=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:xi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:xi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},Tk=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:xi.container,children:[c.jsxs("div",{className:xi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:xi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(Nk,{BMI:n,category:o})]}),Pk=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),[o,i]=h.useState(null),[s,l]=h.useState(null);h.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";l(()=>f)}},[o]);const a=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&t(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},u=f=>{try{const p=parseFloat(f.target.value).toFixed(2);p>10&&r(()=>p)}catch(p){console.log(p,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:xi.App,children:c.jsx(Tk,{height:e,weight:n,handleHeightChange:a,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},Ok="_container_10e68_1",Ak="_button_10e68_7",ng={container:Ok,button:Ak},Mk=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},Dk=()=>{const e=t=>{document.body.style.backgroundColor=t};return h.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:ng.container,children:c.jsx("button",{type:"button",className:ng.button,onClick:()=>e(Mk()),children:"Change Color!! 😎"})})},zo={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function Ik(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+l)/2).toString(16)}`}function Lk(){const[e,t]=h.useState("#FF5733"),[n,r]=h.useState("#33FF57"),o=s=>{const{name:l,value:a}=s.target;l==="color1"?t(a):r(a)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:zo["color-mixing-container"],children:[c.jsx("div",{className:zo["color-box-top"],style:{backgroundColor:Ik(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:zo["color-inputs"],children:[c.jsxs("div",{className:zo["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:zo["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:zo["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const Fk="_main_pfcqp_1",zk="_size_pfcqp_5",Bk="_grid_pfcqp_13",Uk="_cell_pfcqp_17",uc={main:Fk,size:zk,grid:Bk,cell:Uk};function Hk({columns:e,values:t}){return c.jsx("table",{className:uc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:uc.cell,children:o},o))},r))})})}function Wk({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:uc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function Vk(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function Gk(){const[e,t]=h.useState(2),[n,r]=h.useState(2),o=Vk(e,n);return c.jsxs("main",{className:uc.main,children:[c.jsx(Wk,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(Hk,{columns:n,values:o})]})}const Kk="_main_1cx3l_1",qk={main:Kk};function Yk(){const[e,t]=h.useState(0),n=h.useRef(1),r=l=>{n.current=l},o=()=>{t(l=>l+n.current)},i=()=>{t(l=>l-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:qk.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:l=>r(l.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const Qk={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},Xk="_select_17qmd_1",Jk="_form_17qmd_6",Zk="_formField_17qmd_13",e2="_formInput_17qmd_17",eo={select:Xk,form:Jk,formField:Zk,formInput:e2};function t2({fields:e,dispatch:t}){return c.jsxs("form",{className:eo.form,children:[c.jsxs("div",{className:eo.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:eo.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:eo.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:eo.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:eo.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function n2({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function r2({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:eo.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function o2(){const[e,t]=h.useState("jobApplication"),[n,r]=h.useReducer((o,i)=>({...o,...i}),Qk);return c.jsxs(c.Fragment,{children:[c.jsx(r2,{template:e,setTemplate:t}),c.jsx(t2,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(n2,{...n})]})}const i2="_form_1ufkd_2",s2={form:i2};function a2({onAddExpense:e}){const[t,n]=h.useState(""),[r,o]=h.useState(""),[i,s]=h.useState(""),l=a=>{a.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:l,className:s2.form,children:[c.jsx("input",{type:"date",value:t,onChange:a=>n(a.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:a=>o(a.target.value),required:!0}),c.jsxs("select",{value:i,onChange:a=>s(a.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const l2="_mainContainer_1ynr6_2",c2="_btnRed_1ynr6_32",df={mainContainer:l2,btnRed:c2};function u2({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:df.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function d2({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:df.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:df.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function f2(){const[e,t]=h.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(a2,{onAddExpense:n}),c.jsx(d2,{expenses:e,onDeleteExpense:r}),c.jsx(u2,{expenses:e})]})}const p2="_feedbackContainer_2c7o2_1",h2="_feedbackBtn_2c7o2_11",m2="_modalContainer_2c7o2_22",g2="_modalContent_2c7o2_35",v2="_iconContainer_2c7o2_50",y2="_iconItem_2c7o2_57",x2="_active_2c7o2_75",w2="_iconImage_2c7o2_81",b2="_modalClose_2c7o2_92",_2="_feedbackContent_2c7o2_108",S2="_feedbackResponse_2c7o2_115",Kt={feedbackContainer:p2,feedbackBtn:h2,modalContainer:m2,modalContent:g2,iconContainer:v2,iconItem:y2,active:x2,iconImage:w2,modalClose:b2,feedbackContent:_2,feedbackResponse:S2},E2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],C2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${Kt.active}`:`${r}`,r},k2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:Kt.iconContainer,children:E2.map(n=>c.jsxs("div",{className:C2(n.rating,t,Kt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:Kt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),j2=({onClose:e})=>{const[t,n]=h.useState(""),[r,o]=h.useState({}),[i,s]=h.useState(!1),l=()=>{s(!0)},a=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:Kt.modalContainer,onClick:e,children:c.jsxs("div",{className:Kt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:Kt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:Kt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:Kt.feedbackContent,onSubmit:l,children:[c.jsx(k2,{handleClick:a,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:Kt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function $2(){const[e,t]=h.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:Kt.feedbackContainer,children:[c.jsx("button",{className:Kt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(j2,{onClose:r})]})}const R2="_app_1o28y_1",N2="_list_1o28y_6",T2="_editList_1o28y_22",P2="_editableInputContainer_1o28y_30",O2="_editableInputError_1o28y_34",A2="_indent_1o28y_48",M2="_controls_1o28y_52",wt={app:R2,list:N2,editList:T2,editableInputContainer:P2,editableInputError:O2,indent:A2,controls:M2};function zp({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=h.useState(n),[i,s]=h.useState(null),l=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},a=()=>{e(r)},u=d=>{d.key==="Enter"&&a()};return c.jsxs("div",{className:wt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:a,onKeyUp:u,value:r,onChange:l}),i&&c.jsx("div",{className:wt.editableInputError,children:c.jsx("p",{children:i})})]})}function D2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=h.useState(!1),l=u=>o(t,e,u),a=u=>{l(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:["📄 ",c.jsx(zp,{defaultValue:e.name,onComplete:a,validateNode:l})]}):c.jsxs("li",{className:wt.list,children:[c.jsxs("button",{className:wt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function I2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:l}){const[a,u]=h.useState(!1),d=p=>l(n,r,p),f=p=>{n&&(d(p)&&i(n,r,p),u(!1))};return a?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[e?"📂":"📁"," ",c.jsx(zp,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:wt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function A1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var y;const[s,l]=h.useState(!1),[a,u]=h.useState(!1),d=h.useRef(!1),f=w=>{w.stopPropagation(),l(!s)},p=w=>{d.current=w,u(!a),l(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(I2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:p,validateNode:i}),s&&c.jsxs("div",{className:wt.indent,children:[(y=e.nodes)==null?void 0:y.map(w=>w.isFolder?c.jsx(A1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(D2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),a&&c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(zp,{onComplete:m,validateNode:g})]})]})]})}const L2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function F2(){const[e,t]=h.useState(L2),n=(s,l)=>{const a={...e},u=[...s.nodes??[]];u.push({...l,nodes:[]}),s.id==="root"?a.nodes=u:s.nodes=u,t(a)},r=(s,l)=>{var d;const a={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==l.id);s.id==="root"?a.nodes=u:s.nodes=u,t(a)},o=(s,l,a)=>{var p;const u={...e},d=((p=s.nodes)==null?void 0:p.map(g=>g))??[],f=d.findIndex(g=>g.id===l.id);d[f]={...d[f],name:a},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,l,a)=>{var d;return s===null||typeof s.nodes>"u"?!0:a===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(l==null?void 0:l.id)&&f.name===a))===-1};return c.jsx("div",{className:wt.app,children:c.jsx(A1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const z2="_App_lmi0v_5",B2="_meal_container_lmi0v_15",U2="_meal_name_lmi0v_27",H2="_meal_img_lmi0v_32",W2="_tags_container_lmi0v_37",V2="_modal_tags_container_lmi0v_38",G2="_tag_lmi0v_37",K2="_modal_tag_lmi0v_38",q2="_dialog_lmi0v_62",Y2="_modal_meal_img_lmi0v_67",Q2="_modal_instruction_lmi0v_72",X2="_foodBtn_lmi0v_77",J2="_openBtn_lmi0v_78",Z2="_closeBtn_lmi0v_103",ej="_recipe_table_lmi0v_126",rt={App:z2,meal_container:B2,meal_name:U2,meal_img:H2,tags_container:W2,modal_tags_container:V2,tag:G2,modal_tag:K2,dialog:q2,modal_meal_img:Y2,modal_instruction:Q2,foodBtn:X2,openBtn:J2,closeBtn:Z2,recipe_table:ej};function Bp({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:rt.modal_tags_container,children:[t&&c.jsx("li",{className:rt.modal_tag,children:t}),n&&c.jsx("li",{className:rt.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:rt.modal_tag,children:o},i))]})}Bp.propTypes;function M1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:rt.meal_container,children:[c.jsx("h2",{className:rt.meal_name,children:n}),c.jsx("img",{className:rt.meal_img,src:r,alt:n}),c.jsx(Bp,{data:e}),c.jsx("button",{className:rt.openBtn,onClick:t,children:"detail recipe"})]})}M1.propTypes;function D1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:rt.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}D1.propTypes;function I1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{className:rt.dialog,open:!0,onClose:t,children:c.jsxs("div",{className:rt.modal_meal_container,children:[c.jsx("button",{className:rt.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:rt.modal_meal_name,children:n}),c.jsx("img",{className:rt.modal_meal_img,src:r,alt:n}),c.jsx(Bp,{data:e}),c.jsx(D1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:rt.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}I1.propTypes;function tj(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);h.useEffect(()=>{o()},[]);const o=async()=>{try{const a=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!a.ok)throw new Error("Network response was not ok! Something wrong");const u=await a.json();t(u.meals[0])}catch(a){console.error("Error on fetching data: ",a)}},i=()=>{o()},s=()=>{r(!0)},l=()=>{r(!1)};return c.jsxs("div",{className:rt.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:rt.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(I1,{data:e,handleCloseDialog:l}),e&&c.jsx(M1,{data:e,handleOpenDialog:s})]})}const nj="_app_j2t5p_1",rj="_widget_j2t5p_14",oj="_text_j2t5p_21",Uu={app:nj,widget:rj,text:oj};function ij(){const[e,t]=h.useState(),[n,r]=h.useState(!1),[o,i]=h.useState(1),[s,l]=h.useState(!1),[a,u]=h.useState(!1),[d,f]=h.useState(!1);h.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const p=m=>{m.preventDefault(),oe?(u(!0),l(!1)):(f(!0),l(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),l(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Uu.app,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Uu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Uu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),a&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const fr={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},sj=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function aj(){const[e,t]=h.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:fr["image-gallery-container"],children:[c.jsx("p",{className:fr["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:fr["image-container"],children:sj.map((r,o)=>c.jsx("div",{className:fr["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:fr["gallery-image"]})},o))}),e&&c.jsxs("div",{className:fr["selected-image"],children:[c.jsx("h2",{className:fr["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:fr["selected-img"]})]})]})}const lj="_loader_1hfl7_1",cj="_spin_1hfl7_1",Hu={loader:lj,spin:cj,"book-title":"_book-title_1hfl7_21"};function L1(e,t){return function(){return e.apply(t,arguments)}}const{toString:uj}=Object.prototype,{getPrototypeOf:Up}=Object,Qc=(e=>t=>{const n=uj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mn=e=>(e=e.toLowerCase(),t=>Qc(t)===e),Xc=e=>t=>typeof t===e,{isArray:Li}=Array,oa=Xc("undefined");function dj(e){return e!==null&&!oa(e)&&e.constructor!==null&&!oa(e.constructor)&&Jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F1=Mn("ArrayBuffer");function fj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F1(e.buffer),t}const pj=Xc("string"),Jt=Xc("function"),z1=Xc("number"),Jc=e=>e!==null&&typeof e=="object",hj=e=>e===!0||e===!1,jl=e=>{if(Qc(e)!=="object")return!1;const t=Up(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mj=Mn("Date"),gj=Mn("File"),vj=Mn("Blob"),yj=Mn("FileList"),xj=e=>Jc(e)&&Jt(e.pipe),wj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jt(e.append)&&((t=Qc(e))==="formdata"||t==="object"&&Jt(e.toString)&&e.toString()==="[object FormData]"))},bj=Mn("URLSearchParams"),_j=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _a(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Li(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),H1=e=>!oa(e)&&e!==U1;function ff(){const{caseless:e}=H1(this)&&this||{},t={},n=(r,o)=>{const i=e&&B1(t,o)||o;jl(t[i])&&jl(r)?t[i]=ff(t[i],r):jl(r)?t[i]=ff({},r):Li(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(_a(t,(o,i)=>{n&&Jt(o)?e[i]=L1(o,n):e[i]=o},{allOwnKeys:r}),e),Ej=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kj=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Up(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$j=e=>{if(!e)return null;if(Li(e))return e;let t=e.length;if(!z1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Up(Uint8Array)),Nj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Tj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pj=Mn("HTMLFormElement"),Oj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),rg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Aj=Mn("RegExp"),W1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_a(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Mj=e=>{W1(e,(t,n)=>{if(Jt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Li(e)?r(e):r(String(e).split(t)),n},Ij=()=>{},Lj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wu="abcdefghijklmnopqrstuvwxyz",og="0123456789",V1={DIGIT:og,ALPHA:Wu,ALPHA_DIGIT:Wu+Wu.toUpperCase()+og},Fj=(e=16,t=V1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zj(e){return!!(e&&Jt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bj=e=>{const t=new Array(10),n=(r,o)=>{if(Jc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Li(r)?[]:{};return _a(r,(s,l)=>{const a=n(s,o+1);!oa(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Uj=Mn("AsyncFunction"),Hj=e=>e&&(Jc(e)||Jt(e))&&Jt(e.then)&&Jt(e.catch),A={isArray:Li,isArrayBuffer:F1,isBuffer:dj,isFormData:wj,isArrayBufferView:fj,isString:pj,isNumber:z1,isBoolean:hj,isObject:Jc,isPlainObject:jl,isUndefined:oa,isDate:mj,isFile:gj,isBlob:vj,isRegExp:Aj,isFunction:Jt,isStream:xj,isURLSearchParams:bj,isTypedArray:Rj,isFileList:yj,forEach:_a,merge:ff,extend:Sj,trim:_j,stripBOM:Ej,inherits:Cj,toFlatObject:kj,kindOf:Qc,kindOfTest:Mn,endsWith:jj,toArray:$j,forEachEntry:Nj,matchAll:Tj,isHTMLForm:Pj,hasOwnProperty:rg,hasOwnProp:rg,reduceDescriptors:W1,freezeMethods:Mj,toObjectSet:Dj,toCamelCase:Oj,noop:Ij,toFiniteNumber:Lj,findKey:B1,global:U1,isContextDefined:H1,ALPHABET:V1,generateString:Fj,isSpecCompliantForm:zj,toJSONObject:Bj,isAsyncFn:Uj,isThenable:Hj};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const G1=de.prototype,K1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K1[e]={value:e}});Object.defineProperties(de,K1);Object.defineProperty(G1,"isAxiosError",{value:!0});de.from=(e,t,n,r,o,i)=>{const s=Object.create(G1);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),de.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Wj=null;function pf(e){return A.isPlainObject(e)||A.isArray(e)}function q1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function ig(e,t,n){return e?e.concat(t).map(function(o,i){return o=q1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Vj(e){return A.isArray(e)&&!e.some(pf)}const Gj=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Zc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!A.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!a&&A.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,y,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Vj(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(v=A.toArray(m)))return y=q1(y),v.forEach(function(b,C){!(A.isUndefined(b)||b===null)&&t.append(s===!0?ig([y],C,i):s===null?y:y+"[]",u(b))}),!1}return pf(m)?!0:(t.append(ig(w,y,i),u(m)),!1)}const f=[],p=Object.assign(Gj,{defaultVisitor:d,convertValue:u,isVisitable:pf});function g(m,y){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),A.forEach(m,function(v,x){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(x)?x.trim():x,y,p))===!0&&g(v,y?y.concat(x):[x])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function sg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Hp(e,t){this._pairs=[],e&&Zc(e,this,t)}const Y1=Hp.prototype;Y1.append=function(t,n){this._pairs.push([t,n])};Y1.toString=function(t){const n=t?function(r){return t.call(this,r,sg)}:sg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Kj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q1(e,t,n){if(!t)return e;const r=n&&n.encode||Kj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Hp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ag{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const X1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qj=typeof URLSearchParams<"u"?URLSearchParams:Hp,Yj=typeof FormData<"u"?FormData:null,Qj=typeof Blob<"u"?Blob:null,Xj={isBrowser:!0,classes:{URLSearchParams:qj,FormData:Yj,Blob:Qj},protocols:["http","https","file","blob","url","data"]},J1=typeof window<"u"&&typeof document<"u",Jj=(e=>J1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),e$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:J1,hasStandardBrowserEnv:Jj,hasStandardBrowserWebWorkerEnv:Zj},Symbol.toStringTag,{value:"Module"})),Rn={...e$,...Xj};function t$(e,t){return Zc(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Rn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function n$(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function r$(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,a?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=r$(o[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(n$(r),o,n,0)}),n}return null}function o$(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wp={transitional:X1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(Z1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return t$(t,this.formSerializer).toString();if((l=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Zc(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),o$(t)):t}],transformResponse:[function(t){const n=this.transitional||Wp.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Wp.headers[e]={}});const Vp=Wp,i$=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),s$=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&i$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lg=Symbol("internals");function us(e){return e&&String(e).trim().toLowerCase()}function $l(e){return e===!1||e==null?e:A.isArray(e)?e.map($l):String(e)}function a$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const l$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vu(e,t,n,r,o){if(A.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function c$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function u$(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class eu{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,u){const d=us(a);if(!d)throw new Error("header name must be a non-empty string");const f=A.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||a]=$l(l))}const s=(l,a)=>A.forEach(l,(u,d)=>i(u,d,a));return A.isPlainObject(t)||t instanceof this.constructor?s(t,n):A.isString(t)&&(t=t.trim())&&!l$(t)?s(s$(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=us(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return a$(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=us(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=us(s),s){const l=A.findKey(r,s);l&&(!n||Vu(r,r[l],l,n))&&(delete r[l],o=!0)}}return A.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Vu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return A.forEach(this,(o,i)=>{const s=A.findKey(r,i);if(s){n[s]=$l(o),delete n[i];return}const l=t?c$(i):String(i).trim();l!==i&&delete n[i],n[l]=$l(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[lg]=this[lg]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=us(s);r[l]||(u$(o,s),r[l]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}eu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(eu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(eu);const Qn=eu;function Gu(e,t){const n=this||Vp,r=t||n,o=Qn.from(r.headers);let i=r.data;return A.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ex(e){return!!(e&&e.__CANCEL__)}function Sa(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Sa,de,{__CANCEL__:!0});function d$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const f$=Rn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),A.isString(r)&&s.push("path="+r),A.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h$(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function tx(e,t){return e&&!p$(t)?h$(e,t):t}const m$=Rn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=A.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function g$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function v$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=r[i];s||(s=u),n[o]=a,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-i)/a:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const y$=typeof XMLHttpRequest<"u",x$=y$&&function(e){return new Promise(function(n,r){let o=e.data;const i=Qn.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let d;if(A.isFormData(o)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[y,...w]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([y||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+w))}const p=tx(e.baseURL,e.url);f.open(e.method.toUpperCase(),Q1(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const y=Qn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};d$(function(b){n(b),u()},function(b){r(b),u()},v),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new de("Request aborted",de.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||X1;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new de(w,v.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,f)),f=null},Rn.hasStandardBrowserEnv&&(l&&A.isFunction(l)&&(l=l(e)),l||l!==!1&&m$(p))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&f$.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&A.forEach(i.toJSON(),function(w,v){f.setRequestHeader(v,w)}),A.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",cg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",cg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=y=>{f&&(r(!y||y.type?new Sa(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=g$(p);if(m&&Rn.protocols.indexOf(m)===-1){r(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e));return}f.send(o||null)})},hf={http:Wj,xhr:x$};A.forEach(hf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ug=e=>`- ${e}`,w$=e=>A.isFunction(e)||e===null||e===!1,nx={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : -`+i.map(ug).join(` -`):" "+ug(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:hf};function Ku(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sa(null,e)}function dg(e){return Ku(e),e.headers=Qn.from(e.headers),e.data=Gu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nx.getAdapter(e.adapter||Vp.adapter)(e).then(function(r){return Ku(e),r.data=Gu.call(e,e.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return ex(r)||(Ku(e),r&&r.response&&(r.response.data=Gu.call(e,e.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const fg=e=>e instanceof Qn?e.toJSON():e;function Ti(e,t){t=t||{};const n={};function r(u,d,f){return A.isPlainObject(u)&&A.isPlainObject(d)?A.merge.call({caseless:f},u,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(u,d,f){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!A.isUndefined(d))return r(void 0,d)}function s(u,d){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>o(fg(u),fg(d),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,p=f(e[d],t[d],d);A.isUndefined(p)&&f!==l||(n[d]=p)}),n}const rx="1.6.2",Gp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pg={};Gp.transitional=function(t,n,r){function o(i,s){return"[Axios v"+rx+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new de(o(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!pg[s]&&(pg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function b$(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new de("option "+i+" must be "+a,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const mf={assertOptions:b$,validators:Gp},pr=mf.validators;class dc{constructor(t){this.defaults=t,this.interceptors={request:new ag,response:new ag}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ti(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&mf.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:mf.assertOptions(o,{encode:pr.function,serialize:pr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qn.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,p;if(!a){const m=[dg.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),p=m.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new Sa(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Kp(function(o){t=o}),cancel:t}}}const _$=Kp;function S$(e){return function(n){return e.apply(null,n)}}function E$(e){return A.isObject(e)&&e.isAxiosError===!0}const gf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gf).forEach(([e,t])=>{gf[t]=e});const C$=gf;function ox(e){const t=new Rl(e),n=L1(Rl.prototype.request,t);return A.extend(n,Rl.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ox(Ti(e,o))},n}const Ce=ox(Vp);Ce.Axios=Rl;Ce.CanceledError=Sa;Ce.CancelToken=_$;Ce.isCancel=ex;Ce.VERSION=rx;Ce.toFormData=Zc;Ce.AxiosError=de;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=S$;Ce.isAxiosError=E$;Ce.mergeConfig=Ti;Ce.AxiosHeaders=Qn;Ce.formToJSON=e=>Z1(A.isHTMLForm(e)?new FormData(e):e);Ce.getAdapter=nx.getAdapter;Ce.HttpStatusCode=C$;Ce.default=Ce;function k$(e){const[t,n]=h.useState(!0),[r,o]=h.useState(!1),[i,s]=h.useState([]),[l,a]=h.useState(!1);return h.useEffect(()=>{n(!0),o(!1);let u;return Ce({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:e,_limit:10},cancelToken:new Ce.CancelToken(d=>u=d)}).then(d=>{var f;s(p=>[...new Set([...p,...d.data.map(g=>g.title)])]),a(!(((f=d.data.at(-1))==null?void 0:f.id)===5e3||d.data.length===0)),n(!1)}).catch(d=>{Ce.isCancel(d)||o(!0)}),()=>u()},[e]),{loading:t,error:r,items:i,hasMore:l}}function j$(){const[e,t]=h.useState(1),{items:n,hasMore:r,loading:o,error:i}=k$(e),s=h.useRef(),l=h.useCallback(a=>{o||(s.current&&s.current.disconnect(),s.current=new IntersectionObserver(u=>{u[0].isIntersecting&&r&&t(d=>d+1)}),a&&s.current.observe(a))},[o,r]);return c.jsxs(c.Fragment,{children:[n==null?void 0:n.map((a,u)=>n.length===u+1?c.jsx("div",{className:`${Hu["book-title"]}`,ref:l,children:a},a):c.jsx("div",{className:`${Hu["book-title"]}`,children:a},a)),o&&c.jsx("div",{className:Hu.loader}),c.jsx("div",{children:i&&"Error"})]})}const $$="_result_1y6k8_1",R$={result:$$},Za=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),N$=e=>c.jsxs("table",{className:R$.result,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Year"}),c.jsx("th",{children:"Total Savings"}),c.jsx("th",{children:"Interest (Year)"}),c.jsx("th",{children:"Total Interest"}),c.jsx("th",{children:"Invested Capital"})]})}),c.jsx("tbody",{children:e.data.map(t=>c.jsxs("tr",{children:[c.jsx("td",{children:t.year}),c.jsx("td",{children:Za.format(t.savingsEndOfYear)}),c.jsx("td",{children:Za.format(t.yearlyInterest)}),c.jsx("td",{children:Za.format(t.savingsEndOfYear-e.inInvest-t.yearlyContribution*t.year)}),c.jsx("td",{children:Za.format(parseInt(e.inInvest)+t.yearlyContribution*t.year)})]},t.year))})]}),T$="_form_1schc_1",P$="_actions_1schc_63",O$="_button_1schc_75",A$="_buttonAlt_1schc_93",Bo={form:T$,"input-group":"_input-group_1schc_17",actions:P$,button:O$,buttonAlt:A$},hg={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},M$=e=>{const[t,n]=h.useState(hg),r=s=>{s.preventDefault(),e.onCalculate(t)},o=()=>{n(hg),e.onCalculate(null)},i=(s,l)=>{n(a=>({...a,[s]:l}))};return c.jsxs("form",{onSubmit:r,className:Bo.form,children:[c.jsxs("div",{className:Bo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),c.jsx("input",{onChange:s=>i("current-savings",s.target.value),value:t["current-savings"],type:"number",id:"current-savings"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),c.jsx("input",{onChange:s=>i("yearly-contribution",s.target.value),value:t["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),c.jsxs("div",{className:Bo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),c.jsx("input",{onChange:s=>i("expected-return",s.target.value),value:t["expected-return"],type:"number",id:"expected-return"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),c.jsx("input",{onChange:s=>i("duration",s.target.value),value:t.duration,type:"number",id:"duration"})]})]}),c.jsxs("p",{className:Bo.actions,children:[c.jsx("button",{onClick:o,type:"reset",className:Bo.buttonAlt,children:"Reset"}),c.jsx("button",{type:"submit",className:Bo.button,children:"Calculate"})]})]})},D$="_main_kxpla_1",I$={main:D$};function L$(){const[e,t]=h.useState(null),n=o=>{t(o)},r=[];if(e){let o=+e["current-savings"];const i=+e["yearly-contribution"],s=+e["expected-return"]/100,l=+e.duration;for(let a=0;a{const[e,t]=h.useState("");return h.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),h.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function H$(){const{theme:e,toggleTheme:t}=U$();return c.jsxs("main",{className:`${qu.main} ${e==="dark-theme"?qu.darkTheme:qu.lightTheme}`,children:[c.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),c.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const W$="_layout_1dsxo_1",V$="_button_1dsxo_14",G$="_grid_1dsxo_18",K$="_tile_1dsxo_23",q$="_frontface_1dsxo_27",Y$="_backface_1dsxo_28",Er={layout:W$,button:V$,grid:G$,tile:K$,frontface:q$,backface:Y$};function Q$({tile:e,onTileClick:t,idx:n}){const r=h.useRef(null),o=h.useRef(null);return h.useEffect(()=>{r.current&&o.current&&(e.isOpen?(r.current.style.transform="rotateY(180deg)",o.current.style.transform="rotateY(0deg)"):(r.current.style.transform="rotateY(0deg)",o.current.style.transform="rotateY(180deg)"))},[e.isOpen]),c.jsxs("div",{className:Er.tile,onClick:()=>{t(n)},children:[c.jsx("div",{className:Er.frontface+" "+Er.tile,ref:r}),c.jsx("div",{className:Er.backface+" "+Er.tile,ref:o,children:e.symbol})]})}function X$({size:e,tiles:t,onTileClick:n}){return c.jsx("div",{className:Er.grid,style:{gridTemplateRows:`repeat(${e}, min(${80/e}vmin, 6rem))`,gridTemplateColumns:`repeat(${e}, min(${80/e}vmin, 6rem))`,gap:`${10/e}vmin`},children:t.map((r,o)=>c.jsx(Q$,{tile:r,onTileClick:n,idx:o},o))})}const mg=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],J$=(e=8,t=!1)=>{const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{const n=J$(e,t),r=n.concat(n);return Z$(r)},ds=4,qo=2,gg=e=>eR(e*e/qo,!0).map(t=>({symbol:t,isOpen:!1}));function tR(){const[e,t]=h.useState(()=>gg(ds)),[n,r]=h.useState([]),o=h.useRef(),i=h.useRef(0),s=h.useRef(0),l=h.useRef(!1),a=()=>{o.current=void 0,i.current=0,s.current=0,l.current=!0,t(f=>f.map(p=>({symbol:p.symbol,isOpen:!1}))),setTimeout(()=>{t(gg(ds)),l.current=!1},500)},u=()=>{if(n.length{const m=[...g];return m[f]={symbol:g[f].symbol,isOpen:!1},m[p]={symbol:g[p].symbol,isOpen:!1},r(n.slice(qo)),m})},d=f=>{e[f].isOpen||l.current||(i.current++,r([...n,f]),t(p=>{const g=[...p];return g[f]={...g[f],isOpen:!0},g}))};return h.useEffect(()=>{n.length===qo&&(e[n[0]].symbol===e[n[1]].symbol?(r([]),s.current+=qo):o.current=window.setTimeout(()=>{u()},3e3)),n.length===qo+1&&(window.clearTimeout(o.current),u())},[e]),c.jsxs("div",{className:Er.layout,children:[c.jsx(X$,{size:ds,tiles:e,onTileClick:d}),c.jsx("div",{children:c.jsx("button",{className:Er.button,onClick:a,children:"Reset"})}),c.jsxs("output",{children:[c.jsxs("p",{children:["Attempts : ",i.current]}),c.jsx("p",{children:s.current===ds*ds&&"Congratulations"})]})]})}const nR="_main_h642g_1",rR="_nestedDropdown_h642g_4",oR="_dropdownMain_h642g_12",iR="_dropdownItems_h642g_19",sR="_arrow_h642g_52",aR="_dropdown_h642g_12",lR="_show_h642g_76",cR="_dropdownSubItems_h642g_80",Mr={main:nR,nestedDropdown:rR,dropdownMain:oR,dropdownItems:iR,arrow:sR,dropdown:aR,show:lR,dropdownSubItems:cR},uR=({subItems:e,dropdown:t,depthLevel:n})=>{const r=n>1?Mr.dropdownSubItems:"";return c.jsx("ul",{className:`${Mr.dropdown} ${r} ${t?Mr.show:""}`,children:e.map((o,i)=>c.jsx(ix,{items:o,depthLevel:n+1},i))})},ix=({items:e,depthLevel:t})=>{const[n,r]=h.useState(!1);let o=h.useRef();h.useEffect(()=>{const l=a=>{n&&o.current&&!o.current.contains(a.target)&&r(!1)};return document.addEventListener("mousedown",l),document.addEventListener("touchstart",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l)}},[n]);const i=()=>{window.innerWidth>960&&r(!0)},s=()=>{window.innerWidth>960&&r(!1)};return c.jsx("li",{className:Mr.dropdownItems,onMouseEnter:i,onMouseLeave:s,children:e.subItems?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button","aria-expanded":n?"true":"false",onClick:()=>r(l=>!l),children:[e.title,t>0?c.jsx("span",{children:" »"}):c.jsx("span",{className:Mr.arrow})]}),c.jsx(uR,{depthLevel:t+1,subItems:e.subItems,dropdown:n})]}):c.jsx("a",{href:"/#",children:e.title})})},dR=[{title:"Software Development",subItems:[{title:"Web design"},{title:"Web development",subItems:[{title:"Frontend",subItems:[{title:"Angular"},{title:"ReactJS"},{title:"VueJS"}]},{title:"Backend",subItems:[{title:"NodeJS"},{title:"PHP"},{title:"JAVA",subItems:[{title:"Spring"},{title:"Hibernate"}]}]}]}]}],fR=()=>c.jsx("div",{className:Mr.main,children:c.jsx("div",{className:Mr.nestedDropdown,children:c.jsxs("ul",{className:Mr.dropdownMain,children:[" ",dR.map((e,t)=>c.jsx(ix,{items:e,depthLevel:0},t))," "]})})}),vg=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],pR="_pagination_1mnjc_1",hR={pagination:pR},mR=({currentPage:e,totalPages:t,onPageChange:n})=>c.jsxs("div",{className:hR.pagination,children:[c.jsx("button",{onClick:()=>n(e-1),disabled:e===1,children:"Previous"}),c.jsxs("span",{children:["Page ",e," of ",t]}),c.jsx("button",{onClick:()=>n(e+1),disabled:e===t,children:"Next"})]}),gR="_container_for_table_1pb6f_1",vR="_table_1pb6f_5",yR="_thead_1pb6f_10",xR="_tbody_1pb6f_19",el={container_for_table:gR,table:vR,thead:yR,tbody:xR},wR=({data:e,currentPage:t,totalPages:n,onPageChange:r})=>c.jsxs("div",{className:el.container_for_table,children:[c.jsx(mR,{currentPage:t,totalPages:n,onPageChange:r}),c.jsxs("table",{className:el.table,children:[c.jsx("thead",{className:el.thead,children:c.jsxs("tr",{children:[c.jsx("th",{children:"#"}),c.jsx("th",{children:"Food"}),c.jsx("th",{children:"Price"})]})}),c.jsx("tbody",{className:el.tbody,children:e.map((o,i)=>c.jsxs("tr",{children:[c.jsx("td",{children:o.id}),c.jsx("td",{children:o.name}),c.jsxs("td",{children:[o.price,"$"]})]},i))})]})]}),bR="_pagination_container_13fvi_1",_R="_title_13fvi_10",SR={pagination_container:bR,title:_R},ER=()=>{const[t,n]=h.useState(1),r=l=>{n(l)},o=(t-1)*10,i=o+10,s=vg.slice(o,i);return c.jsx("div",{className:SR.pagination_container,children:c.jsx(wR,{data:s,currentPage:t,totalPages:Math.ceil(vg.length/10),onPageChange:r})})},CR={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},kR="_App_6bcv0_1",jR="_main_section_6bcv0_10",$R="_main_header_6bcv0_15",RR="_password_form_6bcv0_22",NR="_second_section_6bcv0_28",TR="_inputText_6bcv0_38",PR="_fifth_section_6bcv0_39",OR="_btn_6bcv0_46",AR="_fourth_section_6bcv0_47",MR="_third_section_6bcv0_72",DR="_sixth_section_6bcv0_91",IR="_second_header_6bcv0_97",ft={App:kR,main_section:jR,main_header:$R,password_form:RR,second_section:NR,inputText:TR,fifth_section:PR,btn:OR,fourth_section:AR,third_section:MR,sixth_section:DR,second_header:IR,"password-table":"_password-table_6bcv0_105"};function sx({passwordLength:e,setPasswordLength:t,isChecked:n,handleChange:r}){return c.jsxs("form",{className:ft.password_form,children:[c.jsxs("div",{children:["password length: ",e]}),c.jsx("div",{children:c.jsx("input",{type:"range",min:"6",max:"30",value:e,onChange:o=>t(o.target.value)})}),c.jsx("div",{children:"Include Lowercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedLowerCha,onChange:r("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),c.jsx("div",{children:"Include Uppercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedUpperCha,onChange:r("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),c.jsx("div",{children:"Include Number:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedNumber,onChange:r("isCheckedNumber")}),"Number (e.g. 12345)"]})}),c.jsx("div",{children:"Include Symbols:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedSymbols,onChange:r("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}sx.propTypes;function ax({generatedPassword:e,handleCopyText:t,showTextNotification:n,notificationMessage:r}){return c.jsxs("div",{className:ft.second_section,children:[c.jsx("label",{children:"Your generated password: "}),c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"Your generated password will appear here",value:e,readOnly:!0}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:o=>{t(o),n("copied2")},children:"copy"}),r==="copied2"&&c.jsx("span",{children:r.slice(0,6)})]})]})}ax.propTypes;function lx({isChecked:e,passwordLength:t,randomPassword:n,PasswordToRemember:r,ALPHABET_WORDS:o,passwordGenerate:i,handleCopyText:s,showTextNotification:l,notificationMessage:a}){return c.jsxs("div",{className:ft.fourth_section,children:[c.jsx("button",{className:ft.btn,title:"generate password",onClick:i({...e},t,n,r,o),children:"generate password"}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:u=>{s(u),l("copied1")},children:"copy"}),a==="copied1"&&c.jsx("span",{children:a.slice(0,6)})]})}lx.propTypes;function cx({saveNameAndPass:e}){return c.jsxs("table",{className:ft["password-table"],children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name of password"}),c.jsx("th",{children:"Password"})]})}),c.jsx("tbody",{children:e.map((t,n)=>c.jsxs("tr",{children:[c.jsx("td",{children:t.name}),c.jsx("td",{children:t.pass})]},n))})]})}cx.propTypes;function ux({generatedPassword:e,handleSavePasswordAndName:t,saveNameAndPass:n,setLocalStorage:r,checkPasswordNameExit:o,showTextNotification:i,notificationMessage:s}){const[l,a]=h.useState(!1),[u,d]=h.useState("");return c.jsxs("div",{className:ft.fifth_section,children:[c.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),c.jsx("input",{id:"checkToSave",type:"checkbox",checked:l,onChange:()=>a(!l),disabled:e==""}),l&&c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"name your password",value:u,onChange:f=>d(f.target.value)}),c.jsx("button",{className:ft.btn,title:"save password",onClick:t(u,e,n,r,o,i),children:"save"}),s==="cannot save without name!"&&c.jsx("span",{children:s})||s==="name already taken!"&&c.jsx("span",{children:s})]})]})}ux.propTypes;function LR(){const[e,t]=h.useState(""),[n,r]=h.useState("There is no password to remember! Please generate one"),[o,i]=h.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[s,l]=h.useState(6),[a,u]=h.useState([]),[d,f]=h.useState("");h.useEffect(()=>{const k=g("PASS");k&&u(k)},[]);const p=(k,j)=>{localStorage.setItem(k,JSON.stringify(j))},g=k=>{const j=localStorage.getItem(k);if(j!==null)return JSON.parse(j)},m=(k,j)=>k.filter(P=>P.name===j),y=(k,j,P,T,M,I)=>()=>{const H=M(P,k);if(k.length!==0){if(H.length>0){I("name already taken!");return}u(B=>{const Y=[...B,{name:k,pass:j}];return console.log(Y),T("PASS",Y),Y})}else{I("cannot save without name!");return}},w=k=>j=>{i(P=>({...P,[k]:j.target.checked}))},v={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const k=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],j=Math.floor(Math.random()*k.length);return k[j]}},x=k=>{const j=k.split("");for(let P=j.length-1;P>0;P--){const T=Math.floor(Math.random()*P+1);[j[P],j[T]]=[j[T],j[P]]}return j.join("")},b=(k,j)=>{const P=k.split("");let T="";P.map(M=>{j[M]?T+=` ${j[M]}`:T+=` ${M}`}),r(T.trim())},C=(k,j,P,T,M)=>()=>{let I="";const{isCheckedLowerCha:H,isCheckedUpperCha:B,isCheckedNumber:Y,isCheckedSymbols:q}=k,Q=H+B+Y+q,L=[{lower:H},{upper:B},{number:Y},{symbolCha:q}].filter(V=>Object.values(V)[0]===!0);if(Q===0)return"";for(let V=0;V{const re=Object.keys(J)[0];I+=P[re]()});I=x(I).slice(0,j),t(I),T(I,M)},E=k=>{k.preventDefault(),e!==""&&navigator.clipboard.writeText(e)},_=k=>{f(k),setTimeout(()=>{f("")},1e3)};return c.jsxs("div",{className:ft.App,children:[c.jsxs("div",{className:ft.main_section,children:[c.jsx(sx,{handleChange:w,isChecked:o,passwordLength:s,setPasswordLength:l}),c.jsx(ax,{generatedPassword:e,handleCopyText:E,notificationMessage:d,showTextNotification:_}),c.jsxs("div",{className:ft.third_section,children:[c.jsx("label",{children:"Password remember shortcut: "}),c.jsx("p",{children:n})]}),c.jsx(lx,{ALPHABET_WORDS:CR,PasswordToRemember:b,handleCopyText:E,isChecked:o,notificationMessage:d,passwordGenerate:C,passwordLength:s,randomPassword:v,showTextNotification:_}),c.jsx(ux,{checkPasswordNameExit:m,generatedPassword:e,handleSavePasswordAndName:y,notificationMessage:d,saveNameAndPass:a,setLocalStorage:p,showTextNotification:_})]}),c.jsxs("div",{className:ft.sixth_section,children:[c.jsx("h2",{className:ft.second_header,children:"All your saved password"}),c.jsx(cx,{saveNameAndPass:a})]})]})}const FR="_main_3eouk_1",zR="_indicators_3eouk_6",BR="_active_3eouk_14",UR="_progressContainer_3eouk_17",HR="_progressBar_3eouk_25",hr={main:FR,indicators:zR,active:BR,progressContainer:UR,progressBar:HR},WR=()=>{const[e,t]=h.useState(""),n=/\d/,r=/[A-Z]/,o=/[a-z]/,i=/[^A-Za-z0-9]/,s=p=>p>8?"Strong":p>5?"Medium":"Weak",l=p=>{let g=0;return p.length>3&&(g=Math.min(6,Math.floor(p.length/3)),g+=+n.test(p)+ +r.test(p)+ +o.test(p)+ +i.test(p)),g},a=p=>{const g=p.target.value;t(g)},u=l(e),d=s(u),f={lc:o.test(e),uc:r.test(e),num:n.test(e),sym:i.test(e)};return[e,d,u,f,a]},VR=()=>{const[e,t,n,r,o]=WR();return c.jsxs("div",{className:hr.main,children:[c.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:e,onChange:o}),c.jsxs("div",{className:hr.indicators,children:[c.jsx("span",{className:r.lc?hr.active:"",children:"Lowercase"}),c.jsx("span",{className:r.uc?hr.active:"",children:"Uppercase"}),c.jsx("span",{className:r.num?hr.active:"",children:"Number"}),c.jsx("span",{className:r.sym?hr.active:"",children:"Symbols"})]}),c.jsx("div",{className:hr.progressContainer,children:c.jsx("div",{className:hr.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),c.jsxs("p",{children:["Password has ",c.jsx("strong",{children:e.length})," chars"]}),c.jsxs("p",{children:["Your password is ",c.jsx("strong",{children:t})]})]})},GR="_App_omdzp_1",KR="_controls_omdzp_26",qR="_slidecontainer_omdzp_56",ia={App:GR,"bg-progress":"_bg-progress_omdzp_9","fg-progress":"_fg-progress_omdzp_18",controls:KR,slidecontainer:qR},YR=({startProgress:e,pauseProgress:t,stopProgress:n,handleSliderChange:r,speed:o})=>c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ia.controls,children:[c.jsx("button",{onClick:e,children:"Start"}),c.jsx("button",{onClick:t,children:"Pause"}),c.jsx("button",{onClick:n,children:"Reset"})]}),c.jsxs("div",{className:ia.slidecontainer,children:[c.jsx("input",{type:"range",min:o.min,max:o.max,defaultValue:o.min,className:"slider",id:"myRange",onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"myRange",children:c.jsxs("small",{children:["Speed: ",o.value," "]})})})]})]}),QR=10*1e3,dx=1e3,Yu=QR/dx,XR=()=>{const[e,t]=h.useState(0),[n,r]=h.useState({max:10,min:1,value:1,label:"speed"}),o=h.useRef(null),i=()=>{clearInterval(o.current),e>=Yu&&t(0),o.current=setInterval(()=>{t(d=>d>=Yu?(clearInterval(o),d):d+1)},dx/n.value)};h.useEffect(()=>{i()},[n.value]);const s=()=>{clearInterval(o.current)},l=()=>{s(),t(0)},a=d=>{r(f=>({...f,value:d.target.value}))},u=()=>e/Yu*100;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:ia["bg-progress"],children:c.jsx("div",{className:ia["fg-progress"],style:{transform:`translateX(${-100+u()}%)`}})}),c.jsx(YR,{startProgress:i,stopProgress:l,pauseProgress:s,speed:n,handleSliderChange:a})]})},JR=()=>c.jsx("div",{className:ia.App,children:c.jsx(XR,{})});var ZR=Object.defineProperty,fc=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,yg=(e,t,n)=>t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sa=(e,t)=>{for(var n in t||(t={}))fx.call(t,n)&&yg(e,n,t[n]);if(fc)for(var n of fc(t))px.call(t,n)&&yg(e,n,t[n]);return e},qp=(e,t)=>{var n={};for(var r in e)fx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fc)for(var r of fc(e))t.indexOf(r)<0&&px.call(e,r)&&(n[r]=e[r]);return n};/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var wo;(e=>{const t=class{constructor(a,u,d,f){if(this.version=a,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=a*4+17;let p=[];for(let m=0;m7)throw new RangeError("Invalid value");let m,y;for(m=d;;m++){const b=t.getNumDataCodewords(m,u)*8,C=l.getTotalBits(a,m);if(C<=b){y=C;break}if(m>=f)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])g&&y<=t.getNumDataCodewords(m,b)*8&&(u=b);let w=[];for(const b of a){r(b.mode.modeBits,4,w),r(b.numChars,b.mode.numCharCountBits(m),w);for(const C of b.getData())w.push(C)}i(w.length==y);const v=t.getNumDataCodewords(m,u)*8;i(w.length<=v),r(0,Math.min(4,v-w.length),w),r(0,(8-w.length%8)%8,w),i(w.length%8==0);for(let b=236;w.lengthx[C>>>3]|=b<<7-(C&7)),new t(m,u,x,p)}getModule(a,u){return 0<=a&&a>>9)*1335;const f=(u<<10|d)^21522;i(f>>>15==0);for(let p=0;p<=5;p++)this.setFunctionModule(8,p,o(f,p));this.setFunctionModule(8,7,o(f,6)),this.setFunctionModule(8,8,o(f,7)),this.setFunctionModule(7,8,o(f,8));for(let p=9;p<15;p++)this.setFunctionModule(14-p,8,o(f,p));for(let p=0;p<8;p++)this.setFunctionModule(this.size-1-p,8,o(f,p));for(let p=8;p<15;p++)this.setFunctionModule(8,this.size-15+p,o(f,p));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let d=0;d<12;d++)a=a<<1^(a>>>11)*7973;const u=this.version<<12|a;i(u>>>18==0);for(let d=0;d<18;d++){const f=o(u,d),p=this.size-11+d%3,g=Math.floor(d/3);this.setFunctionModule(p,g,f),this.setFunctionModule(g,p,f)}}drawFinderPattern(a,u){for(let d=-4;d<=4;d++)for(let f=-4;f<=4;f++){const p=Math.max(Math.abs(f),Math.abs(d)),g=a+f,m=u+d;0<=g&&g{(b!=y-p||E>=m)&&x.push(C[b])});return i(x.length==g),x}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let d=this.size-1;d>=1;d-=2){d==6&&(d=5);for(let f=0;f>>3],7-(u&7)),u++)}}i(u==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let u=0;u5&&a++):(this.finderPenaltyAddHistory(m,y),g||(a+=this.finderPenaltyCountPatterns(y)*t.PENALTY_N3),g=this.modules[p][w],m=1);a+=this.finderPenaltyTerminateAndCount(g,m,y)*t.PENALTY_N3}for(let p=0;p5&&a++):(this.finderPenaltyAddHistory(m,y),g||(a+=this.finderPenaltyCountPatterns(y)*t.PENALTY_N3),g=this.modules[w][p],m=1);a+=this.finderPenaltyTerminateAndCount(g,m,y)*t.PENALTY_N3}for(let p=0;pg+(m?1:0),u);const d=this.size*this.size,f=Math.ceil(Math.abs(u*20-d*10)/d)-1;return i(0<=f&&f<=9),a+=f*t.PENALTY_N4,i(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2;let d=[6];for(let f=this.size-7;d.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*a+128)*a+64;if(a>=2){const d=Math.floor(a/7)+2;u-=(25*d-10)*d-55,a>=7&&(u-=36)}return i(208<=u&&u<=29648),u}static getNumDataCodewords(a,u){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");let u=[];for(let f=0;f0);for(const f of a){const p=f^d.shift();d.push(0),u.forEach((g,m)=>d[m]^=t.reedSolomonMultiply(g,p))}return d}static reedSolomonMultiply(a,u){if(a>>>8||u>>>8)throw new RangeError("Byte out of range");let d=0;for(let f=7;f>=0;f--)d=d<<1^(d>>>7)*285,d^=(u>>>f&1)*a;return i(d>>>8==0),d}finderPenaltyCountPatterns(a){const u=a[1];i(u<=this.size*3);const d=u>0&&a[2]==u&&a[3]==u*3&&a[4]==u&&a[5]==u;return(d&&a[0]>=u*4&&a[6]>=u?1:0)+(d&&a[6]>=u*4&&a[0]>=u?1:0)}finderPenaltyTerminateAndCount(a,u,d){return a&&(this.finderPenaltyAddHistory(u,d),u=0),u+=this.size,this.finderPenaltyAddHistory(u,d),this.finderPenaltyCountPatterns(d)}finderPenaltyAddHistory(a,u){u[0]==0&&(a+=this.size),u.pop(),u.unshift(a)}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(a,u,d){if(u<0||u>31||a>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(a>>>f&1)}function o(a,u){return(a>>>u&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const s=class{constructor(a,u,d){if(this.mode=a,this.numChars=u,this.bitData=d,u<0)throw new RangeError("Invalid argument");this.bitData=d.slice()}static makeBytes(a){let u=[];for(const d of a)r(d,8,u);return new s(s.Mode.BYTE,a.length,u)}static makeNumeric(a){if(!s.isNumeric(a))throw new RangeError("String contains non-numeric characters");let u=[];for(let d=0;d=1<{(t=>{const n=class{constructor(o,i){this.ordinal=o,this.formatBits=i}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(wo||(wo={}));(e=>{(t=>{const n=class{constructor(o,i){this.modeBits=o,this.numBitsCharCount=i}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(wo||(wo={}));var ci=wo;/** - * @license qrcode.react - * Copyright (c) Paul O'Shannessy - * SPDX-License-Identifier: ISC - */var hx={L:ci.QrCode.Ecc.LOW,M:ci.QrCode.Ecc.MEDIUM,Q:ci.QrCode.Ecc.QUARTILE,H:ci.QrCode.Ecc.HIGH},mx=128,gx="L",vx="#FFFFFF",yx="#000000",xx=!1,Yp=4,eN=.1;function wx(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(s,l){if(!s&&i!==null){n.push(`M${i+t} ${o+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!s)return;i===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${i+t},${o+t} h${l+1-i}v1H${i+t}z`);return}s&&i===null&&(i=l)})}),n.join("")}function bx(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,i)=>i=t.x+t.w?o:!1))}function _x(e,t,n,r){if(r==null)return null;const o=n?Yp:0,i=e.length+o*2,s=Math.floor(t*eN),l=i/t,a=(r.width||s)*l,u=(r.height||s)*l,d=r.x==null?e.length/2-a/2:r.x*l,f=r.y==null?e.length/2-u/2:r.y*l;let p=null;if(r.excavate){let g=Math.floor(d),m=Math.floor(f),y=Math.ceil(a+d-g),w=Math.ceil(u+f-m);p={x:g,y:m,w:y,h:w}}return{x:d,y:f,h:u,w:a,excavation:p}}var tN=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function nN(e){const t=e,{value:n,size:r=mx,level:o=gx,bgColor:i=vx,fgColor:s=yx,includeMargin:l=xx,style:a,imageSettings:u}=t,d=qp(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=u==null?void 0:u.src,p=h.useRef(null),g=h.useRef(null),[m,y]=h.useState(!1);h.useEffect(()=>{if(p.current!=null){const x=p.current,b=x.getContext("2d");if(!b)return;let C=ci.QrCode.encodeText(n,hx[o]).getModules();const E=l?Yp:0,_=C.length+E*2,k=_x(C,r,l,u),j=g.current,P=k!=null&&j!==null&&j.complete&&j.naturalHeight!==0&&j.naturalWidth!==0;P&&k.excavation!=null&&(C=bx(C,k.excavation));const T=window.devicePixelRatio||1;x.height=x.width=r*T;const M=r/_*T;b.scale(M,M),b.fillStyle=i,b.fillRect(0,0,_,_),b.fillStyle=s,tN?b.fill(new Path2D(wx(C,E))):C.forEach(function(I,H){I.forEach(function(B,Y){B&&b.fillRect(Y+E,H+E,1,1)})}),P&&b.drawImage(j,k.x+E,k.y+E,k.w,k.h)}}),h.useEffect(()=>{y(!1)},[f]);const w=sa({height:r,width:r},a);let v=null;return f!=null&&(v=S.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{y(!0)},ref:g})),S.createElement(S.Fragment,null,S.createElement("canvas",sa({style:w,height:r,width:r,ref:p},d)),v)}function rN(e){const t=e,{value:n,size:r=mx,level:o=gx,bgColor:i=vx,fgColor:s=yx,includeMargin:l=xx,imageSettings:a}=t,u=qp(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let d=ci.QrCode.encodeText(n,hx[o]).getModules();const f=l?Yp:0,p=d.length+f*2,g=_x(d,r,l,a);let m=null;a!=null&&g!=null&&(g.excavation!=null&&(d=bx(d,g.excavation)),m=S.createElement("image",{xlinkHref:a.src,height:g.h,width:g.w,x:g.x+f,y:g.y+f,preserveAspectRatio:"none"}));const y=wx(d,f);return S.createElement("svg",sa({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),S.createElement("path",{fill:i,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),S.createElement("path",{fill:s,d:y,shapeRendering:"crispEdges"}),m)}var oN=e=>{const t=e,{renderAs:n}=t,r=qp(t,["renderAs"]);return n==="svg"?S.createElement(rN,sa({},r)):S.createElement(nN,sa({},r))};const iN="_QRCodeGenerator_a1hdg_2",sN="_qrcode_a1hdg_32",tl={QRCodeGenerator:iN,"input-field":"_input-field_a1hdg_9","generate-button":"_generate-button_a1hdg_18",qrcode:sN};function aN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),o=s=>{t(s.target.value)},i=()=>{r(e)};return c.jsxs("div",{className:tl.QRCodeGenerator,children:[c.jsx("input",{type:"text",placeholder:"Enter text",onChange:o,className:tl["input-field"]}),c.jsx("button",{onClick:i,className:tl["generate-button"],children:"Generate QR Code"}),n&&c.jsx(oN,{value:n,className:tl.qrcode,size:256})]})}function lN(){return c.jsx("div",{className:"App",children:c.jsx(aN,{})})}const cN="_stack_u1sn7_1",uN="_btn_root_u1sn7_25",dN="_stackElement_u1sn7_62",nl={stack:cN,"slide-in":"_slide-in_u1sn7_1",btn_root:uN,stackElement:dN},fN=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(""),[o,i]=h.useState(""),s=p=>{r(p.target.value)},l=()=>{if(n==""){i("Enter a value");return}if(e.length===10){i("Stack is Full");return}t([...e,n]),i(`${n} is pushed into the Stack`),r("")},a=()=>{if(!e.length){i("Stack is empty");return}t(e.slice(0,-1)),i(`${e[e.length-1]} is popped from the Stack `)},u=()=>{if(!e.length)i("Stack is empty");else{const p=e[e.length-1];i(`Last element is ${p}`)}},d=()=>{e.length===0?i("Stack is empty"):i("Stack is not empty")},f=()=>{e.length===10?i("Stack is Full"):i("Stack is not full")};return c.jsx("div",{className:nl.container,children:c.jsxs("div",{className:nl.stack,children:[c.jsx("input",{type:"text",placeholder:"Enter a value",value:n,onChange:s,required:!0}),c.jsxs("div",{className:nl.btn_root,children:[c.jsx("button",{onClick:l,children:"Push"}),c.jsx("button",{onClick:a,children:"Pop"}),c.jsx("button",{onClick:u,children:"Peek"}),c.jsx("button",{onClick:d,children:"IsEmpty"}),c.jsx("button",{onClick:f,children:"IsFull"})]}),c.jsx("hr",{}),c.jsx("h3",{children:o}),e.slice().reverse().map((p,g)=>c.jsx("div",{className:nl.stackElement,children:c.jsx("p",{children:p})},g))]})})},pN="_App_33mq4_1",hN="_star_33mq4_6",Sx={App:pN,star:hN},mN=({marked:e,starId:t})=>c.jsx("span",{"data-star-id":t,className:Sx.star,role:"button",children:e?"★":"☆"}),gN=({value:e,total:t})=>{const[n,r]=h.useState(e||0),[o,i]=h.useState(0),s=h.useMemo(()=>Array.from({length:t}),[t]),l=d=>{var f;i(((f=d.target.dataset)==null?void 0:f.starId)??0)},a=()=>{i(0)},u=d=>{var f;r(((f=d.target.dataset)==null?void 0:f.starId)??n)};return c.jsx("div",{onMouseLeave:a,onMouseOver:l,onClick:u,children:s.map((d,f)=>c.jsx(mN,{marked:(o||n)>f,starId:f+1},`star_${f+1}`))})};function vN(){return c.jsx("div",{className:Sx.App,children:c.jsx(gN,{value:2,total:5})})}const yN="_watch_g783o_1",Ln={"watch-container":"_watch-container_g783o_1",watch:yN,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},xN=()=>{let e=h.useRef(0);const t=h.useRef(Date.now()),[n,r]=h.useState(["00","00","00"]),[o,i]=h.useState(!1),s=()=>{i(!0),e.current=requestAnimationFrame(u)},l=()=>{i(!1),cancelAnimationFrame(e.current)},a=()=>{i(!1),r(["00","00","00"]),cancelAnimationFrame(e.current),t.current=Date.now()},u=()=>{const d=Date.now()-t.current,f=Math.floor(d/1e3),p=Math.floor(f/60),g=(d%1e3).toString().padStart(3,"0"),m=(f%60).toString().padStart(2,"0"),y=p.toString().padStart(2,"0");r([y,m,g]),e.current=requestAnimationFrame(u)};return h.useEffect(()=>cancelAnimationFrame(e.current),[]),c.jsx("div",{className:Ln.test,children:c.jsx("div",{className:Ln["watch-container"],children:c.jsxs("div",{className:Ln.watch,children:[c.jsx("div",{className:Ln["watch-heading"],children:"Stopwatch"}),c.jsx("div",{className:Ln["watch-timer"],children:`${n[0]}:${n[1]}:${n[2]}`}),c.jsxs("div",{className:Ln["watch-btn__container"],children:[c.jsx("button",{disabled:o,onClick:s,className:Ln["watch-btn"],children:"Start"}),c.jsx("button",{onClick:l,disabled:!o,className:Ln["watch-btn"],children:"Stop"}),c.jsx("button",{onClick:a,disabled:!o,className:Ln["watch-btn"],children:"Reset"})]})]})})})},wN="_App_1hyma_1",bN="_textarea_1hyma_6",_N="_buttonBox_1hyma_12",SN="_output_1hyma_22",rl={App:wN,textarea:bN,buttonBox:_N,output:SN};function EN(){const[e,t]=h.useState("hello world"),[n,r]=h.useState(e),o=p=>{t(p.target.value)},i=()=>{r(e.toLowerCase())},s=()=>{r(e.toUpperCase())},l=()=>{const g=e.split(" ").map((m,y)=>y===0?m.toLowerCase():m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},a=()=>{const g=e.split(" ").map(m=>m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},u=()=>{const p=e.replace(/\s+/g,"_").toLowerCase();r(p)},d=()=>{const p=e.replace(/\s+/g,"-").toLowerCase();r(p)},f=()=>{r(e.trim())};return c.jsx("main",{children:c.jsxs("div",{className:rl.App,children:[c.jsx("textarea",{rows:4,className:rl.textarea,placeholder:"Enter a sentence...",value:e,onChange:o}),c.jsxs("div",{className:rl.buttonBox,children:[c.jsx("button",{onClick:i,children:"Lower Case"}),c.jsx("button",{onClick:s,children:"Upper Case"}),c.jsx("button",{onClick:l,children:"Camel Case"}),c.jsx("button",{onClick:a,children:"Pascal Case"}),c.jsx("button",{onClick:u,children:"Snake Case"}),c.jsx("button",{onClick:d,children:"Kebab Case"}),c.jsx("button",{onClick:f,children:"Trim"})]}),c.jsxs("div",{className:rl.output,children:[c.jsx("strong",{children:"Transformed String:"}),c.jsx("p",{children:n})]})]})})}const CN="_color_1kotf_1",kN="_form_1kotf_9",jN="_containers_1kotf_17",$N="_container_1kotf_17",RN="_containerColor_1kotf_33",NN="_numberInput_1kotf_42",TN="_error_1kotf_53",mr={color:CN,form:kN,containers:jN,container:$N,containerColor:RN,numberInput:NN,error:TN},PN=9,ON=Array.from(new Array(PN),(e,t)=>t),AN=()=>{const[e,t]=h.useState([]),n=h.useRef(),[r,o]=h.useState(null),i=l=>{l.preventDefault();const a=parseInt(n.current.value);if(isNaN(a)||a>9||a<1){o("Please enter a valid number between 1 to 9");return}o(null),e.indexOf(a)===-1&&t(u=>[...u,a])},s=l=>{l.preventDefault(),t([]),o(null),n.current.value=""};return c.jsxs("div",{className:mr.color,children:[c.jsxs("form",{className:mr.form,children:[c.jsx("input",{type:"number",className:mr.numberInput,ref:n}),r&&c.jsx("p",{className:mr.error,children:r}),c.jsxs("div",{className:"buttons",children:[c.jsx("input",{type:"submit",value:"Color Me",onClick:i}),c.jsx("button",{className:mr.clearBtn,onClick:s,children:"Clear Me"})]})]}),c.jsx("div",{className:mr.containers,children:ON.map((l,a)=>c.jsx("div",{className:e.indexOf(l+1)!==-1?mr.containerColor:mr.container,children:l+1},a))})]})};function MN(){const[e,t]=h.useState(""),n=o=>[...o].filter(i=>Number.isInteger(+i)&&i!==" ").join(""),r=o=>{const i=n(o.target.value);t(i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i)};return c.jsxs("div",{className:"container text-center",children:[c.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const DN="_container_12wso_1",IN="_card_12wso_7",LN="_cardTitle_12wso_15",FN="_formGroup_12wso_19",zN="_inputGroup_12wso_23",BN="_input_12wso_23",UN="_select_12wso_33",HN="_convertButton_12wso_38",WN="_outputGroup_12wso_42",Fn={container:DN,card:IN,cardTitle:LN,formGroup:FN,inputGroup:zN,input:BN,select:UN,convertButton:HN,outputGroup:WN};function VN(){const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState("celsius"),[s,l]=h.useState("fahrenheit"),a=()=>{const u=parseFloat(e);if(isNaN(u)){r("Invalid input");return}if(o===s){r(u);return}if(o==="celsius"&&s==="fahrenheit"){let d=u*9/5+32;d%1!==0&&(d=d.toFixed(2)),r(d)}else if(o==="fahrenheit"&&s==="celsius"){let d=(u-32)*5/9;d%1!==0&&(d=d.toFixed(2)),r(d)}};return c.jsx("div",{className:Fn.container,children:c.jsxs("div",{className:Fn.card,children:[c.jsxs("div",{className:Fn.formGroup,children:[c.jsx("label",{children:"Enter Temperature"}),c.jsxs("div",{className:Fn.inputGroup,children:[c.jsx("input",{type:"number",className:`form-control ${Fn.input}`,placeholder:"Enter temperature",value:e,onChange:u=>t(u.target.value)}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:o,onChange:u=>i(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),c.jsx("button",{className:`btn btn-primary btn-block ${Fn.convertButton}`,onClick:a,children:"Convert"}),c.jsxs("div",{className:Fn.outputGroup,children:[c.jsxs("p",{children:["Converted Temperature: ",c.jsx("strong",{children:n})]}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:s,onChange:u=>l(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const Ot=3,GN=[...Array.from(new Array(Ot),(e,t)=>Array.from(new Array(Ot),(n,r)=>t*Ot+r)),...Array.from(new Array(Ot),(e,t)=>Array.from(new Array(Ot),(n,r)=>r*Ot+t)),Array.from(new Array(Ot),(e,t)=>t*Ot+t),Array.from(new Array(Ot),(e,t)=>t*Ot+Ot-t-1)],xg=Array(Ot*Ot).fill(null),KN="_container_1rajw_1",Yo={container:KN,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},qN=()=>{const[e,t]=h.useState(xg),[n,r]=h.useState(!1),[o,i]=h.useState(null),[[s,l,a],u]=h.useState([0,0,0]);h.useEffect(()=>{d()},[e]),h.useEffect(()=>{o==="X"?u([s+1,l,a]):o==="O"?u([s,l+1,a]):o===null&&e.filter(g=>g===null).length===0&&u([s,l,a+1])},[o,e]);const d=()=>{r(!n);for(const g of GN){const[m,y,w]=g;if(e[m]!==null&&e[m]===e[y]&&e[m]===e[w]){i(e[m]===1?"X":"O");return}}},f=g=>{e[g]===null&&o===null&&t(m=>{const y=[...m];return y[g]=n?1:0,y})},p=()=>{t(xg),i(null)};return c.jsx("div",{className:Yo.container,children:c.jsxs("div",{children:["Status: ",o?`Winner ${o}`:"Playing",c.jsxs("div",{className:Yo.container,children:[c.jsxs("div",{className:Yo["mx-5"],children:[c.jsx("div",{children:"X"}),c.jsxs("div",{children:[s," Wins"]})]}),c.jsxs("div",{className:Yo["mx-5"],children:[c.jsx("div",{children:"O"}),c.jsxs("div",{children:[l," Wins"]})]}),c.jsxs("div",{children:[c.jsx("div",{children:"="}),c.jsxs("div",{children:[a," Draws"]})]})]}),c.jsx("div",{className:Yo["grid-container"],children:e.map((g,m)=>c.jsx(YN,{iTh:m,value:g,onEntry:f},m))}),c.jsx("button",{onClick:p,children:"Rematch"})]})})},YN=({value:e,iTh:t,onEntry:n})=>{h.useEffect(()=>{console.log({value:e})},[]);const r=()=>{n(t)};return c.jsx("div",{className:Yo["grid-item"],onClick:r,children:c.jsx("div",{style:{opacity:e!==null?1:0,transition:"all .1s ease-in-out"},children:e!==null?e===1?"X":"O":"X"})})};var no=(e=>(e.NORMAL="normal",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(no||{}),pc=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))(pc||{}),hc=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(hc||{});const QN=()=>{const[e,t]=h.useState(hc.LEFT),[n,r]=h.useState(pc.TOP),[o,i]=h.useState(no.SUCCESS),[s,l]=h.useState("This is a toast message!"),[a,u]=h.useState(5),[d,f]=h.useState([]),p=[];return h.useEffect(()=>()=>{p.forEach(y=>clearTimeout(y))},[]),{horizontalPosition:e,verticalPosition:n,type:o,message:s,duration:a,toastMessages:d,setHorizontalPosition:t,setVerticalPosition:r,setType:i,setMessage:l,setDuration:u,showToast:()=>{const y={id:Date.now(),message:s,type:o};f(v=>[...v,y]);const w=setTimeout(()=>{f(v=>v.filter(x=>x.id!==y.id))},a*1e3);p.push(w)},removeToast:y=>{f(w=>w.filter(v=>v.id!==y))}}},XN="_main_gsrvy_20",JN="_message_gsrvy_1",ZN="_toastContainer_gsrvy_49",eT="_toast_gsrvy_49",tT="_success_gsrvy_65",nT="_error_gsrvy_70",rT="_warning_gsrvy_75",oT="_info_gsrvy_80",iT="_remove_gsrvy_103",sT="_tcLeftTop_gsrvy_108",aT="_tcLeftBottom_gsrvy_113",lT="_tcRightTop_gsrvy_118",cT="_tcRightBottom_gsrvy_123",wi={main:XN,message:JN,toastContainer:ZN,toast:eT,success:tT,error:nT,warning:rT,info:oT,remove:iT,tcLeftTop:sT,tcLeftBottom:aT,tcRightTop:lT,tcRightBottom:cT,"appear-from-left":"_appear-from-left_gsrvy_1","fade-out-left":"_fade-out-left_gsrvy_132","fade-out-to-left":"_fade-out-to-left_gsrvy_1","appear-from-right":"_appear-from-right_gsrvy_1","fade-out-right":"_fade-out-right_gsrvy_156"},uT=({id:e,message:t,type:n,removeToast:r})=>c.jsxs("div",{className:`${wi.toast} ${wi[n]}`,children:[c.jsx("span",{className:"toast-message",children:t}),c.jsx("button",{className:wi.remove,onClick:()=>r(e),children:"✕"})]}),dT=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:o,toastMessages:i,setHorizontalPosition:s,setVerticalPosition:l,setType:a,setMessage:u,setDuration:d,showToast:f,removeToast:p}=QN(),g=`tc${e}${t}`;return c.jsxs("div",{className:wi.main,children:[c.jsxs("form",{children:[c.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:m=>s(m.target.value),children:[c.jsx("option",{value:hc.LEFT,children:"Left"}),c.jsx("option",{value:hc.RIGHT,children:"Right"})]}),c.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:m=>l(m.target.value),children:[c.jsx("option",{value:pc.TOP,children:"Top"}),c.jsx("option",{value:pc.BOTTOM,children:"Bottom"})]}),c.jsxs("select",{name:"type",id:"type",value:n,onChange:m=>a(m.target.value),children:[c.jsx("option",{value:no.NORMAL,children:"Normal"}),c.jsx("option",{value:no.SUCCESS,children:"Success"}),c.jsx("option",{value:no.ERROR,children:"Error"}),c.jsx("option",{value:no.WARNING,children:"Warning"}),c.jsx("option",{value:no.INFO,children:"Info"})]}),c.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:m=>u(m.target.value)}),c.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",c.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:o,onChange:m=>d(Number(m.target.value))})]}),c.jsx("button",{type:"button",className:"btn btn-primary",onClick:f,children:"Show Toast"})]}),i.length>0&&c.jsx("div",{className:`${wi.toastContainer} ${wi[g]}`,children:i.map(m=>c.jsx(uT,{...m,removeToast:p},m.id))})]})},fT="_App_1k5ja_1",pT="_item_1k5ja_27",hT="_editBtn_1k5ja_33",mT="_deleteBtn_1k5ja_36",gT="_completed_1k5ja_40",vT="_hint_1k5ja_55",ui={App:fT,item:pT,editBtn:hT,deleteBtn:mT,completed:gT,hint:vT};function yT({items:e,handleEditClick:t,handleDeleteClick:n,handleCompleteClick:r}){return e.map(o=>c.jsxs("li",{className:ui.item,title:"Double click to mark completed",onDoubleClick:()=>r(o.id),children:[c.jsx("span",{className:o.isDone?ui.completed:"",children:o.value}),c.jsxs("div",{children:[c.jsx("button",{className:ui.editBtn,onClick:()=>t(o),children:"Edit"}),c.jsx("button",{className:ui.deleteBtn,onClick:()=>n(o.id),children:"Delete"})]})]},o.id))}const xT=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),[o,i]=h.useState(null),s=S.useRef(!0);h.useEffect(()=>{const m=localStorage.getItem("items");m&&r(JSON.parse(m))},[]),h.useEffect(()=>{s.current?s.current=!1:localStorage.setItem("items",JSON.stringify(n))},[n]);const l=m=>{r(y=>[...y,{value:m,id:new Date().getTime(),isDone:!1}])},a=m=>{r(y=>y.map(w=>w.id===o.id?{...w,value:m}:w)),i(null)},u=m=>{r(y=>y.map(w=>w.id===m?{...w,isDone:!w.isDone}:w))},d=({id:m,value:y})=>{t(y),i({id:m,value:y})},f=m=>{(o==null?void 0:o.id)===m&&(t(""),i(null)),r(y=>y.filter(w=>w.id!==m))},p=m=>{m.preventDefault(),o?a(e):l(e),t("")},g=()=>{t(""),i(null)};return c.jsxs("div",{className:ui.App,children:[c.jsxs("form",{onSubmit:p,children:[c.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:m=>t(m.target.value)}),c.jsx("button",{type:"submit",disabled:!e,children:o?"Update":"Submit"}),c.jsx("button",{type:"reset",onClick:g,disabled:!(e||o),children:"Cancel"})]}),c.jsx("div",{className:ui.hint,children:c.jsx("i",{children:"Double click on todo to toggle completion status"})}),c.jsx(yT,{items:n,handleEditClick:d,handleDeleteClick:f,handleCompleteClick:u})]})},wT="_container_10vfd_1",bT="_clockWrapper_10vfd_14",_T="_timeSection_10vfd_22",ST="_timeAdjustment_10vfd_39",ET="_timeAdjustmentButton_10vfd_45",CT="_timerDisplay_10vfd_51",kT="_buttonGroup_10vfd_69",jT="_lastMinute_10vfd_87",_n={container:wT,clockWrapper:bT,timeSection:_T,timeAdjustment:ST,timeAdjustmentButton:ET,timerDisplay:CT,buttonGroup:kT,lastMinute:jT};var Ex={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wg=S.createContext&&S.createContext(Ex),Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nw(),1e3))}function y(){clearInterval(d),r(!1)}function w(){u(C=>{const[E,_]=C;return _===0?E===0?e==="session"?(t("break"),[o.time-1,59]):(t("session"),[s.time-1,59]):[E-1,59]:[E,_-1]})}function v(){n||(t("session"),i({time:5,range:[2,25]}),l({time:25,range:[5,60]}),u([25,0]))}function x(C){return C>9?C:`0${C}`}function b(C){const{target:E,direction:_}=C.currentTarget.dataset,k=_==="up"?1:-1;function j(P,T){const{time:M,range:I}=T,H=M+k;if(H>=I[0]&&H<=I[1]){const B=E===P?H:M;return u([B,0]),{time:B,range:I}}return T}E==="break"?i(P=>j("break",P)):l(P=>j("session",P))}return c.jsx("div",{className:_n.container,children:c.jsxs("div",{className:_n.clockWrapper,children:[c.jsxs("div",{className:_n.timeSection,children:[c.jsxs("div",{className:_n.timeAdjustment,children:[c.jsx("p",{children:o.time}),c.jsxs("div",{className:_n.timeAdjustmentButton,children:[c.jsx("button",{onClick:b,"data-target":"break","data-direction":"up",children:c.jsx(_g,{})}),c.jsx("button",{onClick:b,"data-target":"break","data-direction":"down",children:c.jsx(bg,{})})]})]}),c.jsxs("div",{className:_n.timeAdjustment,children:[c.jsx("p",{children:s.time}),c.jsxs("div",{className:_n.timeAdjustmentButton,children:[c.jsx("button",{onClick:b,"data-target":"session","data-direction":"up",children:c.jsx(_g,{})}),c.jsx("button",{onClick:b,"data-target":"session","data-direction":"down",children:c.jsx(bg,{})})]})]})]}),c.jsxs("div",{className:_n.timerDisplay,children:[c.jsx("p",{children:e}),c.jsxs("p",{className:p?_n.lastMinute:"",children:[c.jsx("span",{children:x(a[0])}),":",c.jsx("span",{children:x(a[1])})]}),c.jsxs("div",{className:_n.buttonGroup,children:[n?c.jsx("button",{onClick:y,children:c.jsx(NT,{size:32})}):c.jsx("button",{onClick:m,children:c.jsx(TT,{size:32})}),c.jsx("button",{onClick:v,children:c.jsx(PT,{size:32})})]})]})]})})}const AT="_container_1twmk_2",MT="_controls_1twmk_23",DT="_highlight_1twmk_44",IT="_highlighted_1twmk_61",Sg={container:AT,controls:MT,"char-limit":"_char-limit_1twmk_1",highlight:DT,"highlight-button":"_highlight-button_1twmk_54",highlighted:IT},LT=({text:e,wordCount:t,charCount:n,paraCount:r})=>{localStorage.setItem("text",e),localStorage.setItem("words",t),localStorage.setItem("chars",n),localStorage.setItem("paras",r)};function FT(){const[e,t]=h.useState(""),[n,r]=h.useState(0),[o,i]=h.useState(0),[s,l]=h.useState(0),a=h.useRef(!0);h.useEffect(()=>{f()},[]),h.useEffect(()=>{if(a.current){a.current=!1;return}LT({text:e,wordCount:n,charCount:o,paraCount:s})},[e,n,o,s]);const u=()=>{const p=e.split(/\s+/).filter(y=>y!==""),g=e.length,m=e.split(` -`).filter(y=>y.trim()!=="").length;r(p.length),i(g),l(m)},d=()=>{t(""),r(0),i(0),l(0)},f=()=>{t(localStorage.getItem("text")||""),r(localStorage.getItem("words")||0),i(localStorage.getItem("chars")||0),l(localStorage.getItem("paras")||0)};return c.jsxs("div",{className:Sg.container,children:[c.jsx("textarea",{id:"text-input",placeholder:"Enter your text here...",value:e,onChange:p=>t(p.target.value)}),c.jsxs("div",{className:Sg.controls,children:[c.jsxs("div",{id:"word-count",children:["Words: ",n]}),c.jsxs("div",{id:"char-count",children:["Chars: ",o]}),c.jsxs("div",{id:"para-count",children:["Paras: ",s]}),c.jsx("button",{id:"count-button",onClick:u,children:"Count"}),c.jsx("button",{id:"clear-button",onClick:d,children:"Clear"})]})]})}const zT="_sport_1g70d_1",BT="_container_1g70d_7",UT="_header_1g70d_15",HT="_question_1g70d_20",WT="_answers_1g70d_26",VT="_button_1g70d_33",GT="_buttonStartOver_1g70d_48",gr={sport:zT,container:BT,header:UT,question:HT,answers:WT,button:VT,buttonStartOver:GT},fs=["Do you enjoy team sports?","Do you like running or endurance activities?","Are you interested in individual sports?","Do you prefer indoor or outdoor sports?","Are you a fan of water sports?","Do you like racket sports?"],KT=()=>{const[e,t]=h.useState(0),[n,r]=h.useState(Array(fs.length).fill(null)),o=s=>{const l=[...n];if(l[e]=s,es[0]==="Yes"&&s[1]==="Yes"?"Soccer":s[2]==="Yes"&&s[3]==="Indoor"?"Table Tennis":s[4]==="Yes"?"Swimming":s[5]==="Yes"?"Tennis":"Running";return c.jsx("div",{className:gr.sport,children:c.jsxs("div",{className:gr.container,children:[c.jsx("h1",{className:gr.header,children:"Discover Your Natural Sport"}),c.jsx("div",{className:gr.question,children:eo("Yes"),children:"Yes"}),c.jsx("button",{className:gr.button,onClick:()=>o("No"),children:"No"})]}):c.jsx("button",{onClick:()=>t(0),className:gr.buttonStartOver,children:"Start Over"})})]})})},qT="_dialog_b8qgm_1",YT="_backdrop_b8qgm_9",QT="_form_b8qgm_41",vf={dialog:qT,backdrop:YT,"dialog-content":"_dialog-content_b8qgm_37",form:QT},XT=({data:e,onClose:t,isModalOpen:n,hasCloseIcon:r=!0,closeOnOutsideClick:o=!0,closeOnEscape:i=!0,hasBackdrop:s=!0})=>{const l=h.useRef(null);return h.useEffect(()=>{var a,u;n?(a=l.current)==null||a.showModal():(u=l.current)==null||u.close()},[n]),c.jsx(c.Fragment,{children:Co.createPortal(c.jsx("dialog",{className:`${vf.dialog} ${s?vf.backdrop:""}`,onClick:a=>{o&&a.currentTarget===a.target&&t()},ref:l,onClose:t,onKeyDown:a=>{!i&&a.key==="Escape"&&a.preventDefault()},children:c.jsxs("section",{children:[c.jsxs("header",{children:[c.jsx("h2",{children:e.title}),r&&c.jsx("button",{onClick:t,children:"✕"})]}),c.jsx("div",{className:"body",children:e.content}),c.jsx("footer",{children:c.jsx("button",{autoFocus:!0,onClick:()=>{var a;(a=l.current)==null||a.close()},children:"Close"})})]})}),document.body)})},JT={title:"Modal Heading",content:c.jsxs("div",{style:{padding:"1rem 0"},children:["This is modal content. You can put any content here. This has a groovy backdrop!",c.jsx("br",{}),"You can also close this modal by clicking outside of it or pressing the escape key"]})},ZT=()=>{const[e,t]=h.useState(!1),[n,r]=h.useState(!0),[o,i]=h.useState(!0),[s,l]=h.useState(!0),[a,u]=h.useState(!0);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:vf.form,children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"closeOnOutsideClick",children:"Close dialog on outside click"}),c.jsx("input",{type:"checkbox",id:"closeOnOutsideClick",checked:n,onChange:()=>r(!n)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"closeOnEscape",children:"Close dialog on escape"}),c.jsx("input",{type:"checkbox",id:"closeOnEscape",checked:o,onChange:()=>i(!o)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"hasCloseButton",children:"Show close icon"}),c.jsx("input",{type:"checkbox",id:"hasCloseButton",checked:s,onChange:()=>l(!s)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"hasBackdrop",children:"Show backdrop"}),c.jsx("input",{type:"checkbox",id:"hasBackdrop",checked:a,onChange:()=>u(!a)})]}),c.jsx("button",{onClick:()=>t(!0),children:"Open Modal"})]}),c.jsx(XT,{data:JT,isModalOpen:e,onClose:()=>t(!1),hasCloseIcon:s,closeOnEscape:o,closeOnOutsideClick:n,hasBackdrop:a})]})},eP="_main_5yt35_2",tP="_container_5yt35_10",nP="_iconContainer_5yt35_33",rP="_icon_5yt35_33",oP="_inputField_5yt35_54",iP="_toast_5yt35_68",sP="_loader_5yt35_83",aP="_spin_5yt35_1",lP="_loaderContainer_5yt35_92",cP="_topSection_5yt35_97",uP="_select_5yt35_103",dP="_copyText_5yt35_112",fP="_hidden_5yt35_119",Ht={main:eP,container:tP,iconContainer:nP,icon:rP,inputField:oP,toast:iP,loader:sP,spin:aP,loaderContainer:lP,topSection:cP,select:uP,copyText:dP,hidden:fP},Qu="eb3aa13df1b14cc7bc614fc2d7f894f41b09d68a",pP=()=>{const[e,t]=h.useState([]),[n,r]=h.useState([]),[o,i]=h.useState(""),[s,l]=h.useState(""),[a,u]=h.useState([]);h.useEffect(()=>{d(),f(),window.scrollTo(0,0)},[]);const d=()=>{Ce.get(`https://emoji-api.com/emojis?access_key=${Qu}`).then(w=>{t(w.data),r(w.data)})},f=()=>{Ce.get(`https://emoji-api.com/categories?access_key=${Qu}`).then(w=>{u(w.data)})},p=w=>{const[v,...x]=w.split(" ");return x.join(" ")},g=w=>{let v=w.target.value;i(v);let x=e.filter(b=>b.unicodeName.toLowerCase().includes(v.trim().toLowerCase()));r(x)},m=w=>{i(""),r([]),t([]),w.target.value=="all"?d():Ce.get(`https://emoji-api.com/categories/${w.target.value}?access_key=${Qu}`).then(v=>{t(v.data),r(v.data)})},y=w=>{let v=document.createRange();v.selectNode(document.getElementById(w)),window.getSelection().removeAllRanges(),window.getSelection().addRange(v),document.execCommand("copy"),window.getSelection().removeAllRanges(),l("Copied Successfully!"),setTimeout(()=>{l("")},1500)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Ht.topSection,children:[c.jsx("div",{children:c.jsxs("select",{className:Ht.select,onChange:m,children:[c.jsx("option",{children:"all"}),a.map(w=>c.jsx("option",{value:w.slug,children:w.slug.replace("-"," ")},w.slug))]})}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Search",onChange:g,value:o,className:Ht.inputField})}),c.jsx("div",{className:`${Ht.copyText} ${n==null||(n==null?void 0:n.length)===0?Ht.hidden:""}`,children:"Click on an Emoji to Copy"})]}),c.jsxs("div",{className:Ht.container,children:[(n==null?void 0:n.length)==0&&o.trim()==""&&c.jsx("div",{className:Ht.loaderContainer,children:c.jsx("div",{className:Ht.loader})}),n==null?void 0:n.map((w,v)=>c.jsx("span",{className:Ht.iconContainer,onClick:()=>y(w.unicodeName+"_"+v),children:c.jsx("span",{className:Ht.icon,title:p(w.unicodeName),id:w.unicodeName+"_"+v,children:w.character})},v))]}),s&&c.jsx("div",{className:Ht.toast,children:s})]})};function hP(){return c.jsx("div",{className:Ht.main,children:c.jsx(pP,{})})}const mP=[{name:"SQL",year:1970,creator:"Donald D. Chamberlin, Raymond F. Boyce",usecase:"Database management"},{name:"C",year:1972,creator:"Dennis Ritchie",usecase:"System programming, embedded systems"},{name:"C++",year:1983,creator:"Bjarne Stroustrup",usecase:"Game development, system software"},{name:"Perl",year:1987,creator:"Larry Wall",usecase:"Scripting, web development, automation"},{name:"HTML",year:1991,creator:"Tim Berners-Lee",usecase:"Web content structure"},{name:"Python",year:1991,creator:"Guido van Rossum",usecase:"Web development, data analysis, AI"},{name:"Java",year:1995,creator:"James Gosling",usecase:"Enterprise software, Android apps"},{name:"JavaScript",year:1995,creator:"Brendan Eich",usecase:"Web development, browser scripting"},{name:"PHP",year:1995,creator:"Rasmus Lerdorf",usecase:"Web development, server-side scripting"},{name:"CSS",year:1996,creator:"Håkon Wium Lie, Bert Bos",usecase:"Web page styling"},{name:"C#",year:2e3,creator:"Microsoft",usecase:"Windows apps, game development"},{name:"Scala",year:2003,creator:"Martin Odersky",usecase:"Web applications, data analysis"},{name:"Golang",year:2009,creator:"Robert Griesemer, Rob Pike, Ken Thompson",usecase:"Cloud computing, microservices"},{name:"Rust",year:2010,creator:"Graydon Hoare",usecase:"Systems programming, safety"},{name:"Kotlin",year:2011,creator:"JetBrains",usecase:"Android app development, server-side"},{name:"Swift",year:2014,creator:"Apple Inc.",usecase:"iOS, macOS app development"}],gP="_container_5ie15_1",vP="_languageList_5ie15_6",yP="_languageCard_5ie15_12",xP="_languageName_5ie15_28",wP="_info_5ie15_34",bP="_heading_5ie15_40",ro={container:gP,languageList:vP,languageCard:yP,languageName:xP,info:wP,heading:bP};function _P({name:e,year:t,creator:n,usecase:r}){return c.jsxs("div",{className:ro.languageCard,children:[c.jsx("h2",{className:ro.languageName,children:e}),c.jsxs("p",{className:ro.info,children:["Year of Start: ",t]}),c.jsxs("p",{className:ro.info,children:["Creator: ",n]}),c.jsxs("p",{className:ro.info,children:["Use Case: ",r]})]})}function SP(){return c.jsx("div",{className:ro.container,children:c.jsx("div",{className:ro.languageList,children:mP.map((e,t)=>c.jsx(_P,{...e},t))})})}const EP="_otpFields_1d1qn_1",CP="_otpinput_1d1qn_15",Eg={otpFields:EP,otpinput:CP},kP=()=>{let[e,t]=h.useState(Array(6).fill("")),n=h.useRef([]);const r=(s,l)=>{const u=s.target.value.replace(/\D/g,"").slice(0,1);let d=[...e];d[l]=u,l{if(s.key==="Backspace"){s.preventDefault();let a=[...e];a[l]="",t(a),l>0&&n.current[l-1].focus()}else s.key==="ArrowRight"&&l0&&n.current[l-1].focus()},i=s=>{s.preventDefault();const l=s.clipboardData.getData("text");if(/^[0-9]*$/.test(l)){const a=[...e];for(let u=0;uc.jsx("input",{onKeyDown:a=>o(a,l),onPaste:i,ref:a=>n.current[l]=a,onChange:a=>r(a,l),value:e[l],type:"text"},l))})})},Uo={red:{id:1,duration:5e3,next:"green"},yellow:{id:2,duration:2e3,next:"red"},green:{id:3,duration:3e3,next:"yellow"}},jP="_AppContainer_wtrmq_1",$P="_trafficWrapper_wtrmq_9",RP="_light_wtrmq_21",NP="_countdownTime_wtrmq_28",Ho={AppContainer:jP,trafficWrapper:$P,light:RP,countdownTime:NP},TP=()=>{const[e,t]=h.useState("red"),[n,r]=h.useState(Uo[e].duration);return h.useEffect(()=>{let o;return n<=0?(clearInterval(o),t(Uo[e].next),r(Number(Uo[Uo[e].next].duration))):o=setInterval(()=>{r(i=>i-1e3)},1e3),()=>clearInterval(o)},[n,e]),c.jsxs("div",{className:Ho.AppContainer,children:[c.jsx("div",{className:Ho.trafficWrapper,children:Object.keys(Uo).map(o=>c.jsx("div",{className:Ho.light,style:{background:e===o?o:""}},Uo[o].id))}),c.jsx("div",{className:Ho.countdownContainer,children:c.jsxs("span",{className:`${Ho.countdownTime} ${Ho.active}`,children:[Math.floor(n/1e3)," Seconds"]})})]})},Ms=e=>e>9?e:`0${e}`,PP="_button_g66ua_1",OP="_quiz_container_footer_g66ua_1",AP="_app_g66ua_22",MP="_quiz_container_g66ua_1",DP="_quiz_container_header_g66ua_42",IP="_question_g66ua_53",LP="_question_choices_g66ua_65",FP="_question_choices_choice_g66ua_73",zP="_selected_g66ua_83",BP="_quiz_result_g66ua_87",Un={button:PP,quiz_container_footer:OP,app:AP,quiz_container:MP,quiz_container_header:DP,question:IP,question_choices:LP,question_choices_choice:FP,selected:zP,quiz_result:BP},UP=e=>{const{totalQuestions:t,result:n}=e;return c.jsx("div",{className:Un.quiz_result,children:c.jsxs("div",{children:[c.jsx("h3",{children:"Result"}),c.jsx("table",{children:c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{children:"Total Questions"}),c.jsx("td",{children:Ms(t)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Total Score"}),c.jsx("td",{children:Ms(n.score)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Correct Answers"}),c.jsx("td",{children:Ms(n.correctAnswers)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Wrong Answers"}),c.jsx("td",{children:n.wrongAnswers})]})]})})]})})},HP={topic:"React",level:"Intermediate",totalQuestions:10,perQuestionScore:5,questions:[{question:"What is the purpose of state in React?",choices:["To store information that may change over time","To declare static values for components","To define global variables","None of the above"],type:"MCQs",correctAnswer:"To store information that may change over time"},{question:"What are hooks in React?",choices:["Functions that let you use state and other React features without writing a class","Functional components","Connections between components","None of the above"],type:"MCQs",correctAnswer:"Functions that let you use state and other React features without writing a class"},{question:"What is the purpose of key prop in React lists?",choices:["To uniquely identify a child component","To style elements within a list","To define the position of a component","None of the above"],type:"MCQs",correctAnswer:"To uniquely identify a child component"},{question:"What is the role of componentDidMount() in React?",choices:["It runs after the component output has been rendered to the DOM","It handles updates before rendering","It initializes state variables","None of the above"],type:"MCQs",correctAnswer:"It runs after the component output has been rendered to the DOM"},{question:"How can you pass data between components in React?",choices:["Using props","Directly modifying state","Using only functional components","None of the above"],type:"MCQs",correctAnswer:"Using props"},{question:"What is the purpose of React.Fragment?",choices:["To create an independent component","To wrap multiple elements without adding an extra node to the DOM","To handle routing in React applications","None of the above"],type:"MCQs",correctAnswer:"To wrap multiple elements without adding an extra node to the DOM"},{question:"What is the significance of shouldComponentUpdate() in React?",choices:["It determines if a component should re-render","It defines the initial state of a component","It helps to update the DOM directly","None of the above"],type:"MCQs",correctAnswer:"It determines if a component should re-render"},{question:"What is the main purpose of Redux in React applications?",choices:["To manage the state of the entire application","To define the structure of components","To handle routing between components","None of the above"],type:"MCQs",correctAnswer:"To manage the state of the entire application"},{question:"How does React handle events?",choices:["Using event handlers like onClick","By modifying the DOM directly","Through asynchronous processes only","None of the above"],type:"MCQs",correctAnswer:"Using event handlers like onClick"},{question:"What are the benefits of using PropTypes in React?",choices:["To enforce the type of props passed to components","To declare global variables","To initialize state variables","None of the above"],type:"MCQs",correctAnswer:"To enforce the type of props passed to components"}]},WP=()=>{const[e,t]=h.useState(0),[n,r]=h.useState(!1),[o,i]=h.useState(!1),[s,l]=h.useState(null),[a,u]=h.useState({score:0,correctAnswers:0,wrongAnswers:0}),{questions:d,topic:f}=HP,{question:p,choices:g,correctAnswer:m}=d[e],y=()=>{l(null),u(v=>n?{...v,score:v.score+5,correctAnswers:v.correctAnswers+1}:{...v,wrongAnswers:v.wrongAnswers+1}),e!==d.length-1?t(v=>v+1):(t(0),i(!0))},w=(v,x)=>{l(x),r(v===m)};return c.jsx("section",{className:Un.quiz_container,children:o?c.jsx(UP,{totalQuestions:d.length,result:a}):c.jsxs("div",{children:[c.jsxs("div",{className:Un.quiz_container_header,children:[c.jsxs("p",{children:["TOPIC: ",f]}),c.jsxs("div",{children:[c.jsx("span",{children:Ms(e+1)}),c.jsxs("span",{children:["/",Ms(d.length)]})]})]}),c.jsxs("div",{className:Un.question,children:[c.jsx("h2",{children:p}),c.jsx("ul",{className:Un.question_choices,children:g.map((v,x)=>c.jsx("li",{onClick:()=>w(v,x),className:`${Un.question_choices_choice} - ${s===x?Un.selected:""}`,children:v},v))})]}),c.jsx("div",{className:Un.quiz_container_footer,children:c.jsx("button",{onClick:y,disabled:s===null,children:e===d.length-1?"Finish":"Next"})})]})})},VP=()=>c.jsx("main",{className:Un.app,children:c.jsx(WP,{})}),GP="_app_2nnow_1",KP="_chess_2nnow_18",qP="_tile_2nnow_33",YP="_tile_color_2nnow_44",Nl={app:GP,chess:KP,tile:qP,tile_color:YP},QP=e=>{const t=Math.floor(e/8)%2===0,n=e%2===0;return!!(t&&n||!t&&!n)},XP=()=>{const e={R:"♜",N:"♞",B:"♝",Q:"♛",K:"♚",P:"♟",r:"♖",n:"♘",b:"♗",q:"♕",k:"♔",p:"♙"," ":" "},t="RNBQKBNRPPPPPPPP pppppppprnbqkbnr";return c.jsx("section",{className:Nl.chess,children:t.split("").map((n,r)=>c.jsx("div",{className:`${Nl.tile} ${QP(r)?Nl.tile_color:""}`,children:e[n]},r))})},JP=()=>c.jsx("main",{className:Nl.app,children:c.jsx(XP,{})}),ZP="_container_1wkcr_1",e3="_calculator__body_1wkcr_7",t3="_calculator__screen_1wkcr_13",n3="_calculator__screen__previous_1wkcr_26",r3="_calculator__buttons_1wkcr_32",o3="_ac_1wkcr_1",i3="_del_1wkcr_1",s3="_total_1wkcr_1",a3="_calculator__button_1wkcr_32",l3="_calculator__operator_1wkcr_76",c3="_exponent_1wkcr_1",u3="_square_1wkcr_1",me={container:ZP,calculator__body:e3,calculator__screen:t3,calculator__screen__previous:n3,calculator__buttons:r3,ac:o3,del:i3,total:s3,calculator__button:a3,calculator__operator:l3,exponent:c3,square:u3},d3=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(""),[s,l]=h.useState(""),[a,u]=h.useState(!1);let d="",f="";const p=E=>{!o&&a===!0?(t(E),u(!1)):o||e.toString().includes(".")&&E==="."||(d=e+E,t(d)),o&&(n.includes(".")&&E==="."||(d=n+E,r(d)))},g=E=>{i(e?E:"")},m=()=>{let E=e.toString(),_=n.toString();if(o==="^2")E.includes(".")&&(f=E.split(".")[1].length*2);else if(o==="*"&&E.includes(".")&&_.includes(".")){let j=E.split(".")[1].length,T=_.split(".")[1].length;f=j+T}else if(o==="*"&&E.includes(".")&&!_.includes("."))f=E.split(".")[1].length;else if(o==="*"&&!E.includes(".")&&_.includes("."))f=_.split(".")[1].length;else if(E.includes(".")&&_.includes(".")){let j=E.split(".")[1].length,T=_.split(".")[1].length;j>=T?f=j:f=T}else E.includes(".")?f=E.split(".")[1].length:_.includes(".")&&(f=_.split(".")[1].length)},y=E=>{l(E),t(E),r(""),i(""),u(!0)},w=()=>{if(o==="/"){const E=parseFloat(e*100)/parseFloat(n*100);y(E)}else if(o==="-"){let E=(parseFloat(e)-parseFloat(n))*100;m(),E=(E/100).toFixed(f),y(E)}else if(o==="*"){let E=e*n;m(),E=E.toFixed(f),y(E)}else if(o==="+"){let E=parseFloat(e)+parseFloat(n);m(),E=E.toFixed(f),y(E)}else if(o==="^"){const E=Math.pow(e,n);y(E)}else if(o==="^2"){let E=Math.pow(e,2);m(),E=E.toFixed(f),y(E)}else if(o==="√"){const E=Math.sqrt(e);y(E)}},v=()=>{t(""),i(""),r(""),l("")},x=()=>{if(o){const E=n.slice(0,n.length-1);r(E)}else{const E=e.toString(),_=E.slice(0,E.length-1);t(_)}},b=()=>{if(n){const E=n*-1;r(E)}else if(e){const E=e*-1;t(E)}},C=()=>n&&o==="/"||o==="-"||o==="+"||o==="*"||o==="^"?`${e} ${o} ${n}`:`${e||"-"} ${o}`;return c.jsx("div",{class:me.container,children:c.jsxs("div",{className:me.calculator__body,children:[c.jsxs("div",{className:me.calculator__screen,children:[c.jsx("div",{className:me.calculator__screen__previous,children:C()}),c.jsx("div",{className:me.calculator__screen__first,children:s})]}),c.jsxs("div",{className:me.calculator__buttons,children:[c.jsx("button",{onClick:()=>v(),id:"ac",className:me.calculator__operator,children:"Clear"}),c.jsx("button",{onClick:()=>x(),id:"del",className:me.calculator__operator,children:"Del"}),c.jsx("button",{onClick:()=>b(),className:me.calculator__operator,id:"negative",children:"+-"}),c.jsxs("button",{onClick:()=>g("^2"),className:me.calculator__operator,id:"square",children:["x",c.jsx("sup",{children:"2"})]}),c.jsx("button",{onClick:()=>p("1"),className:me.calculator__button,children:"1"}),c.jsx("button",{onClick:()=>p("2"),className:me.calculator__button,children:"2"}),c.jsx("button",{onClick:()=>p("3"),className:me.calculator__button,children:"3"}),c.jsx("button",{onClick:()=>g("+"),className:me.calculator__operator,children:"+"}),c.jsx("button",{onClick:()=>p("4"),className:me.calculator__button,children:"4"}),c.jsx("button",{onClick:()=>p("5"),className:me.calculator__button,children:"5"}),c.jsx("button",{onClick:()=>p("6"),className:me.calculator__button,children:"6"}),c.jsx("button",{onClick:()=>g("/"),className:me.calculator__operator,children:"÷"}),c.jsx("button",{onClick:()=>p("7"),className:me.calculator__button,children:"7"}),c.jsx("button",{onClick:()=>p("8"),className:me.calculator__button,children:"8"}),c.jsx("button",{onClick:()=>p("9"),className:me.calculator__button,children:"9"}),c.jsx("button",{onClick:()=>g("-"),className:me.calculator__operator,children:"–"}),c.jsx("button",{onClick:()=>p("0"),className:me.calculator__button,children:"0"}),c.jsxs("button",{onClick:()=>g("^"),className:me.calculator__operator,id:"exponent",children:["x",c.jsx("sup",{children:"y"})]}),c.jsx("button",{onClick:()=>g("√"),className:me.calculator__operator,id:"radical",children:"√"}),c.jsx("button",{onClick:()=>g("*"),className:me.calculator__operator,children:"*"}),c.jsx("button",{onClick:()=>p("."),className:me.calculator__button,children:"."}),c.jsx("button",{onClick:()=>w(),id:"total",className:me.calculator__operator,children:"="})]})]})})},f3=4,Xu=1e3,p3=200,h3=25,m3="_controls_1s50h_6",g3="_tanks_1s50h_17",v3="_tank_1s50h_17",y3="_range_1s50h_64",kn={controls:m3,"text-center":"_text-center_1s50h_13",tanks:g3,"add-btn":"_add-btn_1s50h_23","empty-btn":"_empty-btn_1s50h_32",tank:v3,"tank-level":"_tank-level_1s50h_51","form-item":"_form-item_1s50h_57",range:y3};function x3({onDown:e,onUp:t,onEmpty:n,tankLevel:r,capacity:o}){return c.jsxs("div",{children:[c.jsxs("div",{className:kn.controls,children:[c.jsx("button",{onMouseDown:e,onMouseUp:t,onTouchStart:e,onTouchEnd:t,className:kn["add-btn"],children:"Add"}),c.jsx("button",{onClick:n,className:kn["empty-btn"],children:"Empty"})]}),c.jsx("div",{className:kn.tank,children:c.jsx("div",{className:kn["tank-level"],style:{height:`${100*r/o}%`}})}),c.jsxs("p",{className:kn["text-center"],children:[r," lts"]})]})}function w3({tank:e,setTanks:t,index:n}){const[r,o]=h.useState(0),i=h.useRef(0),s=h.useRef(0);s.current=e.level;function l(d){d.preventDefault(),t(f=>{const p=[...f];return p[n].isReady=!1,p}),i.current=setInterval(()=>{o(f=>{let p=f+p3;return s.current+p>=Xu&&(p=Xu-s.current),p})},1e3)}function a(){i.current&&clearInterval(i.current),o(0),t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level+=r,f[n].isReady=!0,f})}function u(){t(d=>{const f=[...d.map(p=>({...p}))];return f[n].level=0,f})}return c.jsx(x3,{onDown:l,onUp:a,onEmpty:u,tankLevel:(s.current+r).toFixed(2),capacity:Xu})}function Cg(e){return Array.from({length:e},()=>({level:0,isReady:!0}))}function b3(e){const n=e.filter(l=>l.isReady).reduce((l,a)=>l+a.level,0)/e.length,r=e.filter(l=>l.isReady&&l.levell.level-n<1e-4)||r.length===0)return null;let o=0;const i=e.map(l=>{const a={...l};if(l.isReady&&l.level>n){const u=Math.min(l.level-n,h3);a.level=l.level-u,o+=u}return a}),s=o/r.length;return i.forEach(l=>{l.isReady&&l.levelsetTimeout(t,e))}function S3({tanksCount:e,setTanksCount:t}){return c.jsx("section",{className:kn.range,children:c.jsxs("div",{className:kn["form-item"],children:[c.jsx("label",{htmlFor:"waterTanks",children:"Water Tanks: "}),c.jsx("input",{type:"range",min:"4",max:"8",value:e,onChange:n=>t(n.target.value),className:"slider",id:"waterTanks"})]})})}function E3(){const[e,t]=h.useState(f3),[n,r]=h.useState(()=>Cg(e));return h.useEffect(()=>{const o=Cg(e);r(o)},[e]),h.useEffect(()=>{let o=!1;async function i(){if(await _3(1e3),o)return;const s=b3(n);s&&r(s)}return i(),()=>{o=!0}},[n]),c.jsxs("div",{className:kn["text-center"],children:[c.jsx("p",{children:'Press and Hold "Add" to start filling the tank'}),c.jsx("main",{className:kn.tanks,children:n.map((o,i)=>c.jsx(w3,{tank:o,setTanks:r,index:i},i))}),c.jsx(S3,{tanksCount:e,setTanksCount:t})]})}const C3="_TransferListContainer_e51he_1",k3="_inputWrapper_e51he_29",aa={TransferListContainer:C3,"list-container":"_list-container_e51he_8","buttons-container":"_buttons-container_e51he_15",inputWrapper:k3,"disabled-button":"_disabled-button_e51he_33"},j3=({leftClickHandler:e,rightClickHandler:t,leftClickHandlerAll:n,rightClickHandlerAll:r,disableLeftBtn:o,disableRightBtn:i,disableLeftBtnAll:s,disableRightBtnAll:l})=>c.jsxs("div",{className:aa["buttons-container"],children:[c.jsx("button",{onClick:n,disabled:s,children:">>"}),c.jsx("button",{onClick:e,disabled:o,children:">"}),c.jsx("button",{onClick:t,disabled:i,children:"<"}),c.jsx("button",{onClick:r,disabled:l,children:"<<"})]}),$3=[{value:"USA",id:"usa"},{value:"UAE",id:"uae"},{value:"India",id:"ind"},{value:"Australia",id:"aus"},{value:"Canada",id:"can"}],R3=({id:e,value:t,selected:n,onToggle:r})=>c.jsxs("div",{className:aa.inputWrapper,children:[c.jsx("input",{type:"checkbox",id:e,value:t,checked:n,onChange:()=>r(e)}),c.jsx("label",{htmlFor:e,children:t})]}),kg=({items:e,onToggle:t})=>c.jsx("div",{className:aa["list-container"],children:c.jsx("div",{className:aa["list-items"],children:e.map(n=>c.jsx(R3,{id:n.id,value:n.value,selected:n.selected,onToggle:t},n.id))})});function N3(){return $3.map(e=>({...e,selected:!1,direction:"left"}))}const T3=()=>{const[e,t]=h.useState(N3),n=e.filter(u=>u.direction==="left"),r=e.filter(u=>u.direction==="right"),o=n.filter(u=>u.selected),i=r.filter(u=>u.selected),s=u=>{const d=e.map(f=>f.id===u?{...f,selected:!f.selected}:f);t(d)},l=(u,d)=>{const f=e.map(p=>p.selected&&p.direction===u?{...p,selected:!1,direction:d}:p);t(f)},a=u=>{const d=e.map(f=>({...f,direction:u}));t(d)};return c.jsxs("div",{className:aa.TransferListContainer,children:[c.jsx(kg,{items:n,onToggle:s}),c.jsx(j3,{leftClickHandler:()=>l("left","right"),rightClickHandler:()=>l("right","left"),leftClickHandlerAll:()=>a("right"),rightClickHandlerAll:()=>a("left"),disableLeftBtn:o.length===0,disableRightBtn:i.length===0,disableLeftBtnAll:n.length===0,disableRightBtnAll:r.length===0}),c.jsx(kg,{items:r,onToggle:s})]})},P3="_AppContainer_1tcc6_1",O3="_container_1tcc6_9",A3="_timeline_1tcc6_17",M3="_date_1tcc6_38",D3="_timeline_content_1tcc6_42",ps={AppContainer:P3,container:O3,timeline:A3,date:M3,timeline_content:D3},I3=[{date:"August 30, 2017",title:"Published First React Tutorial",content:"My first React tutorial was about building a simple component and understanding the basics of React."},{date:"June 3, 2020",title:"First React Live Stream",content:"In my first-ever React live stream, I shared tips and tricks while building a React application."},{date:"June 28, 2021",title:"Introduction to React Hooks",content:"Published a video exploring the power of React Hooks. Check out the code in the description."},{date:"September 15, 2021",title:"React Context API Deep Dive",content:"Delved into the React Context API and how it simplifies state management in complex React applications."},{date:"February 8, 2022",title:"React Testing Strategies",content:"Shared insights on effective testing strategies for React applications using popular testing libraries."},{date:"June 28, 2022",title:"Advanced React Patterns",content:"Explored advanced React patterns and best practices for building scalable and maintainable React applications."}],L3=()=>c.jsx(c.Fragment,{children:c.jsx("div",{className:ps.AppContainer,children:c.jsx("div",{className:ps.container,children:c.jsx("div",{className:ps.timeline,children:c.jsx("ul",{children:I3.map((e,t)=>c.jsx("li",{children:c.jsxs("div",{className:ps.timeline_content,children:[c.jsx("h3",{className:ps.date,children:e.date}),c.jsx("h1",{children:e.title}),c.jsx("p",{children:e.content})]})},t))})})})})}),F3=[["India","New Delhi"],["Indonesia","Jakarta"],["Iran","Tehran"],["Iraq","Baghdad"],["Ireland","Dublin"],["Israel","Jerusalem"],["Italy","Rome"],["Jamaica","Kingston"],["Japan","Tokyo"],["Jordan","Amman"],["Kazakhstan","Nur-Sultan"],["Kenya","Nairobi"],["Kiribati","South Tarawa"],["Kuwait","Kuwait City"],["Kyrgyzstan","Bishkek"],["Laos","Vientiane"],["Latvia","Riga"],["Lebanon","Beirut"],["Lesotho","Maseru"],["Liberia","Monrovia"],["Libya","Tripoli"],["Liechtenstein","Vaduz"],["Lithuania","Vilnius"],["Madagascar","Antananarivo"],["Malawi","Lilongwe"],["Malaysia","Kuala Lumpur"],["Maldives","Malé"],["Mali","Bamako"],["Malta","Valletta"],["Mauritania","Nouakchott"],["Mauritius","Port Louis"],["Mexico","Mexico City"]],z3=[["Basil","Thyme","Rosemary"],["Latte","Cappuccino","Espresso"],["Octopus","Dolphin","Seahorse"],["Beach","Mountain","Forest"],["Paintbrush","Canvas","Palette"],["Rock","Pop","Jazz"],["Running","Yoga","Dancing"],["Volcano","Canyon","Ocean"],["Phone","Email","Letter"],["Flood","Earthquake","Hurricane"],["Sight","Smell","Taste"],["Past","Present","Future"],["Literature","History","Biology"],["Spring","Summer","Autumn"],["Basketball","Jersey","Whistle"],["Textbook","Notebook","Pencil"],["Spoon","Fork","Knife"],["Shirt","Pants","Shoes"],["Lion","Elephant","Giraffe"],["Sunflower","Rose","Daisy"],["Cucumber","Tomato","Carrot"],["Tea","Coffee","Juice"],["Milk","Yogurt","Cheese"],["Pikachu","Charmander","Squirtle"],["Batman","Superman","Spiderman"],["Elsa","Anna","Olaf"]],B3=[["Cinnamon","Nutmeg","Ginger","Allspice"],["Guitar","Drums","Piano","Violin"],["Mercury","Venus","Earth","Mars"],["Monday","Tuesday","Friday","Sunday"],["Black","White","Grey","Navy Blue"],["Sun","Rain","Wind","Snow"],["Hand","Foot","Ear","Eye"],["Apple","Orange","Banana","Grape"],["Math","English","Science","History"],["Car","Bus","Train","Airplane"],["Phone","Laptop","Headset","Charger"],["Pen","Pencil","Eraser","Notebook"],["Scarf","Hat","Gloves","Boots"],["Ruler","Scissors","Calculator","Glue"]],U3=new Map([[2,F3],[3,z3],[4,B3]]);function H3(e,t){const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{o.push(new Set(s))});const i=W3(r.flat());return[o,i]}function G3(e,t){const n=e.find(r=>r.has(t[0]));return n?t.every(r=>n.has(r)):!1}const K3="_grid_18i4i_1",q3="_itemBtn_18i4i_9",Y3="_reset_18i4i_20",Q3="_center_18i4i_26",X3="_highlight_18i4i_30",J3="_success_18i4i_34",Z3="_failure_18i4i_38",qn={grid:K3,itemBtn:q3,reset:Y3,center:Q3,highlight:X3,success:J3,failure:Z3},eO=h.forwardRef(function({items:t,cols:n,onSelection:r,status:o},i){const[s,l]=h.useState([]),a=d=>{if(o)return;let f=[];s.includes(d)?f=s.filter(p=>p!==d):f=[...s,d],l(f),r(f)};function u(){l([])}return h.useImperativeHandle(i,()=>({clearSelection:u})),c.jsx("section",{"data-status":o,className:qn.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:t.map(d=>{const f=s.includes(d),p=`${qn.itemBtn} ${f?qn.highlight:""} ${f&&o?qn[o]:""}`;return c.jsx("button",{className:p,onClick:()=>a(d),children:d},d)})})});var Tl=(e=>(e.Success="success",e.Failure="failure",e))(Tl||{});function tO({itemGroups:e,allItems:t,columns:n=2,groupSize:r}){const[o,i]=h.useState([]),[s,l]=h.useState(0),[a,u]=h.useState(null),d=h.useRef(null);h.useEffect(()=>{var g;i(t),l(0),u(null),(g=d.current)==null||g.clearSelection()},[t]);function f(g){if(g.length===r){l(s+1);const m=G3(e,g)?Tl.Success:Tl.Failure;u(m);const y=setTimeout(()=>p(g,m),1e3);return()=>clearTimeout(y)}}function p(g,m){var y;m===Tl.Success&&i(o.filter(w=>!g.includes(w))),u(null),(y=d.current)==null||y.clearSelection()}return c.jsxs(c.Fragment,{children:[o.length?c.jsx(eO,{items:o,cols:n,onSelection:f,status:a,ref:d}):c.jsx("p",{className:qn.center,children:"Well done. Reset to play again!"}),c.jsxs("p",{className:qn.center,children:["Attempts: ",c.jsx("strong",{children:s})]})]})}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>nO(n,t))}function zi(...e){return h.useCallback(kx(...e),e)}const jx=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(rO);if(i){const s=i.props.children,l=o.map(a=>a===i?h.Children.count(s)>1?h.Children.only(null):h.isValidElement(s)?s.props.children:null:a);return h.createElement(yf,Ge({},r,{ref:t}),h.isValidElement(s)?h.cloneElement(s,void 0,l):null)}return h.createElement(yf,Ge({},r,{ref:t}),n)});jx.displayName="Slot";const yf=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...oO(r,n.props),ref:t?kx(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});yf.displayName="SlotClone";const $x=({children:e})=>h.createElement(h.Fragment,null,e);function rO(e){return h.isValidElement(e)&&e.type===$x}function oO(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const iO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ko=iO.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?jx:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Ge({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sO(e,t){e&&Co.flushSync(()=>e.dispatchEvent(t))}const aO=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Dp.createPortal(h.createElement(ko.div,Ge({},o,{ref:t})),r):null}),lO=aO;var jg=Object.prototype.hasOwnProperty;function la(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&la(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(jg.call(e,n)&&++r&&!jg.call(t,n)||!(n in t)||!la(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ea(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[l]=arguments[l+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Pn=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Pn.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new tu(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};Pn.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new cO(n,t.simple,t.async)),this};Pn.prototype._clone=function(){return new Pn(this.chain.slice(),this.nextRuleModifiers.slice())};Pn.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Pn.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new Qp(r,t,o))}}),n};Pn.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new Qp(n,t,r)}})};Pn.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){Tx(t,n.chain.slice(),r,o)})};function Tx(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){Tx(e,t,n,r)},function(i){r(new Qp(o,e,i))})}else n(e)}var $g=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function uO(e,t){return t===void 0&&(t=!1),{simple:function(n){return $g(n,t)||e.check(n)===void 0},async:function(n){return $g(n,t)||e.testAsync(n)}}}function $t(){return typeof Proxy<"u"?Px(new Pn):xf(new Pn)}var ca={};$t.extend=function(e){Object.assign(ca,e)};$t.clearCustomRules=function(){ca={}};function Px(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Px(e._clone());if(r in mc)return o._applyModifier(mc[r],r);if(r in ca)return o._applyRule(ca[r],r);if(r in wf)return o._applyRule(wf[r],r)}})}function xf(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var l=[],a=arguments.length;a--;)l[a]=arguments[a];var u=xf(i._clone()),d=u._applyRule(o[s],s).apply(void 0,l);return d}}),i},n=t(wf,e),r=t(ca,n);return Object.keys(mc).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=xf(r._clone());return i._applyModifier(mc[o],o)}})}),r}var mc={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return ol(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(ol(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&ol(t).every(e)}},async:function(e){return function(t){return Promise.all(ol(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Rg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Rg(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Rg(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function ol(e){return typeof e=="string"?e.split(""):e}var wf={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||dO;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Wo("string")},boolean:function(){return Wo("boolean")},undefined:function(){return Wo("undefined")},null:function(){return Wo("null")},array:function(){return Wo("array")},object:function(){return Wo("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return fO(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:uO};function Wo(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function dO(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function fO(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var ge="colors",vt="sizes",K="space",pO={gap:K,gridGap:K,columnGap:K,gridColumnGap:K,rowGap:K,gridRowGap:K,inset:K,insetBlock:K,insetBlockEnd:K,insetBlockStart:K,insetInline:K,insetInlineEnd:K,insetInlineStart:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockEnd:K,marginBlockStart:K,marginInline:K,marginInlineEnd:K,marginInlineStart:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockEnd:K,paddingBlockStart:K,paddingInline:K,paddingInlineEnd:K,paddingInlineStart:K,top:K,right:K,bottom:K,left:K,scrollMargin:K,scrollMarginTop:K,scrollMarginRight:K,scrollMarginBottom:K,scrollMarginLeft:K,scrollMarginX:K,scrollMarginY:K,scrollMarginBlock:K,scrollMarginBlockEnd:K,scrollMarginBlockStart:K,scrollMarginInline:K,scrollMarginInlineEnd:K,scrollMarginInlineStart:K,scrollPadding:K,scrollPaddingTop:K,scrollPaddingRight:K,scrollPaddingBottom:K,scrollPaddingLeft:K,scrollPaddingX:K,scrollPaddingY:K,scrollPaddingBlock:K,scrollPaddingBlockEnd:K,scrollPaddingBlockStart:K,scrollPaddingInline:K,scrollPaddingInlineEnd:K,scrollPaddingInlineStart:K,fontSize:"fontSizes",background:ge,backgroundColor:ge,backgroundImage:ge,borderImage:ge,border:ge,borderBlock:ge,borderBlockEnd:ge,borderBlockStart:ge,borderBottom:ge,borderBottomColor:ge,borderColor:ge,borderInline:ge,borderInlineEnd:ge,borderInlineStart:ge,borderLeft:ge,borderLeftColor:ge,borderRight:ge,borderRightColor:ge,borderTop:ge,borderTopColor:ge,caretColor:ge,color:ge,columnRuleColor:ge,fill:ge,outline:ge,outlineColor:ge,stroke:ge,textDecorationColor:ge,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:vt,minBlockSize:vt,maxBlockSize:vt,inlineSize:vt,minInlineSize:vt,maxInlineSize:vt,width:vt,minWidth:vt,maxWidth:vt,height:vt,minHeight:vt,maxHeight:vt,flexBasis:vt,gridTemplateColumns:vt,gridTemplateRows:vt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},hO=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Bi=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,hO))(t);return o in e?e[o]:e[o]=n(t,...r)}},po=Symbol.for("sxs.internal"),Xp=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ng=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:mO}=Object.prototype,bf=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),gO=/\s+(?![^()]*\))/,Vo=e=>t=>e(...typeof t=="string"?String(t).split(gO):[t]),Tg={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Vo((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Vo((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Vo((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Vo((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Vo((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Vo((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ju=/([\d.]+)([^]*)/,vO=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,yO=(e,t)=>e in xO&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${bf(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${bf(e)}:${r}fit-content`)+i):String(t),xO={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nr=e=>e?e+"-":"",Ox=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,l)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?nr(t)+(l.includes("$")?"":nr(n))+l.replace(/\$/g,"-"):l)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),wO=/\s*,\s*(?![^()]*\))/,bO=Object.prototype.toString,di=(e,t,n,r,o)=>{let i,s,l;const a=(u,d,f)=>{let p,g;const m=y=>{for(p in y){const x=p.charCodeAt(0)===64,b=x&&Array.isArray(y[p])?y[p]:[y[p]];for(g of b){const C=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,_=>_[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===bO&&(!r.utils[C]||!d.length);if(C in r.utils&&!E){const _=r.utils[C];if(_!==s){s=_,m(_(g)),s=null;continue}}else if(C in Tg){const _=Tg[C];if(_!==l){l=_,m(_(g)),l=null;continue}}if(x&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(_,k,j,P,T,M)=>{const I=Ju.test(k),H=.0625*(I?-1:1),[B,Y]=I?[P,k]:[k,P];return"("+(j[0]==="="?"":j[0]===">"===I?"max-":"min-")+B+":"+(j[0]!=="="&&j.length===1?Y.replace(Ju,(q,Q,L)=>Number(Q)+H*(j===">"?1:-1)+L):Y)+(T?") and ("+(T[0]===">"?"min-":"max-")+B+":"+(T.length===1?M.replace(Ju,(q,Q,L)=>Number(Q)+H*(T===">"?-1:1)+L):M):"")+")"})),E){const _=x?f.concat(p):[...f],k=x?[...d]:vO(d,p.split(wO));i!==void 0&&o(Pg(...i)),i=void 0,a(g,k,_)}else i===void 0&&(i=[[],d,f]),p=x||p.charCodeAt(0)!==36?p:`--${nr(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&C in _O?String(g)+"px":String(g):Ox(yO(C,g??""),r.prefix,r.themeMap[C]),i[0].push(`${x?`${p} `:`${bf(p)}:`}${g}`)}}var w,v};m(u),i!==void 0&&o(Pg(...i)),i=void 0};a(e,t,n)},Pg=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,_O={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Og=e=>String.fromCharCode(e+(e>25?39:97)),ho=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Og(n%52)+r;return Og(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),Ss=["themed","global","styled","onevar","resonevar","allvar","inline"],SO=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},EO=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:l}=i;let a="";if(l.startsWith("--sxs"))return"";if(o[s-1]&&(a=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===i)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return i.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const o=Object(e).styleSheets||[];for(const l of o)if(SO(l)){for(let a=0,u=l.cssRules;u[a];++a){const d=Object(u[a]);if(d.type!==1)continue;const f=Object(u[a+1]);if(f.type!==4)continue;++a;const{cssText:p}=d;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=Ss[g[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:a,cache:new Set(g)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,l(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let l=Ss.length-1;l>=0;--l){const a=Ss[l];if(!s[a]){const u=Ss[l+1],d=s[u]?s[u].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${l}}`,d),s[a]={group:i.cssRules[d+1],index:d,cache:new Set([l])}}CO(s[a])}};return r(),t},CO=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},hs=Symbol(),kO=Bi(),Ag=(e,t)=>kO(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[po]){r.type==null&&(r.type=o[po].type);for(const i of o[po].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(jO(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),$O(e,r,t)}),jO=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${nr(o.prefix)}c-${ho(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const p in n)a[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){d=a,f=p,mO.call(d,f)||(a[p]="undefined");const g=e[p];for(const m in g){const y={[p]:String(m)};String(m)==="undefined"&&u.push(p);const w=g[m],v=[y,w,!Ng(w)];s.push(v)}}var d,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const y=[m,g,!Ng(g)];l.push(y)}return[i,r,s,l,a,u]},$O=(e,t,n)=>{const[r,o,i,s]=RO(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[hs].push([g,m])}),p})(n):null,a=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||NO;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let x=f[v];typeof x=="object"&&x?m[v]={"@initial":i[v],...x}:(x=String(x),m[v]=x!=="undefined"||s.has(v)?x:i[v])}else m[v]=i[v];const y=new Set([...o]);for(const[v,x,b,C]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),di(x,[`.${v}`],[],e,k=>{a.styled.apply(k)}));const E=Mg(b,m,e.media),_=Mg(C,m,e.media,!0);for(const k of E)if(k!==void 0)for(const[j,P,T]of k){const M=`${v}-${ho(P)}-${j}`;y.add(M);const I=(T?n.rules.resonevar:n.rules.onevar).cache,H=T?a.resonevar:a.onevar;I.has(M)||(I.add(M),di(P,[`.${M}`],[],e,B=>{H.apply(B)}))}for(const k of _)if(k!==void 0)for(const[j,P]of k){const T=`${v}-${ho(P)}-${j}`;y.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),di(P,[`.${T}`],[],e,M=>{a.allvar.apply(M)}))}}if(typeof p=="object"&&p){const v=`${r}-i${ho(p)}-css`;y.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),di(p,[`.${v}`],[],e,x=>{a.inline.apply(x)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&y.add(v);const w=g.className=[...y].join(" ");return{type:t.type,className:w,selector:u,props:g,toString:()=>w,deferredInjector:l}};return Xp(d,{className:r,selector:u,[po]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},RO=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,l]of e){t===""&&(t=i),n.push(i),o.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(o)]},Mg=(e,t,n,r)=>{const o=[];e:for(let[i,s,l]of e){if(l)continue;let a,u=0,d=!1;for(a in i){const f=i[a];let p=t[a];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,y=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),d=!0}u+=y,g=!0}++y}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[u]=o[u]||[]).push([r?"cv":`${a}-${i[a]}`,s,d])}return o},NO={},TO=Bi(),PO=(e,t)=>TO(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=ho(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(o["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete o["@import"]}di(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Xp(r,{toString:r})}),OO=Bi(),AO=(e,t)=>OO(e,()=>n=>{const r=`${nr(e.prefix)}k-${ho(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];di(n,[],[],e,l=>i.push(l));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Xp(o,{get name(){return o()},toString:o})}),MO=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nr(this.prefix)+nr(this.scale)+this.token}toString(){return this.computedValue}},DO=Bi(),IO=(e,t)=>DO(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${nr(e.prefix)}t-${ho(r)}`}`,i={},s=[];for(const a in r){i[a]={};for(const u in r[a]){const d=`--${nr(e.prefix)}${a}-${u}`,f=Ox(String(r[a][u]),e.prefix,a);i[a][u]=new MO(u,f,a,e.prefix),s.push(`${d}:${f}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...i,get className(){return l()},selector:o,toString:l}}),LO=Bi(),FO=Bi(),zO=e=>{const t=(n=>{let r=!1;const o=LO(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",l=typeof i.media=="object"&&i.media||{},a=typeof i.root=="object"?i.root||null:globalThis.document||null,u=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:l,theme:u,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...pO},utils:typeof i.utils=="object"&&i.utils||{}},f=EO(a),p={css:Ag(d,f),globalCss:PO(d,f),keyframes:AO(d,f),createTheme:IO(d,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(u)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>FO(n,()=>{const o=Ag(n,r);return(...i)=>{const s=o(...i),l=s[po].type,a=S.forwardRef((u,d)=>{const f=u&&u.as||l,{props:p,deferredInjector:g}=s(u);return delete p.as,p.ref=d,g?S.createElement(S.Fragment,null,S.createElement(f,p),S.createElement(g,null)):S.createElement(f,p)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[po]=s[po],a}}))(t),t};function BO(e,t,n){return Math.max(t,Math.min(e,n))}const pt={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Dg(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Ig(e,t,n,r=.15){return r===0?BO(e,t,n):en?+Dg(e-n,n-t,r)+n:e}function UO(e,[t,n],[r,o]){const[[i,s],[l,a]]=e;return[Ig(t,i,s,r),Ig(n,l,a,o)]}function HO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WO(e){var t=HO(e,"string");return typeof t=="symbol"?t:String(t)}function Ct(e,t,n){return t=WO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function JO(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Dx(e){return nu(e)?JO(e)[0]:e}function ZO(e){return XO(e).map(t=>t.identifier)}function Zu(e){const t=Dx(e);return nu(e)?t.identifier:t.pointerId}function zg(e){const t=Dx(e);return[t.clientX,t.clientY]}function eA(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function gc(e,...t){return typeof e=="function"?e(...t):e}function tA(){}function nA(...e){return e.length===0?tA:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Bg(e,t){return Object.assign({},t,e||{})}const rA=32;class oA{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?gc(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,eA(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const _=n._delta.map(Math.abs);pt.addTo(n._distance,_)}this.axisIntent&&this.axisIntent(t);const[s,l]=n._movement,[a,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=a&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=a&&Math.sign(s)*a),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[_,k]=f;p[0]=d[0]!==!1?_-d[0]:0,p[1]=d[1]!==!1?k-d[1]:0}else p[0]=d[0]!==!1?s-d[0]:0,p[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=gc(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[y,w]=n.offset,[[v,x],[b,C]]=n._bounds;n.overflow=[yx?1:0,wC?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=UO(n._bounds,n.offset,E),n.delta=pt.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>rA)){n.delta=pt.sub(n.offset,g);const _=n.delta.map(Math.abs);pt.addTo(n.distance,_),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[_[0]/i,_[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(Pe(Pe(Pe({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function iA([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class sA extends oA{constructor(...t){super(...t),Ct(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Mx(t)]:r.axisThreshold;n.axis=iA(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const aA=e=>e,Ug=.15,Ix={enabled(e=!0){return e},eventOptions(e,t,n){return Pe(Pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ug,Ug];case!1:return[0,0];default:return pt.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return pt.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||aA},threshold(e){return pt.toVector(e,0)}},lA=0,Ca=Pe(Pe({},Ix),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=lA){return e},bounds(e={}){if(typeof e=="function")return i=>Ca.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Hg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class cA extends sA{constructor(...t){super(...t),Ct(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Ca.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Zu(t),r._pointerActive=!0,this.computeValues(zg(t)),this.computeInitial(),n.preventScrollAxis&&Mx(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Zu(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=zg(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=pt.sub(i,n._values),this.computeValues(i)),pt.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Zu(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,a]=n._delta,[u,d]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,y=r.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>g&&(n.swipe[0]=Math.sign(l)),v>p&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(a))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,uA(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Hg[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,pt.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Hg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function uA(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const ka=typeof window<"u"&&window.document&&window.document.createElement;function Lx(){return ka&&"ontouchstart"in window}function dA(){return Lx()||ka&&window.navigator.maxTouchPoints>1}function fA(){return ka&&"onpointerdown"in window}function pA(){return ka&&"exitPointerLock"in window.document}function hA(){try{return"constructor"in GestureEvent}catch{return!1}}const qt={isBrowser:ka,gesture:hA(),touch:Lx(),touchscreen:dA(),pointer:fA(),pointerLock:pA()},mA=250,gA=180,vA=.5,yA=50,xA=250,wA=10,Wg={mouse:0,touch:0,pen:8},bA=Pe(Pe({},Ca),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&qt.pointerLock,qt.touch&&n?"touch":this.pointerLock?"mouse":qt.pointer&&!o?"pointer":qt.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?mA:void 0,!(!qt.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=pt.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=vA,distance:t=yA,duration:n=xA}={}){return{velocity:this.transform(pt.toVector(e)),distance:this.transform(pt.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return gA;case!1:return 0;default:return e}},axisThreshold(e){return e?Pe(Pe({},Wg),e):Wg},keyboardDisplacement(e=wA){return e}});Pe(Pe({},Ix),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!qt.touch&&qt.gesture)return"gesture";if(qt.touch&&r)return"touch";if(qt.touchscreen){if(qt.pointer)return"pointer";if(qt.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const l=Bg(gc(n,s),{min:-1/0,max:1/0});return[l.min,l.max]},i=s=>{const l=Bg(gc(r,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",pt.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Pe(Pe({},Ca),{},{mouseOnly:(e=!0)=>e});Pe(Pe({},Ca),{},{mouseOnly:(e=!0)=>e});const Fx=new Map,_f=new Map;function _A(e){Fx.set(e.key,e.engine),_f.set(e.key,e.resolver)}const SA={key:"drag",engine:cA,resolver:bA};function EA(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function CA(e,t){if(e==null)return{};var n=EA(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const kA={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=qt.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jA=["target","eventOptions","window","enabled","transform"];function Pl(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Pl(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function $A(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:l,transform:a}=r,u=CA(r,jA);if(n.shared=Pl({target:o,eventOptions:i,window:s,enabled:l,transform:a},kA),t){const d=_f.get(t);n[t]=Pl(Pe({shared:n.shared},u),d)}else for(const d in u){const f=_f.get(d);f&&(n[d]=Pl(Pe({shared:n.shared},u[d]),f))}return n}class zx{constructor(t,n){Ct(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,l=QO(n,r),a=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Pe(Pe({},a),i);t.addEventListener(l,o,u);const d=()=>{t.removeEventListener(l,o,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class RA{constructor(){Ct(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class NA{constructor(t){Ct(this,"gestures",new Set),Ct(this,"_targetEventStore",new zx(this)),Ct(this,"gestureEventStores",{}),Ct(this,"gestureTimeoutStores",{}),Ct(this,"handlers",{}),Ct(this,"config",{}),Ct(this,"pointerIds",new Set),Ct(this,"touchIds",new Set),Ct(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),TA(this,t)}setEventIds(t){if(nu(t))return this.touchIds=new Set(ZO(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=$A(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const l=this.config[s],a=Vg(r,l.eventOptions,!!o);if(l.enabled){const u=Fx.get(s);new u(this,t,s).bind(a)}}const i=Vg(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",l=>this.nativeHandlers[s](Pe(Pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const i in r)r[i]=nA(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:l,passive:a}=YO(i);this._targetEventStore.add(o,s,"",r[i],{capture:l,passive:a})}}}}function Go(e,t){e.gestures.add(t),e.gestureEventStores[t]=new zx(e,t),e.gestureTimeoutStores[t]=new RA}function TA(e,t){t.drag&&Go(e,"drag"),t.wheel&&Go(e,"wheel"),t.scroll&&Go(e,"scroll"),t.move&&Go(e,"move"),t.pinch&&Go(e,"pinch"),t.hover&&Go(e,"hover")}const Vg=(e,t,n)=>(r,o,i,s={},l=!1)=>{var a,u;const d=(a=s.capture)!==null&&a!==void 0?a:t.capture,f=(u=s.passive)!==null&&u!==void 0?u:t.passive;let p=l?r:KO(r,o,d);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function PA(e,t={},n,r){const o=S.useMemo(()=>new NA(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),S.useEffect(o.effect.bind(o)),S.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function OA(e,t){return _A(SA),PA({drag:e},t||{},"drag")}function Wn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Bx(e,t=[]){let n=[];function r(i,s){const l=h.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:p,children:g,...m}=f,y=(p==null?void 0:p[e][a])||l,w=h.useMemo(()=>m,Object.values(m));return h.createElement(y.Provider,{value:w},g)}function d(f,p){const g=(p==null?void 0:p[e][a])||l,m=h.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,AA(o,...t)]}function AA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ui(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function MA(e,t=globalThis==null?void 0:globalThis.document){const n=Ui(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Sf="dismissableLayer.update",DA="dismissableLayer.pointerDownOutside",IA="dismissableLayer.focusOutside";let Gg;const LA=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),FA=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:a,...u}=e,d=h.useContext(LA),[f,p]=h.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=h.useState({}),y=zi(t,j=>p(j)),w=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(v),b=f?w.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=x,_=zA(j=>{const P=j.target,T=[...d.branches].some(M=>M.contains(P));!E||T||(i==null||i(j),l==null||l(j),j.defaultPrevented||a==null||a())},g),k=BA(j=>{const P=j.target;[...d.branches].some(M=>M.contains(P))||(s==null||s(j),l==null||l(j),j.defaultPrevented||a==null||a())},g);return MA(j=>{b===d.layers.size-1&&(o==null||o(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},g),h.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Gg=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Kg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Gg)}},[f,g,r,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Kg())},[f,d]),h.useEffect(()=>{const j=()=>m({});return document.addEventListener(Sf,j),()=>document.removeEventListener(Sf,j)},[]),h.createElement(ko.div,Ge({},u,{ref:y,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Wn(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Wn(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Wn(e.onPointerDownCapture,_.onPointerDownCapture)}))});function zA(e,t=globalThis==null?void 0:globalThis.document){const n=Ui(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let d=function(){Ux(DA,n,u,{discrete:!0})};var a=d;const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function BA(e,t=globalThis==null?void 0:globalThis.document){const n=Ui(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ux(IA,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kg(){const e=new CustomEvent(Sf);document.dispatchEvent(e)}function Ux(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sO(o,i):o.dispatchEvent(i)}const Pi=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},UA=p0["useId".toString()]||(()=>{});let HA=0;function WA(e){const[t,n]=h.useState(UA());return Pi(()=>{e||n(r=>r??String(HA++))},[e]),e||(t?`radix-${t}`:"")}const VA=["top","right","bottom","left"],zr=Math.min,Mt=Math.max,vc=Math.round,il=Math.floor,Br=e=>({x:e,y:e}),GA={left:"right",right:"left",bottom:"top",top:"bottom"},KA={start:"end",end:"start"};function Ef(e,t,n){return Mt(e,zr(t,n))}function rr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Hi(e){return e.split("-")[1]}function Jp(e){return e==="x"?"y":"x"}function Zp(e){return e==="y"?"height":"width"}function Wi(e){return["top","bottom"].includes(or(e))?"y":"x"}function eh(e){return Jp(Wi(e))}function qA(e,t,n){n===void 0&&(n=!1);const r=Hi(e),o=eh(e),i=Zp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=yc(s)),[s,yc(s)]}function YA(e){const t=yc(e);return[Cf(e),t,Cf(t)]}function Cf(e){return e.replace(/start|end/g,t=>KA[t])}function QA(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function XA(e,t,n,r){const o=Hi(e);let i=QA(or(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Cf)))),i}function yc(e){return e.replace(/left|right|bottom|top/g,t=>GA[t])}function JA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hx(e){return typeof e!="number"?JA(e):{top:e,right:e,bottom:e,left:e}}function xc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qg(e,t,n){let{reference:r,floating:o}=e;const i=Wi(t),s=eh(t),l=Zp(s),a=or(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Hi(t)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const ZA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=qg(u,r,a),p=r,g={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=rr(e,t)||{};if(u==null)return{};const f=Hx(d),p={x:n,y:r},g=eh(o),m=Zp(g),y=await s.getDimensions(u),w=g==="y",v=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[g]-p[g]-i.floating[m],E=p[g]-i.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=_?_[b]:0;(!k||!await(s.isElement==null?void 0:s.isElement(_)))&&(k=l.floating[b]||i.floating[m]);const j=C/2-E/2,P=k/2-y[m]/2-1,T=zr(f[v],P),M=zr(f[x],P),I=T,H=k-y[m]-M,B=k/2-y[m]/2+j,Y=Ef(I,B,H),q=!a.arrow&&Hi(o)!=null&&B!=Y&&i.reference[m]/2-(BI<=0)){var P,T;const I=(((P=i.flip)==null?void 0:P.index)||0)+1,H=E[I];if(H)return{data:{index:I,overflows:j},reset:{placement:H}};let B=(T=j.filter(Y=>Y.overflows[0]<=0).sort((Y,q)=>Y.overflows[1]-q.overflows[1])[0])==null?void 0:T.placement;if(!B)switch(g){case"bestFit":{var M;const Y=(M=j.map(q=>[q.placement,q.overflows.filter(Q=>Q>0).reduce((Q,L)=>Q+L,0)]).sort((q,Q)=>q[1]-Q[1])[0])==null?void 0:M[0];Y&&(B=Y);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Qg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xg(e){return VA.some(t=>e[t]>=0)}const tM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rr(e,t);switch(r){case"referenceHidden":{const i=await ua(t,{...o,elementContext:"reference"}),s=Qg(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xg(s)}}}case"escaped":{const i=await ua(t,{...o,altBoundary:!0}),s=Qg(i,n.floating);return{data:{escapedOffsets:s,escaped:Xg(s)}}}default:return{}}}}};async function nM(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=or(n),l=Hi(n),a=Wi(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,f=rr(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),a?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const rM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await nM(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},oM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:v,y:x}=w;return{x:v,y:x}}},...a}=rr(e,t),u={x:n,y:r},d=await ua(t,a),f=Wi(or(o)),p=Jp(f);let g=u[p],m=u[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=g+d[w],b=g-d[v];g=Ef(x,g,b)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=m+d[w],b=m-d[v];m=Ef(x,m,b)}const y=l.fn({...t,[p]:g,[f]:m});return{...y,data:{x:y.x-n,y:y.y-r}}}}},iM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=rr(e,t),d={x:n,y:r},f=Wi(o),p=Jp(f);let g=d[p],m=d[f];const y=rr(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const b=p==="y"?"height":"width",C=i.reference[p]-i.floating[b]+w.mainAxis,E=i.reference[p]+i.reference[b]-w.mainAxis;gE&&(g=E)}if(u){var v,x;const b=p==="y"?"width":"height",C=["top","left"].includes(or(o)),E=i.reference[f]-i.floating[b]+(C&&((v=s.offset)==null?void 0:v[f])||0)+(C?0:w.crossAxis),_=i.reference[f]+i.reference[b]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?w.crossAxis:0);m_&&(m=_)}return{[p]:g,[f]:m}}}},sM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=rr(e,t),a=await ua(t,l),u=or(n),d=Hi(n),f=Wi(n)==="y",{width:p,height:g}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=d==="end"?"top":"bottom");const w=g-a[m],v=p-a[y],x=!t.middlewareData.shift;let b=w,C=v;if(f){const _=p-a.left-a.right;C=d||x?zr(v,_):_}else{const _=g-a.top-a.bottom;b=d||x?zr(w,_):_}if(x&&!d){const _=Mt(a.left,0),k=Mt(a.right,0),j=Mt(a.top,0),P=Mt(a.bottom,0);f?C=p-2*(_!==0||k!==0?_+k:Mt(a.left,a.right)):b=g-2*(j!==0||P!==0?j+P:Mt(a.top,a.bottom))}await s({...t,availableWidth:C,availableHeight:b});const E=await o.getDimensions(i.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ur(e){return Wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wx(e){return e instanceof Node||e instanceof Lt(e).Node}function ir(e){return e instanceof Element||e instanceof Lt(e).Element}function On(e){return e instanceof HTMLElement||e instanceof Lt(e).HTMLElement}function Jg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ja(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function aM(e){return["table","td","th"].includes(Ur(e))}function th(e){const t=nh(),n=tn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function lM(e){let t=Oi(e);for(;On(t)&&!ru(t);){if(th(t))return t;t=Oi(t)}return null}function nh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ru(e){return["html","body","#document"].includes(Ur(e))}function tn(e){return Lt(e).getComputedStyle(e)}function ou(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Oi(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jg(e)&&e.host||ar(e);return Jg(t)?t.host:t}function Vx(e){const t=Oi(e);return ru(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&ja(t)?t:Vx(t)}function da(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vx(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Lt(o);return i?t.concat(s,s.visualViewport||[],ja(o)?o:[],s.frameElement&&n?da(s.frameElement):[]):t.concat(o,da(o,[],n))}function Gx(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=vc(n)!==i||vc(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function rh(e){return ir(e)?e:e.contextElement}function _i(e){const t=rh(e);if(!On(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gx(t);let s=(i?vc(n.width):n.width)/r,l=(i?vc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const cM=Br(0);function Kx(e){const t=Lt(e);return!nh()||!t.visualViewport?cM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=rh(e);let s=Br(1);t&&(r?ir(r)&&(s=_i(r)):s=_i(e));const l=uM(i,n,r)?Kx(i):Br(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Lt(i),g=r&&ir(r)?Lt(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const y=_i(m),w=m.getBoundingClientRect(),v=tn(m),x=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,b=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;a*=y.x,u*=y.y,d*=y.x,f*=y.y,a+=x,u+=b,m=Lt(m).frameElement}}return xc({width:d,height:f,x:a,y:u})}function dM(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=On(n),i=ar(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},l=Br(1);const a=Br(0);if((o||!o&&r!=="fixed")&&((Ur(n)!=="body"||ja(i))&&(s=ou(n)),On(n))){const u=bo(n);l=_i(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}}function fM(e){return Array.from(e.getClientRects())}function qx(e){return bo(ar(e)).left+ou(e).scrollLeft}function pM(e){const t=ar(e),n=ou(e),r=e.ownerDocument.body,o=Mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+qx(e);const l=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=Mt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function hM(e,t){const n=Lt(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=nh();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function mM(e,t){const n=bo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=On(e)?_i(e):Br(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Zg(e,t,n){let r;if(t==="viewport")r=hM(e,n);else if(t==="document")r=pM(ar(e));else if(ir(t))r=mM(t,n);else{const o=Kx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return xc(r)}function Yx(e,t){const n=Oi(e);return n===t||!ir(n)||ru(n)?!1:tn(n).position==="fixed"||Yx(n,t)}function gM(e,t){const n=t.get(e);if(n)return n;let r=da(e,[],!1).filter(l=>ir(l)&&Ur(l)!=="body"),o=null;const i=tn(e).position==="fixed";let s=i?Oi(e):e;for(;ir(s)&&!ru(s);){const l=tn(s),a=th(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ja(s)&&!a&&Yx(e,s))?r=r.filter(d=>d!==s):o=l,s=Oi(s)}return t.set(e,r),r}function vM(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?gM(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const f=Zg(t,d,o);return u.top=Mt(f.top,u.top),u.right=zr(f.right,u.right),u.bottom=zr(f.bottom,u.bottom),u.left=Mt(f.left,u.left),u},Zg(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function yM(e){return Gx(e)}function xM(e,t,n){const r=On(t),o=ar(t),i=n==="fixed",s=bo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Br(0);if(r||!r&&!i)if((Ur(t)!=="body"||ja(o))&&(l=ou(t)),r){const u=bo(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=qx(o));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function ev(e,t){return!On(e)||tn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qx(e,t){const n=Lt(e);if(!On(e))return n;let r=ev(e,t);for(;r&&aM(r)&&tn(r).position==="static";)r=ev(r,t);return r&&(Ur(r)==="html"||Ur(r)==="body"&&tn(r).position==="static"&&!th(r))?n:r||lM(e)||n}const wM=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Qx,i=this.getDimensions;return{reference:xM(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function bM(e){return tn(e).direction==="rtl"}const _M={convertOffsetParentRelativeRectToViewportRelativeRect:dM,getDocumentElement:ar,getClippingRect:vM,getOffsetParent:Qx,getElementRects:wM,getClientRects:fM,getDimensions:yM,getScale:_i,isElement:ir,isRTL:bM};function SM(e,t){let n=null,r;const o=ar(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const g=il(d),m=il(o.clientWidth-(u+f)),y=il(o.clientHeight-(d+p)),w=il(u),x={rootMargin:-g+"px "+-m+"px "+-y+"px "+-w+"px",threshold:Mt(0,zr(1,a))||1};let b=!0;function C(E){const _=E[0].intersectionRatio;if(_!==a){if(!b)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function EM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=rh(e),d=o||i?[...u?da(u):[],...da(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&l?SM(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let m,y=a?bo(e):null;a&&w();function w(){const v=bo(e);y&&(v.x!==y.x||v.y!==y.y||v.width!==y.width||v.height!==y.height)&&n(),y=v,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(m)}}const CM=(e,t,n)=>{const r=new Map,o={platform:_M,...n},i={...o.platform,_c:r};return ZA(e,t,{...o,platform:i})},kM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Yg({element:r.current,padding:o}).fn(n):{}:r?Yg({element:r,padding:o}).fn(n):{}}}};var Ol=typeof document<"u"?h.useLayoutEffect:h.useEffect;function wc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!wc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!wc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tv(e,t){const n=Xx(e);return Math.round(t*n)/n}function nv(e){const t=h.useRef(e);return Ol(()=>{t.current=e}),t}function jM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=h.useState(r);wc(p,r)||g(r);const[m,y]=h.useState(null),[w,v]=h.useState(null),x=h.useCallback(q=>{q!=_.current&&(_.current=q,y(q))},[y]),b=h.useCallback(q=>{q!==k.current&&(k.current=q,v(q))},[v]),C=i||m,E=s||w,_=h.useRef(null),k=h.useRef(null),j=h.useRef(d),P=nv(a),T=nv(o),M=h.useCallback(()=>{if(!_.current||!k.current)return;const q={placement:t,strategy:n,middleware:p};T.current&&(q.platform=T.current),CM(_.current,k.current,q).then(Q=>{const L={...Q,isPositioned:!0};I.current&&!wc(j.current,L)&&(j.current=L,Co.flushSync(()=>{f(L)}))})},[p,t,n,T]);Ol(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const I=h.useRef(!1);Ol(()=>(I.current=!0,()=>{I.current=!1}),[]),Ol(()=>{if(C&&(_.current=C),E&&(k.current=E),C&&E){if(P.current)return P.current(C,E,M);M()}},[C,E,M,P]);const H=h.useMemo(()=>({reference:_,floating:k,setReference:x,setFloating:b}),[x,b]),B=h.useMemo(()=>({reference:C,floating:E}),[C,E]),Y=h.useMemo(()=>{const q={position:n,left:0,top:0};if(!B.floating)return q;const Q=tv(B.floating,d.x),L=tv(B.floating,d.y);return l?{...q,transform:"translate("+Q+"px, "+L+"px)",...Xx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:L}},[n,l,B.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:M,refs:H,elements:B,floatingStyles:Y}),[d,M,H,B,Y])}const $M=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return h.createElement(ko.svg,Ge({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),RM=$M;function NM(e){const[t,n]=h.useState(void 0);return Pi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Jx="Popper",[Zx,ew]=Bx(Jx),[TM,tw]=Zx(Jx),PM=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(TM,{scope:t,anchor:r,onAnchorChange:o},n)},OM="PopperAnchor",AM=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=tw(OM,n),s=h.useRef(null),l=zi(t,s);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.createElement(ko.div,Ge({},o,{ref:l}))}),nw="PopperContent",[MM,DM]=Zx(nw),IM=h.forwardRef((e,t)=>{var n,r,o,i,s,l,a,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:_,...k}=e,j=tw(nw,d),[P,T]=h.useState(null),M=zi(t,qe=>T(qe)),[I,H]=h.useState(null),B=NM(I),Y=(n=B==null?void 0:B.width)!==null&&n!==void 0?n:0,q=(r=B==null?void 0:B.height)!==null&&r!==void 0?r:0,Q=f+(g!=="center"?"-"+g:""),L=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},V=Array.isArray(v)?v:[v],J=V.length>0,re={padding:L,boundary:V.filter(BM),altBoundary:J},{refs:pe,floatingStyles:st,placement:Me,isPositioned:He,middlewareData:ye}=jM({strategy:"fixed",placement:Q,whileElementsMounted:(...qe)=>EM(...qe,{animationFrame:E==="always"}),elements:{reference:j.anchor},middleware:[rM({mainAxis:p+q,alignmentAxis:m}),w&&oM({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?iM():void 0,...re}),w&&eM({...re}),sM({...re,apply:({elements:qe,rects:In,availableWidth:qi,availableHeight:Yi})=>{const{width:Qi,height:$o}=In.reference,Pt=qe.floating.style;Pt.setProperty("--radix-popper-available-width",`${qi}px`),Pt.setProperty("--radix-popper-available-height",`${Yi}px`),Pt.setProperty("--radix-popper-anchor-width",`${Qi}px`),Pt.setProperty("--radix-popper-anchor-height",`${$o}px`)}}),I&&kM({element:I,padding:y}),UM({arrowWidth:Y,arrowHeight:q}),C&&tM({strategy:"referenceHidden",...re})]}),[at,yn]=rw(Me),Dn=Ui(_);Pi(()=>{He&&(Dn==null||Dn())},[He,Dn]);const jo=(o=ye.arrow)===null||o===void 0?void 0:o.x,Ke=(i=ye.arrow)===null||i===void 0?void 0:i.y,xn=((s=ye.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[rn,qr]=h.useState();return Pi(()=>{P&&qr(window.getComputedStyle(P).zIndex)},[P]),h.createElement("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...st,transform:He?st.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rn,"--radix-popper-transform-origin":[(l=ye.transformOrigin)===null||l===void 0?void 0:l.x,(a=ye.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},h.createElement(MM,{scope:d,placedSide:at,onArrowChange:H,arrowX:jo,arrowY:Ke,shouldHideArrow:xn},h.createElement(ko.div,Ge({"data-side":at,"data-align":yn},k,{ref:M,style:{...k.style,animation:He?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),LM="PopperArrow",FM={top:"bottom",right:"left",bottom:"top",left:"right"},zM=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=DM(LM,r),s=FM[i.placedSide];return h.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},h.createElement(RM,Ge({},o,{ref:n,style:{...o.style,display:"block"}})))});function BM(e){return e!==null}const UM=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:l,rects:a,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,y]=rw(l),w={start:"0%",center:"50%",end:"100%"}[y],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,x=((i=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let b="",C="";return m==="bottom"?(b=f?w:`${v}px`,C=`${-g}px`):m==="top"?(b=f?w:`${v}px`,C=`${a.floating.height+g}px`):m==="right"?(b=`${-g}px`,C=f?w:`${x}px`):m==="left"&&(b=`${a.floating.width+g}px`,C=f?w:`${x}px`),{data:{x:b,y:C}}}});function rw(e){const[t,n="center"]=e.split("-");return[t,n]}const HM=PM,WM=AM,VM=IM,GM=zM;function KM(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ow=e=>{const{present:t,children:n}=e,r=qM(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=zi(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};ow.displayName="Presence";function qM(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[l,a]=KM(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=sl(r.current);i.current=l==="mounted"?u:"none"},[l]),Pi(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,g=sl(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Pi(()=>{if(t){const u=f=>{const g=sl(r.current).includes(f.animationName);f.target===t&&g&&Co.flushSync(()=>a("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=sl(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function sl(e){return(e==null?void 0:e.animationName)||"none"}function YM({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=QM({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=Ui(n),a=h.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[s,a]}function QM({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=Ui(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const XM=h.forwardRef((e,t)=>h.createElement(ko.span,Ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),JM=XM,[iu,uz]=Bx("Tooltip",[ew]),su=ew(),ZM="TooltipProvider",kf="tooltip.open",[dz,oh]=iu(ZM),ih="Tooltip",[eD,au]=iu(ih),tD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=oh(ih,e.__scopeTooltip),u=su(t),[d,f]=h.useState(null),p=WA(),g=h.useRef(0),m=s??a.disableHoverableContent,y=l??a.delayDuration,w=h.useRef(!1),[v=!1,x]=YM({prop:r,defaultProp:o,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(kf))):a.onClose(),i==null||i(k)}}),b=h.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),C=h.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,x(!0)},[x]),E=h.useCallback(()=>{window.clearTimeout(g.current),x(!1)},[x]),_=h.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,x(!0)},y)},[y,x]);return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(HM,u,h.createElement(eD,{scope:t,contentId:p,open:v,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?_():C()},[a.isOpenDelayed,_,C]),onTriggerLeave:h.useCallback(()=>{m?E():window.clearTimeout(g.current)},[E,m]),onOpen:C,onClose:E,disableHoverableContent:m},n))},rv="TooltipTrigger",nD=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=au(rv,n),i=oh(rv,n),s=su(n),l=h.useRef(null),a=zi(t,l,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(WM,Ge({asChild:!0},s),h.createElement(ko.button,Ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onPointerMove:Wn(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Wn(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Wn(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Wn(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Wn(e.onBlur,o.onClose),onClick:Wn(e.onClick,o.onClose)})))}),rD="TooltipPortal",[fz,oD]=iu(rD,{forceMount:void 0}),fa="TooltipContent",iD=h.forwardRef((e,t)=>{const n=oD(fa,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=au(fa,e.__scopeTooltip);return h.createElement(ow,{present:r||s.open},s.disableHoverableContent?h.createElement(iw,Ge({side:o},i,{ref:t})):h.createElement(sD,Ge({side:o},i,{ref:t})))}),sD=h.forwardRef((e,t)=>{const n=au(fa,e.__scopeTooltip),r=oh(fa,e.__scopeTooltip),o=h.useRef(null),i=zi(t,o),[s,l]=h.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{l(null),f(!1)},[f]),g=h.useCallback((m,y)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},x=dD(v,w.getBoundingClientRect()),b=fD(v,x),C=pD(y.getBoundingClientRect()),E=mD([...b,...C]);l(E),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(a&&d){const m=w=>g(w,d),y=w=>g(w,a);return a.addEventListener("pointerleave",m),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",y)}}},[a,d,g,p]),h.useEffect(()=>{if(s){const m=y=>{const w=y.target,v={x:y.clientX,y:y.clientY},x=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),b=!hD(v,s);x?p():b&&(p(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[a,d,s,u,p]),h.createElement(iw,Ge({},e,{ref:i}))}),[aD,lD]=iu(ih,{isInside:!1}),iw=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=au(fa,n),u=su(n),{onClose:d}=a;return h.useEffect(()=>(document.addEventListener(kf,d),()=>document.removeEventListener(kf,d)),[d]),h.useEffect(()=>{if(a.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),h.createElement(FA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(VM,Ge({"data-state":a.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement($x,null,r),h.createElement(aD,{scope:n,isInside:!0},h.createElement(JM,{id:a.contentId,role:"tooltip"},o||r))))}),cD="TooltipArrow",uD=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=su(n);return lD(cD,n).isInside?null:h.createElement(GM,Ge({},o,r,{ref:t}))});function dD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function pD(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hD(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-l)*(r-a)/(d-a)+l&&(o=!o)}return o}function mD(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),gD(t)}function gD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const vD=tD,yD=nD,xD=iD,wD=uD;function bD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ve(e,t){if(e==null)return{};var n=bD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let Ne;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(Ne||(Ne={}));const _D={[Ne.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[Ne.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[Ne.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[Ne.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Ne.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[Ne.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[Ne.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[Ne.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[Ne.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[Ne.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function sw(e,t,...n){const[r,...o]=_D[t](...n);console[e]("LEVA: "+r,...o)}const Vn=sw.bind(null,"warn"),SD=sw.bind(null,"log"),ED=["value"],CD=["schema"],kD=["value"],aw=[],_o={};function ov(e){let{value:t}=e,n=ve(e,ED);for(let r of aw){const o=r(t,n);if(o)return o}}function lr(e,t){let{schema:n}=t,r=ve(t,CD);if(e in _o){Vn(Ne.ALREADY_REGISTERED_TYPE,e);return}aw.push((o,i)=>n(o,i)&&e),_o[e]=r}function ed(e,t,n,r){const{normalize:o}=_o[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ve(t,kD);return{value:i,settings:s}}function jD(e,t,n,r,o,i){const{sanitize:s}=_o[e];return s?s(t,n,r,o,i):t}function iv(e,t,n){const{format:r}=_o[e];return r?r(t,n):t}function $D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=yr(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},ND=Math.log(10);function av(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/ND)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const bc=(e,t,n)=>n===t?0:(Hr(e,t,n)-t)/(n-t),_c=(e,t,n)=>e*(n-t)+t,TD=()=>"_"+Math.random().toString(36).substr(2,9),lv=/\(([0-9+\-*/^ .]+)\)/,cv=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,uv=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,dv=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,fv=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,pv=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function yr(e){if(isNaN(Number(e)))if(lv.test(e)){const t=e.replace(lv,(n,r)=>String(yr(r)));return yr(t)}else if(cv.test(e)){const t=e.replace(cv,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return yr(t)}else if(uv.test(e)){const t=e.replace(uv,(n,r,o)=>String(Number(r)*Number(o)));return yr(t)}else if(dv.test(e)){const t=e.replace(dv,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return yr(t)}else if(fv.test(e)){const t=e.replace(fv,(n,r,o)=>String(Number(r)+Number(o)));return yr(t)}else if(pv.test(e)){const t=e.replace(pv,(n,r,o)=>String(Number(r)-Number(o)));return yr(t)}else return Number(e);return Number(e)}function PD(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function OD(e,t){const n=ne({},e);return t.forEach(r=>r in e&&delete n[r]),n}function AD(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function lw(e){return Object.prototype.toString.call(e)==="[object Object]"}const MD=e=>lw(e)&&Object.keys(e).length===0;let pn;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(pn||(pn={}));let mn;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(mn||(mn={}));const DD=["type","__customInput"],ID=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],LD=["type"];function cw(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:ne({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:_}=e,k=ve(e,DD);return cw(_,t,k,E)}const{render:s,label:l,optional:a,order:u=0,disabled:d,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:y}=e,w=ve(e,ID),v=ne({render:s,key:t,label:l??t,hint:f,transient:y??!!p,onEditStart:g,onEditEnd:m,disabled:d,optional:a,order:u},n);let{type:x}=w,b=ve(w,LD);if(x=r??x,x in pn)return{type:x,input:b,options:v};let C;return r&&lw(b)&&"value"in b?C=b.value:C=MD(b)?void 0:b,{type:x,input:C,options:ne(ne({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function FD(e,t,n,r){const o=cw(e,t),{type:i,input:s,options:l}=o;if(i)return i in pn?o:{type:i,input:ed(i,s,n,r),options:l};let a=ov(s);return a?{type:a,input:ed(a,s,n,r),options:l}:(a=ov({value:s}),a?{type:a,input:ed(a,{value:s},n,r),options:l}:!1)}function hv(e,t,n,r,o){const{value:i,type:s,settings:l}=e;e.value=uw({type:s,value:i,settings:l},t,n,r),e.fromPanel=o}const zD=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function uw({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let l;try{l=jD(e,s,n,t,o,i)}catch(a){throw new zD(`The value \`${r}\` did not result in a correct value.`,t,a)}return la(l,t)?t:l}const dw=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},fw=e=>e.shiftKey?5:e.altKey?1/5:1;function BD(e,t){const n=console.error;console.error=()=>{},Dp.render(e,t),console.error=n}const UD=["value"],HD=["min","max"],WD=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},pw=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Hr(o,t,n);return r?i+r:i},VD=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},hw=e=>{let{value:t}=e,n=ve(e,UD);const{min:r=-1/0,max:o=1/0}=n,i=ve(n,HD);let s=parseFloat(t);const l=typeof t=="string"?t.substring((""+s).length):void 0;s=Hr(s,r,o);let a=n.step;a||(Number.isFinite(r)?Number.isFinite(o)?a=+(Math.abs(o-r)/100).toPrecision(1):a=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(a=+(Math.abs(o-s)/100).toPrecision(1)));const u=a?av(a)*10:av(s);a=a||u/10;const d=Math.round(Hr(Math.log10(1/u),0,2));return{value:l?s+l:s,settings:ne({initialValue:s,step:a,pad:d,min:r,max:o,suffix:l},i)}},mw=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var gw=Object.freeze({__proto__:null,schema:WD,sanitize:pw,format:VD,normalize:hw,sanitizeStep:mw});function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function al(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const ms={$inputStyle:()=>e=>al(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>al(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>al(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>al(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ee,css:pz,createTheme:KD,globalCss:qD,keyframes:hz}=zO({prefix:"leva",theme:ww(),utils:ne(ne({},ms),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":ms.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":ms.$focusStyle()(e)}),$hover:e=>({"&:hover":ms.$hoverStyle()(e)}),$active:e=>({"&:active":ms.$activeStyle()(e)})})}),YD=qD({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function QD(e){const t=ww();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=KD(t);return{theme:t,className:n.className}}function Xn(e,t){const{theme:n}=h.useContext(sh);if(!(e in n)||!(t in n[e]))return Vn(Ne.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const bw=ee("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),_w=ee("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${bw}`]:{paddingLeft:0}}),XD=ee(_w,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),JD=ee("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),ZD=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],eI=["onUpdate"];function ah(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:l,inputType:a="text",rows:u=0}=e,d=ve(e,ZD);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=mt(),y=l||f,w=h.useRef(null),v=u>0,x=v?"textarea":"input",b=h.useCallback(_=>k=>{const j=k.currentTarget.value;_(j)},[]);S.useEffect(()=>{const _=w.current,k=b(j=>{r(j),g()});return _==null||_.addEventListener("blur",k),()=>_==null?void 0:_.removeEventListener("blur",k)},[b,r,g]);const C=h.useCallback(_=>{_.key==="Enter"&&b(r)(_)},[b,r]),E=Object.assign({as:x},v?{rows:u}:{},d);return S.createElement(JD,{textArea:v},t&&typeof t=="string"?S.createElement(_w,null,t):t,S.createElement(bw,Fe({levaType:s,ref:w,id:y,type:a,autoComplete:"off",spellCheck:"false",value:n,onChange:b(o),onFocus:()=>p(),onKeyPress:C,onKeyDown:i,disabled:m},E)))}function tI(e){let{onUpdate:t}=e,n=ve(e,eI);const r=h.useCallback(i=>t(RD(i)),[t]),o=h.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const l=i.altKey?.1:i.shiftKey?10:1;t(a=>parseFloat(a)+s*l)}},[t]);return S.createElement(ah,Fe({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const Sc=ee("div",{}),jf=ee("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),nI=ee("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${jf}::after`]:{opacity:.6},[`${Sc}:hover > & + ${jf}::after`]:{opacity:.6},[`${Sc}:hover > & > svg`]:{opacity:1}}),Sw=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${Sc}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Ew=ee("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Sw} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Cw=ee(Ew,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),rI=ee("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),oI=ee("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),$f=ee("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),iI=ee("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${$f}`]:{pointerEvents:"auto"}}}}}),kw=ee("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),sI=ee("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),aI=ee(wD,{fill:"$toolTipBackground"});function lh({children:e}){const{className:t}=h.useContext(sh);return S.createElement(lO,{className:t},e)}const lI=["align"];function cI(){const{id:e,disable:t,disabled:n}=mt();return S.createElement(S.Fragment,null,S.createElement(oI,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),S.createElement("label",{htmlFor:e+"__disable"}))}function uI(e){const{id:t,optional:n,hint:r}=mt(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return S.createElement(S.Fragment,null,n&&S.createElement(cI,null),r!==void 0?S.createElement(vD,null,S.createElement(yD,{asChild:!0},S.createElement($f,Fe({},o,e))),S.createElement(xD,{side:"top",sideOffset:2},S.createElement(sI,null,r,S.createElement(aI,null)))):S.createElement($f,Fe({},o,i,e)))}function gn(e){let{align:t}=e,n=ve(e,lI);const{value:r,label:o,key:i,disabled:s}=mt(),{hideCopyButton:l}=GD(),a=!l&&i!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{Vn(Ne.CLIPBOARD_ERROR,{[i]:r})}};return S.createElement(rI,{align:t,onPointerLeave:()=>d(!1)},S.createElement(uI,n),a&&!s&&S.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},u?S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),S.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):S.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),S.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const dI=["toggled"],fI=ee("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function ch(e){let{toggled:t}=e,n=ve(e,dI);return S.createElement(fI,Fe({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),S.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const pI=["input"];function nn(e){let{input:t}=e,n=ve(e,pI);return t?S.createElement(Cw,n):S.createElement(Ew,n)}function jw({value:e,type:t,settings:n,setValue:r}){const[o,i]=h.useState(iv(t,e,n)),s=h.useRef(e),l=h.useRef(n);l.current=n;const a=h.useCallback(d=>i(iv(t,d,l.current)),[t]),u=h.useCallback(d=>{try{r(d)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;a(g)}},[a,r]);return h.useEffect(()=>{la(e,s.current)||a(e),s.current=e},[e,a]),{displayValue:o,onChange:i,onUpdate:u}}function Ra(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=mt();return OA(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function hI(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!1);return h.useEffect(()=>{const o=dw(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function $w(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const mI=["__refCount"],td=(e,t)=>{if(!e[t])return null;const n=e[t];return ve(n,mI)};function gI(e){const t=$a(),[n,r]=h.useState(td(t.getData(),e)),o=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),i=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),s=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),l=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),a=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{r(td(t.getData(),e));const u=t.useStore.subscribe(d=>td(d.data,e),r,{equalityFn:Ea});return()=>u()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:l,emitOnEditEnd:a}]}const vI=ee("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Rw=ee("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Rf=ee("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Nw=ee("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Tw=ee("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function yI({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=h.useRef(null),l=h.useRef(null),a=h.useRef(0),u=Xn("sizes","scrubberWidth"),d=Ra(({event:p,first:g,xy:[m],movement:[y],memo:w})=>{if(g){const{width:x,left:b}=s.current.getBoundingClientRect();a.current=x-parseFloat(u),w=(p==null?void 0:p.target)===l.current?e:_c((m-b)/x,t,n)}const v=w+_c(y/a.current,0,n-t);return r(mw(v,{step:o,initialValue:i})),w}),f=bc(e,t,n);return S.createElement(Nw,Fe({ref:s},d()),S.createElement(Rw,null,S.createElement(Tw,{style:{left:0,right:`${(1-f)*100}%`}})),S.createElement(Rf,{ref:l,style:{left:`calc(${f} * (100% - ${u}))`}}))}const xI=S.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=h.useState(!1),s=Ra(({active:l,delta:[a],event:u,memo:d=0})=>(i(l),d+=a/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*fw(u)),d=0),d));return S.createElement(XD,Fe({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Pw({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const l=s>0&&S.createElement(xI,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return S.createElement(tI,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:l})}function wI(){const e=mt(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:l}=o,a=l!==1/0&&s!==-1/0;return S.createElement(nn,{input:!0},S.createElement(gn,null,t),S.createElement(vI,{hasRange:a},a&&S.createElement(yI,Fe({value:parseFloat(n),onDrag:r},o)),S.createElement(Pw,Fe({},e,{id:i,label:"value",innerLabelTrim:a?0:1}))))}const{sanitizeStep:bI}=gw,_I=ve(gw,["sanitizeStep"]);var SI=ne({component:wI},_I);const EI=(e,t)=>$t().schema({options:$t().passesAnyOf($t().object(),$t().array())}).test(t),CI=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},kI=(e,{values:t})=>t.indexOf(e),jI=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var $I=Object.freeze({__proto__:null,schema:EI,sanitize:CI,format:kI,normalize:jI});const RI=ee("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Nf=ee("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),NI=ee("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Nf}:focus + &`]:{$focusStyle:""},[`${Nf}:hover + &`]:{$hoverStyle:""}});function TI({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:l}=o,a=h.useRef();return t===l[e]&&(a.current=s[e]),S.createElement(RI,null,S.createElement(Nf,{id:r,value:e,onChange:u=>n(l[Number(u.currentTarget.value)]),disabled:i},s.map((u,d)=>S.createElement("option",{key:u,value:d},u))),S.createElement(NI,null,a.current),S.createElement(ch,{toggled:!0}))}function PI(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(TI,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var OI=ne({component:PI},$I);const AI=e=>$t().string().test(e),MI=e=>{if(typeof e!="string")throw Error("Invalid string");return e},DI=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var II=Object.freeze({__proto__:null,schema:AI,sanitize:MI,normalize:DI});const LI=["displayValue","onUpdate","onChange","editable"],FI=ee("div",{whiteSpace:"pre-wrap"});function zI(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ve(e,LI);return o?S.createElement(ah,Fe({value:t,onUpdate:n,onChange:r},i)):S.createElement(FI,null,t)}function BI(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(zI,Fe({displayValue:n,onUpdate:r,onChange:o},t)))}var UI=ne({component:BI},II);const HI=e=>$t().boolean().test(e),WI=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var VI=Object.freeze({__proto__:null,schema:HI,sanitize:WI});const GI=ee("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function KI({value:e,onUpdate:t,id:n,disabled:r}){return S.createElement(GI,null,S.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),S.createElement("label",{htmlFor:n},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function qI(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(KI,{value:t,onUpdate:n,id:o,disabled:r}))}var YI=ne({component:qI},VI);const QI=["locked"];function XI({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=h.useRef(e[n]);s.current=e[n];const l=h.useCallback(u=>o({[n]:uw({type:"NUMBER",value:s.current,settings:r},u)}),[o,r,n]),a=jw({type:"NUMBER",value:e[n],settings:r,setValue:l});return S.createElement(Pw,{id:t,label:n,value:e[n],displayValue:a.displayValue,onUpdate:a.onUpdate,onChange:a.onChange,settings:r,innerLabelTrim:i})}const JI=ee("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function ZI(e){let{locked:t}=e,n=ve(e,QI);return S.createElement("svg",Fe({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?S.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):S.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function uh({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=mt(),{lock:s,locked:l}=n;return S.createElement(JI,{withLock:s},s&&S.createElement(ZI,{locked:l,onClick:()=>i({locked:!l})}),Object.keys(e).map((a,u)=>S.createElement(XI,{id:u===0?o:`${o}.${a}`,key:a,valueKey:a,value:e,settings:n[a],onUpdate:t,innerLabelTrim:r})))}const Ow=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=hw(ne({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:l,max:a}=t[i]||{};!isFinite(s)&&(!isFinite(l)||!isFinite(a))&&(n[i].step=r,n[i].pad=o)}return n},e5=["lock"],t5=["value"];function n5(e){const t=$t().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function r5(e){return Array.isArray(e)?"array":"object"}function Ds(e,t,n){return r5(e)===t?e:t==="array"?Object.values(e):AD(e,n)}const o5=(e,t,n)=>{const r=Ds(e,"object",t.keys);for(let s in r)r[s]=pw(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Ds(n,"object",t.keys);if(o.length===1&&t.locked){const l=o[0],a=r[l],u=s[l],d=u!==0?a/u:1;for(let f in s)f===l?i[l]=a:i[f]=s[f]*d}else i=ne(ne({},s),r)}return Ds(i,t.format,t.keys)},i5=(e,t)=>Ds(e,"object",t.keys),s5=e=>!!e&&("step"in e||"min"in e||"max"in e);function a5(e,t,n=[]){const{lock:r=!1}=t,o=ve(t,e5),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,l=Ds(e,"object",s),a=s5(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,u=Ow(l,a);return{value:i==="array"?e:l,settings:ne(ne({},u),{},{format:i,keys:s,lock:r,locked:!1})}}function Aw(e){return{schema:n5(e.length),normalize:t=>{let{value:n}=t,r=ve(t,t5);return a5(n,r,e)},format:(t,n)=>i5(t,n),sanitize:(t,n,r)=>o5(t,n,r)}}var l5={grad:.9,turn:360,rad:360/(2*Math.PI)},zn=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Qt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Mw=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},mv=function(e){return{r:Qt(e.r,0,255),g:Qt(e.g,0,255),b:Qt(e.b,0,255),a:Qt(e.a)}},nd=function(e){return{r:Je(e.r),g:Je(e.g),b:Je(e.b),a:Je(e.a,3)}},c5=/^#([0-9a-f]{3,8})$/i,ll=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Dw=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:o}},Iw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,l,s,s,a,r][u],g:255*[a,r,r,l,s,s][u],b:255*[s,s,a,r,r,l][u],a:o}},gv=function(e){return{h:Mw(e.h),s:Qt(e.s,0,100),l:Qt(e.l,0,100),a:Qt(e.a)}},vv=function(e){return{h:Je(e.h),s:Je(e.s),l:Je(e.l),a:Je(e.a,3)}},yv=function(e){return Iw((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Is=function(e){return{h:(t=Dw(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},u5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,d5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tf={string:[[function(e){var t=c5.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Je(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Je(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=f5.exec(e)||p5.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:mv({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=u5.exec(e)||d5.exec(e);if(!t)return null;var n,r,o=gv({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(l5[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return yv(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return zn(t)&&zn(n)&&zn(r)?mv({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=gv({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return yv(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=function(l){return{h:Mw(l.h),s:Qt(l.s,0,100),v:Qt(l.v,0,100),a:Qt(l.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Iw(s)},"hsv"]]},xv=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=nd(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?ll(Je(255*i)):"","#"+ll(n)+ll(r)+ll(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return nd(this.rgba)},e.prototype.toRgbString=function(){return t=nd(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return vv(Is(this.rgba))},e.prototype.toHslString=function(){return t=vv(Is(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Dw(this.rgba),{h:Je(t.h),s:Je(t.s),v:Je(t.v),a:Je(t.a,3)};var t},e.prototype.invert=function(){return xt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),xt(rd(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),xt(rd(this.rgba,-t))},e.prototype.grayscale=function(){return xt(rd(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),xt(wv(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),xt(wv(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?xt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Je(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Is(this.rgba);return typeof t=="number"?xt({h:t,s:n.s,l:n.l,a:n.a}):Je(n.h)},e.prototype.isEqual=function(t){return this.toHex()===xt(t).toHex()},e}(),xt=function(e){return e instanceof Pf?e:new Pf(e)},bv=[],m5=function(e){e.forEach(function(t){bv.indexOf(t)<0&&(t(Pf,Tf),bv.push(t))})};function g5(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,a,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var y=(l=d,a=i[m],Math.pow(l.r-a.r,2)+Math.pow(l.g-a.g,2)+Math.pow(l.b-a.b,2));y=0||(o[n]=e[n]);return o}function Of(e){var t=h.useRef(e),n=h.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Ai=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(_v(o.current,w,l.current)):y(!1)},m=function(){return y(!1)};function y(w){var v=a.current,x=Af(o.current),b=w?x.addEventListener:x.removeEventListener;b(v?"touchmove":"mousemove",g),b(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,x=o.current;if(x&&(Sv(v),!function(C,E){return E&&!Ls(C)}(v,a.current)&&x)){if(Ls(v)){a.current=!0;var b=v.changedTouches||[];b.length&&(l.current=b[0].identifier)}x.focus(),i(_v(x,v,l.current)),y(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},y]},[s,i]),d=u[0],f=u[1],p=u[2];return h.useEffect(function(){return p},[p]),S.createElement("div",Vi({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Na=function(e){return e.filter(Boolean).join(" ")},ph=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Na(["react-colorful__pointer",e.className]);return S.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},bt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Fw=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:bt(e.h),s:bt(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:bt(o/2),a:bt(r,2)}},Mf=function(e){var t=Fw(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},id=function(e){var t=Fw(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},zw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),l=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),u=i%6;return{r:bt(255*[r,l,s,s,a,r][u]),g:bt(255*[a,r,r,l,s,s][u]),b:bt(255*[s,s,a,r,r,l][u]),a:bt(o,2)}},Bw=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),l=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:bt(60*(l<0?l+6:l)),s:bt(i?s/i*100:0),v:bt(i/255*100),a:o}},Uw=S.memo(function(e){var t=e.hue,n=e.onChange,r=Na(["react-colorful__hue",e.className]);return S.createElement("div",{className:r},S.createElement(fh,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Ai(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":bt(t),"aria-valuemax":"360","aria-valuemin":"0"},S.createElement(ph,{className:"react-colorful__hue-pointer",left:t/360,color:Mf({h:t,s:100,v:100,a:1})})))}),Hw=S.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Mf({h:t.h,s:100,v:100,a:1})};return S.createElement("div",{className:"react-colorful__saturation",style:r},S.createElement(fh,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Ai(t.s+100*o.left,0,100),v:Ai(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+bt(t.s)+"%, Brightness "+bt(t.v)+"%"},S.createElement(ph,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Mf(t)})))}),hh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Ww(e,t,n){var r=Of(n),o=h.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],l=h.useRef({color:t,hsva:i});h.useEffect(function(){if(!e.equal(t,l.current.color)){var u=e.toHsva(t);l.current={hsva:u,color:t},s(u)}},[t,e]),h.useEffect(function(){var u;hh(i,l.current.hsva)||e.equal(u=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:u},r(u))},[i,e,r]);var a=h.useCallback(function(u){s(function(d){return Object.assign({},d,u)})},[]);return[i,a]}var v5=typeof window<"u"?h.useLayoutEffect:h.useEffect,y5=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Ev=new Map,Vw=function(e){v5(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Ev.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Ev.set(t,n);var r=y5();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},x5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=dh(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Vw(l);var a=Ww(n,o,i),u=a[0],d=a[1],f=Na(["react-colorful",t]);return S.createElement("div",Vi({},s,{ref:l,className:f}),S.createElement(Hw,{hsva:u,onChange:d}),S.createElement(Uw,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},w5=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+id(Object.assign({},n,{a:0}))+", "+id(Object.assign({},n,{a:1}))+")"},i=Na(["react-colorful__alpha",t]),s=bt(100*n.a);return S.createElement("div",{className:i},S.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),S.createElement(fh,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:Ai(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},S.createElement(ph,{className:"react-colorful__alpha-pointer",left:n.a,color:id(n)})))},b5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=dh(e,["className","colorModel","color","onChange"]),l=h.useRef(null);Vw(l);var a=Ww(n,o,i),u=a[0],d=a[1],f=Na(["react-colorful",t]);return S.createElement("div",Vi({},s,{ref:l,className:f}),S.createElement(Hw,{hsva:u,onChange:d}),S.createElement(Uw,{hue:u.h,onChange:d}),S.createElement(w5,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},_5={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Bw,fromHsva:zw,equal:hh},S5=function(e){return S.createElement(b5,Vi({},e,{colorModel:_5}))},E5={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Bw({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=zw(e)).r,g:t.g,b:t.b};var t},equal:hh},C5=function(e){return S.createElement(x5,Vi({},e,{colorModel:E5}))},Gw={exports:{}},k5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",j5=k5,$5=j5;function Kw(){}function qw(){}qw.resetWarningCache=Kw;var R5=function(){function e(r,o,i,s,l,a){if(a!==$5){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qw,resetWarningCache:Kw};return n.PropTypes=n,n};Gw.exports=R5();var N5=Gw.exports;const be=Pc(N5);function Gi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(d){try{u(r.next(d))}catch(f){s(f)}}function a(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Ki(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return a([u,d])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function P5(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function A5(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=O5.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var M5=[".DS_Store","Thumbs.db"];function D5(e){return Gi(this,void 0,void 0,function(){return Ki(this,function(t){return Ec(e)&&I5(e)?[2,B5(e.dataTransfer,e.type)]:L5(e)?[2,F5(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,z5(e)]:[2,[]]})})}function I5(e){return Ec(e.dataTransfer)}function L5(e){return Ec(e)&&Ec(e.target)}function Ec(e){return typeof e=="object"&&e!==null}function F5(e){return Df(e.target.files).map(function(t){return Ta(t)})}function z5(e){return Gi(this,void 0,void 0,function(){var t;return Ki(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ta(r)})]}})})}function B5(e,t){return Gi(this,void 0,void 0,function(){var n,r;return Ki(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=Df(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(U5))]):[3,2];case 1:return r=o.sent(),[2,Cv(Yw(r))];case 2:return[2,Cv(Df(e.files).map(function(i){return Ta(i)}))]}})})}function Cv(e){return e.filter(function(t){return M5.indexOf(t.name)===-1})}function Df(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Tv(n)];if(e.sizen)return[!1,Tv(n)]}return[!0,null]}function gs(e){return e!=null}function n4(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(l){var a=Jw(l,n),u=Rv(a,1),d=u[0],f=Zw(l,r,o),p=Rv(f,1),g=p[0];return d&&g})}function Cc(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function cl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ov(e){e.preventDefault()}function r4(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function o4(e){return e.indexOf("Edge/")!==-1}function i4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return r4(e)||o4(e)}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var mh=h.forwardRef(function(e,t){var n=e.children,r=kc(e,u4),o=nb(r),i=o.open,s=kc(o,d4);return h.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(h.Fragment,null,n(Re(Re({},s),{},{open:i})))});mh.displayName="Dropzone";var tb={disabled:!1,getFilesFromEvent:D5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};mh.defaultProps=tb;mh.propTypes={children:be.func,accept:be.oneOfType([be.string,be.arrayOf(be.string)]),multiple:be.bool,preventDropOnDocument:be.bool,noClick:be.bool,noKeyboard:be.bool,noDrag:be.bool,noDragEventsBubbling:be.bool,minSize:be.number,maxSize:be.number,maxFiles:be.number,disabled:be.bool,getFilesFromEvent:be.func,onFileDialogCancel:be.func,onFileDialogOpen:be.func,useFsAccessApi:be.bool,onDragEnter:be.func,onDragLeave:be.func,onDragOver:be.func,onDrop:be.func,onDropAccepted:be.func,onDropRejected:be.func,validator:be.func};var Ff={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function nb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Re(Re({},tb),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,x=t.preventDropOnDocument,b=t.noClick,C=t.noKeyboard,E=t.noDrag,_=t.noDragEventsBubbling,k=t.validator,j=h.useMemo(function(){return typeof w=="function"?w:Mv},[w]),P=h.useMemo(function(){return typeof y=="function"?y:Mv},[y]),T=h.useRef(null),M=h.useRef(null),I=h.useReducer(_4,Ff),H=sd(I,2),B=H[0],Y=H[1],q=B.isFocused,Q=B.isFileDialogActive,L=B.draggedFiles,V=h.useRef(typeof window<"u"&&window.isSecureContext&&v&&s4()),J=function(){!V.current&&Q&&setTimeout(function(){if(M.current){var te=M.current.files;te.length||(Y({type:"closeDialog"}),P())}},300)};h.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[M,Q,P,V]);var re=h.useRef([]),pe=function(te){T.current&&T.current.contains(te.target)||(te.preventDefault(),re.current=[])};h.useEffect(function(){return x&&(document.addEventListener("dragover",Ov,!1),document.addEventListener("drop",pe,!1)),function(){x&&(document.removeEventListener("dragover",Ov),document.removeEventListener("drop",pe))}},[T,x]);var st=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[].concat(h4(re.current),[W.target]),cl(W)&&Promise.resolve(o(W)).then(function(te){Cc(W)&&!_||(Y({draggedFiles:te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(W))})},[o,u,_]),Me=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=cl(W);if(te&&W.dataTransfer)try{W.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(W),!1},[f,_]),He=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W);var te=re.current.filter(function(et){return T.current&&T.current.contains(et)}),$e=te.indexOf(W.target);$e!==-1&&te.splice($e,1),re.current=te,!(te.length>0)&&(Y({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),cl(W)&&d&&d(W))},[T,d,_]),ye=h.useCallback(function(W,te){var $e=[],et=[];W.forEach(function(lt){var Yr=Jw(lt,n),gt=sd(Yr,2),Ro=gt[0],No=gt[1],To=Zw(lt,s,i),Po=sd(To,2),Oo=Po[0],cr=Po[1],Ao=k?k(lt):null;if(Ro&&Oo&&!Ao)$e.push(lt);else{var Qr=[No,cr];Ao&&(Qr=Qr.concat(Ao)),et.push({file:lt,errors:Qr.filter(function(lu){return lu})})}}),(!l&&$e.length>1||l&&a>=1&&$e.length>a)&&($e.forEach(function(lt){et.push({file:lt,errors:[t4]})}),$e.splice(0)),Y({acceptedFiles:$e,fileRejections:et,type:"setFiles"}),p&&p($e,et,te),et.length>0&&m&&m(et,te),$e.length>0&&g&&g($e,te)},[Y,l,n,s,i,a,p,g,m,k]),at=h.useCallback(function(W){W.preventDefault(),W.persist(),In(W),re.current=[],cl(W)&&Promise.resolve(o(W)).then(function(te){Cc(W)&&!_||ye(te,W)}),Y({type:"reset"})},[o,ye,_]),yn=h.useCallback(function(){if(V.current){Y({type:"openDialog"}),j();var W={multiple:l,types:a4(n)};window.showOpenFilePicker(W).then(function(te){return o(te)}).then(function(te){ye(te,null),Y({type:"closeDialog"})}).catch(function(te){l4(te)?(P(te),Y({type:"closeDialog"})):c4(te)&&(V.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(Y({type:"openDialog"}),j(),M.current.value=null,M.current.click())},[Y,j,P,v,ye,n,l]),Dn=h.useCallback(function(W){!T.current||!T.current.isEqualNode(W.target)||(W.key===" "||W.key==="Enter"||W.keyCode===32||W.keyCode===13)&&(W.preventDefault(),yn())},[T,yn]),jo=h.useCallback(function(){Y({type:"focus"})},[]),Ke=h.useCallback(function(){Y({type:"blur"})},[]),xn=h.useCallback(function(){b||(i4()?setTimeout(yn,0):yn())},[b,yn]),rn=function(te){return r?null:te},qr=function(te){return C?null:rn(te)},qe=function(te){return E?null:rn(te)},In=function(te){_&&te.stopPropagation()},qi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.role,lt=W.onKeyDown,Yr=W.onFocus,gt=W.onBlur,Ro=W.onClick,No=W.onDragEnter,To=W.onDragOver,Po=W.onDragLeave,Oo=W.onDrop,cr=kc(W,f4);return Re(Re(Lf({onKeyDown:qr(Sn(lt,Dn)),onFocus:qr(Sn(Yr,jo)),onBlur:qr(Sn(gt,Ke)),onClick:rn(Sn(Ro,xn)),onDragEnter:qe(Sn(No,st)),onDragOver:qe(Sn(To,Me)),onDragLeave:qe(Sn(Po,He)),onDrop:qe(Sn(Oo,at)),role:typeof et=="string"&&et!==""?et:"button"},$e,T),!r&&!C?{tabIndex:0}:{}),cr)}},[T,Dn,jo,Ke,xn,st,Me,He,at,C,E,r]),Yi=h.useCallback(function(W){W.stopPropagation()},[]),Qi=h.useMemo(function(){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=W.refKey,$e=te===void 0?"ref":te,et=W.onChange,lt=W.onClick,Yr=kc(W,p4),gt=Lf({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:rn(Sn(et,at)),onClick:rn(Sn(lt,Yi)),tabIndex:-1},$e,M);return Re(Re({},gt),Yr)}},[M,n,l,at,r]),$o=L.length,Pt=$o>0&&n4({files:L,accept:n,minSize:s,maxSize:i,multiple:l,maxFiles:a}),Pa=$o>0&&!Pt;return Re(Re({},B),{},{isDragAccept:Pt,isDragReject:Pa,isFocused:q&&!r,getRootProps:qi,getInputProps:Qi,rootRef:T,inputRef:M,open:rn(yn)})}function _4(e,t){switch(t.type){case"focus":return Re(Re({},e),{},{isFocused:!0});case"blur":return Re(Re({},e),{},{isFocused:!1});case"openDialog":return Re(Re({},Ff),{},{isFileDialogActive:!0});case"closeDialog":return Re(Re({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Re(Re({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Re(Re({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Re({},Ff);default:return e}}function Mv(){}function S4(e){let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const p=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(u,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=d(t);function g(){const m=d(t);if(!f(p,m)){const y=p;u(p=m,y)}}return n.add(g),()=>n.delete(g)},a={setState:r,getState:o,subscribe:(u,d,f)=>d||f?i(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(r,o,a),a}const E4=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Dv=E4?h.useEffect:h.useLayoutEffect;function C4(e){const t=typeof e=="function"?S4(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=h.useReducer(w=>w+1,0),s=t.getState(),l=h.useRef(s),a=h.useRef(r),u=h.useRef(o),d=h.useRef(!1),f=h.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(l.current!==s||a.current!==r||u.current!==o||d.current)&&(p=r(s),g=!o(f.current,p)),Dv(()=>{g&&(f.current=p),l.current=s,a.current=r,u.current=o,d.current=!1});const m=h.useRef(s);Dv(()=>{const w=()=>{try{const x=t.getState(),b=a.current(x);u.current(f.current,b)||(l.current=x,f.current=b,i())}catch{d.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const y=g?p:f.current;return h.useDebugValue(y),y};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const k4=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,l,a)=>{let u=s;if(l){const d=(a==null?void 0:a.equalityFn)||Object.is;let f=s(r.getState());u=p=>{const g=s(p);if(!d(f,g)){const m=f;l(f=g,m)}},a!=null&&a.fireImmediately&&l(f,f)}return o(u)},e(t,n,r)};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var rb=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var j4=rb;function Iv(e){return j4(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var $4=function(t){var n,r;return!(Iv(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,Iv(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var R4=$4,gh=function(t){return R4(t)||typeof t=="function"||Array.isArray(t)};/*! - * for-in - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var N4=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},T4=gh,P4=N4;function ob(e,t){for(var n=arguments.length,r=0;++r - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var D4=function(e,t,n,r,o){if(!I4(e)||!t)return e;if(t=ul(t),n&&(t+="."+ul(n)),r&&(t+="."+ul(r)),o&&(t+="."+ul(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,l=-1;e&&++l - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var L4=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Lv(e)||(e={});for(var t=1;t - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var G4=B4,K4=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=G4({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],l=[],a=[""],u=r.sep,d=e.length,f=-1,p;function g(){if(i&&l.length)return i[l[l.length-1]]}for(;++f - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Q4=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Fv=Q4,X4=function(t){Fv(t)||(t={});for(var n=arguments.length,r=1;r - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var eL=rb;function zv(e){return eL(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var tL=function(t){var n,r;return!(zv(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,zv(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var nL=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! - * set-value - * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */var rL=K4,oL=X4,Bv=tL,Uv=nL,iL=function(e,t,n){if(!Uv(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=rL(t,{sep:".",brackets:!0}).filter(sL),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function uL(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function dL(e,t){return Object.entries(PD(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function fL(e,t){const n=h.useRef();return(t?la:Ea)(e,n.current)||(n.current=e),n.current}function ib(e,t){return h.useMemo(e,fL(t,!0))}function pL(e){const t=h.useRef(null),n=h.useRef(null),r=h.useRef(!0);return h.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),h.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:l}=n.current.getBoundingClientRect();return i.style.height=l+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const hL=e=>{const[t,n]=h.useState(e.getVisiblePaths());return h.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Ea});return()=>r()},[e]),t};function mL(e,t,n){return e.useStore(o=>{const i=ne(ne({},n),o.data);return dL(i,t)},Ea)}function sb(e=3){const t=h.useRef(null),n=h.useRef(null),[r,o]=h.useState(!1),i=h.useCallback(()=>o(!0),[]),s=h.useCallback(()=>o(!1),[]);return h.useLayoutEffect(()=>{if(r){const{bottom:l,top:a,left:u}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=l+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=u+"px",f==="down"?n.current.style.top=l+e+"px":n.current.style.bottom=window.innerHeight-a+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}m5([g5]);const gL={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};$t.extend({color:()=>e=>xt(e).isValid()});const vL=e=>$t().color().test(e);function ab(e,{format:t,hasAlpha:n,isString:r}){const o=gL[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?OD(i,["a"]):i}const lb=(e,t)=>{const n=xt(e);if(!n.isValid())throw Error("Invalid color");return ab(n,t)},yL=(e,t)=>ab(xt(e),ne(ne({},t),{},{isString:!0,format:"hex"})),xL=({value:e})=>{const t=h5(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:lb(e,o),settings:o}};var wL=Object.freeze({__proto__:null,schema:vL,sanitize:lb,format:yL,normalize:xL});const bL=ee("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),_L=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),SL=ee("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Vv(e,t){return t!=="rgb"?xt(e).toRgb():e}function EL({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=mt(),{format:s,hasAlpha:l}=n,{popinRef:a,wrapperRef:u,shown:d,show:f,hide:p}=sb(),g=h.useRef(0),[m,y]=h.useState(()=>Vv(e,s)),w=l?S5:C5,v=()=>{y(Vv(e,s)),f(),o()},x=()=>{p(),i(),window.clearTimeout(g.current)},b=()=>{g.current=window.setTimeout(x,500)};return h.useEffect(()=>()=>window.clearTimeout(g.current),[]),S.createElement(S.Fragment,null,S.createElement(bL,{ref:a,active:d,onClick:()=>v(),style:{color:t}}),d&&S.createElement(lh,null,S.createElement(kw,{onPointerUp:x}),S.createElement(SL,{ref:u,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:C=>C.buttons===0&&b()},S.createElement(w,{color:m,onChange:r}))))}function CL(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,n),S.createElement(_L,null,S.createElement(EL,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),S.createElement(ah,{value:t,onChange:r,onUpdate:o})))}var kL=ne({component:CL},wL);function jL(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(uh,{value:t,settings:r,onUpdate:n}))}var $L=ne({component:jL},Aw(["x","y","z"]));const RL=ee("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),NL=ee("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function TL({value:e,settings:t,onUpdate:n}){const r=h.useRef(),o=h.useRef(0),i=h.useRef(0),s=h.useRef(1),[l,a]=h.useState(!1),[u,d]=h.useState(!1),[f,p]=$w(),g=h.useRef(null),m=h.useRef(null);h.useLayoutEffect(()=>{if(l){const{top:I,left:H,width:B,height:Y}=g.current.getBoundingClientRect();m.current.style.left=H+B/2+"px",m.current.style.top=I+Y/2+"px"}},[l]);const{keys:[y,w],joystick:v}=t,x=v==="invertY"?1:-1,{[y]:{step:b},[w]:{step:C}}=t,E=Xn("sizes","joystickWidth"),_=Xn("sizes","joystickHeight"),k=parseFloat(E)*.8/2,j=parseFloat(_)*.8/2,P=h.useCallback(()=>{r.current||(d(!0),o.current&&p({x:o.current*k}),i.current&&p({y:i.current*-j}),r.current=window.setInterval(()=>{n(I=>{const H=b*o.current*s.current,B=x*C*i.current*s.current;return Array.isArray(I)?{[y]:I[0]+H,[w]:I[1]+B}:{[y]:I[y]+H,[w]:I[w]+B}})},16))},[k,j,n,p,b,C,y,w,x]),T=h.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);h.useEffect(()=>{function I(H){s.current=fw(H)}return window.addEventListener("keydown",I),window.addEventListener("keyup",I),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",I),window.removeEventListener("keyup",I)}},[]);const M=Ra(({first:I,active:H,delta:[B,Y],movement:[q,Q]})=>{I&&a(!0);const L=Hr(q,-k,k),V=Hr(Q,-j,j);o.current=Math.abs(q)>Math.abs(L)?Math.sign(q-L):0,i.current=Math.abs(Q)>Math.abs(V)?Math.sign(V-Q):0;let J=e[y],re=e[w];H?(o.current||(J+=B*b*s.current,p({x:L})),i.current||(re-=x*Y*C*s.current,p({y:V})),o.current||i.current?P():T(),n({[y]:J,[w]:re})):(a(!1),o.current=0,i.current=0,p({x:0,y:0}),T())});return S.createElement(RL,Fe({ref:g},M()),l&&S.createElement(lh,null,S.createElement(NL,{ref:m,isOutOfBounds:u},S.createElement("div",null),S.createElement("span",{ref:f}))))}const PL=ee("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function OL(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(PL,{withJoystick:!!r.joystick},r.joystick&&S.createElement(TL,{value:t,settings:r,onUpdate:n}),S.createElement(uh,{value:t,settings:r,onUpdate:n})))}const AL=["joystick"],cb=Aw(["x","y"]),ML=e=>{let{joystick:t=!0}=e,n=ve(e,AL);const{value:r,settings:o}=cb.normalize(n);return{value:r,settings:ne(ne({},o),{},{joystick:t})}};var DL=ne(ne({component:OL},cb),{},{normalize:ML});const IL=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},LL=(e,t)=>typeof t=="object"&&"image"in t,FL=({image:e})=>({value:e});var zL=Object.freeze({__proto__:null,sanitize:IL,schema:LL,normalize:FL});const BL=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),UL=ee("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),HL=ee("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),WL=ee("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),VL=ee("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),GL=ee("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function KL(){const{label:e,value:t,onUpdate:n,disabled:r}=mt(),{popinRef:o,wrapperRef:i,shown:s,show:l,hide:a}=sb(),u=h.useCallback(m=>{m.length&&n(m[0])},[n]),d=h.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=nb({maxFiles:1,accept:"image/*",onDrop:u,disabled:r});return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(BL,null,S.createElement(HL,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&l(),onPointerUp:a,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&S.createElement(lh,null,S.createElement(kw,{onPointerUp:a,style:{cursor:"pointer"}}),S.createElement(WL,{ref:i,style:{backgroundImage:`url(${t})`}})),S.createElement(UL,f({isDragAccept:g}),S.createElement("input",p()),S.createElement(VL,null,g?"drop image":"click or drop")),S.createElement(GL,{onClick:d,disabled:!t})))}var qL=ne({component:KL},zL);const Gv=$t().number(),YL=(e,t)=>$t().array().length(2).every.number().test(e)&&$t().schema({min:Gv,max:Gv}).test(t),jc=e=>({min:e[0],max:e[1]}),ub=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?jc(e):e,i={min:r[0],max:r[1]},{min:s,max:l}=ne(ne({},i),o);return[Hr(Number(s),t,Math.max(t,l)),Hr(Number(l),Math.min(n,s),n)]},QL=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Ow(jc(e),{min:r,max:r}),i=[t,n],s=ne(ne({},o),{},{bounds:i});return{value:ub(jc(e),s,e),settings:s}};var XL=Object.freeze({__proto__:null,schema:YL,format:jc,sanitize:ub,normalize:QL});const JL=["value","bounds","onDrag"],ZL=["bounds"],e6=ee("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function t6(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ve(e,JL);const s=h.useRef(null),l=h.useRef(null),a=h.useRef(null),u=h.useRef(0),d=Xn("sizes","scrubberWidth"),f=Ra(({event:m,first:y,xy:[w],movement:[v],memo:x={}})=>{if(y){const{width:C,left:E}=s.current.getBoundingClientRect();u.current=C-parseFloat(d);const _=(m==null?void 0:m.target)===l.current||(m==null?void 0:m.target)===a.current;x.pos=_c((w-E)/C,n,r);const k=Math.abs(x.pos-t.min)-Math.abs(x.pos-t.max);x.key=k<0||k===0&&x.pos<=t.min?"min":"max",_&&(x.pos=t[x.key])}const b=x.pos+_c(v/u.current,0,r-n);return o({[x.key]:bI(b,i[x.key])}),x}),p=`calc(${bc(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-bc(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return S.createElement(Nw,Fe({ref:s},f()),S.createElement(Rw,null,S.createElement(Tw,{style:{left:p,right:g}})),S.createElement(Rf,{position:"left",ref:l,style:{left:p}}),S.createElement(Rf,{position:"right",ref:a,style:{right:g}}))}function n6(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt(),o=ve(r,ZL);return S.createElement(S.Fragment,null,S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(e6,null,S.createElement(t6,Fe({value:t},r,{onDrag:n})),S.createElement(uh,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var r6=ne({component:n6},XL);const o6=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},i6=["type","value"],s6=["onChange","transient","onEditStart","onEditEnd"],a6=function(){const t=C4(k4(()=>({data:{}}))),n=o6();this.storeId=TD(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),l=Object.keys(s),a=[];Object.entries(r).forEach(([d,f])=>{f.render&&l.some(p=>p.indexOf(d)===0)&&!f.render(this.get)&&a.push(d+".")});const u=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&a.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&u.push(d)}),u},this.setOrderedPaths=s=>{s.forEach(l=>o.add(l))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(l=>{const a=l.data;return s.forEach(u=>{if(u in a){const d=a[u];d.__refCount--,d.__refCount===0&&d.type in pn&&delete a[u]}}),{data:a}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{let p=u[d];if(p){const{type:g,value:m}=f,y=ve(f,i6);g!==p.type?Vn(Ne.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||l)&&Object.assign(p,y),p.__refCount++)}else u[d]=ne(ne({},f),{},{__refCount:1})}),{data:u}})},this.setValueAtPath=(s,l,a)=>{t.setState(u=>{const d=u.data;return hv(d[s],l,s,this,a),{data:d}})},this.setSettingsAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].settings=ne(ne({},u[s].settings),l),{data:u}})},this.disableInputAtPath=(s,l)=>{t.setState(a=>{const u=a.data;return u[s].disabled=l,{data:u}})},this.set=(s,l)=>{t.setState(a=>{const u=a.data;return Object.entries(s).forEach(([d,f])=>{try{hv(u[d],f,void 0,void 0,l)}catch{}}),{data:u}})},this.getInput=s=>{try{return this.getData()[s]}catch{Vn(Ne.PATH_DOESNT_EXIST,s)}},this.get=s=>{var l;return(l=this.getInput(s))===null||l===void 0?void 0:l.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,l)=>{const a=`onEditStart:${s}`;return n.on(a,l),()=>n.off(a,l)},this.subscribeToEditEnd=(s,l)=>{const a=`onEditEnd:${s}`;return n.on(a,l),()=>n.off(a,l)};const i=(s,l,a)=>{const u={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return Vn(Ne.EMPTY_KEY);let p=vh(l,d);if(f.type===pn.FOLDER){const g=i(f.schema,p,a);Object.assign(u,g),p in r||(r[p]=f.settings)}else if(d in a)Vn(Ne.DUPLICATE_KEYS,d,p,a[d].path);else{const g=FD(f,d,p,u);if(g){const{type:m,options:y,input:w}=g,{onChange:v,transient:x,onEditStart:b,onEditEnd:C}=y,E=ve(y,s6);u[p]=ne(ne(ne({type:m},E),w),{},{fromPanel:!0}),a[d]={path:p,onChange:v,transient:x,onEditStart:b,onEditEnd:C}}else Vn(Ne.UNKNOWN_INPUT,p,f)}}),u};this.getDataFromSchema=s=>{const l={};return[i(s,"",l),l]}},db=new a6,l6={collapsed:!1};function c6(e,t){return{type:pn.FOLDER,schema:e,settings:ne(ne({},l6),t)}}const Kv=e=>"__levaInput"in e,u6=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=uL(o);(!r||i.toLowerCase().indexOf(r)>-1)&&cL(n,s,{[i]:{__levaInput:!0,path:o}})}),n},d6=["type","label","path","valueKey","value","settings","setValue","disabled"];function f6(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:l,disabled:a}=e,u=ve(e,d6);const{displayValue:d,onChange:f,onUpdate:p}=jw({type:t,value:i,settings:s,setValue:l}),g=_o[t].component;return g?S.createElement(vw.Provider,{value:ne({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:p,settings:s,setValue:l,disabled:a},u)},S.createElement(iI,{disabled:a},S.createElement(g,null))):(Vn(Ne.NO_COMPONENT_FOR_TYPE,t,r),null)}const p6=ee("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function h6({onClick:e,settings:t,label:n}){const r=$a();return S.createElement(nn,null,S.createElement(p6,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const m6=ee("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),g6=ee("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),v6=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function y6(e){const{label:t,opts:n}=v6(e),r=$a();return S.createElement(nn,{input:!!t},t&&S.createElement(gn,null,t),S.createElement(m6,null,Object.entries(n).map(([o,i])=>S.createElement(g6,{key:o,onClick:()=>i(r.get)},o))))}const x6=ee("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),fb=100;function w6(e,t){e.push(t),e.length>fb&&e.shift()}const b6=h.forwardRef(function({initialValue:e},t){const n=Xn("colors","highlight3"),r=Xn("colors","elevation2"),o=Xn("colors","highlight1"),[i,s]=h.useMemo(()=>[xt(o).alpha(.4).toRgbString(),xt(o).alpha(.1).toRgbString()],[o]),l=h.useRef([e]),a=h.useRef(e),u=h.useRef(e),d=h.useRef(),f=h.useCallback((m,y)=>{if(!m)return;const{width:w,height:v}=m,x=new Path2D,b=w/fb,C=v*.05;for(let k=0;k({frame:m=>{(a.current===void 0||mu.current)&&(u.current=m),w6(l.current,m),d.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),h.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),S.createElement(x6,{ref:p})}),qv=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),_6=h.forwardRef(function({initialValue:e},t){const[n,r]=h.useState(qv(e));return h.useImperativeHandle(t,()=>({frame:o=>r(qv(o))}),[]),S.createElement("div",null,n)});function Yv(e){return typeof e=="function"?e():e.current}function S6({label:e,objectOrFn:t,settings:n}){const r=h.useRef(),o=h.useRef(Yv(t));return h.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Yv(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),S.createElement(nn,{input:!0},S.createElement(gn,{align:"top"},e),n.graph?S.createElement(b6,{ref:r,initialValue:o.current}):S.createElement(_6,{ref:r,initialValue:o.current}))}const E6=["type","label","key"],C6={[pn.BUTTON]:h6,[pn.BUTTON_GROUP]:y6,[pn.MONITOR]:S6},k6=S.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:l}]=gI(e);if(!t)return null;const{type:a,label:u,key:d}=t,f=ve(t,E6);if(a in pn){const p=C6[a];return S.createElement(p,Fe({label:u,path:e},f))}return a in _o?S.createElement(f6,Fe({key:i+e,type:a,label:u,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:l},f)):(SD(Ne.UNSUPPORTED_INPUT,a,e),null)});function j6({toggle:e,toggled:t,name:n}){return S.createElement(nI,{onClick:()=>e()},S.createElement(ch,{toggled:t}),S.createElement("div",null,n))}const $6=({name:e,path:t,tree:n})=>{const r=$a(),o=vh(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[l,a]=h.useState(!i),u=h.useRef(null),d=Xn("colors","folderWidgetColor"),f=Xn("colors","folderTextColor");return h.useLayoutEffect(()=>{u.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),u.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),S.createElement(Sc,{ref:u},S.createElement(j6,{name:e,toggled:l,toggle:()=>a(p=>!p)}),S.createElement(pb,{parent:o,tree:n,toggled:l}))},pb=S.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:l}=pL(i),a=$a(),u=([f,p])=>{var g;return(Kv(p)?(g=a.getInput(p.path))===null||g===void 0?void 0:g.order:a.getFolderSettings(vh(r,f)).order)||0},d=Object.entries(o).sort((f,p)=>u(f)-u(p));return S.createElement(jf,{ref:s,isRoot:e,fill:t,flat:n},S.createElement(Sw,{ref:l,isRoot:e,toggled:i},d.map(([f,p])=>Kv(p)?S.createElement(k6,{key:p.path,valueKey:p.valueKey,path:p.path}):S.createElement($6,{key:f,name:f,path:r,tree:p}))))}),R6=ee("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Cw}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),hb=40,$c=ee("i",{$flexCenter:"",width:hb,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),N6=ee("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),T6=ee("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${$c}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),P6=ee("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),O6=ee("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:hb}}}}),A6=S.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=h.useState(""),i=h.useMemo(()=>dw(e,250),[e]),s=()=>{e(""),o("")},l=a=>{const u=a.currentTarget.value;t(!0),o(u)};return h.useEffect(()=>{i(r)},[r,i]),S.createElement(S.Fragment,null,S.createElement(P6,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:a=>a.stopPropagation(),onChange:l}),S.createElement($c,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function M6({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:l,filterEnabled:a,from:u}){const[d,f]=h.useState(!1),p=h.useRef(null);h.useEffect(()=>{var m,y;d?(m=p.current)===null||m===void 0||m.focus():(y=p.current)===null||y===void 0||y.blur()},[d]);const g=Ra(({offset:[m,y],first:w,last:v})=>{t({x:m,y}),w&&n({x:m,y}),v&&r({x:m,y})},{filterTaps:!0,from:({offset:[m,y]})=>[(u==null?void 0:u.x)||m,(u==null?void 0:u.y)||y]});return h.useEffect(()=>{const m=y=>{y.key==="L"&&y.shiftKey&&y.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),S.createElement(S.Fragment,null,S.createElement(N6,{mode:l?"drag":void 0},S.createElement($c,{active:!i,onClick:()=>o()},S.createElement(ch,{toggled:i,width:12,height:8})),S.createElement(O6,Fe({},l?g():{},{drag:l,filterEnabled:a}),s===void 0&&l?S.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},S.createElement("circle",{cx:"2",cy:"2",r:"2"}),S.createElement("circle",{cx:"14",cy:"2",r:"2"}),S.createElement("circle",{cx:"26",cy:"2",r:"2"}),S.createElement("circle",{cx:"2",cy:"12",r:"2"}),S.createElement("circle",{cx:"14",cy:"12",r:"2"}),S.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),a&&S.createElement($c,{active:d,onClick:()=>f(m=>!m)},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},S.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),S.createElement(T6,{toggled:d},S.createElement(A6,{ref:p,setFilter:e,toggle:o})))}const D6=["store","hidden","theme","collapsed"];function I6(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ve(e,D6);const s=ib(()=>QD(r),[r]),[l,a]=h.useState(!o),u=typeof o=="object"?!o.collapsed:l,d=h.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:a,[o]);return!t||n?null:S.createElement(sh.Provider,{value:s},S.createElement(L6,Fe({store:t},i,{toggled:u,setToggle:d,rootClass:s.className})))}const L6=S.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:l=!1,toggled:a,setToggle:u})=>{var d,f;const p=hL(e),[g,m]=h.useState(""),y=h.useMemo(()=>u6(p,g),[p,g]),[w,v]=$w(),x=o||p.length>0,b=typeof s=="object"&&s.title||void 0,C=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,_=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,j=typeof s=="object"&&s.onDragStart||void 0,P=typeof s=="object"&&s.onDragEnd||void 0;return S.useEffect(()=>{v({x:_==null?void 0:_.x,y:_==null?void 0:_.y})},[_,v]),YD(),S.createElement(xw.Provider,{value:{hideCopyButton:l}},S.createElement(R6,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:x?"block":"none"}},s&&S.createElement(M6,{onDrag:T=>{v(T),k==null||k(T)},onDragStart:T=>j==null?void 0:j(T),onDragEnd:T=>P==null?void 0:P(T),setFilter:m,toggle:T=>u(M=>T??!M),toggled:a,title:b,drag:C,filterEnabled:E,from:_}),x&&S.createElement(yw.Provider,{value:e},S.createElement(pb,{isRoot:!0,fill:n,flat:r,tree:y,toggled:a}))))}),F6=["isRoot"];let Rc=!1,lo=null;function mb(e){let{isRoot:t=!1}=e,n=ve(e,F6);return h.useEffect(()=>(Rc=!0,!t&&lo&&(lo.remove(),lo=null),()=>{t||(Rc=!1)}),[t]),S.createElement(I6,Fe({store:db},n))}function z6(e){h.useEffect(()=>{e&&!Rc&&(lo||(lo=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(lo),BD(S.createElement(mb,{isRoot:!0}),lo))),Rc=!0)},[e])}function B6(e,t,n,r,o){let i,s,l,a,u;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?u=n:n&&("store"in n?(a=n,u=r):(l=n,Array.isArray(r)?u=r:(a=r,u=o)))):(i=e,Array.isArray(t)?u=t:(a=t,u=n)),{schema:i,folderName:s,folderSettings:l,hookSettings:a,deps:u||[]}}function ld(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:l,hookSettings:a,deps:u}=B6(e,t,n,r,o),d=typeof s=="function",f=h.useRef(!1),p=h.useRef(!0),g=ib(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:c6(M,l)}:M},u),m=!(a!=null&&a.store);z6(m);const[y]=h.useState(()=>(a==null?void 0:a.store)||db),[w,v]=h.useMemo(()=>y.getDataFromSchema(g),[y,g]),[x,b,C,E,_]=h.useMemo(()=>{const M=[],I=[],H={},B={},Y={};return Object.values(v).forEach(({path:q,onChange:Q,onEditStart:L,onEditEnd:V,transient:J})=>{M.push(q),Q?(H[q]=Q,J||I.push(q)):I.push(q),L&&(B[q]=L),V&&(Y[q]=V)}),[M,I,H,B,Y]},[v]),k=h.useMemo(()=>y.orderPaths(x),[x,y]),j=mL(y,b,w),P=h.useCallback(M=>{const I=Object.entries(M).reduce((H,[B,Y])=>Object.assign(H,{[v[B].path]:Y}),{});y.set(I,!1)},[y,v]),T=h.useCallback(M=>y.get(v[M].path),[y,v]);return h.useEffect(()=>{const M=!p.current&&f.current;return y.addData(w,M),p.current=!1,f.current=!1,()=>y.disposePaths(k)},[y,k,w]),h.useEffect(()=>{const M=[];return Object.entries(C).forEach(([I,H])=>{H(y.get(I),I,ne({initial:!0,get:y.get},y.getInput(I)));const B=y.useStore.subscribe(Y=>{const q=Y.data[I];return[q.disabled?void 0:q.value,q]},([Y,q])=>H(Y,I,ne({initial:!1,get:y.get},q)),{equalityFn:Ea});M.push(B)}),()=>M.forEach(I=>I())},[y,C]),h.useEffect(()=>{const M=[];return Object.entries(E).forEach(([I,H])=>M.push(y.subscribeToEditStart(I,H))),Object.entries(_).forEach(([I,H])=>M.push(y.subscribeToEditEnd(I,H))),()=>M.forEach(I=>I())},[E,_,y]),d?[j,P,T]:j}lr(mn.SELECT,OI);lr(mn.IMAGE,qL);lr(mn.NUMBER,SI);lr(mn.COLOR,kL);lr(mn.STRING,UI);lr(mn.BOOLEAN,YI);lr(mn.INTERVAL,r6);lr(mn.VECTOR3D,$L);lr(mn.VECTOR2D,DL);const U6=window.innerWidth<=768,H6=()=>{const{groupSize:e}=ld({groupSize:{value:2,min:2,max:4,step:1}}),{itemCount:t}=ld({itemCount:{value:8,min:4,max:12,step:1}}),{columns:n}=ld({columns:{value:4,min:2,max:4,step:1,disabled:U6}}),[r,o]=h.useState([]),[i,s]=h.useState([]),l=h.useCallback(()=>{const[a,u]=V3(t,e);o(a),s(u)},[s,t,e]);return h.useEffect(l,[t,e,l]),c.jsxs(c.Fragment,{children:[c.jsx(mb,{collapsed:!0,hideCopyButton:!0,titleBar:{position:{x:0,y:40},filter:!1,title:"Config"},theme:{colors:{highlight1:"white",highlight2:"white"}}}),c.jsxs("h3",{className:qn.center,children:["Connect group of ",e," words by clicking on related words"]}),c.jsx(tO,{itemGroups:r,allItems:i,columns:n,groupSize:e}),c.jsx("div",{className:qn.center,children:c.jsx("button",{className:qn.reset,onClick:()=>l(),children:"Reset"})})]})},W6="_heading_12asi_1",V6="_stepper_12asi_5",G6="_step_12asi_5",K6="_active_12asi_33",q6="_complete_12asi_38",Y6="_btn_12asi_43",sn={heading:W6,stepper:V6,step:G6,"step-number":"_step-number_12asi_20",active:K6,complete:q6,btn:Y6,"progress-container":"_progress-container_12asi_48","progress-bar":"_progress-bar_12asi_56","action-container":"_action-container_12asi_62"},Q6=({stepConfig:e=[]})=>{var u;const[t,n]=h.useState(1),[r,o]=h.useState(!1);if(e.length===0)return null;const i=(u=e[t-1])==null?void 0:u.Component,s=d=>{o(!1),n(d)},l=()=>{n(d=>d{n(d=>d===e.length?(o(!0),d):d+1)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:sn.stepper,children:[e.map((d,f)=>c.jsxs("div",{className:`${sn.step} ${t===f+1?sn.active:""} ${t>f+1||r?sn.complete:""}`,children:[c.jsx("div",{className:sn["step-number"],onClick:()=>s(f+1),children:t>f+1||r?c.jsx("span",{children:"✓"}):f+1}),c.jsx("div",{className:sn["step-name"],children:d.name})]},d.name)),c.jsx("div",{className:sn["progress-container"],style:{width:`calc(100% - (100% / ${e.length}))`,marginLeft:`calc(100% /(${e.length} * 2))`,zIndex:-1},children:c.jsx("div",{className:sn["progress-bar"],style:{width:`${(t-1)/(e.length-1)*100}%`}})})]}),c.jsxs("div",{className:sn["action-container"],children:[!r&&c.jsx(i,{}),r&&c.jsx("div",{children:"Order Delivered successfully!🎉"}),c.jsxs("span",{children:[c.jsx("button",{disabled:t===1,className:sn.btn,onClick:l,children:"Previous"}),c.jsx("button",{disabled:r,className:sn.btn,onClick:a,children:t===e.length?"Finish":"Next"})]})]})]})},X6=[{name:"Contact Details",Component:()=>c.jsx("div",{children:"Add contact details for further communications."})},{name:"Shipping Address",Component:()=>c.jsx("div",{children:"Add shipping address for successful delivery."})},{name:"Payment",Component:()=>c.jsx("div",{children:"Complete Payment to complete the order."})},{name:"Delivered",Component:()=>c.jsx("div",{children:"Ready to get delivered!"})}],J6=()=>c.jsx("div",{children:c.jsx(Q6,{stepConfig:X6})}),Z6="_main_yhjgz_1",e8="_option_yhjgz_26",Si={main:Z6,"select-dahi":"_select-dahi_yhjgz_7","inline-options":"_inline-options_yhjgz_14",option:e8,"option-selected":"_option-selected_yhjgz_44","option-disabled":"_option-disabled_yhjgz_50"};function t8({id:e,text:t,setOption:n,isDisabled:r,isSelected:o}){const i=h.useCallback(s=>{if(r)return;const a=s.target.getAttribute("data-option-id");a&&n(a)},[]);return c.jsx("button",{"data-option-id":e,onClick:i,className:`${Si.option} ${o?Si["option-selected"]:""} ${r?Si["option-disabled"]:""}`,children:t})}function n8({options:e}){const[t,n]=h.useState(e[0].id),r=h.useCallback(o=>n(o),[]);return c.jsx("div",{className:Si["inline-options"],children:e.map(o=>c.jsx(t8,{...o,isSelected:o.id===t,setOption:r},o.id))})}const r8=[{id:"1",text:"100ml"},{id:"2",text:"200ml"},{id:"3",text:"400ml"},{id:"4",text:"500ml",isDisabled:!0},{id:"5",text:"800ml"}];function o8(){return c.jsx("div",{className:Si.main,children:c.jsxs("div",{className:Si["select-dahi"],children:[c.jsx("h2",{children:"Select Size of Dahi"}),c.jsx(n8,{options:r8})]})})}const i8="_a_13gc8_1",s8="_d_13gc8_2",a8="_g_13gc8_3",l8="_b_13gc8_18",c8="_c_13gc8_19",u8="_e_13gc8_20",d8="_f_13gc8_21",f8="_off_13gc8_54",p8="_container_13gc8_59",h8="_hours_13gc8_68",m8="_minutes_13gc8_72",g8="_seconds_13gc8_76",v8="_colons_13gc8_80",y8="_colon1_13gc8_89",x8="_colon2_13gc8_90",D={a:i8,d:s8,g:a8,b:l8,c:c8,e:u8,f:d8,off:f8,container:p8,hours:h8,minutes:m8,seconds:g8,colons:v8,colon1:y8,colon2:x8},w8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),b8=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),_8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:`${D.f} ${D.off}`}),c.jsx("div",{className:D.g})]}),S8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),E8=c.jsxs("div",{children:[c.jsx("div",{className:`${D.a} ${D.off}`}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),C8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),k8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:`${D.b} ${D.off}`}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),j8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:`${D.c} ${D.off}`}),c.jsx("div",{className:`${D.d} ${D.off}`}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:`${D.g} ${D.off}`})]}),$8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:D.e}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),R8=c.jsxs("div",{children:[c.jsx("div",{className:D.a}),c.jsx("div",{className:D.b}),c.jsx("div",{className:D.c}),c.jsx("div",{className:D.d}),c.jsx("div",{className:`${D.e} ${D.off}`}),c.jsx("div",{className:D.f}),c.jsx("div",{className:D.g})]}),Qv=c.jsxs("div",{className:D.colons,children:[c.jsx("div",{className:D.colon1}),c.jsx("div",{className:D.colon2})]}),vn=new Map;vn.set(0,w8);vn.set(1,b8);vn.set(2,_8);vn.set(3,S8);vn.set(4,E8);vn.set(5,C8);vn.set(6,k8);vn.set(7,j8);vn.set(8,$8);vn.set(9,R8);function N8(){let e=new Date;const[t,n]=h.useState(e.getHours()%12||12),[r,o]=h.useState(e.getMinutes()),[i,s]=h.useState(e.getSeconds()),l=()=>{let u=new Date;n(u.getHours()%12||12),o(u.getMinutes()),s(u.getSeconds())};setInterval(()=>l(),1e3);const a=u=>vn.get(u);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:D.container,children:[c.jsxs("div",{className:D.hours,children:[a(t.toString().split("").length>1?+t.toString().split("")[0]:0),a(t.toString().split("").length>1?+t.toString().split("")[1]:t)]}),Qv,c.jsxs("div",{className:D.minutes,children:[a(r.toString().split("").length>1?+r.toString().split("")[0]:0),a(r.toString().split("").length>1?+r.toString().split("")[1]:r)]}),Qv,c.jsxs("div",{className:D.seconds,children:[a(i.toString().split("").length>1?+i.toString().split("")[0]:0),a(i.toString().split("").length>1?+i.toString().split("")[1]:i)]})]})})}const T8=[{id:1,text:"Hello world! How are you?",replies:[{id:2,text:"Hey, I am fine, wau?",replies:[]}]}],P8="_comment_10sns_1",O8="_comment_replies_10sns_17",Xv={comment:P8,comment_replies:O8},gb=({comments:e,addComment:t,deleteComment:n})=>{const[r,o]=h.useState(-1),[i,s]=h.useState(""),l=d=>{i&&(t(d,i),o(-1)),s("")},a=()=>{o(-1),s("")},u=(d,f)=>{d.key==="Enter"?l(f):d.key==="Escape"&&a()};return e.map(d=>c.jsxs("div",{children:[c.jsxs("div",{className:Xv.comment,children:[c.jsx("img",{src:"https://www.iconpacks.net/icons/2/free-user-icon-3296-thumb.png",alt:d.text}),c.jsxs("div",{children:[c.jsx("p",{children:d.text}),r===d.id&&c.jsx("input",{type:"text",placeholder:"Reply...",autoFocus:!0,value:i,onKeyDown:f=>u(f,d.id),onChange:f=>s(f.target.value)}),r===d.id?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>l(d.id),children:"Add"}),c.jsx("button",{onClick:a,children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>o(d.id),children:"Reply"}),c.jsx("button",{onClick:()=>n(d.id),children:"Delete"})]})]})]}),c.jsx("div",{className:Xv.comment_replies,children:c.jsx(gb,{comments:d.replies,addComment:t,deleteComment:n})})]},d.id))},A8=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(T8),o=(l,a)=>{a&&r(l===-1?u=>{const d=structuredClone(u);return d.unshift({id:Date.now(),text:a,replies:[]}),d}:u=>{const d=structuredClone(u);return vb(d,l,a),d})},i=l=>{r(a=>{const u=structuredClone(a);return yb(u,l),u})},s=l=>{l.key==="Enter"&&(o(-1,e),t("")),l.key==="Escape"&&t("")};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{children:"Comments"}),c.jsxs("div",{style:{marginBottom:"1rem",display:"flex",gap:"1rem"},children:[c.jsx("input",{type:"text",placeholder:"Add comment...",onKeyDown:s,value:e,onChange:l=>t(l.target.value)}),c.jsx("button",{onClick:()=>{o(-1,e),t("")},children:"Add"})]}),c.jsx(gb,{comments:n,addComment:o,deleteComment:i})]})},vb=(e,t,n)=>{for(const r of e){if(r.id===t)return r.replies.unshift({id:Date.now(),text:n,replies:[]}),!0;if(vb(r.replies,t,n))return!0}return!1},yb=(e,t)=>{for(let n=0;n{const{grid:p,activeCount:g}=D8(e,t);s(p),a.current=p,l.current=g;const m=setTimeout(()=>{s(y=>y.map(w=>w.map(()=>!1))),u.current=!0},to.timer);return()=>clearTimeout(m)},[e,t]);function d(p,g){i[p][g]||!u.current||(a.current[p][g]?(s(m=>m.map((y,w)=>y.map((v,x)=>w===p&&x===g?!0:v))),a.current[p][g]=!1,l.current=l.current-1):n(),l.current===0&&(r(),u.current=!1))}return c.jsx(z8,{rows:i.length,cols:(f=i[0])==null?void 0:f.length,width:.9*window.innerWidth,children:i.map((p,g)=>p.map((m,y)=>c.jsx("button",{disabled:o,onClick:()=>d(g,y),style:{backgroundColor:m?"yellow":"white"}},`${g}-${y}`)))})}function U8({level:e,size:t,onComplete:n,onError:r,life:o}){return e===0?null:c.jsxs("section",{children:[c.jsxs("h3",{children:["Level: ",e]}),c.jsx(B8,{rows:t.rows,cols:t.cols,onComplete:n,onError:r,disabled:o===0}),c.jsxs("p",{style:{fontSize:"2rem"},children:["Life Left: ",o]})]})}function H8({level:e,isGameInProgress:t,isGameOver:n,onNext:r,onRestart:o}){return t?null:n?c.jsx("div",{children:c.jsx("button",{className:Nc.button,onClick:o,children:"Restart"})}):c.jsx("div",{children:c.jsx("button",{className:Nc.button,onClick:r,children:e===0?"Start":"Next"})})}function W8(){const[e,t]=h.useState({rows:to.rows-1,cols:to.cols}),[n,r]=h.useState(to.life),[o,i]=h.useState(0),[s,l]=h.useState(!1),[a,u]=h.useState(!1);function d(){i(o+1),u(!0),e.rows>e.cols?t({rows:e.rows,cols:e.cols+1}):t({rows:e.rows+1,cols:e.cols})}function f(){u(!1)}function p(){r(n-1),n===1&&(l(!0),u(!1))}function g(){i(1),r(to.life),l(!1),u(!0),t({rows:to.rows,cols:to.cols})}return c.jsxs("main",{className:Nc.container,children:[c.jsx("header",{children:c.jsx("p",{children:"Remember the colored boxes displayed and click on the boxes once the game starts"})}),c.jsx(U8,{level:o,size:e,onComplete:f,onError:p,life:n}),c.jsx(H8,{level:o,isGameInProgress:a,isGameOver:s,onNext:d,onRestart:g})]})}const V8="_formContainer_muy2u_1",G8="_input_text_muy2u_5",K8="_chips_muy2u_12",q8="_remove_muy2u_20",vs={formContainer:V8,input_text:G8,chips:K8,remove:q8},Y8=()=>{const[e,t]=h.useState(""),[n,r]=h.useState([]),o=s=>{s.preventDefault(),e.trim()!==""&&r([...n,e]),t("")},i=s=>{r(n.filter((l,a)=>a!==s))};return c.jsxs(c.Fragment,{children:[c.jsx("form",{onSubmit:o,className:vs.formContainer,children:c.jsx("input",{type:"text",placeholder:"Type & hit Enter",className:vs.input_text,value:e,onChange:s=>t(s.target.value)})}),c.jsx("div",{className:vs.container,children:n.map((s,l)=>c.jsxs("span",{className:vs.chips,children:[s," ",c.jsx("button",{className:vs.remove,onClick:()=>i(l),children:"✕"})]},l))})]})},Q8="_container_w1r10_1",X8="_btn_w1r10_8",J8="_active_w1r10_19",Z8="_content_w1r10_23",dl={container:Q8,btn:X8,active:J8,content:Z8},fl=[{label:"Tab 1",content:"HTML elements tell the browser how to display the content. For example, you can use HTML to create static pages with text, headings, tables, lists, images, links, and more."},{label:"Tab 2",content:"Cascading Style Sheets is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML. "},{label:"Tab 3",content:"JavaScript, often abbreviated as JS, is a programming language and core technology of the Web, alongside HTML and CSS. 99% of websites use JavaScript on the client side for webpage behavior. Web browsers have a dedicated JavaScript engine that executes the client code. "}],eF=()=>{const[e,t]=h.useState(0),n=r=>t(r);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:dl.container,children:[fl.map((r,o)=>c.jsx("span",{onClick:()=>n(o),className:`${e===o?dl.active:""} ${dl.btn}`,children:r.label},o)),c.jsxs("div",{className:dl.content,children:[c.jsxs("h2",{children:["Content of ",fl[e].label,":"]}),fl[e]&&c.jsx("p",{children:fl[e].content})]})]})})},tF="_container_1u8l1_1",nF="_listContainer_1u8l1_6",rF="_userDetail_1u8l1_19",oF="_saveBtn_1u8l1_24",Ko={container:tF,listContainer:nF,userDetail:rF,saveBtn:oF};function iF(e){return Fi({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}const sF=()=>{const[e,t]=h.useState([]),n=async()=>{const a=await(await fetch("https://jsonplaceholder.typicode.com/users")).json();t(a)};h.useEffect(()=>{const l=localStorage.getItem("savedList");l?t(JSON.parse(l)):n()},[]);const r=(l,a)=>{l.dataTransfer.setData("itemIndex",a)},o=()=>{localStorage.setItem("savedList",JSON.stringify(e)),alert("List Saved Successfully")},i=l=>{l.preventDefault()},s=(l,a)=>{const u=parseInt(l.dataTransfer.getData("itemIndex"));if(a!==u){const d=[...e],f=d.splice(u,1)[0];d.splice(a,0,f),t(d)}};return c.jsxs("div",{className:Ko.container,children:[e.slice(0,5).map((l,a)=>c.jsxs("div",{draggable:!0,onDragStart:u=>r(u,a),onDragOver:i,onDrop:u=>s(u,a),className:Ko.listContainer,children:[c.jsx("span",{className:Ko.userDetail,children:l.id}),c.jsx("span",{className:Ko.userDetail,children:l.name}),c.jsx("span",{className:Ko.userDetail,children:l.website}),c.jsx(iF,{})]},a)),c.jsx("button",{className:Ko.saveBtn,onClick:o,children:"Save List"})]})},aF="_container_1iv6r_1",lF="_inputWrapper_1iv6r_5",cF="_box_1iv6r_19",uF="_circle_1iv6r_26",pl={container:aF,inputWrapper:lF,box:cF,circle:uF},ys=Math.min(window.innerWidth-120,window.innerHeight-200),dF=50,fF=()=>{const[e,t]=h.useState(1),n=(ys-dF)/e,r=o=>{if(+o.target.value>2e3){t(2e3);return}if(+o.target.value<1){t(1);return}t(+o.target.value)};return c.jsxs("div",{className:pl.container,children:[c.jsxs("div",{className:pl.inputWrapper,children:[c.jsx("label",{htmlFor:"circles",children:"Number of circles:"}),c.jsx("input",{type:"number",id:"circles",value:e,min:"0",max:"2000",onChange:r})]}),c.jsx("div",{className:pl.box,style:{height:ys,width:ys},children:Array.from({length:e},(o,i)=>i).map(o=>c.jsx("div",{className:pl.circle,style:{height:ys-o*n,width:ys-o*n}},o))})]})},pF=60,Al=[12,1,2,3,4,5,6,7,8,9,10,11],hF=e=>({seconds:Al.length/2*e.getSeconds(),minutes:Al.length/2*e.getMinutes()+e.getSeconds()/10,hours:e.getMinutes()/2+e.getHours()%Al.length*30}),mF="_clock_as1nw_10",gF="_ticks_as1nw_22",vF="_tick_as1nw_22",yF="_digits_as1nw_42",xF="_digit_as1nw_42",wF="_bgImg_as1nw_57",bF="_centerConnector_as1nw_64",_F="_secondsHand_as1nw_73",SF="_minutesHand_as1nw_74",EF="_hoursHand_as1nw_75",jn={clock:mF,ticks:gF,tick:vF,digits:yF,digit:xF,bgImg:wF,centerConnector:bF,secondsHand:_F,minutesHand:SF,hoursHand:EF},xb=S.memo(()=>c.jsx("div",{className:jn.digits,children:Al.map((e,t)=>c.jsx("div",{className:jn.digit,style:{left:`${50+Math.sin(Math.PI*2/12*t)*50}%`,top:`${50-Math.cos(Math.PI*2/12*t)*50}%`},children:e},e))}));xb.displayName="Digits";const wb=S.memo(()=>c.jsx("div",{className:jn.ticks,children:Array.from({length:pF}).map((e,t)=>c.jsx("div",{className:jn.tick,style:{left:`${50+Math.sin(Math.PI*2/60*t)*50}%`,top:`${50-Math.cos(Math.PI*2/60*t)*50}%`,rotate:`${t*6}deg`}},t))}));wb.displayName="Ticks";const CF=()=>{const[e,t]=h.useState({hours:0,minutes:0,seconds:0});return h.useEffect(()=>{const n=()=>{t(hF(new Date))};return n(),setInterval(n,1e3),()=>{clearInterval(n)}},[]),c.jsxs("div",{className:jn.clock,style:{overflow:"hidden"},children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1512428813834-c702c7702b78",alt:"",className:jn.bgImg}),c.jsx(wb,{}),c.jsx(xb,{}),c.jsx("div",{className:jn.centerConnector}),c.jsx("div",{className:jn.hoursHand,style:{rotate:`${e.hours}deg`}}),c.jsx("div",{className:jn.minutesHand,style:{rotate:`${e.minutes}deg`}}),c.jsx("div",{className:jn.secondsHand,style:{rotate:`${e.seconds}deg`}})]})},kF="_main_ykqcu_1",Fs={main:kF},jF=h.forwardRef(function({delay:t,step:n,stepBy:r},o){const[i,s]=h.useState({decrement:null,increment:null});function l(){const u=n,d=setTimeout(()=>{r(-u),s(f=>({...f,decrement:null}))},t*1e3);s(f=>({...f,decrement:d}))}function a(){const u=n,d=setTimeout(()=>{r(+u),s(f=>({...f,increment:null}))},t*1e3);s(f=>({...f,increment:d}))}return h.useImperativeHandle(o,()=>({reset:()=>{i.decrement&&clearTimeout(i.decrement),i.increment&&clearTimeout(i.increment),s({decrement:null,increment:null})}})),c.jsxs("section",{className:Fs.async,children:[c.jsx("button",{onClick:l,"aria-label":"Async Decrement",disabled:!!i.decrement,className:Fs.asyncButton,children:"async -"}),c.jsx("button",{onClick:a,"aria-label":"Async Increment",disabled:!!i.increment,className:Fs.asyncButton,children:"+ async"})]})});function $F({stepBy:e,step:t}){return c.jsxs("section",{className:Fs.async,children:[c.jsx("button",{onClick:()=>e(-t),"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:()=>e(t),"aria-label":"Increment",children:"+"})]})}const cd=1,ud=100,RF=1,NF=3,Ml=-1e3,Dl=1e3,TF=function({step:t,setStep:n}){function r(o){const i=o.target.valueAsNumber;if(Number.isNaN(i))return n(1);i>ud?n(ud):in?r(n):ae?r(e):r(a)}function s(l){const a=l.target.valueAsNumber;if(Number.isNaN(a))return o(Dl);aDl?o(Dl):a{}});function f(){d.current.reset(),t(0)}function p(g){t(m=>{const y=m+g;return s<=y&&y<=a?y:m})}return c.jsxs("main",{className:Fs.main,children:[c.jsx("h2",{children:e}),c.jsx($F,{stepBy:p,step:n}),c.jsx(jF,{delay:o,stepBy:p,step:n,ref:d}),c.jsx(OF,{delay:o,setDelay:i}),c.jsxs("section",{children:[c.jsx(TF,{step:n,setStep:r}),c.jsx(PF,{value:e,lowerLimit:s,upperLimit:a,setLowerLimit:l,setUpperLimit:u}),c.jsx("button",{onClick:f,children:"Reset"})]})]})}const MF="_nested_checkbox_wrapper_sy313_1",DF="_nested_checkbox_label_sy313_6",IF="_nested_checkbox_child_sy313_12",yh={nested_checkbox_wrapper:MF,nested_checkbox_label:DF,nested_checkbox_child:IF},LF=e=>{const{id:t,isChecked:n,label:r,onCheckBoxChange:o}=e;return c.jsxs("label",{className:yh.nested_checkbox_label,children:[c.jsx("input",{type:"checkbox",checked:n,onChange:()=>o(t,!n)}),r]})},bb=e=>{const{childCheckBoxList:t,onCheckBoxChange:n}=e;return c.jsx(h.Fragment,{children:t.map(r=>c.jsxs("div",{className:yh.nested_checkbox_child,children:[c.jsx(LF,{id:r.id,label:r.label,isChecked:r.checked,onCheckBoxChange:n}),r.children.length>0&&c.jsx(bb,{childCheckBoxList:r.children,onCheckBoxChange:n})]},r.id))})},FF=[{label:"p1",id:1,checked:!1,children:[{label:"p1-c1",id:2,checked:!1,children:[{label:"p1-c1-c1",id:3,checked:!1,children:[]},{label:"p1-c1-c2",id:4,checked:!1,children:[{label:"p1-c1-c2-c1",id:5,checked:!1,children:[]},{label:"p1-c1-c2-c2",id:6,checked:!1,children:[{label:"p1-c1-c2-c2-c1",id:7,checked:!1,children:[]},{label:"p1-c1-c2-c2-c2",id:8,checked:!1,children:[]}]},{label:"p1-c1-c2-c3",id:9,checked:!1,children:[]}]}]},{label:"p1-c2",id:10,checked:!1,children:[]},{label:"p1-c3",id:11,checked:!1,children:[]}]},{label:"p2",id:12,checked:!1,children:[{label:"p2-c1",id:13,checked:!1,children:[]},{label:"p2-c2",id:14,checked:!1,children:[]}]},{label:"p3",id:15,checked:!1,children:[{label:"p3-c1",id:16,checked:!1,children:[]}]},{label:"p4",id:17,checked:!1,children:[]}],zF=()=>{const[e,t]=h.useState(FF),n=(s,l)=>{for(let a=0;a{if(s.length===0)return u;for(let d=0;d{if(s.length===0)return 0;let l=0;for(let a=0;a{let a=JSON.parse(JSON.stringify(e)),u=!1,d=0;for(let p=0;p0&&(f!==a[d].children.length?a[d].checked=!1:a[d].checked=!0),t(a)};return c.jsx("div",{className:yh.nested_checkbox_wrapper,children:c.jsx(bb,{childCheckBoxList:e,onCheckBoxChange:i})})};var Cn=(e=>(e.Slotted="Slotted",e.Overlapping="Overlapping",e))(Cn||{});const BF=8,Jv=["8 am","9 am","10 am","11 am","12 pm","1 pm","2 pm","3 pm","4 pm","5 pm","6 pm","7 pm","8 pm"],Zv=100/(12*60),UF=new Map([[1,100],[2,80],[3,60],[4,40],[5,20]]),e0=window.innerWidth<768?3:5;function t0(){const e=[],t=Math.floor(Math.random()*e0)+e0;for(let n=1;n<=t;n++){const r=Math.floor(Math.random()*12)+8,o=Math.floor(Math.random()*12)*5,i=r+Math.floor(Math.random()*(20-r));let s;i===r?s=o+Math.floor(Math.random()*(60-o)/5)*5:s=Math.floor(Math.random()*12)*5;const l=`${r}:${o.toString().padStart(2,"0")}`,a=`${i}:${s.toString().padStart(2,"0")}`;if(Sb(l,a)<15){n--;continue}e.push({id:n,title:`Meeting ${n}`,start:l,end:a})}return e}function _b(e){return e.sort((t,n)=>{const[r,o]=t.start.split(":").map(g=>parseInt(g)),[i,s]=t.end.split(":").map(g=>parseInt(g)),[l,a]=n.start.split(":").map(g=>parseInt(g)),[u,d]=n.end.split(":").map(g=>parseInt(g)),f=(i-r)*60+(s-o),p=(u-l)*60+(d-a);return rl?1:oa?1:f>p?-1:ft.column&&n.column?t.column-n.column:0),e}function Sb(e,t){const[n,r]=e.split(":").map(Number),[o,i]=t.split(":").map(Number);return(o-n)*60+(i-r)}function Tc(e,t){if(!t)return e.find(r=>!r.column)??null;const n=e.findIndex(r=>r.id===t.id);for(let r=n+1;r{const[a,u]=l.split(":").map(Number);return a*60+u},r=n(e.start),o=n(e.end),i=n(t.start),s=n(t.end);return ri}const WF="_layout_1tukw_1",VF="_holder_1tukw_13",GF="_hourLabels_1tukw_17",KF="_day_1tukw_24",qF="_hourSlot_1tukw_34",YF="_meetings_1tukw_37",QF="_meeting_1tukw_37",Wr={layout:WF,holder:VF,hourLabels:GF,day:KF,hourSlot:qF,meetings:YF,meeting:QF};function XF({meetings:e,layout:t}){return c.jsx("div",{className:Wr.meetings,children:e.map(n=>{const r=Sb(n.start,n.end),[o,i]=n.start.split(":").map(d=>parseInt(d)),s=t===Cn.Overlapping?UF.get(n.column):100/(n.totalConflicts+1),l=r*Zv,a=((o-BF)*60+i)*Zv,u=100/(n.totalConflicts+1)*(n.column-1);return c.jsxs("button",{className:Wr.meeting,style:{width:`${s}%`,height:`${l}%`,top:`${a}%`,left:t===Cn.Overlapping?"unset":`${u}%`},title:`${n.title} : ${n.start} - ${n.end}`,children:[c.jsx("span",{children:n.title}),c.jsxs("span",{children:[n.start," - ",n.end]})]},n.id)})})}function JF({hours:e,meetings:t,layout:n}){return c.jsxs("div",{className:Wr.day,children:[e.slice(1).map(r=>c.jsx("div",{className:Wr.hourSlot},r)),c.jsx(XF,{meetings:t,layout:n})]})}function ZF({hours:e}){return c.jsx("div",{className:Wr.hourLabels,children:e.map(t=>c.jsx("div",{className:Wr.hour,children:c.jsx("span",{children:t},t)},t))})}function dd(e){e.forEach(r=>r.column=0);const t=_b(e);let n=1;for(;t.some(r=>!r.column);)ez(e,n++);return e}function ez(e,t){let n=Tc(e,null);for(e.forEach(r=>r.modified=!1);n;)n.column=t,tz(e,n),n=Tc(e,n)}function tz(e,t){const n=[],r=nz(e,t),o=Eb(e,t).concat(r);r.forEach(i=>{n[i.column]=!0}),o.forEach(i=>{i.modified||(i.totalConflicts=(i.totalConflicts??0)+1,i.modified=!0)}),t.totalConflicts=n.filter(Boolean).length}function nz(e,t){return e.filter(n=>n.column&&n.column!==t.column&&xh(t,n))}function Eb(e,t){let n=new Set;return rz(e,t).forEach(o=>{n.add(o),n=new Set([...n,...Eb(e,o)])}),Array.from(n)}function rz(e,t){return e.filter(n=>n.column===t.column-1&&xh(t,n))}function n0(e){e.forEach(r=>r.column=0);const t=_b(e);let n=1;for(;t.some(r=>!r.column);)oz(e,n++);return HF(e)}function oz(e,t){let n=Tc(e,null);for(;n;)n.column=t,n=Tc(e,n)}function iz(){const[e,t]=h.useState(Cn.Slotted),[n,r]=h.useState(dd(t0()));function o(s){t(s),r(s===Cn.Overlapping?n0(n):dd(n))}function i(){const s=t0();r(e===Cn.Overlapping?n0(s):dd(s))}return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Wr.layout,children:[c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"layout",value:"overlapping",checked:e===Cn.Overlapping,onChange:()=>o(Cn.Overlapping)}),"Overlapping"]}),c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"layout",value:"slotted",checked:e===Cn.Slotted,onChange:()=>o(Cn.Slotted)}),"Slotted"]}),c.jsx("button",{onClick:i,children:"Randomize"})]}),c.jsxs("div",{className:Wr.holder,children:[c.jsx(ZF,{hours:Jv}),c.jsx(JF,{hours:Jv,meetings:n,layout:e})]})]})}const sz={"transfer-list":c.jsx(T3,{}),counter:c.jsx(Yk,{}),"advanced-counter":c.jsx(AF,{}),accordion:c.jsx(rk,{}),"background-changer":c.jsx(Dk,{}),"star-Rating":c.jsx(vN,{}),"light-dark-mode":c.jsx(H$,{}),"Guess-the-number":c.jsx(ij,{}),"telephone-formatter":c.jsx(MN,{}),"toast-popup":c.jsx(dT,{}),"password-strength":c.jsx(VR,{}),"todo-list":c.jsx(xT,{}),"investment-calculator":c.jsx(L$,{}),stopwatch:c.jsx(xN,{}),progressbar:c.jsx(JR,{}),"infinite-scrolling":c.jsx(j$,{}),"feedback-modal":c.jsx($2,{}),"file-explorer":c.jsx(F2,{}),"autocomplete-offline":c.jsx(fk,{}),"autocomplete-online":c.jsx(gk,{}),"tic-tac-toe":c.jsx(qN,{}),stack:c.jsx(fN,{}),"food-recipe":c.jsx(tj,{}),"match-pair":c.jsx(tR,{}),"password-generator":c.jsx(LR,{}),"column-table":c.jsx(Gk,{}),"table-colorizer":c.jsx(AN,{}),"25-5-clock":c.jsx(OT,{}),"bmi-calculator":c.jsx(Pk,{}),"email-templates":c.jsx(o2,{}),"expense-tracker":c.jsx(f2,{}),pagination:c.jsx(ER,{}),"qr-code-generator":c.jsx(lN,{}),"image-gallery":c.jsx(aj,{}),"word-count":c.jsx(FT,{}),"temperature-converter":c.jsx(VN,{}),"color-mixer":c.jsx(Lk,{}),"string-transformers":c.jsx(EN,{}),"your-sport":c.jsx(KT,{}),"modal-popup":c.jsx(ZT,{}),"emoji-picker":c.jsx(hP,{}),"programming-languages-multiverse":c.jsx(SP,{}),otp:c.jsx(kP,{}),"traffic-lights":c.jsx(TP,{}),"quiz-app":c.jsx(VP,{}),"chess-board":c.jsx(JP,{}),"nested-dropdown":c.jsx(fR,{}),"anagram-checker":c.jsx(Sk,{}),calculator:c.jsx(d3,{}),"water-balancer":c.jsx(E3,{}),timeline:c.jsx(L3,{}),"word-connect":c.jsx(H6,{}),stepper:c.jsx(J6,{}),"inline-options":c.jsx(o8,{}),"digital-clock":c.jsx(N8,{}),"nested-comments":c.jsx(A8,{}),"15puzzle":c.jsx(JC,{}),"memory-game":c.jsx(W8,{}),"chip-input":c.jsx(Y8,{}),tabs:c.jsx(eF,{}),"drag-drop":c.jsx(sF,{}),circles:c.jsx(fF,{}),"analog-clock":c.jsx(CF,{}),"nested-checkbox":c.jsx(zF,{}),"meeting-calendar":c.jsx(iz,{})};function az(){var n,r;const e=QE(),t=(e==null?void 0:e.id)??"";return c.jsxs(c.Fragment,{children:[c.jsx(DC,{title:(n=Jm.get(t))==null?void 0:n.title,link:(r=Jm.get(t))==null?void 0:r.link}),c.jsx("div",{className:"container",children:sz[t]})]})}const lz=uC([{path:"/:id",element:c.jsx(az,{})}]);fd.createRoot(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(xC,{router:lz})})); diff --git a/docs/react/assets/index-Ckt_Y0OB.css b/docs/react/assets/index-Ckt_Y0OB.css new file mode 100644 index 00000000..d7840d65 --- /dev/null +++ b/docs/react/assets/index-Ckt_Y0OB.css @@ -0,0 +1 @@ +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";.mobile{display:none}.challenge-navbar{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar .left{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar .left .back{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar .left .logo{height:40px}.challenge-navbar .left .logo img{width:40px;height:40px}.challenge-navbar h1{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar .right{flex:1}.challenge-navbar .right input{display:none}.challenge-navbar .right img{width:30px;height:30px}.challenge-navbar .right .menu{display:flex;align-items:center;gap:1.5rem}.challenge-navbar .right .menu a{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar .right .responsive_nav{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile{display:block}.challenge-navbar{padding:1rem 1rem 1rem .5rem}.challenge-navbar .logo{display:none}.challenge-navbar h1{font-size:1.25rem}.right .responsive_nav{display:block;position:relative;margin-left:2rem}.right .hamburger{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right .hamburger input{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right .hamburger div.line{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right .hamburger div.cross{transform:scale(1.4);margin-right:.25rem;z-index:2}.right .hamburger input:not(:checked)~div.line{display:block}.right .hamburger input:not(:checked)~div.cross{display:none}.right .hamburger input:checked~div.line{display:none}.right .hamburger input:checked~div.cross{display:block}.right .menu{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right .hamburger input:checked~.menu{transform:none}}._tile_5pn2z_1{aspect-ratio:1/1}._tile_5pn2z_1:not(._empty_5pn2z_5){display:flex;justify-content:center;align-items:center;border:1px solid rgb(182,182,182);margin:1px;box-shadow:1px 1px 4px 1px #9fd69f;cursor:pointer;background-color:#f3f7fa;-webkit-user-select:none;user-select:none}._correctTilePoz_5pn2z_17:not(._moveLeft_5pn2z_17,._moveRight_5pn2z_17,._moveUp_5pn2z_17,._moveDown_5pn2z_17){box-shadow:1px 1px 4px 1px #0a72e9!important}._moveLeft_5pn2z_17,._moveRight_5pn2z_17,._moveUp_5pn2z_17,._moveDown_5pn2z_17{animation-duration:.3s;animation-timing-function:linear}._moveLeft_5pn2z_17{animation-name:_move-left_5pn2z_1}._moveRight_5pn2z_17{animation-name:_move-right_5pn2z_1}._moveUp_5pn2z_17{animation-name:_move-up_5pn2z_1}._moveDown_5pn2z_17{animation-name:_move-down_5pn2z_1}@keyframes _move-left_5pn2z_1{0%{transform:translate(100%) rotate(0)}to{transform:translate(0) rotate(-90deg)}}@keyframes _move-right_5pn2z_1{0%{transform:translate(-100%) rotate(0)}to{transform:translate(0) rotate(90deg)}}@keyframes _move-up_5pn2z_1{0%{transform:translateY(100%) rotateX(0)}to{transform:translateY(0) rotateX(-180deg)}}@keyframes _move-down_5pn2z_1{0%{transform:translateY(-100%) rotateX(0)}to{transform:translateY(0) rotateX(180deg)}}._grid_e2nmy_1{display:grid;grid-template-columns:repeat(4,1fr);max-width:400px;margin:0 auto;transition:all .3s}._menu_e2nmy_9{text-align:center;margin-top:20px}._menu_e2nmy_9>button{margin:0 1rem}._App_150vf_1{margin-top:1rem;text-align:center}._accordion_150vf_6{padding:10px;margin-bottom:10px;font-size:14px;text-align:left;border:1px solid rgb(218,212,212)}._accordion-title_150vf_14{display:flex;align-items:center;justify-content:space-between}._accordion-icon_150vf_20{display:flex;align-items:center;align-self:center;justify-content:center;width:2rem;min-width:2rem;height:2rem;margin-left:1rem;font-size:20px;color:#fff;cursor:pointer;background:transparent;background:rgb(209,209,209);border-color:transparent;border-radius:50%}._main_xk16z_1{width:90%;margin:auto;text-align:center}._main_xk16z_1 input{width:94%;padding:.5rem 1rem;margin-bottom:.5rem;font-size:1rem}._main_xk16z_1 input:disabled{background-color:#0003}._main_xk16z_1 ._retryTimer_xk16z_15{margin:7px;font-size:24px;font-weight:600;color:#f14f4f}._main_xk16z_1 ._suggestions_xk16z_21{width:93%;padding-inline-start:0;margin:auto}._main_xk16z_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;list-style:none;cursor:pointer;background-color:beige}._main_xk16z_1 li._highlight_xk16z_36{background-color:khaki;outline:1px solid}@media (width >= 768px){._main_xk16z_1 input,._main_xk16z_1 ._suggestions_xk16z_21{width:50%}}._main_xk16z_1 ._loader_xk16z_46{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_xk16z_46 linear 1s infinite}@keyframes _loader_xk16z_46{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._container_zsbjj_3{text-align:center;margin:50px}h1{color:#333}._inputContainer_zsbjj_12{display:flex;justify-content:center;margin-bottom:20px}._input_zsbjj_12{padding:10px;margin:0 10px}._button_zsbjj_23{padding:10px;background-color:#4caf50;color:#fff;border:none;cursor:pointer}._button_zsbjj_23:hover{background-color:#45a049}._result_zsbjj_35{color:#333;font-weight:700;margin-top:20px}._App_7yaca_1 ._container_7yaca_1{display:flex;flex-direction:column;align-items:center;justify-content:center}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7{display:flex;flex-direction:column;gap:5px}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 input{width:100px;padding:10px;margin-bottom:10px;font-weight:700;background-color:#87ceeb;border-radius:10px;outline:none}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 ._calculateButton_7yaca_21{align-self:center;width:fit-content;padding:5px 15px;color:#fff;cursor:pointer;background-color:#000;border-radius:5px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30{padding:0 20px;margin:20px 0;background-color:#deb887;border-radius:10px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h1,._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h3{margin:10px;text-align:center}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 ._ranges_7yaca_41{padding-top:16px;font-weight:700}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 p{margin:5px}._container_10e68_1{width:100%;height:100%;text-align:center}._button_10e68_7{padding:10px 20px;margin:2rem auto;font-size:1.25rem;font-weight:500;border:none;border-radius:8px;box-shadow:0 2px 4px #0000}._button_10e68_7:active{transform:scale(.98)}._color-mixer-container_oo1rc_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:40%;min-width:300px;margin:0 auto;background-color:#f5f5f5;transition:background-color .3s}._color-box-top_oo1rc_13{display:flex;align-items:center;justify-content:center;width:100%;height:250px;background-color:#fff;border:2px solid #333;border-radius:10px}._color-box-top_oo1rc_13 p{font-size:24px;color:#333;mix-blend-mode:difference}._color-inputs_oo1rc_30{display:flex;flex-direction:column;gap:20px;align-items:center;padding:20px;background-color:#fff;border-radius:10px}._color-input_oo1rc_30{display:flex;gap:10px;align-items:center}._color-input_oo1rc_30 label{font-size:16px;color:#333}input[type=color]{width:60px;height:60px;border:none}._mix-button_oo1rc_57{padding:10px 20px;color:#fff;cursor:pointer;background-color:#ff5733;border:none;border-radius:5px;transition:background-color .3s}._mix-button_oo1rc_57:hover{background-color:#e83e1e}._main_pfcqp_1{text-align:center}._size_pfcqp_5{display:flex;flex-direction:column;gap:10px;justify-content:center;margin:20px 0}._grid_pfcqp_13{margin:1rem auto}._cell_pfcqp_17{width:50px;height:50px;padding-left:0;border:1px solid black}@media screen and (width >= 450px){._size_pfcqp_5{flex-direction:row}}._main_1cx3l_1{text-align:center}._main_1cx3l_1 section{margin:1rem 0}._main_1cx3l_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_1cx3l_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.15rem}._select_17qmd_1{padding:.25rem;font-size:1rem}._form_17qmd_6{display:flex;flex-flow:row wrap;gap:25px;justify-content:space-between;margin-top:20px}._form_17qmd_6 ._formField_17qmd_13{white-space:nowrap}._formInput_17qmd_17{padding:.25rem;font-size:1rem}._form_1ufkd_2{max-width:400px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0003;border-radius:8px;display:flex;flex-direction:column;gap:15px}._form_1ufkd_2 input,._form_1ufkd_2 select,._form_1ufkd_2 button{padding:10px;font-size:16px;border:1px solid #ccc;border-radius:4px;transition:border-color .2s}._form_1ufkd_2 input:focus,._form_1ufkd_2 select:focus{border-color:#007bff;outline:none}._form_1ufkd_2 button{background-color:#007bff;color:#fff;cursor:pointer;border:none}._form_1ufkd_2 button:hover{background-color:#0056b3}._form_1ufkd_2 button:disabled{background-color:#ccc;cursor:not-allowed}._form_1ufkd_2 select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}._mainContainer_1ynr6_2{max-width:500px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0000001a;border-radius:8px;background-color:#fff}._mainContainer_1ynr6_2 h2{border-bottom:2px solid #eee;padding-bottom:10px;margin-bottom:15px;font-size:24px;color:#333}._mainContainer_1ynr6_2 ul{list-style-type:none;margin:0;padding:0}._mainContainer_1ynr6_2 li{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #eee}._mainContainer_1ynr6_2 li:last-child{border-bottom:none}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32{padding:5px 10px;font-size:14px;color:#fff;background-color:#ff4136;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:hover{background-color:#ff3013}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:disabled{background-color:#ccc;cursor:not-allowed}._feedbackContainer_2c7o2_1{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:0;margin:0;background-color:#fff}._feedbackBtn_2c7o2_11{display:flex;align-items:center;justify-content:center;width:100px;height:30px;background-color:#ab5fc4;border:0;border-radius:5px}._modalContainer_2c7o2_22{position:absolute;top:0;left:0;z-index:99;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#0000007f}._modalContent_2c7o2_35{position:relative;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:space-between;width:500px;min-height:300px;padding:20px;background-color:#fff;border-radius:5px;box-shadow:0 5px 10px #0006}._iconContainer_2c7o2_50{display:flex;gap:10px;justify-content:center;padding:15px 5px}._iconItem_2c7o2_57{display:flex;flex-direction:column;align-items:center;justify-content:center;width:70px;height:70px;margin:10px 1px;cursor:pointer}._iconItem_2c7o2_57:hover{background-color:#a9a9a9;border-radius:5px;box-shadow:0 0 10px #0000004d;transition:all .2s ease}._active_2c7o2_75{background-color:#bca2d5;border-radius:5px;box-shadow:0 0 10px #0000004d}._iconImage_2c7o2_81{width:40px;height:40px}._iconItem_2c7o2_57 p{margin:5px;font-size:small;color:#000000b3}._modalClose_2c7o2_92{position:absolute;top:10px;right:10px;font-size:20px;background:none;border:none}._modalContent_2c7o2_35 h1{top:35px;font-size:25px;font-weight:400;color:#000c}._feedbackContent_2c7o2_108{display:flex;flex-direction:column;align-items:center;justify-content:center}._feedbackResponse_2c7o2_115{display:flex;flex-direction:column;gap:25px;align-items:center;justify-content:center;width:250px;height:120px;margin-bottom:30px;background-color:#bca2d54d;border:1px solid grey;border:none;border-radius:5px;box-shadow:0 5px 5px #0000004d}@media (width <= 510px){._feedbackContainer_2c7o2_1{flex-direction:column;padding:10px}._feedbackResponse_2c7o2_115{width:auto;height:150px}._feedbackResponse_2c7o2_115 p{text-align:center;text-wrap:wrap}._modalContent_2c7o2_35{width:90%;max-width:200px;padding:10px}._feedbackContent_2c7o2_108 textarea{width:100%;font-size:10px}._feedbackBtn_2c7o2_11{width:80px;height:25px}._iconItem_2c7o2_57{width:60px;height:60px}._iconImage_2c7o2_81{width:30px;height:30px}._iconContainer_2c7o2_50{flex-wrap:wrap}._modalClose_2c7o2_92{top:5px;right:5px;font-size:16px}}._app_1o28y_1{margin-top:1rem;font-size:1.2rem}._list_1o28y_6{display:flex;align-items:center;height:1.5em;padding-left:0;margin-bottom:.5em;list-style-type:none}._list_1o28y_6 button{font-size:1em;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6._editList_1o28y_22{padding:1px 6px}._list_1o28y_6 input{font-size:1em}._editableInputContainer_1o28y_30{position:relative}._editableInputError_1o28y_34{position:absolute;top:100%;background-color:#7f1d1d;border:1px solid red;font-size:small;color:#f87171;padding:.5rem}._editableInputError_1o28y_34>p{margin:0}._indent_1o28y_48{margin-left:30px}._controls_1o28y_52{display:flex;gap:.5em;margin-left:2rem}._controls_1o28y_52 button{display:none;align-items:center;justify-content:center;padding:0;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6:hover button{display:block}._list_1o28y_6[data-root=true]:hover div button:first-child,._list_1o28y_6[data-root=true]:hover div button:last-child{display:none}:root{--font-m: 16px}._App_lmi0v_5{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;margin:0}._meal_container_lmi0v_15{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:50%;padding:1rem 1.3rem;margin-top:3rem;background-color:#9fa732;border:.2rem solid black}._meal_name_lmi0v_27{font-size:1.6rem;text-align:center}._meal_img_lmi0v_32{width:100%;height:300px}._tags_container_lmi0v_37,._modal_tags_container_lmi0v_38{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;padding-inline-start:0;font-size:1.2rem;list-style:none}._tag_lmi0v_37,._modal_tag_lmi0v_38{padding:.4rem .7rem;cursor:pointer;background-color:#e2b044;transition:all .3s ease-in}._tag_lmi0v_37:hover,._modal_tag_lmi0v_38:hover{color:#ececec;background-color:#099}._dialog_lmi0v_62{top:3%;width:70%}._modal_meal_img_lmi0v_67{width:100%;height:350px}._modal_instruction_lmi0v_72{font-size:1.2rem;line-height:1.6rem}._foodBtn_lmi0v_77,._openBtn_lmi0v_78{padding:.4rem .9rem;font-size:1.3rem;font-weight:700;cursor:pointer;background-color:#fff;border:.2rem solid black;transition:background-color .2s ease-in}._openBtn_lmi0v_78{margin-top:2rem;font-size:1.1rem}._foodBtn_lmi0v_77:hover,._openBtn_lmi0v_78:hover{background-color:#eee}._foodBtn_lmi0v_77:active,._openBtn_lmi0v_78:active{background-color:#ddd}._closeBtn_lmi0v_103{position:absolute;top:-1.3rem;right:-1.3rem;padding:0 .6rem;font-size:2rem;font-weight:700;color:#fff;cursor:pointer;background-color:#df4848;border-radius:50%;transition:background-color .2s ease-in}._closeBtn_lmi0v_103:hover{background-color:#c74040}._closeBtn_lmi0v_103:active{background-color:#af3737}._recipe_table_lmi0v_126{width:100%;margin:1.8rem auto;font-size:1rem;border-collapse:collapse}._recipe_table_lmi0v_126 th,._recipe_table_lmi0v_126 td{height:3.12rem;padding-left:1.25rem;text-align:left}._recipe_table_lmi0v_126 th{color:#fff;background-color:#9fa732}._recipe_table_lmi0v_126 tr:nth-child(2n){background-color:#f9ffa3}@media screen and (width <= 768px){._meal_container_lmi0v_15{width:88%;padding:.5rem}._dialog_lmi0v_62{width:88%}._meal_name_lmi0v_27{font-size:1.4rem}._meal_img_lmi0v_32{height:200px}._tags_container_lmi0v_37,._modal_tags_container_lmi0v_38{font-size:1rem}._modal_meal_img_lmi0v_67{height:250px}._modal_instruction_lmi0v_72{font-size:1rem;line-height:1.4rem}._foodBtn_lmi0v_77,._openBtn_lmi0v_78{font-size:1.1rem}._closeBtn_lmi0v_103{top:-.5rem;right:-.5rem;font-size:1.5rem}._recipe_table_lmi0v_126 th,._recipe_table_lmi0v_126 td{height:40px;padding-left:10px}}@media screen and (width >= 1300px){._meal_container_lmi0v_15{width:40%}._dialog_lmi0v_62{width:60%}}@media screen and (width >= 1700px){._meal_container_lmi0v_15{width:35%}._dialog_lmi0v_62{width:55%}}._app_j2t5p_1{display:flex;flex-direction:column;margin:10px auto}._app_j2t5p_1 input{height:30px;padding:20px;text-align:center;outline:none}._app_j2t5p_1 ._widget_j2t5p_14{display:flex;flex-direction:column;justify-content:space-around;margin-top:5px}._app_j2t5p_1 ._text_j2t5p_21 p{text-align:center}._app_j2t5p_1 form{display:flex;flex-direction:column}._app_j2t5p_1 form label{padding:10px}._app_j2t5p_1 form button{min-width:40%;padding:10px;margin-top:10px;font-size:16px;cursor:pointer;border:none}@media (width >= 768px){._app_j2t5p_1{width:50%;max-width:500px}._app_j2t5p_1 ._widget_j2t5p_14{flex-direction:row}}._image-gallery-container_3b420_2{margin:20px;text-align:center}._gallery-para_3b420_7{text-decoration:underline}._image-container_3b420_11{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}._image-wrapper_3b420_18{cursor:pointer;transition:transform .2s ease-in-out}._image-wrapper_3b420_18:hover{transform:scale(1.1)}._gallery-image_3b420_27{width:200px;height:200px;object-fit:cover;border-radius:10px;box-shadow:0 0 5px #0000004d}._selected-image_3b420_36{margin-top:40px;text-align:center}._selected-heading_3b420_41{margin-bottom:10px;font-size:20px}._selected-img_3b420_46{max-width:100%;border-radius:10px;box-shadow:0 0 10px #0000007f}._loader_1hfl7_1{width:60px;height:60px;margin:1rem auto;border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;animation:_spin_1hfl7_1 2s linear infinite}@keyframes _spin_1hfl7_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._book-title_1hfl7_21{padding:2em;margin:2em 0;text-align:center;border:1px solid black;border-radius:6px}._result_1y6k8_1{max-width:60rem;padding:1rem;text-align:right;table-layout:fixed;border-spacing:1rem}._result_1y6k8_1 thead{font-size:.7rem}._result_1y6k8_1 tbody{font-size:.85rem;color:#8a2be2}@media screen and (width <= 400px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 tbody{font-size:.68rem}}@media screen and (width <= 300px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 thead{font-size:.52rem;color:#8a2be2}._result_1y6k8_1 tbody{font-size:.68rem}}._form_1schc_1{max-width:30rem;padding:1rem;margin:1rem 0;border:1px solid black;border-radius:4px}._input-group_1schc_17{display:flex;gap:1.5rem;justify-content:space-evenly}._form_1schc_1 label{display:block;margin-bottom:.25rem;font-size:.6rem;font-weight:700;text-transform:uppercase}._form_1schc_1 input{width:100%;padding:.5rem;font-size:1rem;background-color:transparent;border:1px solid #76c0ae;border-radius:.25rem}._actions_1schc_63{display:flex;gap:1rem;justify-content:center}._button_1schc_75{padding:.5rem 1rem;color:#c2e9e0;cursor:pointer;background:linear-gradient(180deg,#1f584b,#17493d);border:none;border-radius:.25rem}._buttonAlt_1schc_93{cursor:pointer;background:transparent;border:none}._button_1schc_75:hover{background:linear-gradient(180deg,#1b5346,#113c32)}._buttonAlt_1schc_93:hover{color:#91e1d0;background:transparent}@media screen and (width <= 400px){._form_1schc_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;max-width:20rem}}._main_kxpla_1{display:flex;flex-flow:column wrap;align-items:center;justify-content:center}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1w4bd_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1w4bd_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1w4bd_19{padding:10px;background-color:var(--clr-bcg);transition:.3s linear}._main_1w4bd_19 h1{color:var(--clr-font)}._main_1w4bd_19 button{padding:10px;margin-top:10px;font-size:16px;color:var(--clr-font);cursor:pointer;background-color:var(--clr-primary);border:none}._layout_1dsxo_1{margin:20px 0;text-align:center}._layout_1dsxo_1 output{font-size:1.25rem}._layout_1dsxo_1 p{margin:0}._button_1dsxo_14{margin:40px 0 20px}._grid_1dsxo_18{display:inline-grid;font-size:2rem}._tile_1dsxo_23{position:relative}._frontface_1dsxo_27,._backface_1dsxo_28{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:khaki;border-radius:4px;box-shadow:0 5px 4px #00000026;transition:all 1s;transform:rotateY(0);backface-visibility:hidden}._backface_1dsxo_28{transform:rotateY(180deg)}._frontface_1dsxo_27{transform:rotateY(0)}@media screen and (width >= 768px){._grid_1dsxo_18{font-size:3rem}}._main_h642g_1{text-align:center}._nestedDropdown_h642g_4{display:flex;justify-content:center;margin:0 auto;padding:0 20px;height:58px}._dropdownMain_h642g_12{display:flex;list-style:none;padding-inline-start:0px;min-width:10rem}._dropdownItems_h642g_19{position:relative;font-size:14px}._dropdownItems_h642g_19 a{display:block;font-size:inherit;color:inherit;text-decoration:none}._dropdownItems_h642g_19 button{color:inherit;font-size:inherit;border:none;background-color:transparent;cursor:pointer;width:100%}._dropdownItems_h642g_19 a,._dropdownItems_h642g_19 button{text-align:left;padding:.7rem 1rem;border:#142b31 1px solid}._dropdownItems_h642g_19 a:hover,._dropdownItems_h642g_19 button:hover{background-color:#86c9dd}._arrow_h642g_52:after{content:"";display:inline-block;margin-left:.28em;vertical-align:.09em;border-top:.42em solid;border-right:.32em solid transparent;border-left:.32em solid transparent}._dropdown_h642g_12{right:0;left:auto;box-shadow:0 10px 15px - 3px #2e293314,0 4px 6px - 2px #473f4f29;font-size:.875rem;z-index:9999;min-width:10rem;padding:.5rem;list-style:none;background-color:#fff;border-radius:.5rem;display:none}._dropdown_h642g_12._show_h642g_76{display:block}._dropdown_h642g_12._dropdownSubItems_h642g_80{left:100%;top:-7px;min-width:10rem}@media (max-width: 820px){._dropdown_h642g_12._dropdownSubItems_h642g_80{top:auto;left:auto;right:0}}@media (min-width: 822px){._dropdown_h642g_12,._dropdown_h642g_12._dropdownSubItems_h642g_80{position:absolute}}._pagination_1mnjc_1{width:100%;text-align:center;margin-bottom:2rem}._pagination_1mnjc_1 button{margin:0 1rem}._container_for_table_1pb6f_1{width:100%}._table_1pb6f_5{width:100%;text-align:center}._thead_1pb6f_10 tr th{padding:4px;margin:0;font-size:1.25rem;text-transform:uppercase;background-color:beige;border:1px solid beige}._tbody_1pb6f_19 tr td{padding:4px;margin:0;font-size:1rem;border-right:1px solid beige;border-bottom:1px solid beige;border-left:1px solid beige}._pagination_container_13fvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(95%,800px);margin:0 auto}._title_13fvi_10{margin:2rem 0;text-align:center;font-size:2rem;font-weight:700;text-transform:uppercase}._App_6bcv0_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:2.5rem}._main_section_6bcv0_10{width:78%;font-size:1.1rem}._main_header_6bcv0_15{margin-bottom:2rem;font-size:1.5rem;font-weight:700;text-align:center}._password_form_6bcv0_22{display:grid;grid-template-columns:1fr 1fr;gap:1rem}._second_section_6bcv0_28{display:flex;flex-direction:column;row-gap:1rem;align-items:flex-start;width:78%;margin-top:1rem;font-size:1.1rem}._second_section_6bcv0_28 ._inputText_6bcv0_38,._fifth_section_6bcv0_39 ._inputText_6bcv0_38{padding:.4rem;margin-right:1.5rem;font-size:1rem;border:.18rem solid black}._second_section_6bcv0_28 ._btn_6bcv0_46,._fourth_section_6bcv0_47 ._btn_6bcv0_46,._fifth_section_6bcv0_39 ._btn_6bcv0_46{padding:.4rem .8rem;margin-right:1.5rem;font-size:1rem;cursor:pointer;background-color:#ccc;border:none;border-radius:.5rem;outline:none;transition:background-color .3s ease-in-out}._second_section_6bcv0_28 ._btn_6bcv0_46:hover,._fourth_section_6bcv0_47 ._btn_6bcv0_46:hover,._fifth_section_6bcv0_39 ._btn_6bcv0_46:hover{background-color:#bbb}._second_section_6bcv0_28 ._btn_6bcv0_46:active,._fourth_section_6bcv0_47 ._btn_6bcv0_46:active,._fifth_section_6bcv0_39 ._btn_6bcv0_46:active{background-color:#aaa}._third_section_6bcv0_72{width:78%;margin-top:1rem}._fourth_section_6bcv0_47{display:flex;align-items:center;justify-content:center;width:78%;margin-top:2rem;font-size:1.1rem}._fifth_section_6bcv0_39{width:78%;margin-top:1rem}._sixth_section_6bcv0_91{width:78%;margin-top:1rem;font-size:1.1rem}._second_header_6bcv0_97{margin-bottom:2rem;font-size:1.3rem;font-weight:700;text-align:center}._password-table_6bcv0_105{width:100%;margin-bottom:2rem;border-collapse:collapse}._password-table_6bcv0_105 thead th{padding:8px;text-align:left;background-color:#f2f2f2;border:1px solid #ddd}._password-table_6bcv0_105 tbody tr{border-bottom:1px solid #ddd}._password-table_6bcv0_105 tbody td{padding:8px;text-align:left}._password-table_6bcv0_105 tbody tr:nth-child(2n){background-color:#f2f2f2}@media (width <= 800px){._main_section_6bcv0_10,._second_section_6bcv0_28,._third_section_6bcv0_72,._fourth_section_6bcv0_47,._fifth_section_6bcv0_39,._sixth_section_6bcv0_91{width:90%}._password_form_6bcv0_22{grid-template-columns:1fr}._password-table_6bcv0_105 tbody tr{display:block;margin-bottom:10px;border:1px solid #ddd;border-radius:5px}._password-table_6bcv0_105 tbody td{display:block;text-align:left}._password-table_6bcv0_105 tr ._password-table_6bcv0_105 td,._password-table_6bcv0_105 thead,._password-table_6bcv0_105 tbody,._password-table_6bcv0_105 th{display:block}._password-table_6bcv0_105 thead{display:none}}._main_3eouk_1{width:90%;margin:2rem auto 0;text-align:center}._main_3eouk_1 ._indicators_3eouk_6{display:flex;justify-content:space-between;width:20rem;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_3eouk_1 ._active_3eouk_14{color:green}._main_3eouk_1 ._progressContainer_3eouk_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_3eouk_1 ._progressBar_3eouk_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_3eouk_1 input{width:20rem;font-size:1.5rem}._App_omdzp_1{padding:1rem 0;display:flex;flex-direction:column;align-items:center;justify-content:center}._bg-progress_omdzp_9{position:relative;width:15rem;height:2rem;overflow:hidden;background-color:#0000ff4d;border-radius:50px}._fg-progress_omdzp_18{position:absolute;width:15rem;height:5rem;background-color:#0000ff7f;transition:transform 10ms ease-in-out}._controls_omdzp_26{display:flex;flex-direction:column;align-items:center;gap:1rem;margin:auto;margin-top:2.5rem;margin-bottom:0}._controls_omdzp_26 button{width:7rem;padding:1.2rem 2rem;color:#fff;background-color:#0000ff7f;border:none}@media screen and (min-width: 480px){._controls_omdzp_26{flex-direction:row}}._controls_omdzp_26 button:hover{color:#0000ff7f;background-color:#0000ff4d;transform:scale(1.1)}._slidecontainer_omdzp_56{width:100%;margin-top:2rem;text-align:center}._stack_u1sn7_1{max-width:500px;padding:20px;margin:1rem auto 0rem;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 4px #0000001a}._stack_u1sn7_1 h1{margin-bottom:20px;font-size:24px;text-align:center;animation:_slide-in_u1sn7_1 1s ease-in-out}._stack_u1sn7_1 input[type=text]{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25{display:flex;justify-content:center;margin-bottom:20px;flex-wrap:wrap;row-gap:1rem}._stack_u1sn7_1 ._btn_root_u1sn7_25 button{padding:10px 20px;margin:0 5px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25 button:hover{background-color:#0056b3}._stack_u1sn7_1 hr{margin:10px 0;border:none;border-top:1px solid #ccc}._stack_u1sn7_1 h3{margin-bottom:10px;font-size:18px;text-align:center}._stack_u1sn7_1 p{margin:5px 0}._stack_u1sn7_1 ._stackElement_u1sn7_62{padding:.1rem;margin-bottom:1rem;background-color:#007bff34;border-radius:3px}._stack_u1sn7_1 ._stackElement_u1sn7_62 p{text-align:center}@keyframes _slide-in_u1sn7_1{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}._App_33mq4_1{margin-top:2rem;text-align:center}._star_33mq4_6{font-size:30px;cursor:pointer}._watch-container_g783o_1{display:flex;align-items:center;justify-content:center;margin-top:1rem}._watch_g783o_1{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:250px;height:250px;padding:20px;text-align:center;background:#b4161b;background:linear-gradient(145deg,#cacaca,#f0f0f0);border-radius:50%;box-shadow:0 0 20px #bebebe}._watch-heading_g783o_24{font-size:30px;font-weight:900;color:purple}._watch-timer_g783o_30{font-size:30px;font-weight:900;color:#b4161b}._watch-btn_g783o_36{height:40px;padding:0 10px;margin:20px 2px 0;font-weight:700;color:#fff;text-transform:uppercase;background:linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%);border:none;border-radius:12px}._watch-btn_g783o_36:disabled{cursor:not-allowed;background:linear-gradient(-45deg,#e81cff80 0%,#40c9ff80 100%)}@media (width <= 300px){._watch_g783o_1{width:230px;height:230px;padding:0}._watch-heading_g783o_24{font-size:20px}._watch-btn_g783o_36{margin:5px}}._App_1hyma_1{max-width:32rem;margin:auto}._textarea_1hyma_6{display:block;width:100%;resize:vertical}._buttonBox_1hyma_12{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}._buttonBox_1hyma_12>button{padding:.4rem}._output_1hyma_22{margin-top:2rem;text-align:center}._output_1hyma_22>strong{font-size:large}._output_1hyma_22>p{margin-top:1rem;margin-bottom:0}._color_1kotf_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}form._form_1kotf_9{display:flex;flex-direction:column;align-items:center;justify-content:space-around;height:70px}._containers_1kotf_17{display:flex;flex-wrap:wrap;justify-content:center;width:90%;max-width:200px;margin-top:10px}._container_1kotf_17{width:30%;padding:10px;text-align:center;border:1px solid black}._containerColor_1kotf_33{width:30%;padding:10px;color:#fff;text-align:center;background-color:red;border:1px solid black}._numberInput_1kotf_42{height:25px;padding:0 10px;margin:10px 0;border:1px solid black;border-radius:15px}input{cursor:pointer}._error_1kotf_53{color:red;font-size:.75rem;margin:0 0 .5rem;padding:0}._container_12wso_1{display:flex;align-items:center;justify-content:center}._card_12wso_7{width:30rem;padding:20px;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px #0003}._cardTitle_12wso_15{text-align:center}._formGroup_12wso_19{margin:20px 0}._inputGroup_12wso_23{display:flex;align-items:center}._input_12wso_23{padding:5px;margin:0}._select_12wso_33{padding:5px;margin:0 10px}._convertButton_12wso_38{margin-top:10px}._outputGroup_12wso_42{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin-top:20px}@media screen and (width >= 450px){._outputGroup_12wso_42{flex-direction:row}}._container_1rajw_1{display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;text-align:center}._mx-5_1rajw_10{margin:20px}._grid-container_1rajw_14{display:grid;grid-template-columns:repeat(3,1fr);width:300px;margin:0 auto;overflow:hidden;background-color:#fff}._grid-item_1rajw_23{height:80px;padding:20px;font-size:30px;text-align:center;cursor:pointer;border:1px solid grey;transition:all .2s ease}._grid-item_1rajw_23:hover{box-shadow:#32325d26 0 30px 60px -12px inset}._container_1rajw_1 button{padding:15px;margin:20px auto;font-weight:700;border:none;border-radius:8px}@media (width <= 300px){._grid-container_1rajw_14{width:100%}._grid-item_1rajw_23{height:70px}}:root{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}._main_gsrvy_20{width:90%;margin:auto;margin-top:1rem;text-align:center}._main_gsrvy_20 form{display:flex;flex-direction:column;gap:1rem;align-items:center;width:max(40%,250px);margin:2rem auto}._main_gsrvy_20 input,._main_gsrvy_20 select{padding:.5em;font-size:1rem;width:100%}._main_gsrvy_20 label{display:flex}._main_gsrvy_20 #_message_gsrvy_1{min-width:25ch}._main_gsrvy_20 [for=duration]{align-items:center}._main_gsrvy_20 ._toastContainer_gsrvy_49{position:fixed;display:flex;flex-direction:column;gap:.5rem}._main_gsrvy_20 ._toast_gsrvy_49{padding:.5em;border-radius:.25rem;box-shadow:0 4px 10px #00000040;display:flex;align-items:center;color:var(--normal-text);background-color:var(--normal-bg);border:1px solid var(--normal-border)}._main_gsrvy_20 ._toast_gsrvy_49._success_gsrvy_65{color:var(--success-text);background-color:var(--success-bg);border:1px solid var(--success-border)}._main_gsrvy_20 ._toast_gsrvy_49._error_gsrvy_70{color:var(--error-text);background-color:var(--error-bg);border:1px solid var(--error-border)}._main_gsrvy_20 ._toast_gsrvy_49._warning_gsrvy_75{color:var(--warning-text);background-color:var(--warning-bg);border:1px solid var(--warning-border)}._main_gsrvy_20 ._toast_gsrvy_49._info_gsrvy_80{color:var(--info-text);background-color:var(--info-bg);border:1px solid var(--info-border)}._main_gsrvy_20 ._toast_gsrvy_49:before{min-width:1rem;padding:.1em .5em;font-size:.85em;font-weight:700}._main_gsrvy_20 ._success_gsrvy_65:before{content:"✓"}._main_gsrvy_20 ._error_gsrvy_70:before{content:"!"}._main_gsrvy_20 ._warning_gsrvy_75:before{content:"⚠"}._main_gsrvy_20 ._info_gsrvy_80:before{content:"ⓘ"}._main_gsrvy_20 ._remove_gsrvy_103{all:unset;margin-left:1em;cursor:pointer}._main_gsrvy_20 ._tcLeftTop_gsrvy_108{top:1rem;left:1rem;align-items:flex-start}._main_gsrvy_20 ._tcLeftBottom_gsrvy_113{bottom:1rem;left:1rem;align-items:flex-start}._main_gsrvy_20 ._tcRightTop_gsrvy_118{top:1rem;right:1rem;align-items:flex-end}._main_gsrvy_20 ._tcRightBottom_gsrvy_123{right:1rem;bottom:1rem;align-items:flex-end}._main_gsrvy_20 ._tcLeftTop_gsrvy_108 ._toast_gsrvy_49,._main_gsrvy_20 ._tcLeftBottom_gsrvy_113 ._toast_gsrvy_49{animation:_appear-from-left_gsrvy_1 .1s ease-in forwards}._main_gsrvy_20 ._tcLeftTop_gsrvy_108 ._toast_gsrvy_49._fade-out-left_gsrvy_132,._main_gsrvy_20 ._tcLeftBottom_gsrvy_113 ._toast_gsrvy_49._fade-out-left_gsrvy_132{animation:_fade-out-to-left_gsrvy_1 .1s ease-in forwards}@keyframes _appear-from-left_gsrvy_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fade-out-to-left_gsrvy_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_gsrvy_20 ._tcRightTop_gsrvy_118 ._toast_gsrvy_49,._main_gsrvy_20 ._tcRightBottom_gsrvy_123 ._toast_gsrvy_49{animation:_appear-from-right_gsrvy_1 .1s ease-in forwards}._main_gsrvy_20 ._tcRightTop_gsrvy_118 ._toast_gsrvy_49._fade-out-right_gsrvy_156,._main_gsrvy_20 ._tcRightBottom_gsrvy_123 ._toast_gsrvy_49._fade-out-right_gsrvy_156{animation:_fade-out-right_gsrvy_156 .1s ease-in forwards}@keyframes _appear-from-right_gsrvy_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fade-out-right_gsrvy_156{0%{transform:translate(0)}to{transform:translate(200%)}}._App_1k5ja_1{margin:auto}._App_1k5ja_1 button{padding:.5rem .75rem;color:#fff;border:none;border-radius:6px;transition:all .33s;transform:scale(1)}._App_1k5ja_1 form{width:100%;margin-top:10px}._App_1k5ja_1 form input{width:100%;height:80%;padding:.5rem;border-radius:6px}._App_1k5ja_1 form button{margin-top:10px;margin-right:.5rem;background-color:#00f}._App_1k5ja_1 ._item_1k5ja_27{display:flex;align-items:center;justify-content:space-between;margin-top:10px}._App_1k5ja_1 ._item_1k5ja_27 ._editBtn_1k5ja_33{background-color:green}._App_1k5ja_1 ._item_1k5ja_27 ._deleteBtn_1k5ja_36{margin-left:10px;background-color:red}._App_1k5ja_1 ._item_1k5ja_27 ._completed_1k5ja_40{font-style:italic;color:#a9a9a9;text-decoration:line-through}._App_1k5ja_1 button:hover{transition:all .33s;transform:scale(1.1)}._App_1k5ja_1 button:disabled{cursor:not-allowed;background-color:gray;transform:scale(1)}._hint_1k5ja_55{margin:.5rem 0;font-size:.9rem;color:#333}@media screen and (width >= 768px){._App_1k5ja_1{width:50%}}._container_10vfd_1{display:flex;align-items:center;justify-content:center;width:100%}._container_10vfd_1 *{box-sizing:border-box;padding:0;margin:0}._clockWrapper_10vfd_14{max-width:500px;padding:1.5rem;background-color:#f3f3f3;border:2px solid #ccc;border-radius:1rem}._timeSection_10vfd_22{display:flex;gap:1.5rem;margin-bottom:1.5rem}._timeSection_10vfd_22 div{display:flex;gap:.5rem;align-items:center}._timeSection_10vfd_22 p{font-size:1.8rem;font-weight:700}._timeAdjustment_10vfd_39{display:flex;gap:.5rem;align-items:center}._timeAdjustment_10vfd_39 ._timeAdjustmentButton_10vfd_45{display:flex;flex-direction:column;gap:0}._timerDisplay_10vfd_51{display:flex;flex-direction:column;gap:1rem;align-items:center}._timerDisplay_10vfd_51 p:first-child{font-size:1.5rem;font-weight:700;text-transform:capitalize}._timerDisplay_10vfd_51 p span{font-size:3rem;font-weight:700}._buttonGroup_10vfd_69{display:flex}._buttonGroup_10vfd_69 button,._timeAdjustmentButton_10vfd_45 button{color:#007bff;cursor:pointer;background-color:transparent;border:none;transition:color .2s ease}._buttonGroup_10vfd_69 button:hover,._timeAdjustmentButton_10vfd_45 button:hover{color:#0056b3}._lastMinute_10vfd_87{color:red}._container_1twmk_2{max-width:600px;padding:20px;margin:20px auto 0;background-color:#fff;border-radius:5px}._container_1twmk_2 h1{color:#333;text-align:center}._container_1twmk_2 textarea{width:100%;height:150px;padding:10px;margin-bottom:10px;resize:none;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._controls_1twmk_23{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}._container_1twmk_2 #_char-limit_1twmk_1{width:80px}._container_1twmk_2 button{padding:8px 16px;margin-top:10px;color:#fff;cursor:pointer;background-color:#333;border:none;border-radius:5px}._container_1twmk_2 button:hover{background-color:#555}._container_1twmk_2 ._highlight_1twmk_44{margin-top:20px}._container_1twmk_2 input[type=text]{width:200px;padding:5px;margin-right:10px;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._highlight-button_1twmk_54{color:#fff;background-color:#f2a154}._container_1twmk_2 ._highlight-button_1twmk_54:hover{background-color:#f93}._container_1twmk_2 ._highlighted_1twmk_61{font-weight:700;background-color:#ff0}._sport_1g70d_1{display:flex;justify-content:center;min-height:40vh}._container_1g70d_7{width:400px;padding:20px;text-align:center;background-color:#fff;border-radius:10px}._header_1g70d_15{padding:10px;font-size:24px}._question_1g70d_20{margin:20px 0;font-size:18px;color:#333}._answers_1g70d_26{display:flex;gap:10px;justify-content:center;margin-top:20px}._button_1g70d_33{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px;transition:background-color .3s}._button_1g70d_33:hover{background-color:#0056b3}._buttonStartOver_1g70d_48{font-size:16px;color:#fff;cursor:pointer;background-color:#ff5050;border:none;border-radius:5px;transition:background-color .3s}._buttonStartOver_1g70d_48:hover{background-color:#e63939}:modal._dialog_b8qgm_1{padding:0;border:1px solid gray;box-shadow:0 0 10px #00000080}:modal._dialog_b8qgm_1::backdrop{opacity:0}:modal._dialog_b8qgm_1._backdrop_b8qgm_9::backdrop{background-color:#000;opacity:.5}:modal._dialog_b8qgm_1 section{padding:1rem}:modal._dialog_b8qgm_1 header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}:modal._dialog_b8qgm_1 header h2{margin:0}:modal._dialog_b8qgm_1 header button{background-color:transparent;border:1px solid lightgray}:modal._dialog_b8qgm_1 footer{display:flex;justify-content:flex-end;margin-top:2rem}:modal._dialog_b8qgm_1 footer button{margin-left:1rem}:modal._dialog_b8qgm_1 ._dialog-content_b8qgm_37{padding:1rem}._form_b8qgm_41{display:flex;flex-direction:column;align-items:center;gap:1rem;font-size:larger;margin:3rem 0}._form_b8qgm_41>div{display:flex;align-items:center;gap:1rem}._form_b8qgm_41 button{margin-top:1rem}._main_5yt35_2{display:flex;flex-direction:column;align-items:center;justify-content:center}._container_5yt35_10{width:100%;height:400px;padding:10px;margin:26px;overflow-x:hidden;overflow-y:scroll;background-color:#f9f9f9;border-radius:3px;box-shadow:0 0 3px 2px #c9c9c9ee}._container_5yt35_10::-webkit-scrollbar,._container_5yt35_10::-webkit-scrollbar-thumb{width:6px;height:40px;border-radius:12px}._container_5yt35_10::-webkit-scrollbar-thumb{box-shadow:inset 10px 10px 10px 5px #b8b8b8}._iconContainer_5yt35_33{width:30%;height:30%}._icon_5yt35_33{display:inline-block;width:calc(100% / 3);padding:1px;font-size:30px;text-align:center;cursor:pointer;border:3px solid transparent;border-radius:10px;transition:border-color .3s}._icon_5yt35_33:hover{border-color:#d9d9d9}._inputField_5yt35_54{padding:10px;margin-bottom:10px;font-size:1rem;border:1px solid #ccc;border:2px solid rgb(80,66,0);border-radius:4px}._inputField_5yt35_54:hover{cursor:auto;border:2px solid rgb(80,66,0)}._toast_5yt35_68{position:fixed;top:20px;display:flex;align-items:center;justify-content:center;width:300px;height:30px;color:#2f4f4f;text-align:center;background-color:#80ee80;border-radius:20px;box-shadow:0 0 3px 2px #c9c9c9ee}._loader_5yt35_83{width:60px;height:60px;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;animation:_spin_5yt35_1 2s linear infinite}._loaderContainer_5yt35_92{display:flex;justify-content:center}._topSection_5yt35_97{display:flex;flex-direction:column;justify-content:center}._select_5yt35_103{width:180px;padding:10px;margin-bottom:10px;font-size:1rem;border:2px solid rgb(80,66,0);border-radius:5px}._copyText_5yt35_112{font-size:small;color:#bababa;text-align:center;opacity:1}._hidden_5yt35_119{opacity:0}@keyframes _spin_5yt35_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (width <= 576px){._icon_5yt35_33{width:calc(100% / 6)}}@media (width >= 768px){._icon_5yt35_33{width:12.5%}._container_5yt35_10{width:500px}}@media (width >= 992px){._icon_5yt35_33{width:10%}._container_5yt35_10{width:500px}}._container_5ie15_1{padding:20px;text-align:center}._languageList_5ie15_6{display:flex;flex-wrap:wrap;justify-content:center}._languageCard_5ie15_12{max-width:300px;padding:10px;margin:10px;text-align:left;background-color:#f7f7f7;border:1px solid #ccc;border-radius:8px;box-shadow:2px 2px 5px #0000001a;transition:transform .2s}._languageCard_5ie15_12:hover{transform:translateY(-3px)}._languageName_5ie15_28{margin-top:0;font-size:20px;color:#007bff}._info_5ie15_34{margin:5px 0;font-size:16px;color:#555}._heading_5ie15_40{font-size:24px;color:#333}._otpFields_1d1qn_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}._otpinput_1d1qn_15{display:flex;gap:1rem;align-items:center;justify-content:center}._otpinput_1d1qn_15 input{width:3rem;height:3rem;text-align:center;border:1px solid rgba(0,0,0,30%)}._AppContainer_wtrmq_1{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}._trafficWrapper_wtrmq_9{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:25px;width:8rem;padding:30px;background:black;border-radius:25px}._light_wtrmq_21{width:5rem;height:5rem;background:gray;border-radius:50%}._countdownTime_wtrmq_28{font-size:18px;font-weight:700}._button_g66ua_1,._quiz_container_footer_g66ua_1 button{all:unset;padding:.5rem 1rem;background:#2c3658;margin-left:auto;border-radius:.2rem;outline:none;border:none;cursor:pointer}._button_g66ua_1:active,._quiz_container_footer_g66ua_1 button:active{transform:scale(.98)}._button_g66ua_1:disabled,._quiz_container_footer_g66ua_1 button:disabled{background:rgba(44,54,88,.3);cursor:not-allowed}._button_g66ua_1:disabled:active,._quiz_container_footer_g66ua_1 button:disabled:active{transform:none}._app_g66ua_22{width:100%;min-height:85vh;background-color:#2c3658;display:flex;align-items:center;justify-content:center;font-size:1rem}._quiz_container_g66ua_1{color:#fff;height:30rem;width:30rem;padding:1rem 2rem;background:#699cf4;border-radius:1rem;border-top:5px solid #00fff2;transition:all .3s ease-in}._quiz_container_header_g66ua_42{display:flex;align-items:center;justify-content:center;justify-content:space-between}._quiz_container_footer_g66ua_1{width:100%;display:inline-flex;flex-direction:row-reverse}._question_g66ua_53{min-height:20rem}._question_g66ua_53 h2{min-height:5rem;font-size:1.2rem;font-weight:600;background:rgba(0,255,242,.2);border-radius:.4rem;padding:1rem;border:2px solid rgba(0,255,242,.5)}._question_choices_g66ua_65{list-style:none;list-style-position:inside;padding-left:0}._question_choices_g66ua_65>*{margin-block:.4rem}._question_choices_choice_g66ua_73{padding:.5rem;border:2px solid rgba(44,54,88,.5);border-radius:.4rem;cursor:pointer;background:rgba(44,54,88,.2)}._question_choices_choice_g66ua_73:active{transform:scale(.98)}._question_choices_choice_g66ua_73._selected_g66ua_83{background:rgba(44,54,88,.6)}._quiz_result_g66ua_87{display:flex;align-items:center;justify-content:center;height:100%}._quiz_result_g66ua_87 h3{background:rgba(0,255,242,.2);border:2px solid rgba(0,255,242,.5);text-align:center;padding:.5rem 1rem;border-radius:.5rem}._quiz_result_g66ua_87 table{background-color:#2c365880;border-collapse:collapse}._quiz_result_g66ua_87 table tr>td{padding:1rem 2rem;border:2px solid rgba(0,255,242,.5)}._instruction_1e2bh_1{text-align:center}._board_1e2bh_5{display:flex;flex-direction:column;flex-grow:1;margin:auto;border:2px solid black;width:min(90vw,100vh - 160px);height:min(90vw,100vh - 160px)}._board_1e2bh_5 div{display:flex;width:100%;height:100%}._board_1e2bh_5 div button._box_1e2bh_19{display:flex;flex-grow:1;cursor:pointer;border:none}._board_1e2bh_5 div button:focus-visible{outline:4px solid yellowgreen;z-index:1}._board_1e2bh_5 div:nth-child(2n) button:nth-child(odd){background-color:#000}._board_1e2bh_5 div:nth-child(odd) button:nth-child(2n){background-color:#000}._board_1e2bh_5 div button._box_1e2bh_19._selected_1e2bh_35{transition:background-color .33s;background-color:red}._board_1e2bh_5 div button._box_1e2bh_19._clicked_1e2bh_39{background-color:#8b0000}._container_1wkcr_1{display:flex;align-items:center;justify-content:center}._calculator__body_1wkcr_7{padding:3rem 1rem;background-color:#d6e4e5;border-radius:1rem}._calculator__screen_1wkcr_13{min-height:65px;padding:10px;margin-bottom:1rem;font-weight:700;color:#fff;text-align:right;word-break:break-all;word-wrap:break-word;background-color:#000;border-radius:.5rem}._calculator__screen__previous_1wkcr_26{margin-bottom:10px;font-size:.8rem;color:#d3d3d3}._calculator__buttons_1wkcr_32{display:grid;grid-template-rows:repeat(6,4rem);grid-template-columns:repeat(4,4rem);gap:5px;border:none;outline:none}._calculator__buttons_1wkcr_32 button{font-size:1.25rem;font-weight:700;color:#fff;border:none;border-radius:1rem;outline:none}#_ac_1wkcr_1{grid-column:1 / 3;background-color:#497174}#_del_1wkcr_1{background-color:#497174}#_total_1wkcr_1{grid-column:3 / 5;background-color:#eb6440}._calculator__buttons_1wkcr_32 button:hover,#_total_1wkcr_1:hover,#_ac_1wkcr_1:hover,#_del_1wkcr_1:hover{color:#000;background-color:gray}._calculator__button_1wkcr_32{background-color:#497174}._calculator__operator_1wkcr_76{background-color:#eb6440}._calculator__button_1wkcr_32:active,._calculator__operator_1wkcr_76:active,#_total_1wkcr_1:active,#_ac_1wkcr_1:active,#_del_1wkcr_1:active{box-shadow:0 0 5px #000}#_exponent_1wkcr_1,#_square_1wkcr_1{font-style:italic}button{cursor:pointer;padding:.5rem}._controls_1s50h_6{display:flex;flex-direction:column;gap:10px;margin-bottom:2rem}._text-center_1s50h_13{text-align:center}._tanks_1s50h_17{display:inline-flex;padding:0 20px;gap:20px}._add-btn_1s50h_23{background-color:green;color:#fff;border:none;border-radius:.5rem;text-transform:uppercase;-webkit-user-select:none;user-select:none}._empty-btn_1s50h_32{background-color:#fff;color:red;border:2px solid red;border-radius:.5rem;text-transform:uppercase;-webkit-user-select:none;user-select:none}._tank_1s50h_17{height:250px;width:100px;border:2px solid black;border-radius:0 0 .5rem .5rem;display:flex;align-items:flex-end;overflow:hidden}._tank-level_1s50h_51{width:100%;background-color:#0ff;transition:height 1s linear}._form-item_1s50h_57{display:flex;align-items:center;justify-content:center}@media screen and (max-width: 768px){._range_1s50h_64{display:none}._tanks_1s50h_17{padding:0}._tank_1s50h_17{width:70px}}@media screen and (max-width: 1024px){._tanks_1s50h_17{padding:0}._tank_1s50h_17{width:70px}}._TransferListContainer_e51he_1{display:flex;width:500px;height:250px;margin:2rem auto}._list-container_e51he_8{width:300px;border:1px solid rgb(13,13,20);display:flex;flex-direction:column}._buttons-container_e51he_15{width:100px;display:flex;flex-direction:column;justify-content:center;padding:5px}._buttons-container_e51he_15 button{padding:5px;margin-bottom:10px;cursor:pointer}._inputWrapper_e51he_29{padding:5px}._disabled-button_e51he_33{pointer-events:none}._AppContainer_1tcc6_1{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:10px 20px}._container_1tcc6_9{min-height:100vh;width:100%;display:flex;align-items:center;justify-content:center;padding:100px 0}._timeline_1tcc6_17{width:80%;height:auto;max-width:800px;margin:0 auto;position:relative}._timeline_1tcc6_17 ul{list-style:none}._timeline_1tcc6_17 ul li{padding:20px;background-color:#1e1f22;color:#fff;border-radius:10px;margin-bottom:20px}._timeline_1tcc6_17 ul li:last-child{margin-bottom:0}._date_1tcc6_38{color:#000;font-size:12px}._timeline_content_1tcc6_42 h1{font-weight:500;font-size:25px;line-height:30px;margin-bottom:10px;color:#fff}._timeline_content_1tcc6_42 p{font-size:16px;line-height:30px;font-weight:300}._timeline_content_1tcc6_42 ._date_1tcc6_38{font-size:12px;font-weight:300;margin-bottom:10px;letter-spacing:2px}._timeline_1tcc6_17:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:2px;height:100%;background-color:gray}._timeline_1tcc6_17 ul li{width:50%;position:relative;margin-bottom:50px}._timeline_1tcc6_17 ul li:nth-child(odd){float:left;clear:right;transform:translate(-60px);border-radius:20px 0 20px 20px}._timeline_1tcc6_17 ul li:nth-child(2n){float:right;clear:left;transform:translate(30px);border-radius:0 20px 20px}._timeline_1tcc6_17 ul li:before{content:"";position:absolute;height:20px;width:20px;border-radius:50%;background-color:gray;top:-10px}._timeline_1tcc6_17 ul li:nth-child(odd):before{transform:translate(50%,-50%);right:-40px}._timeline_1tcc6_17 ul li:nth-child(2n):before{transform:translate(-50%,-50%);left:-48px}._timeline_content_1tcc6_42 ._date_1tcc6_38{position:absolute;top:-30px}._timeline_1tcc6_17 ul li:hover:before{background-color:#0ff}@media only screen and (max-width: 420px){._timeline_content_1tcc6_42 h1{font-size:20px;line-height:25px;padding-right:10px}._timeline_content_1tcc6_42 p{font-size:14px;line-height:20px}._timeline_content_1tcc6_42 ._date_1tcc6_38{font-size:10px;margin-bottom:5px}}._grid_18i4i_1{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:10px;margin:0 auto;margin-bottom:2rem}._itemBtn_18i4i_9{background-color:#fff;border-radius:5px;padding:10px 5px;text-align:center;cursor:pointer;border:1px solid grey;box-shadow:0 0 5px #0003;font-size:medium}._reset_18i4i_20{background-color:#00f;color:#fff;padding:.5rem 1rem}._center_18i4i_26{text-align:center}._highlight_18i4i_30{background-color:#add8e6}._success_18i4i_34{background-color:#90ee90}._failure_18i4i_38{background-color:#f08080}[data-status] button{cursor:not-allowed}._heading_12asi_1{text-align:center}._stepper_12asi_5{position:relative;display:flex;align-items:center;justify-content:space-between;margin-top:20px}._step_12asi_5{display:flex;flex:1;flex-direction:column;align-items:center}._step-number_12asi_20{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:5px;background-color:#ccc;border:2px solid black;border-radius:50%;cursor:pointer}._step_12asi_5._active_12asi_33 ._step-number_12asi_20{color:#fff;background-color:#4747f7}._step_12asi_5._complete_12asi_38 ._step-number_12asi_20{color:#fff;background-color:#1ec41e}._btn_12asi_43{margin-top:10px;cursor:pointer}._progress-container_12asi_48{position:absolute;top:15px;width:100%;height:4px;background-color:gray}._progress-bar_12asi_56{height:100%;background-color:green;transition:all .2s ease}._action-container_12asi_62{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:15px}._action-container_12asi_62 div{font-size:20px;font-weight:600}._action-container_12asi_62 ._btn_12asi_43{height:40px;padding:10px;margin:10px 50px;font-size:20px;cursor:pointer;background:none;background-color:#ccc;border:none;border-radius:5px}button:disabled{cursor:not-allowed!important}._main_yhjgz_1{display:flex;align-items:center;justify-content:center}._select-dahi_yhjgz_7{display:flex;flex-direction:column;gap:4px;padding:6px 8px}._inline-options_yhjgz_14{display:inline-flex;border-radius:8px;gap:4px;padding:3px;background:#fff;color:#5b5e64;-webkit-user-select:none;user-select:none;border:1px solid #dcd5c8;font-size:14px}._option_yhjgz_26{position:relative;cursor:pointer;padding:4px 6px;border-radius:4px;width:60px;display:flex;justify-content:center;align-items:center;background:#fff;box-shadow:none;border:0}._option_yhjgz_26:focus{outline:1px solid #6a604f}._option-selected_yhjgz_44{outline:none;color:#fff;background:#6a604f}._option-disabled_yhjgz_50{color:#bfbdbd;cursor:not-allowed}._a_13gc8_1,._d_13gc8_2,._g_13gc8_3{width:70px;height:10px;background-color:red;border-radius:70%}._d_13gc8_2,._g_13gc8_3{margin-top:30px}._b_13gc8_18,._c_13gc8_19,._e_13gc8_20,._f_13gc8_21{width:70px;height:10px;background-color:red;border-radius:70%}._b_13gc8_18{margin:28px 0 30px 35px;transform:rotate(90deg)}._c_13gc8_19{margin-top:-40px;margin-left:-36px;background-color:red;transform:rotate(90deg)}._e_13gc8_20{margin-top:30px;margin-left:-36px;background-color:red;transform:rotate(90deg)}._f_13gc8_21{margin-top:-10px;margin-left:35px;background-color:red;transform:rotate(90deg)}._off_13gc8_54{background-color:red;opacity:.2}._container_13gc8_59{margin:80px 0 0;padding:50px;display:flex;justify-content:center;background-color:#000}._hours_13gc8_68,._minutes_13gc8_72,._seconds_13gc8_76{display:flex}._colons_13gc8_80{display:flex;flex-direction:column;gap:30px;padding:30px;justify-content:space-between;align-items:center}._colon1_13gc8_89,._colon2_13gc8_90{width:30px;height:30px;background-color:red;border-radius:50%}._comment_10sns_1{display:flex;align-items:center;background-color:#f3f4f6;margin-bottom:.5rem;border-radius:1rem;padding:0 .5rem;border-left:.5rem solid blue}._comment_10sns_1 img{width:3.125rem;height:3.125rem;margin-right:.8rem}._comment_replies_10sns_17{margin-left:1rem;padding-left:1rem}._comment_10sns_1 button{border:none;background-color:transparent}._container_1d6j8_1{text-align:center}._button_1d6j8_5{padding:5px 25px;font-size:1rem;color:#fff;background-color:#000;border-radius:.5rem}._grid_1d6j8_13{display:inline-grid;grid-gap:4px;transition:all .25s}._grid_1d6j8_13 button{border:2px solid grey}._formContainer_muy2u_1{display:flex;justify-content:center}._input_text_muy2u_5{width:80%;padding:1rem;font-size:1rem;margin-bottom:3rem}._chips_muy2u_12{margin:.5em;padding:.5em .75em;background-color:#eee;border:1px solid lightgrey;border-radius:1em}._remove_muy2u_20{border:none;color:red;cursor:pointer}._container_w1r10_1{margin:3rem;padding:1rem 0;border:1px solid lightgray;border-radius:1rem;width:50%}._btn_w1r10_8{padding:1rem 2rem;background-color:#add8e6;color:#fff;cursor:pointer}._btn_w1r10_8:first-child{border-top-left-radius:1rem}._active_w1r10_19{background-color:#4747e8}._content_w1r10_23{margin:2rem 1rem;line-height:1.5}._container_1u8l1_1{width:50%;margin:0 auto}._listContainer_1u8l1_6{display:flex;justify-content:space-between;border:1px solid lightgray;padding:1rem;margin:1rem;cursor:grab;border-radius:1.5rem;box-shadow:#32325d40 0 2px 5px -1px,#0000004d 0 1px 3px -1px}._userDetail_1u8l1_19{flex:1;text-align:justify}._saveBtn_1u8l1_24{margin:2rem 0 0 1rem;padding:.8rem;letter-spacing:1.2px;border-radius:1.2rem;border:0;transition:all .2s ease}._saveBtn_1u8l1_24:hover{box-shadow:#0003 0 12px 28px,#0000001a 0 2px 4px,#ffffff0d 0 0 0 1px inset}._container_1iv6r_1{text-align:center;font-size:1.4rem}._container_1iv6r_1 ._inputWrapper_1iv6r_5{margin:20px 0;display:flex;justify-content:center;align-items:center;gap:1rem}._container_1iv6r_1 input{font-size:1.4rem;width:100px}._box_1iv6r_19{border:10px solid black;position:relative;margin:20px auto;box-sizing:content-box}._circle_1iv6r_26{border-radius:50%;border:1px solid blue;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}:root{--clock-size: min(100vh - 140px, 90vw);--clock-border: min(2vh, 2vw);--hand-color: black;--tick-color: black;--clock-color: black;--digit-color: brown}._clock_as1nw_10{position:relative;display:flex;align-items:center;justify-content:center;width:var(--clock-size);height:var(--clock-size);margin:2rem auto 0;border:min(2vh,2vw) solid var(--clock-color);border-radius:50%}._ticks_as1nw_22{position:absolute;width:100%;height:100%}._tick_as1nw_22{position:absolute;height:1%;background-color:var(--tick-color);border:1px solid var(--tick-color);transform:translate(-50%,-50%);transform-origin:top left}._tick_as1nw_22:nth-child(5n+1){width:.25%;height:1.5%}._digits_as1nw_42{position:absolute;width:90%;height:90%;font-size:min(4vh,4vw);font-weight:600;color:var(--digit-color)}._digit_as1nw_42{position:absolute;text-shadow:0 2px rgb(0,0,0,15%);transform:translate(-50%,-50%)}._bgImg_as1nw_57{width:100%;height:100%;object-fit:cover;opacity:.75}._centerConnector_as1nw_64{position:absolute;z-index:100;width:5%;height:5%;background-color:var(--clock-color);border-radius:50%}._secondsHand_as1nw_73,._minutesHand_as1nw_74,._hoursHand_as1nw_75{position:absolute;background-color:var(--hand-color);transform-origin:50% 100%}._hoursHand_as1nw_75{top:20%;left:calc(50% - 2.5px);width:.5%;height:30%}._minutesHand_as1nw_74{top:5%;left:calc(50% - 1.5px);width:.3%;height:45%}._secondsHand_as1nw_73{top:15%;left:calc(50% - .5px);width:.1%;height:55%;transform-origin:50% 63.5%}._secondsHand_as1nw_73:before{position:absolute;bottom:0;left:-250%;width:600%;height:25%;content:"";background-color:var(--hand-color)}._main_ykqcu_1{text-align:center;font-size:1.5rem}._main_ykqcu_1 section{margin:1rem 0}._main_ykqcu_1 section div{margin:1rem 0}._main_ykqcu_1 section button{padding:.25rem 1rem;margin:0 .5rem;font-size:1.5rem}._main_ykqcu_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.5rem}._nested_checkbox_wrapper_sy313_1{margin:20px 0;width:300px}._nested_checkbox_label_sy313_6{display:flex;align-items:center;gap:4px}._nested_checkbox_child_sy313_12{margin:10px 0;padding:0 0 0 25px}._layout_fefro_1{display:flex;align-items:center;justify-content:center;margin:1rem 0;gap:2rem}._layout_fefro_1 button{padding:.25rem;border-radius:4px}._holder_fefro_13{display:flex;height:calc(100dvh - 9rem)}._holder_fefro_13 ._hourLabels_fefro_17{display:flex;flex-direction:column;margin-right:1rem;justify-content:space-between;width:8ch}._holder_fefro_13 ._day_fefro_24{position:relative;margin-top:.5rem;width:100%;display:flex;flex-direction:column;justify-content:space-between;height:calc(100% - 1rem);border-bottom:1px solid #ccc}._holder_fefro_13 ._day_fefro_24 ._hourSlot_fefro_34{border-top:1px solid #ccc}._holder_fefro_13 ._day_fefro_24 ._meetings_fefro_37{display:flex;justify-content:flex-end}._holder_fefro_13 ._day_fefro_24 ._meeting_fefro_37{position:absolute;opacity:.8;overflow:hidden;border-radius:4px;background-color:#86c6db;outline:1px solid white;border:1px solid gray;transition:background-color .5s;display:flex;flex-direction:column;gap:4px;padding:4px;font-size:small}._holder_fefro_13 ._day_fefro_24 ._meeting_fefro_37 span:first-child{font-weight:700}._holder_fefro_13 ._day_fefro_24 ._meeting_fefro_37:focus{background-color:#39c4f3;z-index:1}@media (width > 768px){._holder_fefro_13 ._day_fefro_24 ._meeting_fefro_37{font-size:medium}}@media (width > 1200px){._holder_fefro_13 ._day_fefro_24 ._meeting_fefro_37{font-size:large}}:root{--bg-body: #f3f4f6;--text-body: #111827;--bg-navbar: #ffffff;--shadow-navbar: rgba(0 0 0 / .1);--bg-navbar-logo-img: transparent;--bg-footer: #f9fafb;--shadow-footer: rgba(0 0 0 / .1);--text-link: blue;--card-body: #ffffff;--card-shadow: rgb(226, 226, 226);--card-shadow-hover: rgba(0, 0, 0, .3);--card-border: rgb(250, 250, 250);--difficulty-color: ""}[data-theme=dark]{--bg-body: #030712;--text-body: #e5e7eb;--bg-navbar: #030712;--shadow-navbar: rgba(150 150 150 / .2);--bg-footer: var(--bg-body);--shadow-footer: #1f2937;--text-link: #6366f1;--card-body: #000000;--card-shadow: rgb(51, 51, 51);--card-shadow-hover: rgba(255, 255, 255, .2);--card-border: rgb(70, 70, 70);color-scheme:dark}html{margin:0;box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}*,*:before,*:after{box-sizing:inherit}body{margin:0;color:var(--text-body);overflow-x:hidden}a{text-decoration:none;color:var(--text-link)}button{cursor:pointer}input:disabled,button:disabled{cursor:not-allowed}h1{align-items:center;justify-content:center}.container{width:90%;margin:auto}.hidden{display:none!important}button.btn.btn-primary{padding:10px 16px;background-color:#0ff;border:1px solid grey;border-radius:4px;cursor:pointer}button.btn:disabled,.btn.btn-primary:disabled{cursor:not-allowed}.btn.btn-primary.small{padding:4px 6px}.disabled{color:gray;cursor:not-allowed}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-space-between{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.grid{display:grid}.text-center{text-align:center}.text-bold{font-weight:700}.fixed{position:fixed}.relative{position:relative}html{scroll-behavior:smooth} diff --git a/docs/react/assets/index-DUrsQPUN.js b/docs/react/assets/index-DUrsQPUN.js new file mode 100644 index 00000000..8626297a --- /dev/null +++ b/docs/react/assets/index-DUrsQPUN.js @@ -0,0 +1,174 @@ +var ub=Object.defineProperty;var db=(e,t,n)=>t in e?ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mh=(e,t,n)=>(db(e,typeof t!="symbol"?t+"":t,n),n);function Qv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jv={exports:{}},$c={},Xv={exports:{}},le={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var da=Symbol.for("react.element"),fb=Symbol.for("react.portal"),pb=Symbol.for("react.fragment"),hb=Symbol.for("react.strict_mode"),mb=Symbol.for("react.profiler"),gb=Symbol.for("react.provider"),vb=Symbol.for("react.context"),yb=Symbol.for("react.forward_ref"),xb=Symbol.for("react.suspense"),wb=Symbol.for("react.memo"),bb=Symbol.for("react.lazy"),gh=Symbol.iterator;function _b(e){return e===null||typeof e!="object"?null:(e=gh&&e[gh]||e["@@iterator"],typeof e=="function"?e:null)}var Zv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ey=Object.assign,ty={};function Ai(e,t,n){this.props=e,this.context=t,this.refs=ty,this.updater=n||Zv}Ai.prototype.isReactComponent={};Ai.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ny(){}ny.prototype=Ai.prototype;function If(e,t,n){this.props=e,this.context=t,this.refs=ty,this.updater=n||Zv}var Lf=If.prototype=new ny;Lf.constructor=If;ey(Lf,Ai.prototype);Lf.isPureReactComponent=!0;var vh=Array.isArray,ry=Object.prototype.hasOwnProperty,Ff={current:null},oy={key:!0,ref:!0,__self:!0,__source:!0};function iy(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)ry.call(t,r)&&!oy.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,pe=I[re];if(0>>1;reo(He,X))yeo(at,He)?(I[re]=at,I[ye]=X,re=ye):(I[re]=He,I[De]=X,re=De);else if(yeo(at,X))I[re]=at,I[ye]=X,re=ye;else break e}}return V}function o(I,V){var X=I.sortIndex-V.sortIndex;return X!==0?X:I.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,f=null,h=3,g=!1,m=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=I)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function C(I){if(x=!1,b(I),!m)if(n(l)!==null)m=!0,q(k);else{var V=n(u);V!==null&&Y(C,V.startTime-I)}}function k(I,V){m=!1,x&&(x=!1,v(j),j=-1),g=!0;var X=h;try{for(b(V),f=n(l);f!==null&&(!(f.expirationTime>V)||I&&!D());){var re=f.callback;if(typeof re=="function"){f.callback=null,h=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(l)&&r(l),b(V)}else r(l);f=n(l)}if(f!==null)var st=!0;else{var De=n(u);De!==null&&Y(C,De.startTime-V),st=!1}return st}finally{f=null,h=X,g=!1}}var _=!1,E=null,j=-1,P=5,N=-1;function D(){return!(e.unstable_now()-NI||125re?(I.sortIndex=X,t(u,I),n(l)===null&&I===n(u)&&(x?(v(j),j=-1):x=!0,Y(C,X-re))):(I.sortIndex=pe,t(l,I),m||g||(m=!0,q(k))),I},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(I){var V=h;return function(){var X=h;h=V;try{return I.apply(this,arguments)}finally{h=X}}}})(uy);cy.exports=uy;var Ob=cy.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dy=p,Ft=Ob;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ld=Object.prototype.hasOwnProperty,Ab=/^[: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]*$/,xh={},wh={};function Db(e){return ld.call(wh,e)?!0:ld.call(xh,e)?!1:Ab.test(e)?wh[e]=!0:(xh[e]=!0,!1)}function Mb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ib(e,t,n,r){if(t===null||typeof t>"u"||Mb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function kt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bf=/[\-:]([a-z])/g;function Uf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bf,Uf);it[t]=new kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bf,Uf);it[t]=new kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bf,Uf);it[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hf(e,t,n,r){var o=it.hasOwnProperty(t)?it[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ys(e):""}function Lb(e){switch(e.tag){case 5:return ys(e.type);case 16:return ys("Lazy");case 13:return ys("Suspense");case 19:return ys("SuspenseList");case 0:case 2:case 15:return e=du(e.type,!1),e;case 11:return e=du(e.type.render,!1),e;case 1:return e=du(e.type,!0),e;default:return""}}function fd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qo:return"Fragment";case Yo:return"Portal";case cd:return"Profiler";case Wf:return"StrictMode";case ud:return"Suspense";case dd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hy:return(e.displayName||"Context")+".Consumer";case py:return(e._context.displayName||"Context")+".Provider";case Vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gf:return t=e.displayName||null,t!==null?t:fd(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return fd(e(t))}catch{}}return null}function Fb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fd(t);case 8:return t===Wf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zb(e){var t=gy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Da(e){e._valueTracker||(e._valueTracker=zb(e))}function vy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pd(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _h(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yy(e,t){t=t.checked,t!=null&&Hf(e,"checked",t,!1)}function hd(e,t){yy(e,t);var n=Ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?md(e,t.type,n):t.hasOwnProperty("defaultValue")&&md(e,t.type,Ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function md(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function ui(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ma.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bb=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){Bb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function _y(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function Sy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_y(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ub=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yd(e,t){if(t){if(Ub[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function xd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 wd=null;function Kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bd=null,di=null,fi=null;function Eh(e){if(e=ha(e)){if(typeof bd!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Oc(t),bd(e.stateNode,e.type,t))}}function ky(e){di?fi?fi.push(e):fi=[e]:di=e}function Cy(){if(di){var e=di,t=fi;if(fi=di=null,Eh(e),t)for(e=0;e>>=0,e===0?32:31-(Zb(e)/e_|0)|0}var Ia=64,La=4194304;function ws(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ws(a):(i&=s,i!==0&&(r=ws(i)))}else s=n&~o,s!==0?r=ws(s):i!==0&&(r=ws(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function o_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cs),Dh=String.fromCharCode(32),Mh=!1;function Vy(e,t){switch(e){case"keyup":return P_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jo=!1;function A_(e,t){switch(e){case"compositionend":return Gy(t);case"keypress":return t.which!==32?null:(Mh=!0,Dh);case"textInput":return e=t.data,e===Dh&&Mh?null:e;default:return null}}function D_(e,t){if(Jo)return e==="compositionend"||!tp&&Vy(e,t)?(e=Hy(),hl=Xf=Cr=null,Jo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=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=zh(n)}}function Qy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jy(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function np(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function W_(e){var t=Jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qy(n.ownerDocument.documentElement,n)){if(r!==null&&np(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Bh(n,i);var s=Bh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xo=null,jd=null,js=null,$d=!1;function Uh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$d||Xo==null||Xo!==Ol(r)||(r=Xo,"selectionStart"in r&&np(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Gs(js,r)||(js=r,r=zl(jd,"onSelect"),0ti||(e.current=Ad[ti],Ad[ti]=null,ti--)}function _e(e,t){ti++,Ad[ti]=e.current,e.current=t}var Lr={},ht=Gr(Lr),Tt=Gr(!1),mo=Lr;function ki(e,t){var n=e.type.contextTypes;if(!n)return Lr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rt(e){return e=e.childContextTypes,e!=null}function Ul(){ke(Tt),ke(ht)}function Yh(e,t,n){if(ht.current!==Lr)throw Error(F(168));_e(ht,t),_e(Tt,n)}function s0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,Fb(e)||"Unknown",o));return Ae({},n,r)}function Hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lr,mo=ht.current,_e(ht,e),_e(Tt,Tt.current),!0}function Qh(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=s0(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,ke(Tt),ke(ht),_e(ht,e)):ke(Tt),_e(Tt,n)}var Hn=null,Ac=!1,Cu=!1;function a0(e){Hn===null?Hn=[e]:Hn.push(e)}function nS(e){Ac=!0,a0(e)}function Kr(){if(!Cu&&Hn!==null){Cu=!0;var e=0,t=he;try{var n=Hn;for(he=1;e>=s,o-=s,Gn=1<<32-dn(t)+o|n<j?(P=E,E=null):P=E.sibling;var N=h(v,E,b[j],C);if(N===null){E===null&&(E=P);break}e&&E&&N.alternate===null&&t(v,E),y=i(N,y,j),_===null?k=N:_.sibling=N,_=N,E=P}if(j===b.length)return n(v,E),je&&Xr(v,j),k;if(E===null){for(;jj?(P=E,E=null):P=E.sibling;var D=h(v,E,N.value,C);if(D===null){E===null&&(E=P);break}e&&E&&D.alternate===null&&t(v,E),y=i(D,y,j),_===null?k=D:_.sibling=D,_=D,E=P}if(N.done)return n(v,E),je&&Xr(v,j),k;if(E===null){for(;!N.done;j++,N=b.next())N=f(v,N.value,C),N!==null&&(y=i(N,y,j),_===null?k=N:_.sibling=N,_=N);return je&&Xr(v,j),k}for(E=r(v,E);!N.done;j++,N=b.next())N=g(E,v,j,N.value,C),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?j:N.key),y=i(N,y,j),_===null?k=N:_.sibling=N,_=N);return e&&E.forEach(function(L){return t(v,L)}),je&&Xr(v,j),k}function w(v,y,b,C){if(typeof b=="object"&&b!==null&&b.type===Qo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Aa:e:{for(var k=b.key,_=y;_!==null;){if(_.key===k){if(k=b.type,k===Qo){if(_.tag===7){n(v,_.sibling),y=o(_,b.props.children),y.return=v,v=y;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xr&&rm(k)===_.type){n(v,_.sibling),y=o(_,b.props),y.ref=ts(v,_,b),y.return=v,v=y;break e}n(v,_);break}else t(v,_);_=_.sibling}b.type===Qo?(y=uo(b.props.children,v.mode,C,b.key),y.return=v,v=y):(C=_l(b.type,b.key,b.props,null,v.mode,C),C.ref=ts(v,y,b),C.return=v,v=C)}return s(v);case Yo:e:{for(_=b.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=o(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Ou(b,v.mode,C),y.return=v,v=y}return s(v);case xr:return _=b._init,w(v,y,_(b._payload),C)}if(xs(b))return m(v,y,b,C);if(Qi(b))return x(v,y,b,C);Va(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,b),y.return=v,v=y):(n(v,y),y=Pu(b,v.mode,C),y.return=v,v=y),s(v)):n(v,y)}return w}var Ei=m0(!0),g0=m0(!1),ma={},Nn=Gr(ma),Qs=Gr(ma),Js=Gr(ma);function so(e){if(e===ma)throw Error(F(174));return e}function dp(e,t){switch(_e(Js,t),_e(Qs,e),_e(Nn,ma),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vd(t,e)}ke(Nn),_e(Nn,t)}function ji(){ke(Nn),ke(Qs),ke(Js)}function v0(e){so(Js.current);var t=so(Nn.current),n=vd(t,e.type);t!==n&&(_e(Qs,e),_e(Nn,n))}function fp(e){Qs.current===e&&(ke(Nn),ke(Qs))}var Ne=Gr(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eu=[];function pp(){for(var e=0;en?n:4,e(!0);var r=ju.transition;ju.transition={};try{e(!1),t()}finally{he=n,ju.transition=r}}function O0(){return en().memoizedState}function sS(e,t,n){var r=Or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},A0(e))D0(t,n);else if(n=d0(e,t,n,r),n!==null){var o=_t();fn(n,e,r,o),M0(n,t,r)}}function aS(e,t,n){var r=Or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(A0(e))D0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,hn(a,s)){var l=t.interleaved;l===null?(o.next=o,cp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=d0(e,t,o,r),n!==null&&(o=_t(),fn(n,e,r,o),M0(n,t,r))}}function A0(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function D0(e,t){$s=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yf(e,n)}}var Jl={readContext:Zt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},lS={readContext:Zt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:im,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yl(4194308,4,$0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return yl(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:om,useDebugValue:yp,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=om(!1),t=e[0];return e=iS.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=kn();if(je){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));vo&30||w0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,im(_0.bind(null,r,i,e),[e]),r.flags|=2048,ea(9,b0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kn(),t=Ze.identifierPrefix;if(je){var n=Kn,r=Gn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[Ys]=r,V0(e,t,!1,!1),t.stateNode=e;e:{switch(s=xd(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;oTi&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!je)return ut(t),null}else 2*Be()-i.renderingStartTime>Ti&&n!==1073741824&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Be(),t.sibling=null,n=Ne.current,_e(Ne,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return kp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function gS(e,t){switch(op(t),t.tag){case 1:return Rt(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),ke(Tt),ke(ht),pp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fp(t),null;case 13:if(ke(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Ci()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ne),null;case 4:return ji(),null;case 10:return lp(t.type._context),null;case 22:case 23:return kp(),null;case 24:return null;default:return null}}var Ka=!1,dt=!1,vS=typeof WeakSet=="function"?WeakSet:Set,G=null;function ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Gd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var hm=!1;function yS(e,t){if(Td=Ll,e=Jy(),np(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===o&&(a=s),h===i&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rd={focusedElem:e,selectionRange:n},Ll=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,w=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:an(t.type,x),w);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=hm,hm=!1,m}function Ts(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Gd(t,n,i)}o=o.next}while(o!==r)}}function Ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function q0(e){var t=e.alternate;t!==null&&(e.alternate=null,q0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[Ys],delete t[Od],delete t[eS],delete t[tS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Y0(e){return e.tag===5||e.tag===3||e.tag===4}function mm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bl));else if(r!==4&&(e=e.child,e!==null))for(qd(e,t,n),e=e.sibling;e!==null;)qd(e,t,n),e=e.sibling}function Yd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yd(e,t,n),e=e.sibling;e!==null;)Yd(e,t,n),e=e.sibling}var nt=null,ln=!1;function dr(e,t,n){for(n=n.child;n!==null;)Q0(e,t,n),n=n.sibling}function Q0(e,t,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Tc,n)}catch{}switch(n.tag){case 5:dt||ii(n,t);case 6:var r=nt,o=ln;nt=null,dr(e,t,n),nt=r,ln=o,nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?ku(e.parentNode,n):e.nodeType===1&&ku(e,n),Ws(e)):ku(nt,n.stateNode));break;case 4:r=nt,o=ln,nt=n.stateNode.containerInfo,ln=!0,dr(e,t,n),nt=r,ln=o;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Gd(n,t,s),o=o.next}while(o!==r)}dr(e,t,n);break;case 1:if(!dt&&(ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}dr(e,t,n);break;case 21:dr(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,dr(e,t,n),dt=r):dr(e,t,n);break;default:dr(e,t,n)}}function gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vS),t.forEach(function(r){var o=jS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wS(r/1960))-r,10e?16:e,Er===null)var r=!1;else{if(e=Er,Er=null,ec=0,fe&6)throw Error(F(331));var o=fe;for(fe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lBe()-_p?co(e,0):bp|=n),Nt(e,t)}function o1(e,t){t===0&&(e.mode&1?(t=La,La<<=1,!(La&130023424)&&(La=4194304)):t=1);var n=_t();e=er(e,t),e!==null&&(fa(e,t,n),Nt(e,n))}function ES(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o1(e,n)}function jS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),o1(e,n)}var i1;i1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,hS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,je&&t.flags&1048576&&l0(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var o=ki(t,ht.current);hi(t,n),o=mp(null,t,r,e,o,n);var i=gp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(r)?(i=!0,Hl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,up(t),o.updater=Dc,t.stateNode=o,o._reactInternals=t,Fd(t,r,e,n),t=Ud(null,t,r,!0,i,n)):(t.tag=0,je&&i&&rp(t),yt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=TS(r),e=an(r,e),o){case 0:t=Bd(null,t,r,e,n);break e;case 1:t=dm(null,t,r,e,n);break e;case 11:t=cm(null,t,r,e,n);break e;case 14:t=um(null,t,r,an(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),Bd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),dm(e,t,r,o,n);case 3:e:{if(U0(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,f0(e,t),ql(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=$i(Error(F(423)),t),t=fm(e,t,r,n,o);break e}else if(r!==o){o=$i(Error(F(424)),t),t=fm(e,t,r,n,o);break e}else for(Mt=Rr(t.stateNode.containerInfo.firstChild),It=t,je=!0,un=null,n=g0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ci(),r===o){t=tr(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return v0(t),e===null&&Md(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Nd(r,o)?s=null:i!==null&&Nd(r,i)&&(t.flags|=32),B0(e,t),yt(e,t,s,n),t.child;case 6:return e===null&&Md(t),null;case 13:return H0(e,t,n);case 4:return dp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ei(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),cm(e,t,r,o,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_e(Gl,r._currentValue),r._currentValue=s,i!==null)if(hn(i.value,s)){if(i.children===o.children&&!Tt.current){t=tr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Yn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Id(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Id(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}yt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hi(t,n),o=Zt(o),r=r(o),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,o=an(r,t.pendingProps),o=an(r.type,o),um(e,t,r,o,n);case 15:return F0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),xl(e,t),t.tag=1,Rt(r)?(e=!0,Hl(t)):e=!1,hi(t,n),h0(t,r,o),Fd(t,r,o,n),Ud(null,t,r,!0,e,n);case 19:return W0(e,t,n);case 22:return z0(e,t,n)}throw Error(F(156,t.tag))};function s1(e,t){return Py(e,t)}function $S(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,n,r){return new $S(e,t,n,r)}function Ep(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TS(e){if(typeof e=="function")return Ep(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vf)return 11;if(e===Gf)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=Yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ep(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qo:return uo(n.children,o,i,t);case Wf:s=8,o|=8;break;case cd:return e=Yt(12,n,t,o|2),e.elementType=cd,e.lanes=i,e;case ud:return e=Yt(13,n,t,o),e.elementType=ud,e.lanes=i,e;case dd:return e=Yt(19,n,t,o),e.elementType=dd,e.lanes=i,e;case my:return Fc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case py:s=10;break e;case hy:s=9;break e;case Vf:s=11;break e;case Gf:s=14;break e;case xr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function uo(e,t,n,r){return e=Yt(7,e,r,t),e.lanes=n,e}function Fc(e,t,n,r){return e=Yt(22,e,r,t),e.elementType=my,e.lanes=n,e.stateNode={isHidden:!1},e}function Pu(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}function Ou(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jp(e,t,n,r,o,i,s,a,l){return e=new RS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},up(i),e}function NS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u1)}catch(e){console.error(e)}}u1(),ly.exports=zt;var ko=ly.exports;const Np=jc(ko),MS=Qv({__proto__:null,default:Np},[ko]);var km=ko;ad.createRoot=km.createRoot,ad.hydrateRoot=km.hydrateRoot;/** + * @remix-run/router v1.14.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LS(){return Math.random().toString(36).substr(2,8)}function Em(e,t){return{usr:e.state,key:e.key,idx:t}}function na(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||LS()})}function ga(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function An(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function FS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=ze.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,l&&l({action:a,location:x.location,delta:v})}function h(w,v){a=ze.Push;let y=na(x.location,w,v);n&&n(y,w),u=d()+1;let b=Em(y,u),C=x.createHref(y);try{s.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(C)}i&&l&&l({action:a,location:x.location,delta:1})}function g(w,v){a=ze.Replace;let y=na(x.location,w,v);n&&n(y,w),u=d();let b=Em(y,u),C=x.createHref(y);s.replaceState(b,"",C),i&&l&&l({action:a,location:x.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:ga(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let x={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Cm,f),l=w,()=>{o.removeEventListener(Cm,f),l=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:g,go(w){return s.go(w)}};return x}var Me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Me||(Me={}));const zS=new Set(["lazy","caseSensitive","path","id","index","children"]);function BS(e){return e.index===!0}function ef(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],a=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),BS(o)){let l=Le({},o,t(o),{id:a});return r[a]=l,l}else{let l=Le({},o,t(o),{id:a,children:void 0});return r[a]=l,o.children&&(l.children=ef(o.children,t,s,r)),l}})}function ai(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?An(t):t,o=va(r.pathname||"/",n);if(o==null)return null;let i=d1(e);HS(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=fo([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),d1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:QS(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of f1(i.path))o(i,s,l)}),t}function f1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=f1(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function HS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WS=/^:\w+$/,VS=3,GS=2,KS=1,qS=10,YS=-2,jm=e=>e==="*";function QS(e,t){let n=e.split("/"),r=n.length;return n.some(jm)&&(r+=YS),t&&(r+=GS),n.filter(o=>!jm(o)).reduce((o,i)=>o+(WS.test(i)?VS:i===""?KS:qS),r)}function JS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function XS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:h,isOptional:g}=d;if(h==="*"){let x=a[f]||"";s=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const m=a[f];return g&&!m?u[h]=void 0:u[h]=nk(m||"",h),u},{}),pathname:i,pathnameBase:s,pattern:e}}function ek(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function tk(e){try{return decodeURI(e)}catch(t){return Fr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nk(e,t){try{return decodeURIComponent(e)}catch(n){return Fr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function rk(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?An(e):e;return{pathname:n?n.startsWith("/")?n:ok(n,t):t,search:lk(r),hash:ck(o)}}function ok(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Au(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function p1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ik(e,t){let n=p1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sk(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=An(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Au("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Au("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Au("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f.pop();o.pathname=h.join("/")}a="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=rk(o,a),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const fo=e=>e.join("/").replace(/\/\/+/g,"/"),ak=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ck=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function h1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const m1=["post","put","patch","delete"],uk=new Set(m1),dk=["get",...m1],fk=new Set(dk),pk=new Set([301,302,303,307,308]),hk=new Set([307,308]),Du={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},os={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},g1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gk=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),v1="remix-router-transitions";function vk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=R=>({hasErrorBoundary:$(R)})}else o=gk;let i={},s=ef(e.routes,o,void 0,i),a,l=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,h=null,g=null,m=null,x=e.hydrationData!=null,w=ai(s,e.history.location,l),v=null;if(w==null){let $=Wt(404,{pathname:e.history.location.pathname}),{matches:R,route:O}=Dm(s);w=R,v={[O.id]:$}}let y,b=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(b)y=!1;else if(!C)y=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null;y=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||R&&R[O.route.id]!==void 0))}else y=e.hydrationData!=null;let k,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:y,navigation:Du,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},E=ze.Pop,j=!1,P,N=!1,D=new Map,L=null,W=!1,H=!1,J=[],q=[],Y=new Map,I=0,V=-1,X=new Map,re=new Set,pe=new Map,st=new Map,De=new Set,He=new Map,ye=new Map,at=!1;function yn(){if(d=e.history.listen($=>{let{action:R,location:O,delta:B}=$;if(at){at=!1;return}Fr(ye.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Oo({currentLocation:_.location,nextLocation:O,historyAction:R});if(Q&&B!=null){at=!0,e.history.go(B*-1),cr(Q,{state:"blocked",location:O,proceed(){cr(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(B)},reset(){let se=new Map(_.blockers);se.set(Q,os),Ke({blockers:se})}});return}return qe(R,O)}),n){Tk(t,D);let $=()=>Rk(t,D);t.addEventListener("pagehide",$),L=()=>t.removeEventListener("pagehide",$)}return _.initialized||qe(ze.Pop,_.location,{initialHydration:!0}),k}function Mn(){d&&d(),L&&L(),f.clear(),P&&P.abort(),_.fetchers.forEach(($,R)=>lt(R)),_.blockers.forEach(($,R)=>Po(R))}function Eo($){return f.add($),()=>f.delete($)}function Ke($,R){R===void 0&&(R={}),_=Le({},_,$);let O=[],B=[];u.v7_fetcherPersist&&_.fetchers.forEach((Q,se)=>{Q.state==="idle"&&(De.has(se)?B.push(se):O.push(se))}),[...f].forEach(Q=>Q(_,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(Q=>_.fetchers.delete(Q)),B.forEach(Q=>lt(Q)))}function xn($,R,O){var B,Q;let{flushSync:se}=O===void 0?{}:O,ie=_.actionData!=null&&_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=$.state)==null?void 0:B._isRedirect)!==!0,oe;R.actionData?Object.keys(R.actionData).length>0?oe=R.actionData:oe=null:ie?oe=_.actionData:oe=null;let Z=R.loaderData?Am(_.loaderData,R.loaderData,R.matches||[],R.errors):_.loaderData,ce=_.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,os)));let Ye=j===!0||_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&((Q=$.state)==null?void 0:Q._isRedirect)!==!0;a&&(s=a,a=void 0),W||E===ze.Pop||(E===ze.Push?e.history.push($,$.state):E===ze.Replace&&e.history.replace($,$.state));let ae;if(E===ze.Pop){let we=D.get(_.location.pathname);we&&we.has($.pathname)?ae={currentLocation:_.location,nextLocation:$}:D.has($.pathname)&&(ae={currentLocation:$,nextLocation:_.location})}else if(N){let we=D.get(_.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),D.set(_.location.pathname,we)),ae={currentLocation:_.location,nextLocation:$}}Ke(Le({},R,{actionData:oe,loaderData:Z,historyAction:E,location:$,initialized:!0,navigation:Du,revalidation:"idle",restoreScrollPosition:hh($,R.matches||_.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),E=ze.Pop,j=!1,N=!1,W=!1,H=!1,J=[],q=[]}async function rn($,R){if(typeof $=="number"){e.history.go($);return}let O=tf(_.location,_.matches,l,u.v7_prependBasename,$,u.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:Q,error:se}=$m(u.v7_normalizeFormMethod,!1,O,R),ie=_.location,oe=na(_.location,B,R&&R.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=R&&R.replace!=null?R.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||Q!=null&&cn(Q.formMethod)&&Q.formAction===_.location.pathname+_.location.search&&(ce=ze.Replace);let Ye=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ae=(R&&R.unstable_flushSync)===!0,we=Oo({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){cr(we,{state:"blocked",location:oe,proceed(){cr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),rn($,R)},reset(){let tt=new Map(_.blockers);tt.set(we,os),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:Q,pendingError:se,preventScrollReset:Ye,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ae})}function qr(){if(U(),Ke({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){qe(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}qe(E||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function qe($,R,O){P&&P.abort(),P=null,E=$,W=(O&&O.startUninterruptedRevalidation)===!0,ab(_.location,_.matches),j=(O&&O.preventScrollReset)===!0,N=(O&&O.enableViewTransition)===!0;let B=a||s,Q=O&&O.overrideNavigation,se=ai(B,R,l),ie=(O&&O.flushSync)===!0;if(!se){let tt=Wt(404,{pathname:R.pathname}),{matches:Ut,route:Qe}=Dm(B);Qr(),xn(R,{matches:Ut,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(_.initialized&&!H&&Sk(_.location,R)&&!(O&&O.submission&&cn(O.submission.formMethod))){xn(R,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=ss(e.history,R,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Ps(se).route.id]:O.pendingError};else if(O&&O.submission&&cn(O.submission.formMethod)){let tt=await In(oe,R,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,Q=Mu(R,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await Ki(oe,R,se,Q,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,xn(R,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function In($,R,O,B,Q){Q===void 0&&(Q={}),U();let se=jk(R,O);Ke({navigation:se},{flushSync:Q.flushSync===!0});let ie,oe=rf(B,R);if(!oe.route.action&&!oe.route.lazy)ie={type:Me.error,error:Wt(405,{method:$.method,pathname:R.pathname,routeId:oe.route.id})};else if(ie=await is("action",$,oe,B,i,o,l,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(gi(ie)){let Z;return Q&&Q.replace!=null?Z=Q.replace:Z=ie.location===_.location.pathname+_.location.search,await Pt(_,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(Os(ie)){let Z=Ps(B,oe.route.id);return(Q&&Q.replace)!==!0&&(E=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(ao(ie))throw Wt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function Ki($,R,O,B,Q,se,ie,oe,Z,ce,Ye){let ae=B||Mu(R,Q),we=Q||se||Lm(ae),tt=a||s,[Ut,Qe]=Tm(e.history,_,O,we,R,u.v7_partialHydration&&oe===!0,H,J,q,De,pe,re,tt,l,ce,Ye);if(Qr(xe=>!(O&&O.some(Ee=>Ee.route.id===xe))||Ut&&Ut.some(Ee=>Ee.route.id===xe)),V=++I,Ut.length===0&&Qe.length===0){let xe=To();return xn(R,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!W&&(!u.v7_partialHydration||!oe)){Qe.forEach(Ee=>{let wn=_.fetchers.get(Ee.key),Pa=as(void 0,wn?wn.data:void 0);_.fetchers.set(Ee.key,Pa)});let xe=ce||_.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Y.has(xe.key)&>(xe.key),xe.controller&&Y.set(xe.key,xe.controller)});let Ao=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Ao);let{results:ou,loaderResults:Do,fetcherResults:ur}=await Ra(_.matches,O,Ut,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Ao),Qe.forEach(xe=>Y.delete(xe.key));let Jr=Mm(ou);if(Jr){if(Jr.idx>=Ut.length){let xe=Qe[Jr.idx-Ut.length].key;re.add(xe)}return await Pt(_,Jr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:iu,errors:su}=Om(_,O,Ut,Do,Ye,Qe,ur,He);He.forEach((xe,Ee)=>{xe.subscribe(wn=>{(wn||xe.done)&&He.delete(Ee)})});let au=To(),Mo=Ro(V),Na=au||Mo||Qe.length>0;return Le({loaderData:iu,errors:su},Na?{fetchers:new Map(_.fetchers)}:{})}function qi($,R,O,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Y.has($)&>($);let Q=(B&&B.unstable_flushSync)===!0,se=a||s,ie=tf(_.location,_.matches,l,u.v7_prependBasename,O,u.v7_relativeSplatPath,R,B==null?void 0:B.relative),oe=ai(se,ie,l);if(!oe){$e($,R,Wt(404,{pathname:ie}),{flushSync:Q});return}let{path:Z,submission:ce,error:Ye}=$m(u.v7_normalizeFormMethod,!0,ie,B);if(Ye){$e($,R,Ye,{flushSync:Q});return}let ae=rf(oe,Z);if(j=(B&&B.preventScrollReset)===!0,ce&&cn(ce.formMethod)){Yi($,R,Z,ae,oe,Q,ce);return}pe.set($,{routeId:R,path:Z}),jo($,R,Z,ae,oe,Q,ce)}async function Yi($,R,O,B,Q,se,ie){if(U(),pe.delete($),!B.route.action&&!B.route.lazy){let Ee=Wt(405,{method:ie.formMethod,pathname:O,routeId:R});$e($,R,Ee,{flushSync:se});return}let oe=_.fetchers.get($);te($,$k(ie,oe),{flushSync:se});let Z=new AbortController,ce=ss(e.history,O,Z.signal,ie);Y.set($,Z);let Ye=I,ae=await is("action",ce,B,Q,i,o,l,u.v7_relativeSplatPath);if(ce.signal.aborted){Y.get($)===Z&&Y.delete($);return}if(De.has($)){te($,vr(void 0));return}if(gi(ae))if(Y.delete($),V>Ye){te($,vr(void 0));return}else return re.add($),te($,as(ie)),Pt(_,ae,{fetcherSubmission:ie});if(Os(ae)){$e($,R,ae.error);return}if(ao(ae))throw Wt(400,{type:"defer-action"});let we=_.navigation.location||_.location,tt=ss(e.history,we,Z.signal),Ut=a||s,Qe=_.navigation.state!=="idle"?ai(Ut,_.navigation.location,l):_.matches;ue(Qe,"Didn't find any matches after fetcher action");let Ao=++I;X.set($,Ao);let ou=as(ie,ae.data);_.fetchers.set($,ou);let[Do,ur]=Tm(e.history,_,Qe,ie,we,!1,H,J,q,De,pe,re,Ut,l,{[B.route.id]:ae.data},void 0);ur.filter(Ee=>Ee.key!==$).forEach(Ee=>{let wn=Ee.key,Pa=_.fetchers.get(wn),cb=as(void 0,Pa?Pa.data:void 0);_.fetchers.set(wn,cb),Y.has(wn)&>(wn),Ee.controller&&Y.set(wn,Ee.controller)}),Ke({fetchers:new Map(_.fetchers)});let Jr=()=>ur.forEach(Ee=>gt(Ee.key));Z.signal.addEventListener("abort",Jr);let{results:iu,loaderResults:su,fetcherResults:au}=await Ra(_.matches,Qe,Do,ur,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Jr),X.delete($),Y.delete($),ur.forEach(Ee=>Y.delete(Ee.key));let Mo=Mm(iu);if(Mo){if(Mo.idx>=Do.length){let Ee=ur[Mo.idx-Do.length].key;re.add(Ee)}return Pt(_,Mo.result)}let{loaderData:Na,errors:xe}=Om(_,_.matches,Do,su,void 0,ur,au,He);if(_.fetchers.has($)){let Ee=vr(ae.data);_.fetchers.set($,Ee)}Ro(Ao),_.navigation.state==="loading"&&Ao>V?(ue(E,"Expected pending action"),P&&P.abort(),xn(_.navigation.location,{matches:Qe,loaderData:Na,errors:xe,fetchers:new Map(_.fetchers)})):(Ke({errors:xe,loaderData:Am(_.loaderData,Na,Qe,xe),fetchers:new Map(_.fetchers)}),H=!1)}async function jo($,R,O,B,Q,se,ie){let oe=_.fetchers.get($);te($,as(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=ss(e.history,O,Z.signal);Y.set($,Z);let Ye=I,ae=await is("loader",ce,B,Q,i,o,l,u.v7_relativeSplatPath);if(ao(ae)&&(ae=await w1(ae,ce.signal,!0)||ae),Y.get($)===Z&&Y.delete($),!ce.signal.aborted){if(De.has($)){te($,vr(void 0));return}if(gi(ae))if(V>Ye){te($,vr(void 0));return}else{re.add($),await Pt(_,ae);return}if(Os(ae)){$e($,R,ae.error);return}ue(!ao(ae),"Unhandled fetcher deferred data"),te($,vr(ae.data))}}async function Pt($,R,O){let{submission:B,fetcherSubmission:Q,replace:se}=O===void 0?{}:O;R.revalidate&&(H=!0);let ie=na($.location,R.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(R.reloadDocument)we=!0;else if(g1.test(R.location)){const tt=e.history.createURL(R.location);we=tt.origin!==t.location.origin||va(tt.pathname,l)==null}if(we){se?t.location.replace(R.location):t.location.assign(R.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!B&&!Q&&Z&&ce&&Ye&&(B=Lm($.navigation));let ae=B||Q;if(hk.has(R.status)&&ae&&cn(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:R.location}),preventScrollReset:j});else{let we=Mu(ie,B);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:Q,preventScrollReset:j})}}async function Ra($,R,O,B,Q){let se=await Promise.all([...O.map(Z=>is("loader",Q,Z,R,i,o,l,u.v7_relativeSplatPath)),...B.map(Z=>Z.matches&&Z.match&&Z.controller?is("loader",ss(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,l,u.v7_relativeSplatPath):{type:Me.error,error:Wt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([Im($,O,ie,ie.map(()=>Q.signal),!1,_.loaderData),Im($,B.map(Z=>Z.match),oe,B.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function U(){H=!0,J.push(...Qr()),pe.forEach(($,R)=>{Y.has(R)&&(q.push(R),gt(R))})}function te($,R,O){O===void 0&&(O={}),_.fetchers.set($,R),Ke({fetchers:new Map(_.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,R,O,B){B===void 0&&(B={});let Q=Ps(_.matches,R);lt($),Ke({errors:{[Q.route.id]:O},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(st.set($,(st.get($)||0)+1),De.has($)&&De.delete($)),_.fetchers.get($)||mk}function lt($){let R=_.fetchers.get($);Y.has($)&&!(R&&R.state==="loading"&&X.has($))&>($),pe.delete($),X.delete($),re.delete($),De.delete($),_.fetchers.delete($)}function Yr($){if(u.v7_fetcherPersist){let R=(st.get($)||0)-1;R<=0?(st.delete($),De.add($)):st.set($,R)}else lt($);Ke({fetchers:new Map(_.fetchers)})}function gt($){let R=Y.get($);ue(R,"Expected fetch controller: "+$),R.abort(),Y.delete($)}function $o($){for(let R of $){let O=et(R),B=vr(O.data);_.fetchers.set(R,B)}}function To(){let $=[],R=!1;for(let O of re){let B=_.fetchers.get(O);ue(B,"Expected fetcher: "+O),B.state==="loading"&&(re.delete(O),$.push(O),R=!0)}return $o($),R}function Ro($){let R=[];for(let[O,B]of X)if(B<$){let Q=_.fetchers.get(O);ue(Q,"Expected fetcher: "+O),Q.state==="loading"&&(gt(O),X.delete(O),R.push(O))}return $o(R),R.length>0}function No($,R){let O=_.blockers.get($)||os;return ye.get($)!==R&&ye.set($,R),O}function Po($){_.blockers.delete($),ye.delete($)}function cr($,R){let O=_.blockers.get($)||os;ue(O.state==="unblocked"&&R.state==="blocked"||O.state==="blocked"&&R.state==="blocked"||O.state==="blocked"&&R.state==="proceeding"||O.state==="blocked"&&R.state==="unblocked"||O.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+R.state);let B=new Map(_.blockers);B.set($,R),Ke({blockers:B})}function Oo($){let{currentLocation:R,nextLocation:O,historyAction:B}=$;if(ye.size===0)return;ye.size>1&&Fr(!1,"A router only supports one blocker at a time");let Q=Array.from(ye.entries()),[se,ie]=Q[Q.length-1],oe=_.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:R,nextLocation:O,historyAction:B}))return se}function Qr($){let R=[];return He.forEach((O,B)=>{(!$||$(B))&&(O.cancel(),R.push(B),He.delete(B))}),R}function ru($,R,O){if(h=$,m=R,g=O||null,!x&&_.navigation===Du){x=!0;let B=hh(_.location,_.matches);B!=null&&Ke({restoreScrollPosition:B})}return()=>{h=null,m=null,g=null}}function ph($,R){return g&&g($,R.map(B=>US(B,_.loaderData)))||$.key}function ab($,R){if(h&&m){let O=ph($,R);h[O]=m()}}function hh($,R){if(h){let O=ph($,R),B=h[O];if(typeof B=="number")return B}return null}function lb($){i={},a=ef($,o,void 0,i)}return k={get basename(){return l},get future(){return u},get state(){return _},get routes(){return s},get window(){return t},initialize:yn,subscribe:Eo,enableScrollRestoration:ru,navigate:rn,fetch:qi,revalidate:qr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:Yr,dispose:Mn,getBlocker:No,deleteBlocker:Po,_internalFetchControllers:Y,_internalActiveDeferreds:He,_internalSetRoutes:lb},k}function yk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tf(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=sk(o||".",ik(l,i),va(e.pathname,n)||e.pathname,a==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Op(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:fo([n,d.pathname])),ga(d)}function $m(e,t,n,r){if(!r||!yk(r))return{path:n};if(r.formMethod&&!Ek(r.formMethod))return{path:n,error:Wt(405,{method:r.formMethod})};let o=()=>({path:n,error:Wt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),a=x1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cn(s))return o();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[x,w]=m;return""+g+x+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!cn(s))return o();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}ue(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=nf(r.formData),u=r.formData;else if(r.body instanceof FormData)l=nf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Pm(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Pm(l)}catch{return o()}let d={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cn(d.formMethod))return{path:n,submission:d};let f=An(n);return t&&f.search&&Op(f.search)&&l.append("index",""),f.search="?"+l,{path:ga(f),submission:d}}function xk(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Tm(e,t,n,r,o,i,s,a,l,u,d,f,h,g,m,x){let w=x?Object.values(x)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),y=e.createURL(o),b=x?Object.keys(x)[0]:void 0,k=xk(n,b).filter((E,j)=>{if(i)return wk(t,E.route);if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(bk(t.loaderData,t.matches[j],E)||a.some(D=>D===E.route.id))return!0;let P=t.matches[j],N=E;return Rm(E,Le({currentUrl:v,currentParams:P.params,nextUrl:y,nextParams:N.params},r,{actionResult:w,defaultShouldRevalidate:s||v.pathname+v.search===y.pathname+y.search||v.search!==y.search||y1(P,N)}))}),_=[];return d.forEach((E,j)=>{if(i||!n.some(W=>W.route.id===E.routeId)||u.has(j))return;let P=ai(h,E.path,g);if(!P){_.push({key:j,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(j),D=rf(P,E.path),L=!1;f.has(j)?L=!1:l.includes(j)?L=!0:N&&N.state!=="idle"&&N.data===void 0?L=s:L=Rm(D,Le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),L&&_.push({key:j,routeId:E.routeId,path:E.path,matches:P,match:D,controller:new AbortController})}),[k,_]}function wk(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function bk(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function y1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Rm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Nm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ue(o,"No route found in manifest");let i={};for(let s in r){let l=o[s]!==void 0&&s!=="hasErrorBoundary";Fr(!l,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!zS.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Le({},t(o),{lazy:void 0}))}async function is(e,t,n,r,o,i,s,a,l){l===void 0&&(l={});let u,d,f,h=x=>{let w,v=new Promise((y,b)=>w=b);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([x({request:t,params:n.params,context:l.requestContext}),v])};try{let x=n.route[e];if(n.route.lazy)if(x){let w,v=await Promise.all([h(x).catch(y=>{w=y}),Nm(n.route,i,o)]);if(w)throw w;d=v[0]}else if(await Nm(n.route,i,o),x=n.route[e],x)d=await h(x);else if(e==="action"){let w=new URL(t.url),v=w.pathname+w.search;throw Wt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Me.data,data:void 0};else if(x)d=await h(x);else{let w=new URL(t.url),v=w.pathname+w.search;throw Wt(404,{pathname:v})}ue(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(x){u=Me.error,d=x}finally{f&&t.signal.removeEventListener("abort",f)}if(Ck(d)){let x=d.status;if(pk.has(x)){let v=d.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!g1.test(v))v=tf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,a);else if(!l.isStaticRequest){let y=new URL(t.url),b=v.startsWith("//")?new URL(y.protocol+v):new URL(v),C=va(b.pathname,s)!=null;b.origin===y.origin&&C&&(v=b.pathname+b.search+b.hash)}if(l.isStaticRequest)throw d.headers.set("Location",v),d;return{type:Me.redirect,status:x,location:v,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===Me.error?Me.error:Me.data,response:d};let w;try{let v=d.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?w=await d.json():w=await d.text()}catch(v){return{type:Me.error,error:v}}return u===Me.error?{type:u,error:new Pp(x,d.statusText,w),headers:d.headers}:{type:Me.data,data:w,statusCode:d.status,headers:d.headers}}if(u===Me.error)return{type:u,error:d};if(kk(d)){var g,m;return{type:Me.deferred,deferredData:d,statusCode:(g=d.init)==null?void 0:g.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:Me.data,data:d}}function ss(e,t,n,r){let o=e.createURL(x1(t)).toString(),i={signal:n};if(r&&cn(r.formMethod)){let{formMethod:s,formEncType:a}=r;i.method=s.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=nf(r.formData):i.body=r.formData}return new Request(o,i)}function nf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Pm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function _k(e,t,n,r,o){let i={},s=null,a,l=!1,u={};return n.forEach((d,f)=>{let h=t[f].route.id;if(ue(!gi(d),"Cannot handle redirect results in processLoaderData"),Os(d)){let g=Ps(e,h),m=d.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=m),i[h]=void 0,l||(l=!0,a=h1(d.error)?d.error.status:500),d.headers&&(u[h]=d.headers)}else ao(d)?(o.set(h,d.deferredData),i[h]=d.deferredData.data):i[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(a=d.statusCode),d.headers&&(u[h]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:a||200,loaderHeaders:u}}function Om(e,t,n,r,o,i,s,a){let{loaderData:l,errors:u}=_k(t,n,r,o,a);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Dm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",a='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Pp(e||500,s,new Error(a),!0)}function Mm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(gi(n))return{result:n,idx:t}}}function x1(e){let t=typeof e=="string"?An(e):e;return ga(Le({},t,{hash:""}))}function Sk(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ao(e){return e.type===Me.deferred}function Os(e){return e.type===Me.error}function gi(e){return(e&&e.type)===Me.redirect}function kk(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ck(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ek(e){return fk.has(e.toLowerCase())}function cn(e){return uk.has(e.toLowerCase())}async function Im(e,t,n,r,o,i){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!y1(u,l)&&(i&&i[l.route.id])!==void 0;if(ao(a)&&(o||d)){let f=r[s];ue(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await w1(a,f,o).then(h=>{h&&(n[s]=h||n[s])})}}}async function w1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Me.error,error:o}}return{type:Me.data,data:e.deferredData.data}}}function Op(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function rf(e,t){let n=typeof t=="string"?An(t).search:t.search;if(e[e.length-1].route.index&&Op(n||""))return e[e.length-1];let r=p1(e);return r[r.length-1]}function Lm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Mu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function jk(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function as(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $k(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Tk(e,t){try{let n=e.sessionStorage.getItem(v1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Rk(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(v1,JSON.stringify(n))}catch(r){Fr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},a,w.params),pathname:fo([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:fo([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&x?p.createElement(Wc.Provider,{value:{location:rc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ze.Pop}},x):x}function Ak(){let e=Uk(),t=h1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const Dk=p.createElement(Ak,null);class Mk extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(ya.Provider,{value:this.props.routeContext},p.createElement(k1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ik(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(b1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(ya.Provider,{value:t},r)}function Lk(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id]));d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}return s.reduceRight((d,f,h)=>{let g,m=!1,x=null,w=null;n&&(g=a&&f.route.id?a[f.route.id]:void 0,x=f.route.errorElement||Dk,l&&(u<0&&h===0?(Hk("route-fallback",!1),m=!0,w=null):u===h&&(m=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,h+1)),y=()=>{let b;return g?b=x:m?b=w:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,p.createElement(Ik,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(Mk,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}var of=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(of||{});function Fk(e){let t=p.useContext(_1);return t||ue(!1),t}function zk(e){let t=p.useContext(ya);return t||ue(!1),t}function Bk(e){let t=zk(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function Uk(){var e;let t=p.useContext(k1),n=Fk(of.UseRouteError),r=Bk(of.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Fm={};function Hk(e,t,n){!t&&!Fm[e]&&(Fm[e]=!0)}function Wk(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ze.Pop,navigator:i,static:s=!1,future:a}=e;Ap()&&ue(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:i,static:s,future:rc({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=An(r));let{pathname:d="/",search:f="",hash:h="",state:g=null,key:m="default"}=r,x=p.useMemo(()=>{let w=va(d,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:g,key:m},navigationType:o}},[l,d,f,h,g,m,o]);return x==null?null:p.createElement(S1.Provider,{value:u},p.createElement(Wc.Provider,{children:n,value:x}))}new Promise(()=>{});function Vk(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function tC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[s,a]=p.useState(),[l,u]=p.useState({isTransitioning:!1}),[d,f]=p.useState(),[h,g]=p.useState(),[m,x]=p.useState(),w=p.useRef(new Map),{v7_startTransition:v}=r||{},y=p.useCallback(E=>{v?Zk(E):E()},[v]),b=p.useCallback((E,j)=>{let{deletedFetchers:P,unstable_flushSync:N,unstable_viewTransitionOpts:D}=j;P.forEach(W=>w.current.delete(W)),E.fetchers.forEach((W,H)=>{W.data!==void 0&&w.current.set(H,W.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!D||L){N?ls(()=>i(E)):y(()=>i(E));return}if(N){ls(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let W=n.window.document.startViewTransition(()=>{ls(()=>i(E))});W.finished.finally(()=>{ls(()=>{f(void 0),g(void 0),a(void 0),u({isTransitioning:!1})})}),ls(()=>g(W));return}h?(d&&d.resolve(),h.skipTransition(),x({state:E,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(a(E),u({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,h,d,w,y]);p.useLayoutEffect(()=>n.subscribe(b),[n,b]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new eC)},[l]),p.useEffect(()=>{if(d&&s&&n.window){let E=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{y(()=>i(E)),await j});P.finished.finally(()=>{f(void 0),g(void 0),a(void 0),u({isTransitioning:!1})}),g(P)}},[y,s,d,n.window]),p.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,h,o.location,s]),p.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[l.isTransitioning,m]),p.useEffect(()=>{},[]);let C=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,j,P)=>n.navigate(E,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(E,j,P)=>n.navigate(E,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),k=n.basename||"/",_=p.useMemo(()=>({router:n,navigator:C,static:!1,basename:k}),[n,C,k]);return p.createElement(p.Fragment,null,p.createElement(b1.Provider,{value:_},p.createElement(_1.Provider,{value:o},p.createElement(Qk.Provider,{value:w.current},p.createElement(Yk.Provider,{value:l},p.createElement(Wk,{basename:k,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?p.createElement(nC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function nC(e){let{routes:t,future:n,state:r}=e;return Ok(t,void 0,r,n)}var Um;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Um||(Um={}));var Hm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hm||(Hm={}));var T=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(T||{}),z=(e=>(e.interview="interview",e.all="all",e))(z||{});const Wm=[T.Easy,T.Medium,T.Hard];function xa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Wm.indexOf(t[1].difficulty),o=Wm.indexOf(n[1].difficulty);return r-o}))}const rC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:T.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:T.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:T.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[z.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:T.Easy,developer:"officialbidisha",tags:[z.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:T.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:T.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[z.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:T.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:T.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:T.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:T.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);xa(rC);const oC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[z.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:T.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:T.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:T.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:T.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[z.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:T.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:T.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[z.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:T.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:T.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:T.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:T.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:T.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:T.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:T.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:T.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:T.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:T.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:T.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:T.Medium,developer:"shruti-sen2004",tags:[z.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:T.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[z.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:T.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:T.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:T.Medium,developer:"srijanB7",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:T.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:T.Medium,developer:"Kei-K23",tags:[z.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:T.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:T.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:T.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:T.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:T.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:T.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}]]);xa(oC);const iC=new Map([["counter",{title:"Counter",link:"counter",difficulty:T.Easy,developer:"sadanandpai",tags:[z.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:T.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:T.Easy,developer:"Bhushan1019",tags:[z.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:T.Easy,tags:[z.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:T.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:T.Easy,developer:"NikhilJHA01",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:T.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:T.Easy,developer:"deepakrajkranti",tags:[z.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:T.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:T.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:T.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:T.Easy,developer:"NikhilJHA01",tags:[z.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:T.Easy,developer:"rashidtvmr",tags:[z.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:T.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:T.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:T.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:T.Easy,developer:"codechitra",tags:[z.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:T.Medium,developer:"liza",tags:[z.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:T.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:T.Medium,developer:"rishabhm05",tags:[z.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:T.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:T.Medium,developer:"deepu0",tags:[z.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:T.Medium,developer:"rishabhm05",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:T.Medium,developer:"deepu0",tags:[z.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:T.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:T.Medium,developer:"deepakrajkranti",tags:[z.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:T.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:T.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:T.Medium,developer:"rashidtvmr",tags:[z.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:T.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:T.Medium,developer:"AbhilashMadi",tags:[z.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:T.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:T.Hard,developer:"SujithGunasekaran",tags:[z.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:T.Hard,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:T.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:T.Medium,developer:"DeePaK-HeeRaKaRi",tags:[z.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:T.Medium,developer:"ayush-dutt-sharma",tags:[z.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:T.Hard,developer:"rishabhm05",tags:[z.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:T.Hard,developer:"deepu0",tags:[z.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:T.Hard,developer:"deepu0",tags:[z.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:T.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:T.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:T.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:T.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:T.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:T.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:T.Medium,developer:"Akshay-Omkar",tags:[z.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:T.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:T.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:T.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:T.Hard,developer:"sadanandpai",tags:[z.interview],isNew:!0}]]),Vm=xa(iC),sC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:T.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:T.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:T.Easy,developer:"arpansaha13",tags:[z.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:T.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:T.Medium,developer:"sadanandpai",tags:[z.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:T.Medium,developer:"arpansaha13",tags:[z.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:T.Medium,developer:"jaydadhaniya",tags:[z.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:T.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:T.Medium,developer:"Shardik04",tags:[z.interview]}]]);xa(sC);const aC=new Map([["counter",{title:"Counter",link:"counter",difficulty:T.Easy,developer:"sadanandpai",tags:[z.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview]}],["stack",{title:"Stack",link:"stack",difficulty:T.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:T.Easy,developer:"pankajparkar",tags:[z.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:T.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xa(aC);const lC=` +`,cC="/frontend-mini-challenges/react/assets/logo-Cv_hAIcG.png",uC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",dC="/frontend-mini-challenges/react/assets/github-KMwwOUMo.svg",fC="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class pC extends HTMLElement{updateYoutubeLink(){const t=this.getAttribute("youtubeLink"),n=this.querySelector(".youtube");n&&(t?(n.setAttribute("href",t),this.querySelector(".youtube img").setAttribute("src",fC)):n.remove())}updateSourceCodeLink(){const t=this.getAttribute("sourceCodeLink"),n=this.querySelector(".source-code");n&&(t?(n.setAttribute("href",t),this.querySelector(".source-code img").setAttribute("src",uC)):n.remove())}connectedCallback(){this.innerHTML=lC,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",cC),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",dC)}}window.customElements.define("nav-bar",pC);var hC={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/react/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:ic,VITE_HOST_URL:C1,DEV:E1}=hC,mC=E1?`${C1}${ic}/#/react`:`/${ic}/#/react/`,gC=E1?`${C1}${ic}/`:`/${ic}/`,vC="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/react/src/challenges/";function yC({title:e,link:t}){return c.jsx("nav-bar",{backURL:mC,homeURL:gC,titleText:e,sourceCodeLink:vC+t})}const xC=[{direction:"Up",delta:[-1,0]},{direction:"Down",delta:[1,0]},{direction:"Left",delta:[0,-1]},{direction:"Right",delta:[0,1]}],wC="_tile_5pn2z_1",bC="_empty_5pn2z_5",_C="_correctTilePoz_5pn2z_17",SC="_moveLeft_5pn2z_17",kC="_moveRight_5pn2z_17",CC="_moveUp_5pn2z_17",EC="_moveDown_5pn2z_17",Qa={tile:wC,empty:bC,correctTilePoz:_C,moveLeft:SC,moveRight:kC,moveUp:CC,moveDown:EC,"move-left":"_move-left_5pn2z_1","move-right":"_move-right_5pn2z_1","move-up":"_move-up_5pn2z_1","move-down":"_move-down_5pn2z_1"};function jC({digit:e,onClick:t,isOnCorrectPoz:n,animDirection:r}){return c.jsx("div",{className:`${Qa.tile} ${e===0?Qa.empty:""} ${n?Qa.correctTilePoz:""} ${r?Qa[`move${r}`]:""}`,onClick:t,children:!!e&&e},e)}const $C="_grid_e2nmy_1",TC="_menu_e2nmy_9",Gm={grid:$C,menu:TC},RC=e=>{const t=e.length;let n=0;for(let r=0;re[o]&&(n+=1);return n%2===0},NC=e=>{const t=e.length;for(let n=0;n{let n;do n=NC(Array.from({length:e*t-1},(r,o)=>o+1));while(!RC(n));return n},Km=(e=4,t=4)=>{const n=PC(e,t),r=Array.from({length:e},(o,i)=>n.slice(i*t,i*t+t));return r[e-1][t-1]=0,r};function OC(){const[e,t]=p.useState([]),[n,r]=p.useState(0),[o,i]=p.useState(!1),[s,a]=p.useState({moves:[],capacity:5}),[l,u]=p.useState({element:null,type:""}),d=w=>{const{moves:v,capacity:y}=s;v.length===y&&v.shift(),v.push(w)},f=(w,v)=>{const y=e.map(b=>[...b]);[y[w.row][w.col],y[v.row][v.col]]=[y[v.row][v.col],y[w.row][w.col]],t(y)},h=(w,v,y)=>{f(w,v),u({element:v,type:y}),setTimeout(()=>{u({element:null,type:""})},300)},g=(w,v=!0)=>{l.element||xC.forEach(y=>{const{direction:b,delta:C}=y,k=w.row+C[0],_=w.col+C[1];if(k>=0&&k<4&&_>=0&&_<4&&e[k][_]===0){if(h(w,{row:k,col:_},b),v){d({row:k,col:_}),r(n+1);return}r(n-1)}})},m=()=>{const{moves:w}=s;if(l.element||w.length===0)return;const v=w[w.length-1];g(v,!1),a({...s,moves:w.slice(0,w.length-1)})},x=()=>{t(Km(4,4)),r(0),a({...s,moves:[]})};return p.useEffect(()=>{t(Km(4,4))},[]),p.useEffect(()=>{const w=e.flat().every((v,y,b)=>v===y+1||y===b.length-1);i(w)},[e]),c.jsxs("div",{children:[c.jsx("div",{className:Gm.grid,children:e.map((w,v)=>w.map((y,b)=>c.jsx(jC,{animDirection:l.element&&l.element.col===b&&l.element.row===v?l.type:"",digit:y,onClick:()=>g({row:v,col:b}),isOnCorrectPoz:v*3+b+v+1===y},y)))}),c.jsxs("div",{className:Gm.menu,children:[c.jsx("button",{type:"button",onClick:x,children:"Reset"}),c.jsx("button",{type:"button",disabled:s.moves.length===0,onClick:m,children:"Undo"}),c.jsxs("p",{children:[o?"Congrats.":""," Total moves: ",n]})]})]})}function AC(){return c.jsxs("div",{children:[c.jsx("div",{children:c.jsx("p",{style:{textAlign:"center"},children:"Click on the box to move it and sort row-wise"})}),c.jsx(OC,{})]})}const DC="_App_150vf_1",MC="_accordion_150vf_6",Sl={App:DC,accordion:MC,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},IC=({title:e,info:t,id:n,openAccordionId:r,setIdOfOpenAccordion:o})=>{const[i,s]=p.useState(!1),a=()=>{s(l=>!l),o(n)};return p.useEffect(()=>{r&&s(r===n)},[n,r]),c.jsxs("div",{className:Sl.accordion,children:[c.jsxs("div",{className:Sl["accordion-title"],children:[c.jsx("h3",{children:e}),c.jsx("button",{onClick:a,className:Sl["accordion-icon"],children:i?"-":"+"})]}),i&&c.jsx("p",{children:t})]},n)},LC=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function FC(){const[e,t]=p.useState(!0),[n,r]=p.useState(null),o=(s=null)=>{r(e?null:s)},i=()=>{e&&r(-1),t(!e)};return c.jsxs("div",{className:Sl.App,children:[c.jsxs("h4",{children:[c.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),c.jsx("input",{type:"checkbox",id:"max-open",checked:e,onChange:i})]}),c.jsx("div",{children:LC.map(s=>c.jsx(IC,{multiple:e,openAccordionId:n,setIdOfOpenAccordion:o,...s},s.id))})]})}class zC{constructor(t=[]){mh(this,"trie");this.trie={},this.addWordsToTrie(t)}addWordsToTrie(t){for(let n of t){let r=this.trie;n=n.toLowerCase();for(const o of n)r.hasOwnProperty(o)||(r[o]={}),r=r[o];r.end=!0}}getWordsFromTrie(t,n){t=t.toLowerCase();let r=this.trie;for(const o of t)if(r=r[o],!r)return[];return this.getWordsByDFS(r,n,t)}getWordsByDFS(t,n=1/0,r="",o=[]){if(t.end&&(o.push(r),o.length===n))return o;for(const i in t)if(t.hasOwnProperty(i)&&(this.getWordsByDFS(t[i],n,r+i,o),o.length===n))break;return o}}const BC=e=>{const[n,r]=p.useState(""),[o,i]=p.useState([]),[s,a]=p.useState(null),l=p.useRef(new zC(e)),u=g=>{const m=g.target.value;r(g.target.value),i(m?l.current.getWordsFromTrie(m,5):[]),a(null)};return p.useEffect(()=>{if(s!==null){const g=o[s];r(g)}},[s,o]),[n,u,s,o,g=>{if(g.key==="Enter"&&s!==null){const m=o[s];r(m),i([]),a(null)}g.key==="ArrowDown"&&(g.preventDefault(),a(m=>m===null||m===o.length-1?0:m+1)),g.key==="ArrowUp"&&(g.preventDefault(),a(m=>m===null||m===0?o.length-1:m-1))},g=>{r(g),i([]),a(null)},g=>{a(g)}]},UC=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],HC="_main_xk16z_1",WC="_retryTimer_xk16z_15",VC="_suggestions_xk16z_21",GC="_highlight_xk16z_36",KC="_loader_xk16z_46",Sr={main:HC,retryTimer:WC,suggestions:VC,highlight:GC,loader:KC},qC=()=>{const[e,t,n,r,o,i,s]=BC(UC),a=p.useRef(null);return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",ref:a,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onChange:t,onKeyDown:o}),c.jsx("ul",{className:Sr.suggestions,children:r.map((l,u)=>c.jsx("li",{className:n===u?`${Sr.highlight}`:"",onClick:()=>i(l),onMouseOver:()=>s(u),onMouseLeave:()=>s(null),children:l},u))})]})};function YC(e,t=500){let n=null;return function(...o){n&&(clearTimeout(n),n=null),n=setTimeout(e,t,...o)}}const QC=5;async function qm(e){const t={items:[],errorMsgFromApi:"",timeDelta:0};try{const n=await fetch(`https://api.github.com/search/users?per_page=${QC}&q=${e}`);if(n.status===403){const r=n.headers.get("x-ratelimit-reset");if(r!==null){const o=parseFloat(r);t.timeDelta=Math.ceil(o-Date.now()/1e3)}else t.timeDelta=60}else{const r=await n.json();t.items=r.items.map(o=>o.login)}return t}catch{return t.errorMsgFromApi="Error occurred while fetching suggestions",t}}function JC(){const[e,t]=p.useState(""),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,u]=p.useState(0),[d,f]=p.useState(""),h=p.useCallback(YC(async y=>{a(!0);try{const b=await qm(y);u(b.timeDelta),b.errorMsgFromApi?(r([]),f(b.errorMsgFromApi)):b.items.length>0?(r(b.items),f("")):(r([]),f("No results found"))}catch{r([]),f("Error occurred while fetching suggestions")}a(!1)},300),[qm]),g=()=>{r([]),i(null),f("")},m=y=>{if(y.key==="Enter"&&o!==null){const b=n[o];t(b),g()}y.key==="ArrowDown"&&(y.preventDefault(),i(b=>b===null||b===n.length-1?0:b+1)),y.key==="ArrowUp"&&(y.preventDefault(),i(b=>b===null||b===0?n.length-1:b-1))},x=y=>{const b=y.target.value;t(b),b.length>0?h(b):g()},w=y=>{t(y),g()};return p.useEffect(()=>{if(o!==null){const y=n[o];t(y)}},[o,n]),p.useEffect(()=>{const y=setTimeout(()=>{l>0&&u(b=>b-1)},1e3);return()=>clearTimeout(y)},[l]),{userText:e,suggestions:n,isLoading:s,suggestionFocus:o,errorMessage:d,retryAfter:l,handleInputChange:x,handleSuggestionClick:w,handleKeyDown:m,handleSuggestionFocus:y=>{i(y)}}}function XC(){const{userText:e,suggestions:t,isLoading:n,suggestionFocus:r,errorMessage:o,retryAfter:i,handleInputChange:s,handleSuggestionClick:a,handleKeyDown:l,handleSuggestionFocus:u}=JC();return c.jsxs("div",{className:Sr.main,children:[c.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),c.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:e,onKeyDown:l,onChange:s,disabled:i!==0}),n&&c.jsx("div",{id:"loader",className:Sr.loader}),o&&c.jsx("div",{id:"info",children:o}),i!==0&&c.jsx("div",{className:Sr.retryTimer,children:i}),c.jsx("ul",{className:Sr.suggestions,children:t.map((d,f)=>c.jsx("li",{className:r===f?`${Sr.highlight}`:"",onClick:()=>a(d),onMouseOver:()=>u(f),onMouseLeave:()=>u(null),children:d},f))})]})}const ZC="_container_zsbjj_3",eE="_inputContainer_zsbjj_12",tE="_input_zsbjj_12",nE="_button_zsbjj_23",rE="_result_zsbjj_35",Lo={container:ZC,inputContainer:eE,input:tE,button:nE,result:rE},oE=()=>{const e=(l,u)=>{const d=g=>g.replace(/[^\w]/g,"").toLowerCase(),f=d(l),h=d(u);return f.split("").sort().join("")===h.split("").sort().join("")},[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(null),a=()=>{const l=e(t,r);s(l)};return c.jsxs("div",{className:Lo.container,children:[c.jsxs("div",{className:Lo.inputContainer,children:[c.jsx("input",{type:"text",placeholder:"Enter the first word or phrase",value:t,onChange:l=>n(l.target.value),className:Lo.input}),c.jsx("input",{type:"text",placeholder:"Enter the second word or phrase",value:r,onChange:l=>o(l.target.value),className:Lo.input}),c.jsx("button",{onClick:a,className:Lo.button,children:"Check Anagram"})]}),i!==null&&c.jsx("p",{className:Lo.result,children:i?"The words/phrases are anagrams!":"The words/phrases are not anagrams."})]})},iE=()=>c.jsx("div",{children:c.jsx(oE,{})}),sE="_App_7yaca_1",aE="_container_7yaca_1",lE="_input_7yaca_7",cE="_calculateButton_7yaca_21",uE="_card_7yaca_30",dE="_ranges_7yaca_41",vi={App:sE,container:aE,input:lE,calculateButton:cE,card:uE,ranges:dE},fE=({BMI:e,category:t})=>{const n=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return c.jsxs("div",{className:vi.card,children:[c.jsxs("h1",{children:["BMI = ",e]}),c.jsx("h3",{children:t}),c.jsx("p",{className:vi.ranges,children:"BMI weight ranges"}),n.map(r=>c.jsx("p",{children:r},r))]})},pE=({handleHeightChange:e,handleWeightChange:t,BMI:n,calculateBMI:r,category:o})=>c.jsxs("div",{className:vi.container,children:[c.jsxs("div",{className:vi.input,children:[c.jsxs("label",{htmlFor:"height",children:["Height ",c.jsx("span",{children:"(in cm)"})]}),c.jsx("input",{type:"text",name:"height",onChange:e}),c.jsxs("label",{htmlFor:"weight",children:["Weight ",c.jsx("span",{children:"(in kg)"})]}),c.jsx("input",{type:"text",name:"weight",onChange:t}),c.jsx("button",{className:vi.calculateButton,onClick:r,children:"Calculate"})]}),c.jsx(fE,{BMI:n,category:o})]}),hE=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),[o,i]=p.useState(null),[s,a]=p.useState(null);p.useEffect(()=>{if(o){let f=o<18.5?"Underweight":o<24.9?"Healthy Weight":o<29.9?"Overweight":"Obese";a(()=>f)}},[o]);const l=f=>{try{const h=parseFloat(f.target.value).toFixed(2);h>10&&t(()=>h)}catch(h){console.log(h,"Enter numeric values only"),t(0)}},u=f=>{try{const h=parseFloat(f.target.value).toFixed(2);h>10&&r(()=>h)}catch(h){console.log(h,"Enter numeric values only"),t(0)}},d=()=>{if(e&&n){const f=(n/(e*e/1e4)).toFixed(2);i(()=>f)}};return c.jsx("div",{className:vi.App,children:c.jsx(pE,{height:e,weight:n,handleHeightChange:l,handleWeightChange:u,BMI:o,calculateBMI:d,category:s})})},mE="_container_10e68_1",gE="_button_10e68_7",Ym={container:mE,button:gE},vE=e=>{if(!e){const t="0123456789ABCDEF";e="#";for(let n=0;n<6;n++)e+=t[Math.floor(Math.random()*16)]}return e},yE=()=>{const e=t=>{document.body.style.backgroundColor=t};return p.useEffect(()=>()=>e("unset"),[]),c.jsx("div",{className:Ym.container,children:c.jsx("button",{type:"button",className:Ym.button,onClick:()=>e(vE()),children:"Change Color!! 😎"})})},Fo={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function xE(e,t){const n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),a=parseInt(t.slice(5,7),16);return`#${Math.round((n+i)/2).toString(16)}${Math.round((r+s)/2).toString(16)}${Math.round((o+a)/2).toString(16)}`}function wE(){const[e,t]=p.useState("#FF5733"),[n,r]=p.useState("#33FF57"),o=s=>{const{name:a,value:l}=s.target;a==="color1"?t(l):r(l)},i=()=>{t("#FF5733"),r("#33FF57")};return c.jsxs("div",{className:Fo["color-mixing-container"],children:[c.jsx("div",{className:Fo["color-box-top"],style:{backgroundColor:xE(e,n)},children:c.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),c.jsxs("div",{className:Fo["color-inputs"],children:[c.jsxs("div",{className:Fo["color-input"],children:[c.jsx("label",{htmlFor:"color1",children:"Color 1"}),c.jsx("input",{type:"color",name:"color1",value:e,onChange:o})]}),c.jsxs("div",{className:Fo["color-input"],children:[c.jsx("label",{htmlFor:"color2",children:"Color 2"}),c.jsx("input",{type:"color",name:"color2",value:n,onChange:o})]}),c.jsx("button",{className:Fo["mix-button"],onClick:i,style:{marginTop:"1rem"},children:"Reset"})]})]})}const bE="_main_pfcqp_1",_E="_size_pfcqp_5",SE="_grid_pfcqp_13",kE="_cell_pfcqp_17",sc={main:bE,size:_E,grid:SE,cell:kE};function CE({columns:e,values:t}){return c.jsx("table",{className:sc.grid,style:{gridTemplateColumns:`repeat(${e}, 50px)`},children:c.jsx("tbody",{children:t.map((n,r)=>c.jsx("tr",{children:n.map(o=>c.jsx("td",{className:sc.cell,children:o},o))},r))})})}function EE({rows:e,setRows:t,columns:n,setColumns:r}){return c.jsxs("section",{className:sc.size,children:[c.jsxs("label",{htmlFor:"rows",children:["Rows :: ",e]}),c.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:e,onChange:o=>t(+o.target.value)}),c.jsxs("label",{htmlFor:"columns",children:["Columns :: ",n]}),c.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:n,onChange:o=>r(+o.target.value)})]})}function jE(e,t){const n=Array.from(Array(e),()=>[]);let r=1,o=1,i=0,s=0;for(;s=0;)n[i][s]=r++,i+=o;o*=-1,i+=o,s+=1}return n}function $E(){const[e,t]=p.useState(2),[n,r]=p.useState(2),o=jE(e,n);return c.jsxs("main",{className:sc.main,children:[c.jsx(EE,{rows:e,columns:n,setRows:t,setColumns:r}),c.jsx(CE,{columns:n,values:o})]})}const TE="_main_1cx3l_1",RE={main:TE};function NE(){const[e,t]=p.useState(0),n=p.useRef(1),r=a=>{n.current=a},o=()=>{t(a=>a+n.current)},i=()=>{t(a=>a-n.current)},s=()=>{t(0)};return c.jsxs("main",{className:RE.main,children:[c.jsx("h2",{children:e}),c.jsxs("section",{children:[c.jsx("button",{onClick:i,"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:o,"aria-label":"Increment",children:"+"})]}),c.jsxs("section",{children:[c.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),c.jsx("input",{type:"number",id:"step",defaultValue:n.current,onChange:a=>r(a.target.valueAsNumber),title:"Step value"})]}),c.jsx("section",{children:c.jsx("button",{onClick:s,children:"Reset"})})]})}const PE={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},OE="_select_17qmd_1",AE="_form_17qmd_6",DE="_formField_17qmd_13",ME="_formInput_17qmd_17",eo={select:OE,form:AE,formField:DE,formInput:ME};function IE({fields:e,dispatch:t}){return c.jsxs("form",{className:eo.form,children:[c.jsxs("div",{className:eo.formField,children:[c.jsx("label",{htmlFor:"name",children:"Name: "}),c.jsx("input",{className:eo.formInput,type:"text",id:"name",value:e.name,onChange:n=>t({name:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),c.jsx("input",{className:eo.formInput,type:"text",id:"companyName",value:e.companyName,onChange:n=>t({companyName:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),c.jsx("input",{className:eo.formInput,type:"date",id:"effectiveDate",value:e.effectiveDate,onChange:n=>t({effectiveDate:n.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),c.jsx("input",{className:eo.formInput,type:"date",id:"lastDate",value:e.lastDate,onChange:n=>t({lastDate:n.target.value})})]})]})}function LE({name:e,companyName:t,effectiveDate:n,lastDate:r}){return console.log(n),c.jsxs("div",{children:[c.jsx("p",{children:"Hi,"}),c.jsxs("p",{children:["Please accept this email as my formal resignation from ",t,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),c.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",n,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",r,"."]}),c.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",t," and looking forward to your support."]}),c.jsx("br",{}),c.jsxs("p",{children:["Thanks and Regards,",c.jsx("br",{}),e]})]})}function FE({template:e,setTemplate:t}){const n=r=>{t(r.target.value)};return c.jsxs("form",{className:"text-center",children:[c.jsx("label",{htmlFor:"template",children:"Template: "}),c.jsx("select",{id:"template",value:e,onChange:n,className:eo.select,children:c.jsx("option",{value:"resignation",children:"Resignation"})})]})}function zE(){const[e,t]=p.useState("jobApplication"),[n,r]=p.useReducer((o,i)=>({...o,...i}),PE);return c.jsxs(c.Fragment,{children:[c.jsx(FE,{template:e,setTemplate:t}),c.jsx(IE,{fields:n,dispatch:r}),c.jsx("hr",{}),c.jsx(LE,{...n})]})}const BE="_form_1ufkd_2",UE={form:BE};function HE({onAddExpense:e}){const[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(""),a=l=>{l.preventDefault(),e({id:Date.now(),date:t,amount:parseFloat(r),category:i}),n(""),o(""),s("")};return c.jsxs("form",{onSubmit:a,className:UE.form,children:[c.jsx("input",{type:"date",value:t,onChange:l=>n(l.target.value),required:!0}),c.jsx("input",{type:"number",value:r,placeholder:"Please Enter Amount",onChange:l=>o(l.target.value),required:!0}),c.jsxs("select",{value:i,onChange:l=>s(l.target.value),children:[c.jsx("option",{value:"",children:"Select Category"}),c.jsx("option",{value:"Food",children:"Food"}),c.jsx("option",{value:"Transport",children:"Transport"}),c.jsx("option",{value:"Entertainment",children:"Entertainment"}),c.jsx("option",{value:"Other",children:"Other"})]}),c.jsx("button",{type:"submit",children:"Add Expense"})]})}const WE="_mainContainer_1ynr6_2",VE="_btnRed_1ynr6_32",sf={mainContainer:WE,btnRed:VE};function GE({expenses:e}){const t=e.reduce((n,r)=>n+r.amount,0);return c.jsxs("div",{className:sf.mainContainer,children:[c.jsx("h2",{children:"Summary"}),c.jsxs("p",{children:["Total Expenses: $",t.toFixed(2)]})]})}function KE({expenses:e,onDeleteExpense:t}){return c.jsxs("div",{className:sf.mainContainer,children:[c.jsx("h2",{children:"Expenses"}),c.jsx("ul",{children:e.map(n=>c.jsxs("li",{children:[n.date," - $",n.amount," - ",n.category,c.jsx("button",{className:sf.btnRed,onClick:()=>t(n.id),children:"Delete"})]},n.id))})]})}function qE(){const[e,t]=p.useState([]),n=o=>{t(i=>[o,...i])},r=o=>{t(i=>i.filter(s=>s.id!==o))};return c.jsxs("div",{className:"App",children:[c.jsx("h1",{}),c.jsx(HE,{onAddExpense:n}),c.jsx(KE,{expenses:e,onDeleteExpense:r}),c.jsx(GE,{expenses:e})]})}const YE="_feedbackContainer_2c7o2_1",QE="_feedbackBtn_2c7o2_11",JE="_modalContainer_2c7o2_22",XE="_modalContent_2c7o2_35",ZE="_iconContainer_2c7o2_50",e2="_iconItem_2c7o2_57",t2="_active_2c7o2_75",n2="_iconImage_2c7o2_81",r2="_modalClose_2c7o2_92",o2="_feedbackContent_2c7o2_108",i2="_feedbackResponse_2c7o2_115",Kt={feedbackContainer:YE,feedbackBtn:QE,modalContainer:JE,modalContent:XE,iconContainer:ZE,iconItem:e2,active:t2,iconImage:n2,modalClose:r2,feedbackContent:o2,feedbackResponse:i2},s2=[{rating:1,url:"https://cdn-icons-png.flaticon.com/512/14230/14230791.png",mood:"Terrible"},{rating:2,url:"https://cdn-icons-png.flaticon.com/512/166/166527.png",mood:"Unhappy"},{rating:3,url:"https://cdn-icons-png.flaticon.com/512/1791/1791385.png",mood:"Neutral"},{rating:4,url:"https://cdn-icons-png.flaticon.com/512/166/166538.png",mood:"Happy"},{rating:5,url:"https://cdn-icons-png.flaticon.com/512/10851/10851309.png",mood:"Excited"}],a2=(e,t,n)=>{let r=n;return r=t===e?`${r} ${Kt.active}`:`${r}`,r},l2=({handleClick:e,activeRating:t})=>c.jsx("div",{className:Kt.iconContainer,children:s2.map(n=>c.jsxs("div",{className:a2(n.rating,t,Kt.iconItem),onClick:()=>e(n),children:[c.jsx("img",{src:n.url,className:Kt.iconImage,alt:n.mood}),c.jsx("p",{children:n.mood})]},n.rating))}),c2=({onClose:e})=>{const[t,n]=p.useState(""),[r,o]=p.useState({}),[i,s]=p.useState(!1),a=()=>{s(!0)},l=d=>{o(d)},u=d=>{n(d.target.value)};return c.jsx("div",{className:Kt.modalContainer,onClick:e,children:c.jsxs("div",{className:Kt.modalContent,onClick:d=>d.stopPropagation(),children:[c.jsx("button",{className:Kt.modalClose,onClick:e,children:"x"}),c.jsx("h1",{children:"User Feedback"}),i?c.jsxs("div",{className:Kt.feedbackResponse,children:[c.jsxs("p",{children:["Feedback: ",r.mood]}),c.jsx("p",{children:"Thank you for your feedback"})]}):c.jsxs("form",{className:Kt.feedbackContent,onSubmit:a,children:[c.jsx(l2,{handleClick:l,activeRating:r.rating}),c.jsx("textarea",{placeholder:"Please share additional feedback (optional)",rows:"5",cols:"30",style:{width:"80%",margin:"10px",fontSize:"12px",padding:"2px"},value:t,onChange:u}),c.jsx("button",{type:"submit",className:Kt.feedbackBtn,disabled:!Object.keys(r).length,children:"Submit"})]})]})})};function u2(){const[e,t]=p.useState(!1),n=()=>{t(!0)},r=()=>{t(!1)};return c.jsxs("div",{className:Kt.feedbackContainer,children:[c.jsx("button",{className:Kt.feedbackBtn,onClick:n,children:"Feedback"}),e&&c.jsx(c2,{onClose:r})]})}const d2="_app_1o28y_1",f2="_list_1o28y_6",p2="_editList_1o28y_22",h2="_editableInputContainer_1o28y_30",m2="_editableInputError_1o28y_34",g2="_indent_1o28y_48",v2="_controls_1o28y_52",wt={app:d2,list:f2,editList:p2,editableInputContainer:h2,editableInputError:m2,indent:g2,controls:v2};function Dp({onComplete:e,validateNode:t,defaultValue:n=""}){const[r,o]=p.useState(n),[i,s]=p.useState(null),a=d=>{const f=d.target.value;o(f),f===""?s("File or folder name cannot be empty"):t(f)?s(null):s("A file or folder already exists with that name")},l=()=>{e(r)},u=d=>{d.key==="Enter"&&l()};return c.jsxs("div",{className:wt.editableInputContainer,children:[c.jsx("input",{type:"text",autoFocus:!0,onBlur:l,onKeyUp:u,value:r,onChange:a}),i&&c.jsx("div",{className:wt.editableInputError,children:c.jsx("p",{children:i})})]})}function y2({node:e,parent:t,onNodeDeletion:n,onNodeUpdate:r,validateNode:o}){const[i,s]=p.useState(!1),a=u=>o(t,e,u),l=u=>{a(u)&&r(t,e,u),s(!1)};return i?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:["📄 ",c.jsx(Dp,{defaultValue:e.name,onComplete:l,validateNode:a})]}):c.jsxs("li",{className:wt.list,children:[c.jsxs("button",{className:wt.button,children:["📄 ",e.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{onClick:()=>s(!0),children:"✏️"}),c.jsx("button",{onClick:()=>n(t,e),children:"🗑️"})]})]})}function x2({expanded:e,toggleExpand:t,parent:n,node:r,onNodeDeletion:o,onNodeUpdate:i,onNew:s,validateNode:a}){const[l,u]=p.useState(!1),d=h=>a(n,r,h),f=h=>{n&&(d(h)&&i(n,r,h),u(!1))};return l?c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[e?"📂":"📁"," ",c.jsx(Dp,{defaultValue:r==null?void 0:r.name,onComplete:f,validateNode:d})]}):c.jsxs("li",{className:wt.list,"data-root":n===null,children:[c.jsxs("button",{onClick:t,children:[e?"📂":"📁"," ",r==null?void 0:r.name]}),c.jsxs("div",{className:wt.controls,children:[c.jsx("button",{className:"edit",onClick:()=>u(!0),children:"✏️"}),c.jsx("button",{className:"new-file",onClick:()=>s(!1),children:"📄"}),c.jsx("button",{className:"new-folder",onClick:()=>s(!0),children:"🗂"}),c.jsx("button",{className:"delete",onClick:()=>o(n,r),children:"🗑️"})]})]})}function j1({node:e,parent:t,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i}){var x;const[s,a]=p.useState(!1),[l,u]=p.useState(!1),d=p.useRef(!1),f=w=>{w.stopPropagation(),a(!s)},h=w=>{d.current=w,u(!l),a(!0)},g=w=>i(e,null,w),m=w=>{w&&g(w)&&n(e,{name:w,id:new Date().getTime().toString(),isFolder:d.current}),u(!1)};return c.jsxs(c.Fragment,{children:[c.jsx(x2,{expanded:s,toggleExpand:f,parent:t,node:e,onNodeDeletion:r,onNodeUpdate:o,onNew:h,validateNode:i}),s&&c.jsxs("div",{className:wt.indent,children:[(x=e.nodes)==null?void 0:x.map(w=>w.isFolder?c.jsx(j1,{node:w,parent:e,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id):c.jsx(y2,{node:w,parent:e,onNodeDeletion:r,onNodeUpdate:o,validateNode:i},w.id)),l&&c.jsxs("li",{className:`${wt.list} ${wt.editList}`,children:[d.current?"📁":"📄"," ",c.jsx(Dp,{onComplete:m,validateNode:g})]})]})]})}const w2={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function b2(){const[e,t]=p.useState(w2),n=(s,a)=>{const l={...e},u=[...s.nodes??[]];u.push({...a,nodes:[]}),s.id==="root"?l.nodes=u:s.nodes=u,t(l)},r=(s,a)=>{var d;const l={...e},u=(d=s.nodes)==null?void 0:d.filter(f=>f.id!==a.id);s.id==="root"?l.nodes=u:s.nodes=u,t(l)},o=(s,a,l)=>{var h;const u={...e},d=((h=s.nodes)==null?void 0:h.map(g=>g))??[],f=d.findIndex(g=>g.id===a.id);d[f]={...d[f],name:l},s.id==="root"?u.nodes=d:s.nodes=d,t(u)},i=(s,a,l)=>{var d;return s===null||typeof s.nodes>"u"?!0:l===""?!1:((d=s.nodes)==null?void 0:d.findIndex(f=>f.id!==(a==null?void 0:a.id)&&f.name===l))===-1};return c.jsx("div",{className:wt.app,children:c.jsx(j1,{node:e,parent:null,onNodeAddition:n,onNodeDeletion:r,onNodeUpdate:o,validateNode:i})})}const _2="_App_lmi0v_5",S2="_meal_container_lmi0v_15",k2="_meal_name_lmi0v_27",C2="_meal_img_lmi0v_32",E2="_tags_container_lmi0v_37",j2="_modal_tags_container_lmi0v_38",$2="_tag_lmi0v_37",T2="_modal_tag_lmi0v_38",R2="_dialog_lmi0v_62",N2="_modal_meal_img_lmi0v_67",P2="_modal_instruction_lmi0v_72",O2="_foodBtn_lmi0v_77",A2="_openBtn_lmi0v_78",D2="_closeBtn_lmi0v_103",M2="_recipe_table_lmi0v_126",rt={App:_2,meal_container:S2,meal_name:k2,meal_img:C2,tags_container:E2,modal_tags_container:j2,tag:$2,modal_tag:T2,dialog:R2,modal_meal_img:N2,modal_instruction:P2,foodBtn:O2,openBtn:A2,closeBtn:D2,recipe_table:M2};function Mp({data:e}){const{strCategory:t,strArea:n,strTags:r}=e;return c.jsxs("ul",{className:rt.modal_tags_container,children:[t&&c.jsx("li",{className:rt.modal_tag,children:t}),n&&c.jsx("li",{className:rt.modal_tag,children:n}),r&&r.split(",").map((o,i)=>c.jsx("li",{className:rt.modal_tag,children:o},i))]})}Mp.propTypes;function $1({data:e,handleOpenDialog:t}){const{strMeal:n,strMealThumb:r}=e;return c.jsxs("div",{className:rt.meal_container,children:[c.jsx("h2",{className:rt.meal_name,children:n}),c.jsx("img",{className:rt.meal_img,src:r,alt:n}),c.jsx(Mp,{data:e}),c.jsx("button",{className:rt.openBtn,onClick:t,children:"detail recipe"})]})}$1.propTypes;function T1({data:e}){const t=n=>{const r=[];for(let o=1;o<=20;o++){const i=n[`strIngredient${o}`],s=n[`strMeasure${o}`];i&&s&&r.push({ingredient:i,measure:s})}return r};return c.jsxs("table",{className:rt.recipe_table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"No."}),c.jsx("th",{children:"Ingredient"}),c.jsx("th",{children:"Measure"})]})}),c.jsx("tbody",{children:t(e).map((n,r)=>c.jsxs("tr",{children:[c.jsx("td",{children:r+1}),c.jsx("td",{children:n.ingredient}),c.jsx("td",{children:n.measure})]},r))})]})}T1.propTypes;function R1({data:e,handleCloseDialog:t}){const{strMeal:n,strMealThumb:r,strInstructions:o,strYoutube:i}=e;return c.jsx("dialog",{className:rt.dialog,open:!0,onClose:t,children:c.jsxs("div",{className:rt.modal_meal_container,children:[c.jsx("button",{className:rt.closeBtn,onClick:t,children:"×"}),c.jsx("h2",{className:rt.modal_meal_name,children:n}),c.jsx("img",{className:rt.modal_meal_img,src:r,alt:n}),c.jsx(Mp,{data:e}),c.jsx(T1,{data:e}),c.jsx("h2",{children:"Instruction 📜"}),c.jsx("p",{className:rt.modal_instruction,children:o}),i&&c.jsxs("a",{href:i,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",n]})]})})}R1.propTypes;function I2(){const[e,t]=p.useState(null),[n,r]=p.useState(!1);p.useEffect(()=>{o()},[]);const o=async()=>{try{const l=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!l.ok)throw new Error("Network response was not ok! Something wrong");const u=await l.json();t(u.meals[0])}catch(l){console.error("Error on fetching data: ",l)}},i=()=>{o()},s=()=>{r(!0)},a=()=>{r(!1)};return c.jsxs("div",{className:rt.App,children:[c.jsx("h1",{children:"Are you hungry 😋"}),c.jsx("button",{className:rt.foodBtn,onClick:i,children:"Another food 🍛"}),n&&c.jsx(R1,{data:e,handleCloseDialog:a}),e&&c.jsx($1,{data:e,handleOpenDialog:s})]})}const L2="_app_j2t5p_1",F2="_widget_j2t5p_14",z2="_text_j2t5p_21",Iu={app:L2,widget:F2,text:z2};function B2(){const[e,t]=p.useState(),[n,r]=p.useState(!1),[o,i]=p.useState(1),[s,a]=p.useState(!1),[l,u]=p.useState(!1),[d,f]=p.useState(!1);p.useEffect(()=>{t(Math.round(100*Math.random()))},[]);const h=m=>{m.preventDefault(),oe?(u(!0),a(!1)):(f(!0),a(!1),u(!1),r(!0))},g=()=>{t(Math.round(100*Math.random())),f(!1),a(!1),u(!1),r(!1),i(1)};return c.jsxs("div",{className:Iu.app,children:[c.jsxs("form",{onSubmit:h,children:[c.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),c.jsx("input",{id:"input",type:"number",value:o,min:"0",max:"100",placeholder:"Guess-Number",onChange:m=>i(Number(m.target.value))}),c.jsxs("div",{className:Iu.widget,children:[c.jsx("button",{type:"reset",onClick:g,children:"Reset"}),c.jsx("button",{type:"submit",disabled:n,children:"Check"})]})]}),c.jsxs("div",{className:Iu.text,children:[s&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Less"})," than the actual number"]}),l&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"Higher"})," than the actual number"]}),d&&c.jsxs("p",{children:["Your guess is ",c.jsx("b",{children:"right"})]})]})]})}const fr={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},U2=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function H2(){const[e,t]=p.useState(null),n=r=>{t(r)};return c.jsxs("div",{className:fr["image-gallery-container"],children:[c.jsx("p",{className:fr["gallery-para"],children:"Click on an image!"}),c.jsx("div",{className:fr["image-container"],children:U2.map((r,o)=>c.jsx("div",{className:fr["image-wrapper"],onClick:()=>n(r),children:c.jsx("img",{src:r,alt:`Image ${o+1}`,className:fr["gallery-image"]})},o))}),e&&c.jsxs("div",{className:fr["selected-image"],children:[c.jsx("h2",{className:fr["selected-heading"],children:"Selected Image"}),c.jsx("img",{src:e,alt:"Selected",className:fr["selected-img"]})]})]})}const W2="_loader_1hfl7_1",V2="_spin_1hfl7_1",Lu={loader:W2,spin:V2,"book-title":"_book-title_1hfl7_21"};function N1(e,t){return function(){return e.apply(t,arguments)}}const{toString:G2}=Object.prototype,{getPrototypeOf:Ip}=Object,Vc=(e=>t=>{const n=G2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dn=e=>(e=e.toLowerCase(),t=>Vc(t)===e),Gc=e=>t=>typeof t===e,{isArray:Ii}=Array,ra=Gc("undefined");function K2(e){return e!==null&&!ra(e)&&e.constructor!==null&&!ra(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const P1=Dn("ArrayBuffer");function q2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&P1(e.buffer),t}const Y2=Gc("string"),Xt=Gc("function"),O1=Gc("number"),Kc=e=>e!==null&&typeof e=="object",Q2=e=>e===!0||e===!1,kl=e=>{if(Vc(e)!=="object")return!1;const t=Ip(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J2=Dn("Date"),X2=Dn("File"),Z2=Dn("Blob"),ej=Dn("FileList"),tj=e=>Kc(e)&&Xt(e.pipe),nj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xt(e.append)&&((t=Vc(e))==="formdata"||t==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"))},rj=Dn("URLSearchParams"),oj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ii(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const D1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),M1=e=>!ra(e)&&e!==D1;function af(){const{caseless:e}=M1(this)&&this||{},t={},n=(r,o)=>{const i=e&&A1(t,o)||o;kl(t[i])&&kl(r)?t[i]=af(t[i],r):kl(r)?t[i]=af({},r):Ii(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(wa(t,(o,i)=>{n&&Xt(o)?e[i]=N1(o,n):e[i]=o},{allOwnKeys:r}),e),sj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},lj=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ip(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},uj=e=>{if(!e)return null;if(Ii(e))return e;let t=e.length;if(!O1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ip(Uint8Array)),fj=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},pj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hj=Dn("HTMLFormElement"),mj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Qm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gj=Dn("RegExp"),I1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},vj=e=>{I1(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yj=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ii(e)?r(e):r(String(e).split(t)),n},xj=()=>{},wj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Fu="abcdefghijklmnopqrstuvwxyz",Jm="0123456789",L1={DIGIT:Jm,ALPHA:Fu,ALPHA_DIGIT:Fu+Fu.toUpperCase()+Jm},bj=(e=16,t=L1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _j(e){return!!(e&&Xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sj=e=>{const t=new Array(10),n=(r,o)=>{if(Kc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Ii(r)?[]:{};return wa(r,(s,a)=>{const l=n(s,o+1);!ra(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},kj=Dn("AsyncFunction"),Cj=e=>e&&(Kc(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),A={isArray:Ii,isArrayBuffer:P1,isBuffer:K2,isFormData:nj,isArrayBufferView:q2,isString:Y2,isNumber:O1,isBoolean:Q2,isObject:Kc,isPlainObject:kl,isUndefined:ra,isDate:J2,isFile:X2,isBlob:Z2,isRegExp:gj,isFunction:Xt,isStream:tj,isURLSearchParams:rj,isTypedArray:dj,isFileList:ej,forEach:wa,merge:af,extend:ij,trim:oj,stripBOM:sj,inherits:aj,toFlatObject:lj,kindOf:Vc,kindOfTest:Dn,endsWith:cj,toArray:uj,forEachEntry:fj,matchAll:pj,isHTMLForm:hj,hasOwnProperty:Qm,hasOwnProp:Qm,reduceDescriptors:I1,freezeMethods:vj,toObjectSet:yj,toCamelCase:mj,noop:xj,toFiniteNumber:wj,findKey:A1,global:D1,isContextDefined:M1,ALPHABET:L1,generateString:bj,isSpecCompliantForm:_j,toJSONObject:Sj,isAsyncFn:kj,isThenable:Cj};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F1=de.prototype,z1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{z1[e]={value:e}});Object.defineProperties(de,z1);Object.defineProperty(F1,"isAxiosError",{value:!0});de.from=(e,t,n,r,o,i)=>{const s=Object.create(F1);return A.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),de.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ej=null;function lf(e){return A.isPlainObject(e)||A.isArray(e)}function B1(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Xm(e,t,n){return e?e.concat(t).map(function(o,i){return o=B1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function jj(e){return A.isArray(e)&&!e.some(lf)}const $j=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function qc(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!A.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(!l&&A.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,w){let v=m;if(m&&!w&&typeof m=="object"){if(A.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&jj(m)||(A.isFileList(m)||A.endsWith(x,"[]"))&&(v=A.toArray(m)))return x=B1(x),v.forEach(function(b,C){!(A.isUndefined(b)||b===null)&&t.append(s===!0?Xm([x],C,i):s===null?x:x+"[]",u(b))}),!1}return lf(m)?!0:(t.append(Xm(w,x,i),u(m)),!1)}const f=[],h=Object.assign($j,{defaultVisitor:d,convertValue:u,isVisitable:lf});function g(m,x){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),A.forEach(m,function(v,y){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(y)?y.trim():y,x,h))===!0&&g(v,x?x.concat(y):[y])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Zm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lp(e,t){this._pairs=[],e&&qc(e,this,t)}const U1=Lp.prototype;U1.append=function(t,n){this._pairs.push([t,n])};U1.toString=function(t){const n=t?function(r){return t.call(this,r,Zm)}:Zm;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Tj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H1(e,t,n){if(!t)return e;const r=n&&n.encode||Tj,o=n&&n.serialize;let i;if(o?i=o(t,n):i=A.isURLSearchParams(t)?t.toString():new Lp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class eg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const W1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rj=typeof URLSearchParams<"u"?URLSearchParams:Lp,Nj=typeof FormData<"u"?FormData:null,Pj=typeof Blob<"u"?Blob:null,Oj={isBrowser:!0,classes:{URLSearchParams:Rj,FormData:Nj,Blob:Pj},protocols:["http","https","file","blob","url","data"]},V1=typeof window<"u"&&typeof document<"u",Aj=(e=>V1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Mj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V1,hasStandardBrowserEnv:Aj,hasStandardBrowserWebWorkerEnv:Dj},Symbol.toStringTag,{value:"Module"})),Tn={...Mj,...Oj};function Ij(e,t){return qc(e,new Tn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Tn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Lj(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fj(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&A.isArray(o)?o.length:s,l?(A.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!A.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&A.isArray(o[s])&&(o[s]=Fj(o[s])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(Lj(r),o,n,0)}),n}return null}function zj(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Fp={transitional:W1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=A.isObject(t);if(i&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(G1(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ij(t,this.formSerializer).toString();if((a=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return qc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),zj(t)):t}],transformResponse:[function(t){const n=this.transitional||Fp.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?de.from(a,de.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tn.classes.FormData,Blob:Tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Fp.headers[e]={}});const zp=Fp,Bj=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Uj=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Bj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tg=Symbol("internals");function cs(e){return e&&String(e).trim().toLowerCase()}function Cl(e){return e===!1||e==null?e:A.isArray(e)?e.map(Cl):String(e)}function Hj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zu(e,t,n,r,o){if(A.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function Vj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Gj(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Yc{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const d=cs(l);if(!d)throw new Error("header name must be a non-empty string");const f=A.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=Cl(a))}const s=(a,l)=>A.forEach(a,(u,d)=>i(u,d,l));return A.isPlainObject(t)||t instanceof this.constructor?s(t,n):A.isString(t)&&(t=t.trim())&&!Wj(t)?s(Uj(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=cs(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Hj(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cs(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=cs(s),s){const a=A.findKey(r,s);a&&(!n||zu(r,r[a],a,n))&&(delete r[a],o=!0)}}return A.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return A.forEach(this,(o,i)=>{const s=A.findKey(r,i);if(s){n[s]=Cl(o),delete n[i];return}const a=t?Vj(i):String(i).trim();a!==i&&delete n[i],n[a]=Cl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[tg]=this[tg]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=cs(s);r[a]||(Gj(o,s),r[a]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}}Yc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Yc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(Yc);const Qn=Yc;function Bu(e,t){const n=this||zp,r=t||n,o=Qn.from(r.headers);let i=r.data;return A.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function K1(e){return!!(e&&e.__CANCEL__)}function ba(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(ba,de,{__CANCEL__:!0});function Kj(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const qj=Tn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),A.isString(r)&&s.push("path="+r),A.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function q1(e,t){return e&&!Yj(t)?Qj(e,t):t}const Jj=Tn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=A.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Xj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];s||(s=u),n[o]=l,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const e$=typeof XMLHttpRequest<"u",t$=e$&&function(e){return new Promise(function(n,r){let o=e.data;const i=Qn.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(A.isFormData(o)){if(Tn.hasStandardBrowserEnv||Tn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[x,...w]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([x||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(x+":"+w))}const h=q1(e.baseURL,e.url);f.open(e.method.toUpperCase(),H1(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const x=Qn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:e,request:f};Kj(function(b){n(b),u()},function(b){r(b),u()},v),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new de("Request aborted",de.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||W1;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new de(w,v.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,f)),f=null},Tn.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(e)),a||a!==!1&&Jj(h))){const x=e.xsrfHeaderName&&e.xsrfCookieName&&qj.read(e.xsrfCookieName);x&&i.set(e.xsrfHeaderName,x)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&A.forEach(i.toJSON(),function(w,v){f.setRequestHeader(v,w)}),A.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",ng(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",ng(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=x=>{f&&(r(!x||x.type?new ba(null,e,f):x),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Xj(h);if(m&&Tn.protocols.indexOf(m)===-1){r(new de("Unsupported protocol "+m+":",de.ERR_BAD_REQUEST,e));return}f.send(o||null)})},cf={http:Ej,xhr:t$};A.forEach(cf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rg=e=>`- ${e}`,n$=e=>A.isFunction(e)||e===null||e===!1,Y1={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +`+i.map(rg).join(` +`):" "+rg(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:cf};function Uu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ba(null,e)}function og(e){return Uu(e),e.headers=Qn.from(e.headers),e.data=Bu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Y1.getAdapter(e.adapter||zp.adapter)(e).then(function(r){return Uu(e),r.data=Bu.call(e,e.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return K1(r)||(Uu(e),r&&r.response&&(r.response.data=Bu.call(e,e.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const ig=e=>e instanceof Qn?e.toJSON():e;function Ri(e,t){t=t||{};const n={};function r(u,d,f){return A.isPlainObject(u)&&A.isPlainObject(d)?A.merge.call({caseless:f},u,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(u,d,f){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!A.isUndefined(d))return r(void 0,d)}function s(u,d){if(A.isUndefined(d)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,d)=>o(ig(u),ig(d),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);A.isUndefined(h)&&f!==a||(n[d]=h)}),n}const Q1="1.6.2",Bp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sg={};Bp.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Q1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new de(o(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!sg[s]&&(sg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function r$(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new de("option "+i+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const uf={assertOptions:r$,validators:Bp},pr=uf.validators;class ac{constructor(t){this.defaults=t,this.interceptors={request:new eg,response:new eg}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ri(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&uf.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:uf.assertOptions(o,{encode:pr.function,serialize:pr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&A.merge(i.common,i[n.method]);i&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qn.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,f=0,h;if(!l){const m=[og.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new ba(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Up(function(o){t=o}),cancel:t}}}const o$=Up;function i$(e){return function(n){return e.apply(null,n)}}function s$(e){return A.isObject(e)&&e.isAxiosError===!0}const df={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(df).forEach(([e,t])=>{df[t]=e});const a$=df;function J1(e){const t=new El(e),n=N1(El.prototype.request,t);return A.extend(n,El.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return J1(Ri(e,o))},n}const Ce=J1(zp);Ce.Axios=El;Ce.CanceledError=ba;Ce.CancelToken=o$;Ce.isCancel=K1;Ce.VERSION=Q1;Ce.toFormData=qc;Ce.AxiosError=de;Ce.Cancel=Ce.CanceledError;Ce.all=function(t){return Promise.all(t)};Ce.spread=i$;Ce.isAxiosError=s$;Ce.mergeConfig=Ri;Ce.AxiosHeaders=Qn;Ce.formToJSON=e=>G1(A.isHTMLForm(e)?new FormData(e):e);Ce.getAdapter=Y1.getAdapter;Ce.HttpStatusCode=a$;Ce.default=Ce;function l$(e){const[t,n]=p.useState(!0),[r,o]=p.useState(!1),[i,s]=p.useState([]),[a,l]=p.useState(!1);return p.useEffect(()=>{n(!0),o(!1);let u;return Ce({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:e,_limit:10},cancelToken:new Ce.CancelToken(d=>u=d)}).then(d=>{var f;s(h=>[...new Set([...h,...d.data.map(g=>g.title)])]),l(!(((f=d.data.at(-1))==null?void 0:f.id)===5e3||d.data.length===0)),n(!1)}).catch(d=>{Ce.isCancel(d)||o(!0)}),()=>u()},[e]),{loading:t,error:r,items:i,hasMore:a}}function c$(){const[e,t]=p.useState(1),{items:n,hasMore:r,loading:o,error:i}=l$(e),s=p.useRef(),a=p.useCallback(l=>{o||(s.current&&s.current.disconnect(),s.current=new IntersectionObserver(u=>{u[0].isIntersecting&&r&&t(d=>d+1)}),l&&s.current.observe(l))},[o,r]);return c.jsxs(c.Fragment,{children:[n==null?void 0:n.map((l,u)=>n.length===u+1?c.jsx("div",{className:`${Lu["book-title"]}`,ref:a,children:l},l):c.jsx("div",{className:`${Lu["book-title"]}`,children:l},l)),o&&c.jsx("div",{className:Lu.loader}),c.jsx("div",{children:i&&"Error"})]})}const u$="_result_1y6k8_1",d$={result:u$},Ja=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),f$=e=>c.jsxs("table",{className:d$.result,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Year"}),c.jsx("th",{children:"Total Savings"}),c.jsx("th",{children:"Interest (Year)"}),c.jsx("th",{children:"Total Interest"}),c.jsx("th",{children:"Invested Capital"})]})}),c.jsx("tbody",{children:e.data.map(t=>c.jsxs("tr",{children:[c.jsx("td",{children:t.year}),c.jsx("td",{children:Ja.format(t.savingsEndOfYear)}),c.jsx("td",{children:Ja.format(t.yearlyInterest)}),c.jsx("td",{children:Ja.format(t.savingsEndOfYear-e.inInvest-t.yearlyContribution*t.year)}),c.jsx("td",{children:Ja.format(parseInt(e.inInvest)+t.yearlyContribution*t.year)})]},t.year))})]}),p$="_form_1schc_1",h$="_actions_1schc_63",m$="_button_1schc_75",g$="_buttonAlt_1schc_93",zo={form:p$,"input-group":"_input-group_1schc_17",actions:h$,button:m$,buttonAlt:g$},ag={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},v$=e=>{const[t,n]=p.useState(ag),r=s=>{s.preventDefault(),e.onCalculate(t)},o=()=>{n(ag),e.onCalculate(null)},i=(s,a)=>{n(l=>({...l,[s]:a}))};return c.jsxs("form",{onSubmit:r,className:zo.form,children:[c.jsxs("div",{className:zo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),c.jsx("input",{onChange:s=>i("current-savings",s.target.value),value:t["current-savings"],type:"number",id:"current-savings"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),c.jsx("input",{onChange:s=>i("yearly-contribution",s.target.value),value:t["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),c.jsxs("div",{className:zo["input-group"],children:[c.jsxs("p",{children:[c.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),c.jsx("input",{onChange:s=>i("expected-return",s.target.value),value:t["expected-return"],type:"number",id:"expected-return"})]}),c.jsxs("p",{children:[c.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),c.jsx("input",{onChange:s=>i("duration",s.target.value),value:t.duration,type:"number",id:"duration"})]})]}),c.jsxs("p",{className:zo.actions,children:[c.jsx("button",{onClick:o,type:"reset",className:zo.buttonAlt,children:"Reset"}),c.jsx("button",{type:"submit",className:zo.button,children:"Calculate"})]})]})},y$="_main_kxpla_1",x$={main:y$};function w$(){const[e,t]=p.useState(null),n=o=>{t(o)},r=[];if(e){let o=+e["current-savings"];const i=+e["yearly-contribution"],s=+e["expected-return"]/100,a=+e.duration;for(let l=0;l{const[e,t]=p.useState("");return p.useEffect(()=>{const r=localStorage.getItem("theme");r&&t(r)},[]),p.useEffect(()=>{localStorage.setItem("theme",e)},[e]),{theme:e,toggleTheme:()=>{t(e==="dark-theme"?"light-theme":"dark-theme")}}};function C$(){const{theme:e,toggleTheme:t}=k$();return c.jsxs("main",{className:`${Hu.main} ${e==="dark-theme"?Hu.darkTheme:Hu.lightTheme}`,children:[c.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),c.jsx("button",{onClick:t,children:"Toggle Theme"})]})}const E$="_layout_1dsxo_1",j$="_button_1dsxo_14",$$="_grid_1dsxo_18",T$="_tile_1dsxo_23",R$="_frontface_1dsxo_27",N$="_backface_1dsxo_28",kr={layout:E$,button:j$,grid:$$,tile:T$,frontface:R$,backface:N$};function P$({tile:e,onTileClick:t,idx:n}){const r=p.useRef(null),o=p.useRef(null);return p.useEffect(()=>{r.current&&o.current&&(e.isOpen?(r.current.style.transform="rotateY(180deg)",o.current.style.transform="rotateY(0deg)"):(r.current.style.transform="rotateY(0deg)",o.current.style.transform="rotateY(180deg)"))},[e.isOpen]),c.jsxs("div",{className:kr.tile,onClick:()=>{t(n)},children:[c.jsx("div",{className:kr.frontface+" "+kr.tile,ref:r}),c.jsx("div",{className:kr.backface+" "+kr.tile,ref:o,children:e.symbol})]})}function O$({size:e,tiles:t,onTileClick:n}){return c.jsx("div",{className:kr.grid,style:{gridTemplateRows:`repeat(${e}, min(${80/e}vmin, 6rem))`,gridTemplateColumns:`repeat(${e}, min(${80/e}vmin, 6rem))`,gap:`${10/e}vmin`},children:t.map((r,o)=>c.jsx(P$,{tile:r,onTileClick:n,idx:o},o))})}const lg=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],A$=(e=8,t=!1)=>{const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{const n=A$(e,t),r=n.concat(n);return D$(r)},us=4,Ko=2,cg=e=>M$(e*e/Ko,!0).map(t=>({symbol:t,isOpen:!1}));function I$(){const[e,t]=p.useState(()=>cg(us)),[n,r]=p.useState([]),o=p.useRef(),i=p.useRef(0),s=p.useRef(0),a=p.useRef(!1),l=()=>{o.current=void 0,i.current=0,s.current=0,a.current=!0,t(f=>f.map(h=>({symbol:h.symbol,isOpen:!1}))),setTimeout(()=>{t(cg(us)),a.current=!1},500)},u=()=>{if(n.length{const m=[...g];return m[f]={symbol:g[f].symbol,isOpen:!1},m[h]={symbol:g[h].symbol,isOpen:!1},r(n.slice(Ko)),m})},d=f=>{e[f].isOpen||a.current||(i.current++,r([...n,f]),t(h=>{const g=[...h];return g[f]={...g[f],isOpen:!0},g}))};return p.useEffect(()=>{n.length===Ko&&(e[n[0]].symbol===e[n[1]].symbol?(r([]),s.current+=Ko):o.current=window.setTimeout(()=>{u()},3e3)),n.length===Ko+1&&(window.clearTimeout(o.current),u())},[e]),c.jsxs("div",{className:kr.layout,children:[c.jsx(O$,{size:us,tiles:e,onTileClick:d}),c.jsx("div",{children:c.jsx("button",{className:kr.button,onClick:l,children:"Reset"})}),c.jsxs("output",{children:[c.jsxs("p",{children:["Attempts : ",i.current]}),c.jsx("p",{children:s.current===us*us&&"Congratulations"})]})]})}const L$="_main_h642g_1",F$="_nestedDropdown_h642g_4",z$="_dropdownMain_h642g_12",B$="_dropdownItems_h642g_19",U$="_arrow_h642g_52",H$="_dropdown_h642g_12",W$="_show_h642g_76",V$="_dropdownSubItems_h642g_80",Dr={main:L$,nestedDropdown:F$,dropdownMain:z$,dropdownItems:B$,arrow:U$,dropdown:H$,show:W$,dropdownSubItems:V$},G$=({subItems:e,dropdown:t,depthLevel:n})=>{const r=n>1?Dr.dropdownSubItems:"";return c.jsx("ul",{className:`${Dr.dropdown} ${r} ${t?Dr.show:""}`,children:e.map((o,i)=>c.jsx(X1,{items:o,depthLevel:n+1},i))})},X1=({items:e,depthLevel:t})=>{const[n,r]=p.useState(!1);let o=p.useRef();p.useEffect(()=>{const a=l=>{n&&o.current&&!o.current.contains(l.target)&&r(!1)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}},[n]);const i=()=>{window.innerWidth>960&&r(!0)},s=()=>{window.innerWidth>960&&r(!1)};return c.jsx("li",{className:Dr.dropdownItems,onMouseEnter:i,onMouseLeave:s,children:e.subItems?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button","aria-expanded":n?"true":"false",onClick:()=>r(a=>!a),children:[e.title,t>0?c.jsx("span",{children:" »"}):c.jsx("span",{className:Dr.arrow})]}),c.jsx(G$,{depthLevel:t+1,subItems:e.subItems,dropdown:n})]}):c.jsx("a",{href:"/#",children:e.title})})},K$=[{title:"Software Development",subItems:[{title:"Web design"},{title:"Web development",subItems:[{title:"Frontend",subItems:[{title:"Angular"},{title:"ReactJS"},{title:"VueJS"}]},{title:"Backend",subItems:[{title:"NodeJS"},{title:"PHP"},{title:"JAVA",subItems:[{title:"Spring"},{title:"Hibernate"}]}]}]}]}],q$=()=>c.jsx("div",{className:Dr.main,children:c.jsx("div",{className:Dr.nestedDropdown,children:c.jsxs("ul",{className:Dr.dropdownMain,children:[" ",K$.map((e,t)=>c.jsx(X1,{items:e,depthLevel:0},t))," "]})})}),ug=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],Y$="_pagination_1mnjc_1",Q$={pagination:Y$},J$=({currentPage:e,totalPages:t,onPageChange:n})=>c.jsxs("div",{className:Q$.pagination,children:[c.jsx("button",{onClick:()=>n(e-1),disabled:e===1,children:"Previous"}),c.jsxs("span",{children:["Page ",e," of ",t]}),c.jsx("button",{onClick:()=>n(e+1),disabled:e===t,children:"Next"})]}),X$="_container_for_table_1pb6f_1",Z$="_table_1pb6f_5",eT="_thead_1pb6f_10",tT="_tbody_1pb6f_19",Xa={container_for_table:X$,table:Z$,thead:eT,tbody:tT},nT=({data:e,currentPage:t,totalPages:n,onPageChange:r})=>c.jsxs("div",{className:Xa.container_for_table,children:[c.jsx(J$,{currentPage:t,totalPages:n,onPageChange:r}),c.jsxs("table",{className:Xa.table,children:[c.jsx("thead",{className:Xa.thead,children:c.jsxs("tr",{children:[c.jsx("th",{children:"#"}),c.jsx("th",{children:"Food"}),c.jsx("th",{children:"Price"})]})}),c.jsx("tbody",{className:Xa.tbody,children:e.map((o,i)=>c.jsxs("tr",{children:[c.jsx("td",{children:o.id}),c.jsx("td",{children:o.name}),c.jsxs("td",{children:[o.price,"$"]})]},i))})]})]}),rT="_pagination_container_13fvi_1",oT="_title_13fvi_10",iT={pagination_container:rT,title:oT},sT=()=>{const[t,n]=p.useState(1),r=a=>{n(a)},o=(t-1)*10,i=o+10,s=ug.slice(o,i);return c.jsx("div",{className:iT.pagination_container,children:c.jsx(nT,{data:s,currentPage:t,totalPages:Math.ceil(ug.length/10),onPageChange:r})})},aT={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},lT="_App_6bcv0_1",cT="_main_section_6bcv0_10",uT="_main_header_6bcv0_15",dT="_password_form_6bcv0_22",fT="_second_section_6bcv0_28",pT="_inputText_6bcv0_38",hT="_fifth_section_6bcv0_39",mT="_btn_6bcv0_46",gT="_fourth_section_6bcv0_47",vT="_third_section_6bcv0_72",yT="_sixth_section_6bcv0_91",xT="_second_header_6bcv0_97",ft={App:lT,main_section:cT,main_header:uT,password_form:dT,second_section:fT,inputText:pT,fifth_section:hT,btn:mT,fourth_section:gT,third_section:vT,sixth_section:yT,second_header:xT,"password-table":"_password-table_6bcv0_105"};function Z1({passwordLength:e,setPasswordLength:t,isChecked:n,handleChange:r}){return c.jsxs("form",{className:ft.password_form,children:[c.jsxs("div",{children:["password length: ",e]}),c.jsx("div",{children:c.jsx("input",{type:"range",min:"6",max:"30",value:e,onChange:o=>t(o.target.value)})}),c.jsx("div",{children:"Include Lowercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedLowerCha,onChange:r("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),c.jsx("div",{children:"Include Uppercase character:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedUpperCha,onChange:r("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),c.jsx("div",{children:"Include Number:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedNumber,onChange:r("isCheckedNumber")}),"Number (e.g. 12345)"]})}),c.jsx("div",{children:"Include Symbols:"}),c.jsx("div",{children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:n.isCheckedSymbols,onChange:r("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}Z1.propTypes;function ex({generatedPassword:e,handleCopyText:t,showTextNotification:n,notificationMessage:r}){return c.jsxs("div",{className:ft.second_section,children:[c.jsx("label",{children:"Your generated password: "}),c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"Your generated password will appear here",value:e,readOnly:!0}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:o=>{t(o),n("copied2")},children:"copy"}),r==="copied2"&&c.jsx("span",{children:r.slice(0,6)})]})]})}ex.propTypes;function tx({isChecked:e,passwordLength:t,randomPassword:n,PasswordToRemember:r,ALPHABET_WORDS:o,passwordGenerate:i,handleCopyText:s,showTextNotification:a,notificationMessage:l}){return c.jsxs("div",{className:ft.fourth_section,children:[c.jsx("button",{className:ft.btn,title:"generate password",onClick:i({...e},t,n,r,o),children:"generate password"}),c.jsx("button",{className:ft.btn,title:"copy password",onClick:u=>{s(u),a("copied1")},children:"copy"}),l==="copied1"&&c.jsx("span",{children:l.slice(0,6)})]})}tx.propTypes;function nx({saveNameAndPass:e}){return c.jsxs("table",{className:ft["password-table"],children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name of password"}),c.jsx("th",{children:"Password"})]})}),c.jsx("tbody",{children:e.map((t,n)=>c.jsxs("tr",{children:[c.jsx("td",{children:t.name}),c.jsx("td",{children:t.pass})]},n))})]})}nx.propTypes;function rx({generatedPassword:e,handleSavePasswordAndName:t,saveNameAndPass:n,setLocalStorage:r,checkPasswordNameExit:o,showTextNotification:i,notificationMessage:s}){const[a,l]=p.useState(!1),[u,d]=p.useState("");return c.jsxs("div",{className:ft.fifth_section,children:[c.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),c.jsx("input",{id:"checkToSave",type:"checkbox",checked:a,onChange:()=>l(!a),disabled:e==""}),a&&c.jsxs("div",{children:[c.jsx("input",{className:ft.inputText,type:"text",placeholder:"name your password",value:u,onChange:f=>d(f.target.value)}),c.jsx("button",{className:ft.btn,title:"save password",onClick:t(u,e,n,r,o,i),children:"save"}),s==="cannot save without name!"&&c.jsx("span",{children:s})||s==="name already taken!"&&c.jsx("span",{children:s})]})]})}rx.propTypes;function wT(){const[e,t]=p.useState(""),[n,r]=p.useState("There is no password to remember! Please generate one"),[o,i]=p.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[s,a]=p.useState(6),[l,u]=p.useState([]),[d,f]=p.useState("");p.useEffect(()=>{const E=g("PASS");E&&u(E)},[]);const h=(E,j)=>{localStorage.setItem(E,JSON.stringify(j))},g=E=>{const j=localStorage.getItem(E);if(j!==null)return JSON.parse(j)},m=(E,j)=>E.filter(P=>P.name===j),x=(E,j,P,N,D,L)=>()=>{const W=D(P,E);if(E.length!==0){if(W.length>0){L("name already taken!");return}u(H=>{const J=[...H,{name:E,pass:j}];return N("PASS",J),J})}else{L("cannot save without name!");return}},w=E=>j=>{i(P=>({...P,[E]:j.target.checked}))},v={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const E=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],j=Math.floor(Math.random()*E.length);return E[j]}},y=E=>{const j=E.split("");for(let P=j.length-1;P>0;P--){const N=Math.floor(Math.random()*P+1);[j[P],j[N]]=[j[N],j[P]]}return j.join("")},b=(E,j)=>{const P=E.split("");let N="";P.map(D=>{j[D]?N+=` ${j[D]}`:N+=` ${D}`}),r(N.trim())},C=(E,j,P,N,D)=>()=>{let L="";const{isCheckedLowerCha:W,isCheckedUpperCha:H,isCheckedNumber:J,isCheckedSymbols:q}=E,Y=W+H+J+q,I=[{lower:W},{upper:H},{number:J},{symbolCha:q}].filter(V=>Object.values(V)[0]===!0);if(Y===0)return"";for(let V=0;V{const re=Object.keys(X)[0];L+=P[re]()});L=y(L).slice(0,j),t(L),N(L,D)},k=E=>{E.preventDefault(),e!==""&&navigator.clipboard.writeText(e)},_=E=>{f(E),setTimeout(()=>{f("")},1e3)};return c.jsxs("div",{className:ft.App,children:[c.jsxs("div",{className:ft.main_section,children:[c.jsx(Z1,{handleChange:w,isChecked:o,passwordLength:s,setPasswordLength:a}),c.jsx(ex,{generatedPassword:e,handleCopyText:k,notificationMessage:d,showTextNotification:_}),c.jsxs("div",{className:ft.third_section,children:[c.jsx("label",{children:"Password remember shortcut: "}),c.jsx("p",{children:n})]}),c.jsx(tx,{ALPHABET_WORDS:aT,PasswordToRemember:b,handleCopyText:k,isChecked:o,notificationMessage:d,passwordGenerate:C,passwordLength:s,randomPassword:v,showTextNotification:_}),c.jsx(rx,{checkPasswordNameExit:m,generatedPassword:e,handleSavePasswordAndName:x,notificationMessage:d,saveNameAndPass:l,setLocalStorage:h,showTextNotification:_})]}),c.jsxs("div",{className:ft.sixth_section,children:[c.jsx("h2",{className:ft.second_header,children:"All your saved password"}),c.jsx(nx,{saveNameAndPass:l})]})]})}const bT="_main_3eouk_1",_T="_indicators_3eouk_6",ST="_active_3eouk_14",kT="_progressContainer_3eouk_17",CT="_progressBar_3eouk_25",hr={main:bT,indicators:_T,active:ST,progressContainer:kT,progressBar:CT},ET=()=>{const[e,t]=p.useState(""),n=/\d/,r=/[A-Z]/,o=/[a-z]/,i=/[^A-Za-z0-9]/,s=h=>h>8?"Strong":h>5?"Medium":"Weak",a=h=>{let g=0;return h.length>3&&(g=Math.min(6,Math.floor(h.length/3)),g+=+n.test(h)+ +r.test(h)+ +o.test(h)+ +i.test(h)),g},l=h=>{const g=h.target.value;t(g)},u=a(e),d=s(u),f={lc:o.test(e),uc:r.test(e),num:n.test(e),sym:i.test(e)};return[e,d,u,f,l]},jT=()=>{const[e,t,n,r,o]=ET();return c.jsxs("div",{className:hr.main,children:[c.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:e,onChange:o}),c.jsxs("div",{className:hr.indicators,children:[c.jsx("span",{className:r.lc?hr.active:"",children:"Lowercase"}),c.jsx("span",{className:r.uc?hr.active:"",children:"Uppercase"}),c.jsx("span",{className:r.num?hr.active:"",children:"Number"}),c.jsx("span",{className:r.sym?hr.active:"",children:"Symbols"})]}),c.jsx("div",{className:hr.progressContainer,children:c.jsx("div",{className:hr.progressBar,style:{width:`${n*10}%`,backgroundColor:n>5?n>8?"green":"orange":"red"}})}),c.jsxs("p",{children:["Password has ",c.jsx("strong",{children:e.length})," chars"]}),c.jsxs("p",{children:["Your password is ",c.jsx("strong",{children:t})]})]})},$T="_App_omdzp_1",TT="_controls_omdzp_26",RT="_slidecontainer_omdzp_56",oa={App:$T,"bg-progress":"_bg-progress_omdzp_9","fg-progress":"_fg-progress_omdzp_18",controls:TT,slidecontainer:RT},NT=({startProgress:e,pauseProgress:t,stopProgress:n,handleSliderChange:r,speed:o})=>c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oa.controls,children:[c.jsx("button",{onClick:e,children:"Start"}),c.jsx("button",{onClick:t,children:"Pause"}),c.jsx("button",{onClick:n,children:"Reset"})]}),c.jsxs("div",{className:oa.slidecontainer,children:[c.jsx("input",{type:"range",min:o.min,max:o.max,defaultValue:o.min,className:"slider",id:"myRange",onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"myRange",children:c.jsxs("small",{children:["Speed: ",o.value," "]})})})]})]}),PT=10*1e3,ox=1e3,Wu=PT/ox,OT=()=>{const[e,t]=p.useState(0),[n,r]=p.useState({max:10,min:1,value:1,label:"speed"}),o=p.useRef(null),i=()=>{clearInterval(o.current),e>=Wu&&t(0),o.current=setInterval(()=>{t(d=>d>=Wu?(clearInterval(o),d):d+1)},ox/n.value)};p.useEffect(()=>{i()},[n.value]);const s=()=>{clearInterval(o.current)},a=()=>{s(),t(0)},l=d=>{r(f=>({...f,value:d.target.value}))},u=()=>e/Wu*100;return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:oa["bg-progress"],children:c.jsx("div",{className:oa["fg-progress"],style:{transform:`translateX(${-100+u()}%)`}})}),c.jsx(NT,{startProgress:i,stopProgress:a,pauseProgress:s,speed:n,handleSliderChange:l})]})},AT=()=>c.jsx("div",{className:oa.App,children:c.jsx(OT,{})}),DT="_stack_u1sn7_1",MT="_btn_root_u1sn7_25",IT="_stackElement_u1sn7_62",Za={stack:DT,"slide-in":"_slide-in_u1sn7_1",btn_root:MT,stackElement:IT},LT=()=>{const[e,t]=p.useState([]),[n,r]=p.useState(""),[o,i]=p.useState(""),s=h=>{r(h.target.value)},a=()=>{if(n==""){i("Enter a value");return}if(e.length===10){i("Stack is Full");return}t([...e,n]),i(`${n} is pushed into the Stack`),r("")},l=()=>{if(!e.length){i("Stack is empty");return}t(e.slice(0,-1)),i(`${e[e.length-1]} is popped from the Stack `)},u=()=>{if(!e.length)i("Stack is empty");else{const h=e[e.length-1];i(`Last element is ${h}`)}},d=()=>{e.length===0?i("Stack is empty"):i("Stack is not empty")},f=()=>{e.length===10?i("Stack is Full"):i("Stack is not full")};return c.jsx("div",{className:Za.container,children:c.jsxs("div",{className:Za.stack,children:[c.jsx("input",{type:"text",placeholder:"Enter a value",value:n,onChange:s,required:!0}),c.jsxs("div",{className:Za.btn_root,children:[c.jsx("button",{onClick:a,children:"Push"}),c.jsx("button",{onClick:l,children:"Pop"}),c.jsx("button",{onClick:u,children:"Peek"}),c.jsx("button",{onClick:d,children:"IsEmpty"}),c.jsx("button",{onClick:f,children:"IsFull"})]}),c.jsx("hr",{}),c.jsx("h3",{children:o}),e.slice().reverse().map((h,g)=>c.jsx("div",{className:Za.stackElement,children:c.jsx("p",{children:h})},g))]})})},FT="_App_33mq4_1",zT="_star_33mq4_6",ix={App:FT,star:zT},BT=({marked:e,starId:t})=>c.jsx("span",{"data-star-id":t,className:ix.star,role:"button",children:e?"★":"☆"}),UT=({value:e,total:t})=>{const[n,r]=p.useState(e||0),[o,i]=p.useState(0),s=p.useMemo(()=>Array.from({length:t}),[t]),a=d=>{var f;i(((f=d.target.dataset)==null?void 0:f.starId)??0)},l=()=>{i(0)},u=d=>{var f;r(((f=d.target.dataset)==null?void 0:f.starId)??n)};return c.jsx("div",{onMouseLeave:l,onMouseOver:a,onClick:u,children:s.map((d,f)=>c.jsx(BT,{marked:(o||n)>f,starId:f+1},`star_${f+1}`))})};function HT(){return c.jsx("div",{className:ix.App,children:c.jsx(UT,{value:2,total:5})})}const WT="_watch_g783o_1",Ln={"watch-container":"_watch-container_g783o_1",watch:WT,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},VT=()=>{let e=p.useRef(0);const t=p.useRef(Date.now()),[n,r]=p.useState(["00","00","00"]),[o,i]=p.useState(!1),s=()=>{i(!0),e.current=requestAnimationFrame(u)},a=()=>{i(!1),cancelAnimationFrame(e.current)},l=()=>{i(!1),r(["00","00","00"]),cancelAnimationFrame(e.current),t.current=Date.now()},u=()=>{const d=Date.now()-t.current,f=Math.floor(d/1e3),h=Math.floor(f/60),g=(d%1e3).toString().padStart(3,"0"),m=(f%60).toString().padStart(2,"0"),x=h.toString().padStart(2,"0");r([x,m,g]),e.current=requestAnimationFrame(u)};return p.useEffect(()=>cancelAnimationFrame(e.current),[]),c.jsx("div",{className:Ln.test,children:c.jsx("div",{className:Ln["watch-container"],children:c.jsxs("div",{className:Ln.watch,children:[c.jsx("div",{className:Ln["watch-heading"],children:"Stopwatch"}),c.jsx("div",{className:Ln["watch-timer"],children:`${n[0]}:${n[1]}:${n[2]}`}),c.jsxs("div",{className:Ln["watch-btn__container"],children:[c.jsx("button",{disabled:o,onClick:s,className:Ln["watch-btn"],children:"Start"}),c.jsx("button",{onClick:a,disabled:!o,className:Ln["watch-btn"],children:"Stop"}),c.jsx("button",{onClick:l,disabled:!o,className:Ln["watch-btn"],children:"Reset"})]})]})})})},GT="_App_1hyma_1",KT="_textarea_1hyma_6",qT="_buttonBox_1hyma_12",YT="_output_1hyma_22",el={App:GT,textarea:KT,buttonBox:qT,output:YT};function QT(){const[e,t]=p.useState("hello world"),[n,r]=p.useState(e),o=h=>{t(h.target.value)},i=()=>{r(e.toLowerCase())},s=()=>{r(e.toUpperCase())},a=()=>{const g=e.split(" ").map((m,x)=>x===0?m.toLowerCase():m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},l=()=>{const g=e.split(" ").map(m=>m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join("");r(g)},u=()=>{const h=e.replace(/\s+/g,"_").toLowerCase();r(h)},d=()=>{const h=e.replace(/\s+/g,"-").toLowerCase();r(h)},f=()=>{r(e.trim())};return c.jsx("main",{children:c.jsxs("div",{className:el.App,children:[c.jsx("textarea",{rows:4,className:el.textarea,placeholder:"Enter a sentence...",value:e,onChange:o}),c.jsxs("div",{className:el.buttonBox,children:[c.jsx("button",{onClick:i,children:"Lower Case"}),c.jsx("button",{onClick:s,children:"Upper Case"}),c.jsx("button",{onClick:a,children:"Camel Case"}),c.jsx("button",{onClick:l,children:"Pascal Case"}),c.jsx("button",{onClick:u,children:"Snake Case"}),c.jsx("button",{onClick:d,children:"Kebab Case"}),c.jsx("button",{onClick:f,children:"Trim"})]}),c.jsxs("div",{className:el.output,children:[c.jsx("strong",{children:"Transformed String:"}),c.jsx("p",{children:n})]})]})})}const JT="_color_1kotf_1",XT="_form_1kotf_9",ZT="_containers_1kotf_17",eR="_container_1kotf_17",tR="_containerColor_1kotf_33",nR="_numberInput_1kotf_42",rR="_error_1kotf_53",mr={color:JT,form:XT,containers:ZT,container:eR,containerColor:tR,numberInput:nR,error:rR},oR=9,iR=Array.from(new Array(oR),(e,t)=>t),sR=()=>{const[e,t]=p.useState([]),n=p.useRef(),[r,o]=p.useState(null),i=a=>{a.preventDefault();const l=parseInt(n.current.value);if(isNaN(l)||l>9||l<1){o("Please enter a valid number between 1 to 9");return}o(null),e.indexOf(l)===-1&&t(u=>[...u,l])},s=a=>{a.preventDefault(),t([]),o(null),n.current.value=""};return c.jsxs("div",{className:mr.color,children:[c.jsxs("form",{className:mr.form,children:[c.jsx("input",{type:"number",className:mr.numberInput,ref:n}),r&&c.jsx("p",{className:mr.error,children:r}),c.jsxs("div",{className:"buttons",children:[c.jsx("input",{type:"submit",value:"Color Me",onClick:i}),c.jsx("button",{className:mr.clearBtn,onClick:s,children:"Clear Me"})]})]}),c.jsx("div",{className:mr.containers,children:iR.map((a,l)=>c.jsx("div",{className:e.indexOf(a+1)!==-1?mr.containerColor:mr.container,children:a+1},l))})]})};function aR(){const[e,t]=p.useState(""),n=o=>[...o].filter(i=>Number.isInteger(+i)&&i!==" ").join(""),r=o=>{const i=n(o.target.value);t(i.length>3?"+("+i.substring(0,3)+") - "+i.substring(3):i)};return c.jsxs("div",{className:"container text-center",children:[c.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:e,onChange:r}),c.jsx("div",{children:c.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const lR="_container_12wso_1",cR="_card_12wso_7",uR="_cardTitle_12wso_15",dR="_formGroup_12wso_19",fR="_inputGroup_12wso_23",pR="_input_12wso_23",hR="_select_12wso_33",mR="_convertButton_12wso_38",gR="_outputGroup_12wso_42",Fn={container:lR,card:cR,cardTitle:uR,formGroup:dR,inputGroup:fR,input:pR,select:hR,convertButton:mR,outputGroup:gR};function vR(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState("celsius"),[s,a]=p.useState("fahrenheit"),l=()=>{const u=parseFloat(e);if(isNaN(u)){r("Invalid input");return}if(o===s){r(u);return}if(o==="celsius"&&s==="fahrenheit"){let d=u*9/5+32;d%1!==0&&(d=d.toFixed(2)),r(d)}else if(o==="fahrenheit"&&s==="celsius"){let d=(u-32)*5/9;d%1!==0&&(d=d.toFixed(2)),r(d)}};return c.jsx("div",{className:Fn.container,children:c.jsxs("div",{className:Fn.card,children:[c.jsxs("div",{className:Fn.formGroup,children:[c.jsx("label",{children:"Enter Temperature"}),c.jsxs("div",{className:Fn.inputGroup,children:[c.jsx("input",{type:"number",className:`form-control ${Fn.input}`,placeholder:"Enter temperature",value:e,onChange:u=>t(u.target.value)}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:o,onChange:u=>i(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),c.jsx("button",{className:`btn btn-primary btn-block ${Fn.convertButton}`,onClick:l,children:"Convert"}),c.jsxs("div",{className:Fn.outputGroup,children:[c.jsxs("p",{children:["Converted Temperature: ",c.jsx("strong",{children:n})]}),c.jsxs("select",{className:`form-control ${Fn.select}`,value:s,onChange:u=>a(u.target.value),children:[c.jsx("option",{value:"celsius",children:"Celsius"}),c.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const Ot=3,yR=[...Array.from(new Array(Ot),(e,t)=>Array.from(new Array(Ot),(n,r)=>t*Ot+r)),...Array.from(new Array(Ot),(e,t)=>Array.from(new Array(Ot),(n,r)=>r*Ot+t)),Array.from(new Array(Ot),(e,t)=>t*Ot+t),Array.from(new Array(Ot),(e,t)=>t*Ot+Ot-t-1)],dg=Array(Ot*Ot).fill(null),xR="_container_1rajw_1",qo={container:xR,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},wR=()=>{const[e,t]=p.useState(dg),[n,r]=p.useState(!1),[o,i]=p.useState(null),[[s,a,l],u]=p.useState([0,0,0]);p.useEffect(()=>{d()},[e]),p.useEffect(()=>{o==="X"?u([s+1,a,l]):o==="O"?u([s,a+1,l]):o===null&&e.filter(g=>g===null).length===0&&u([s,a,l+1])},[o,e]);const d=()=>{r(!n);for(const g of yR){const[m,x,w]=g;if(e[m]!==null&&e[m]===e[x]&&e[m]===e[w]){i(e[m]===1?"X":"O");return}}},f=g=>{e[g]===null&&o===null&&t(m=>{const x=[...m];return x[g]=n?1:0,x})},h=()=>{t(dg),i(null)};return c.jsx("div",{className:qo.container,children:c.jsxs("div",{children:["Status: ",o?`Winner ${o}`:"Playing",c.jsxs("div",{className:qo.container,children:[c.jsxs("div",{className:qo["mx-5"],children:[c.jsx("div",{children:"X"}),c.jsxs("div",{children:[s," Wins"]})]}),c.jsxs("div",{className:qo["mx-5"],children:[c.jsx("div",{children:"O"}),c.jsxs("div",{children:[a," Wins"]})]}),c.jsxs("div",{children:[c.jsx("div",{children:"="}),c.jsxs("div",{children:[l," Draws"]})]})]}),c.jsx("div",{className:qo["grid-container"],children:e.map((g,m)=>c.jsx(bR,{iTh:m,value:g,onEntry:f},m))}),c.jsx("button",{onClick:h,children:"Rematch"})]})})},bR=({value:e,iTh:t,onEntry:n})=>{p.useEffect(()=>{console.log({value:e})},[]);const r=()=>{n(t)};return c.jsx("div",{className:qo["grid-item"],onClick:r,children:c.jsx("div",{style:{opacity:e!==null?1:0,transition:"all .1s ease-in-out"},children:e!==null?e===1?"X":"O":"X"})})};var no=(e=>(e.NORMAL="normal",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e))(no||{}),lc=(e=>(e.TOP="Top",e.BOTTOM="Bottom",e))(lc||{}),cc=(e=>(e.LEFT="Left",e.RIGHT="Right",e))(cc||{});const _R=()=>{const[e,t]=p.useState(cc.LEFT),[n,r]=p.useState(lc.TOP),[o,i]=p.useState(no.SUCCESS),[s,a]=p.useState("This is a toast message!"),[l,u]=p.useState(5),[d,f]=p.useState([]),h=[];return p.useEffect(()=>()=>{h.forEach(x=>clearTimeout(x))},[]),{horizontalPosition:e,verticalPosition:n,type:o,message:s,duration:l,toastMessages:d,setHorizontalPosition:t,setVerticalPosition:r,setType:i,setMessage:a,setDuration:u,showToast:()=>{const x={id:Date.now(),message:s,type:o};f(v=>[...v,x]);const w=setTimeout(()=>{f(v=>v.filter(y=>y.id!==x.id))},l*1e3);h.push(w)},removeToast:x=>{f(w=>w.filter(v=>v.id!==x))}}},SR="_main_gsrvy_20",kR="_message_gsrvy_1",CR="_toastContainer_gsrvy_49",ER="_toast_gsrvy_49",jR="_success_gsrvy_65",$R="_error_gsrvy_70",TR="_warning_gsrvy_75",RR="_info_gsrvy_80",NR="_remove_gsrvy_103",PR="_tcLeftTop_gsrvy_108",OR="_tcLeftBottom_gsrvy_113",AR="_tcRightTop_gsrvy_118",DR="_tcRightBottom_gsrvy_123",yi={main:SR,message:kR,toastContainer:CR,toast:ER,success:jR,error:$R,warning:TR,info:RR,remove:NR,tcLeftTop:PR,tcLeftBottom:OR,tcRightTop:AR,tcRightBottom:DR,"appear-from-left":"_appear-from-left_gsrvy_1","fade-out-left":"_fade-out-left_gsrvy_132","fade-out-to-left":"_fade-out-to-left_gsrvy_1","appear-from-right":"_appear-from-right_gsrvy_1","fade-out-right":"_fade-out-right_gsrvy_156"},MR=({id:e,message:t,type:n,removeToast:r})=>c.jsxs("div",{className:`${yi.toast} ${yi[n]}`,children:[c.jsx("span",{className:"toast-message",children:t}),c.jsx("button",{className:yi.remove,onClick:()=>r(e),children:"✕"})]}),IR=()=>{const{horizontalPosition:e,verticalPosition:t,type:n,message:r,duration:o,toastMessages:i,setHorizontalPosition:s,setVerticalPosition:a,setType:l,setMessage:u,setDuration:d,showToast:f,removeToast:h}=_R(),g=`tc${e}${t}`;return c.jsxs("div",{className:yi.main,children:[c.jsxs("form",{children:[c.jsxs("select",{name:"position",id:"horizontal-position",value:e,onChange:m=>s(m.target.value),children:[c.jsx("option",{value:cc.LEFT,children:"Left"}),c.jsx("option",{value:cc.RIGHT,children:"Right"})]}),c.jsxs("select",{name:"position",id:"vertical-position",value:t,onChange:m=>a(m.target.value),children:[c.jsx("option",{value:lc.TOP,children:"Top"}),c.jsx("option",{value:lc.BOTTOM,children:"Bottom"})]}),c.jsxs("select",{name:"type",id:"type",value:n,onChange:m=>l(m.target.value),children:[c.jsx("option",{value:no.NORMAL,children:"Normal"}),c.jsx("option",{value:no.SUCCESS,children:"Success"}),c.jsx("option",{value:no.ERROR,children:"Error"}),c.jsx("option",{value:no.WARNING,children:"Warning"}),c.jsx("option",{value:no.INFO,children:"Info"})]}),c.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:r,onChange:m=>u(m.target.value)}),c.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",c.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:o,onChange:m=>d(Number(m.target.value))})]}),c.jsx("button",{type:"button",className:"btn btn-primary",onClick:f,children:"Show Toast"})]}),i.length>0&&c.jsx("div",{className:`${yi.toastContainer} ${yi[g]}`,children:i.map(m=>c.jsx(MR,{...m,removeToast:h},m.id))})]})},LR="_App_1k5ja_1",FR="_item_1k5ja_27",zR="_editBtn_1k5ja_33",BR="_deleteBtn_1k5ja_36",UR="_completed_1k5ja_40",HR="_hint_1k5ja_55",li={App:LR,item:FR,editBtn:zR,deleteBtn:BR,completed:UR,hint:HR};function WR({items:e,handleEditClick:t,handleDeleteClick:n,handleCompleteClick:r}){return e.map(o=>c.jsxs("li",{className:li.item,title:"Double click to mark completed",onDoubleClick:()=>r(o.id),children:[c.jsx("span",{className:o.isDone?li.completed:"",children:o.value}),c.jsxs("div",{children:[c.jsx("button",{className:li.editBtn,onClick:()=>t(o),children:"Edit"}),c.jsx("button",{className:li.deleteBtn,onClick:()=>n(o.id),children:"Delete"})]})]},o.id))}const VR=()=>{const[e,t]=p.useState(""),[n,r]=p.useState([]),[o,i]=p.useState(null),s=S.useRef(!0);p.useEffect(()=>{const m=localStorage.getItem("items");m&&r(JSON.parse(m))},[]),p.useEffect(()=>{s.current?s.current=!1:localStorage.setItem("items",JSON.stringify(n))},[n]);const a=m=>{r(x=>[...x,{value:m,id:new Date().getTime(),isDone:!1}])},l=m=>{r(x=>x.map(w=>w.id===o.id?{...w,value:m}:w)),i(null)},u=m=>{r(x=>x.map(w=>w.id===m?{...w,isDone:!w.isDone}:w))},d=({id:m,value:x})=>{t(x),i({id:m,value:x})},f=m=>{(o==null?void 0:o.id)===m&&(t(""),i(null)),r(x=>x.filter(w=>w.id!==m))},h=m=>{m.preventDefault(),o?l(e):a(e),t("")},g=()=>{t(""),i(null)};return c.jsxs("div",{className:li.App,children:[c.jsxs("form",{onSubmit:h,children:[c.jsx("input",{type:"text",value:e,placeholder:"Enter your todo",onChange:m=>t(m.target.value)}),c.jsx("button",{type:"submit",disabled:!e,children:o?"Update":"Submit"}),c.jsx("button",{type:"reset",onClick:g,disabled:!(e||o),children:"Cancel"})]}),c.jsx("div",{className:li.hint,children:c.jsx("i",{children:"Double click on todo to toggle completion status"})}),c.jsx(WR,{items:n,handleEditClick:d,handleDeleteClick:f,handleCompleteClick:u})]})},GR="_container_10vfd_1",KR="_clockWrapper_10vfd_14",qR="_timeSection_10vfd_22",YR="_timeAdjustment_10vfd_39",QR="_timeAdjustmentButton_10vfd_45",JR="_timerDisplay_10vfd_51",XR="_buttonGroup_10vfd_69",ZR="_lastMinute_10vfd_87",_n={container:GR,clockWrapper:KR,timeSection:qR,timeAdjustment:YR,timeAdjustmentButton:QR,timerDisplay:JR,buttonGroup:XR,lastMinute:ZR};var sx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fg=S.createContext&&S.createContext(sx),Mr=function(){return Mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nx(),1e3))}function m(){clearInterval(d),r(!1)}function x(){u(b=>{const[C,k]=b;return k===0?C===0?e==="session"?(t("break"),[o.time-1,59]):(t("session"),[s.time-1,59]):[C-1,59]:[C,k-1]})}function w(){n||(t("session"),i({time:5,range:[2,25]}),a({time:25,range:[5,60]}),u([25,0]))}function v(b){return b>9?b:`0${b}`}function y(b){const{target:C,direction:k}=b.currentTarget.dataset,_=k==="up"?1:-1;function E(j,P){const{time:N,range:D}=P,L=N+_;if(L>=D[0]&&L<=D[1]){const W=C===j?L:N;return u([W,0]),{time:W,range:D}}return P}C==="break"?i(j=>E("break",j)):a(j=>E("session",j))}return c.jsx("div",{className:_n.container,children:c.jsxs("div",{className:_n.clockWrapper,children:[c.jsxs("div",{className:_n.timeSection,children:[c.jsxs("div",{className:_n.timeAdjustment,children:[c.jsx("p",{children:o.time}),c.jsxs("div",{className:_n.timeAdjustmentButton,children:[c.jsx("button",{onClick:y,"data-target":"break","data-direction":"up",children:c.jsx(hg,{})}),c.jsx("button",{onClick:y,"data-target":"break","data-direction":"down",children:c.jsx(pg,{})})]})]}),c.jsxs("div",{className:_n.timeAdjustment,children:[c.jsx("p",{children:s.time}),c.jsxs("div",{className:_n.timeAdjustmentButton,children:[c.jsx("button",{onClick:y,"data-target":"session","data-direction":"up",children:c.jsx(hg,{})}),c.jsx("button",{onClick:y,"data-target":"session","data-direction":"down",children:c.jsx(pg,{})})]})]})]}),c.jsxs("div",{className:_n.timerDisplay,children:[c.jsx("p",{children:e}),c.jsxs("p",{className:h?_n.lastMinute:"",children:[c.jsx("span",{children:v(l[0])}),":",c.jsx("span",{children:v(l[1])})]}),c.jsxs("div",{className:_n.buttonGroup,children:[n?c.jsx("button",{onClick:m,children:c.jsx(nN,{size:32})}):c.jsx("button",{onClick:g,children:c.jsx(rN,{size:32})}),c.jsx("button",{onClick:w,children:c.jsx(oN,{size:32})})]})]})]})})}const sN="_container_1twmk_2",aN="_controls_1twmk_23",lN="_highlight_1twmk_44",cN="_highlighted_1twmk_61",mg={container:sN,controls:aN,"char-limit":"_char-limit_1twmk_1",highlight:lN,"highlight-button":"_highlight-button_1twmk_54",highlighted:cN},uN=({text:e,wordCount:t,charCount:n,paraCount:r})=>{localStorage.setItem("text",e),localStorage.setItem("words",t),localStorage.setItem("chars",n),localStorage.setItem("paras",r)};function dN(){const[e,t]=p.useState(""),[n,r]=p.useState(0),[o,i]=p.useState(0),[s,a]=p.useState(0),l=p.useRef(!0);p.useEffect(()=>{f()},[]),p.useEffect(()=>{if(l.current){l.current=!1;return}uN({text:e,wordCount:n,charCount:o,paraCount:s})},[e,n,o,s]);const u=()=>{const h=e.split(/\s+/).filter(x=>x!==""),g=e.length,m=e.split(` +`).filter(x=>x.trim()!=="").length;r(h.length),i(g),a(m)},d=()=>{t(""),r(0),i(0),a(0)},f=()=>{t(localStorage.getItem("text")||""),r(localStorage.getItem("words")||0),i(localStorage.getItem("chars")||0),a(localStorage.getItem("paras")||0)};return c.jsxs("div",{className:mg.container,children:[c.jsx("textarea",{id:"text-input",placeholder:"Enter your text here...",value:e,onChange:h=>t(h.target.value)}),c.jsxs("div",{className:mg.controls,children:[c.jsxs("div",{id:"word-count",children:["Words: ",n]}),c.jsxs("div",{id:"char-count",children:["Chars: ",o]}),c.jsxs("div",{id:"para-count",children:["Paras: ",s]}),c.jsx("button",{id:"count-button",onClick:u,children:"Count"}),c.jsx("button",{id:"clear-button",onClick:d,children:"Clear"})]})]})}const fN="_sport_1g70d_1",pN="_container_1g70d_7",hN="_header_1g70d_15",mN="_question_1g70d_20",gN="_answers_1g70d_26",vN="_button_1g70d_33",yN="_buttonStartOver_1g70d_48",gr={sport:fN,container:pN,header:hN,question:mN,answers:gN,button:vN,buttonStartOver:yN},ds=["Do you enjoy team sports?","Do you like running or endurance activities?","Are you interested in individual sports?","Do you prefer indoor or outdoor sports?","Are you a fan of water sports?","Do you like racket sports?"],xN=()=>{const[e,t]=p.useState(0),[n,r]=p.useState(Array(ds.length).fill(null)),o=s=>{const a=[...n];if(a[e]=s,es[0]==="Yes"&&s[1]==="Yes"?"Soccer":s[2]==="Yes"&&s[3]==="Indoor"?"Table Tennis":s[4]==="Yes"?"Swimming":s[5]==="Yes"?"Tennis":"Running";return c.jsx("div",{className:gr.sport,children:c.jsxs("div",{className:gr.container,children:[c.jsx("h1",{className:gr.header,children:"Discover Your Natural Sport"}),c.jsx("div",{className:gr.question,children:eo("Yes"),children:"Yes"}),c.jsx("button",{className:gr.button,onClick:()=>o("No"),children:"No"})]}):c.jsx("button",{onClick:()=>t(0),className:gr.buttonStartOver,children:"Start Over"})})]})})},wN="_dialog_b8qgm_1",bN="_backdrop_b8qgm_9",_N="_form_b8qgm_41",ff={dialog:wN,backdrop:bN,"dialog-content":"_dialog-content_b8qgm_37",form:_N},SN=({data:e,onClose:t,isModalOpen:n,hasCloseIcon:r=!0,closeOnOutsideClick:o=!0,closeOnEscape:i=!0,hasBackdrop:s=!0})=>{const a=p.useRef(null);return p.useEffect(()=>{var l,u;n?(l=a.current)==null||l.showModal():(u=a.current)==null||u.close()},[n]),c.jsx(c.Fragment,{children:ko.createPortal(c.jsx("dialog",{className:`${ff.dialog} ${s?ff.backdrop:""}`,onClick:l=>{o&&l.currentTarget===l.target&&t()},ref:a,onClose:t,onKeyDown:l=>{!i&&l.key==="Escape"&&l.preventDefault()},children:c.jsxs("section",{children:[c.jsxs("header",{children:[c.jsx("h2",{children:e.title}),r&&c.jsx("button",{onClick:t,children:"✕"})]}),c.jsx("div",{className:"body",children:e.content}),c.jsx("footer",{children:c.jsx("button",{autoFocus:!0,onClick:()=>{var l;(l=a.current)==null||l.close()},children:"Close"})})]})}),document.body)})},kN={title:"Modal Heading",content:c.jsxs("div",{style:{padding:"1rem 0"},children:["This is modal content. You can put any content here. This has a groovy backdrop!",c.jsx("br",{}),"You can also close this modal by clicking outside of it or pressing the escape key"]})},CN=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!0),[o,i]=p.useState(!0),[s,a]=p.useState(!0),[l,u]=p.useState(!0);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ff.form,children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"closeOnOutsideClick",children:"Close dialog on outside click"}),c.jsx("input",{type:"checkbox",id:"closeOnOutsideClick",checked:n,onChange:()=>r(!n)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"closeOnEscape",children:"Close dialog on escape"}),c.jsx("input",{type:"checkbox",id:"closeOnEscape",checked:o,onChange:()=>i(!o)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"hasCloseButton",children:"Show close icon"}),c.jsx("input",{type:"checkbox",id:"hasCloseButton",checked:s,onChange:()=>a(!s)})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"hasBackdrop",children:"Show backdrop"}),c.jsx("input",{type:"checkbox",id:"hasBackdrop",checked:l,onChange:()=>u(!l)})]}),c.jsx("button",{onClick:()=>t(!0),children:"Open Modal"})]}),c.jsx(SN,{data:kN,isModalOpen:e,onClose:()=>t(!1),hasCloseIcon:s,closeOnEscape:o,closeOnOutsideClick:n,hasBackdrop:l})]})},EN="_main_5yt35_2",jN="_container_5yt35_10",$N="_iconContainer_5yt35_33",TN="_icon_5yt35_33",RN="_inputField_5yt35_54",NN="_toast_5yt35_68",PN="_loader_5yt35_83",ON="_spin_5yt35_1",AN="_loaderContainer_5yt35_92",DN="_topSection_5yt35_97",MN="_select_5yt35_103",IN="_copyText_5yt35_112",LN="_hidden_5yt35_119",Ht={main:EN,container:jN,iconContainer:$N,icon:TN,inputField:RN,toast:NN,loader:PN,spin:ON,loaderContainer:AN,topSection:DN,select:MN,copyText:IN,hidden:LN},Vu="eb3aa13df1b14cc7bc614fc2d7f894f41b09d68a",FN=()=>{const[e,t]=p.useState([]),[n,r]=p.useState([]),[o,i]=p.useState(""),[s,a]=p.useState(""),[l,u]=p.useState([]);p.useEffect(()=>{d(),f(),window.scrollTo(0,0)},[]);const d=()=>{Ce.get(`https://emoji-api.com/emojis?access_key=${Vu}`).then(w=>{t(w.data),r(w.data)})},f=()=>{Ce.get(`https://emoji-api.com/categories?access_key=${Vu}`).then(w=>{u(w.data)})},h=w=>{const[v,...y]=w.split(" ");return y.join(" ")},g=w=>{let v=w.target.value;i(v);let y=e.filter(b=>b.unicodeName.toLowerCase().includes(v.trim().toLowerCase()));r(y)},m=w=>{i(""),r([]),t([]),w.target.value=="all"?d():Ce.get(`https://emoji-api.com/categories/${w.target.value}?access_key=${Vu}`).then(v=>{t(v.data),r(v.data)})},x=w=>{let v=document.createRange();v.selectNode(document.getElementById(w)),window.getSelection().removeAllRanges(),window.getSelection().addRange(v),document.execCommand("copy"),window.getSelection().removeAllRanges(),a("Copied Successfully!"),setTimeout(()=>{a("")},1500)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Ht.topSection,children:[c.jsx("div",{children:c.jsxs("select",{className:Ht.select,onChange:m,children:[c.jsx("option",{children:"all"}),l.map(w=>c.jsx("option",{value:w.slug,children:w.slug.replace("-"," ")},w.slug))]})}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Search",onChange:g,value:o,className:Ht.inputField})}),c.jsx("div",{className:`${Ht.copyText} ${n==null||(n==null?void 0:n.length)===0?Ht.hidden:""}`,children:"Click on an Emoji to Copy"})]}),c.jsxs("div",{className:Ht.container,children:[(n==null?void 0:n.length)==0&&o.trim()==""&&c.jsx("div",{className:Ht.loaderContainer,children:c.jsx("div",{className:Ht.loader})}),n==null?void 0:n.map((w,v)=>c.jsx("span",{className:Ht.iconContainer,onClick:()=>x(w.unicodeName+"_"+v),children:c.jsx("span",{className:Ht.icon,title:h(w.unicodeName),id:w.unicodeName+"_"+v,children:w.character})},v))]}),s&&c.jsx("div",{className:Ht.toast,children:s})]})};function zN(){return c.jsx("div",{className:Ht.main,children:c.jsx(FN,{})})}const BN=[{name:"SQL",year:1970,creator:"Donald D. Chamberlin, Raymond F. Boyce",usecase:"Database management"},{name:"C",year:1972,creator:"Dennis Ritchie",usecase:"System programming, embedded systems"},{name:"C++",year:1983,creator:"Bjarne Stroustrup",usecase:"Game development, system software"},{name:"Perl",year:1987,creator:"Larry Wall",usecase:"Scripting, web development, automation"},{name:"HTML",year:1991,creator:"Tim Berners-Lee",usecase:"Web content structure"},{name:"Python",year:1991,creator:"Guido van Rossum",usecase:"Web development, data analysis, AI"},{name:"Java",year:1995,creator:"James Gosling",usecase:"Enterprise software, Android apps"},{name:"JavaScript",year:1995,creator:"Brendan Eich",usecase:"Web development, browser scripting"},{name:"PHP",year:1995,creator:"Rasmus Lerdorf",usecase:"Web development, server-side scripting"},{name:"CSS",year:1996,creator:"Håkon Wium Lie, Bert Bos",usecase:"Web page styling"},{name:"C#",year:2e3,creator:"Microsoft",usecase:"Windows apps, game development"},{name:"Scala",year:2003,creator:"Martin Odersky",usecase:"Web applications, data analysis"},{name:"Golang",year:2009,creator:"Robert Griesemer, Rob Pike, Ken Thompson",usecase:"Cloud computing, microservices"},{name:"Rust",year:2010,creator:"Graydon Hoare",usecase:"Systems programming, safety"},{name:"Kotlin",year:2011,creator:"JetBrains",usecase:"Android app development, server-side"},{name:"Swift",year:2014,creator:"Apple Inc.",usecase:"iOS, macOS app development"}],UN="_container_5ie15_1",HN="_languageList_5ie15_6",WN="_languageCard_5ie15_12",VN="_languageName_5ie15_28",GN="_info_5ie15_34",KN="_heading_5ie15_40",ro={container:UN,languageList:HN,languageCard:WN,languageName:VN,info:GN,heading:KN};function qN({name:e,year:t,creator:n,usecase:r}){return c.jsxs("div",{className:ro.languageCard,children:[c.jsx("h2",{className:ro.languageName,children:e}),c.jsxs("p",{className:ro.info,children:["Year of Start: ",t]}),c.jsxs("p",{className:ro.info,children:["Creator: ",n]}),c.jsxs("p",{className:ro.info,children:["Use Case: ",r]})]})}function YN(){return c.jsx("div",{className:ro.container,children:c.jsx("div",{className:ro.languageList,children:BN.map((e,t)=>c.jsx(qN,{...e},t))})})}const QN="_otpFields_1d1qn_1",JN="_otpinput_1d1qn_15",gg={otpFields:QN,otpinput:JN},XN=()=>{let[e,t]=p.useState(Array(6).fill("")),n=p.useRef([]);const r=(s,a)=>{const u=s.target.value.replace(/\D/g,"").slice(0,1);let d=[...e];d[a]=u,a{if(s.key==="Backspace"){s.preventDefault();let l=[...e];l[a]="",t(l),a>0&&n.current[a-1].focus()}else s.key==="ArrowRight"&&a0&&n.current[a-1].focus()},i=s=>{s.preventDefault();const a=s.clipboardData.getData("text");if(/^[0-9]*$/.test(a)){const l=[...e];for(let u=0;uc.jsx("input",{onKeyDown:l=>o(l,a),onPaste:i,ref:l=>n.current[a]=l,onChange:l=>r(l,a),value:e[a],type:"text"},a))})})},Bo={red:{id:1,duration:5e3,next:"green"},yellow:{id:2,duration:2e3,next:"red"},green:{id:3,duration:3e3,next:"yellow"}},ZN="_AppContainer_wtrmq_1",eP="_trafficWrapper_wtrmq_9",tP="_light_wtrmq_21",nP="_countdownTime_wtrmq_28",Uo={AppContainer:ZN,trafficWrapper:eP,light:tP,countdownTime:nP},rP=()=>{const[e,t]=p.useState("red"),[n,r]=p.useState(Bo[e].duration);return p.useEffect(()=>{let o;return n<=0?(clearInterval(o),t(Bo[e].next),r(Number(Bo[Bo[e].next].duration))):o=setInterval(()=>{r(i=>i-1e3)},1e3),()=>clearInterval(o)},[n,e]),c.jsxs("div",{className:Uo.AppContainer,children:[c.jsx("div",{className:Uo.trafficWrapper,children:Object.keys(Bo).map(o=>c.jsx("div",{className:Uo.light,style:{background:e===o?o:""}},Bo[o].id))}),c.jsx("div",{className:Uo.countdownContainer,children:c.jsxs("span",{className:`${Uo.countdownTime} ${Uo.active}`,children:[Math.floor(n/1e3)," Seconds"]})})]})},As=e=>e>9?e:`0${e}`,oP="_button_g66ua_1",iP="_quiz_container_footer_g66ua_1",sP="_app_g66ua_22",aP="_quiz_container_g66ua_1",lP="_quiz_container_header_g66ua_42",cP="_question_g66ua_53",uP="_question_choices_g66ua_65",dP="_question_choices_choice_g66ua_73",fP="_selected_g66ua_83",pP="_quiz_result_g66ua_87",Un={button:oP,quiz_container_footer:iP,app:sP,quiz_container:aP,quiz_container_header:lP,question:cP,question_choices:uP,question_choices_choice:dP,selected:fP,quiz_result:pP},hP=e=>{const{totalQuestions:t,result:n}=e;return c.jsx("div",{className:Un.quiz_result,children:c.jsxs("div",{children:[c.jsx("h3",{children:"Result"}),c.jsx("table",{children:c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{children:"Total Questions"}),c.jsx("td",{children:As(t)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Total Score"}),c.jsx("td",{children:As(n.score)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Correct Answers"}),c.jsx("td",{children:As(n.correctAnswers)})]}),c.jsxs("tr",{children:[c.jsx("td",{children:"Wrong Answers"}),c.jsx("td",{children:n.wrongAnswers})]})]})})]})})},mP={topic:"React",level:"Intermediate",totalQuestions:10,perQuestionScore:5,questions:[{question:"What is the purpose of state in React?",choices:["To store information that may change over time","To declare static values for components","To define global variables","None of the above"],type:"MCQs",correctAnswer:"To store information that may change over time"},{question:"What are hooks in React?",choices:["Functions that let you use state and other React features without writing a class","Functional components","Connections between components","None of the above"],type:"MCQs",correctAnswer:"Functions that let you use state and other React features without writing a class"},{question:"What is the purpose of key prop in React lists?",choices:["To uniquely identify a child component","To style elements within a list","To define the position of a component","None of the above"],type:"MCQs",correctAnswer:"To uniquely identify a child component"},{question:"What is the role of componentDidMount() in React?",choices:["It runs after the component output has been rendered to the DOM","It handles updates before rendering","It initializes state variables","None of the above"],type:"MCQs",correctAnswer:"It runs after the component output has been rendered to the DOM"},{question:"How can you pass data between components in React?",choices:["Using props","Directly modifying state","Using only functional components","None of the above"],type:"MCQs",correctAnswer:"Using props"},{question:"What is the purpose of React.Fragment?",choices:["To create an independent component","To wrap multiple elements without adding an extra node to the DOM","To handle routing in React applications","None of the above"],type:"MCQs",correctAnswer:"To wrap multiple elements without adding an extra node to the DOM"},{question:"What is the significance of shouldComponentUpdate() in React?",choices:["It determines if a component should re-render","It defines the initial state of a component","It helps to update the DOM directly","None of the above"],type:"MCQs",correctAnswer:"It determines if a component should re-render"},{question:"What is the main purpose of Redux in React applications?",choices:["To manage the state of the entire application","To define the structure of components","To handle routing between components","None of the above"],type:"MCQs",correctAnswer:"To manage the state of the entire application"},{question:"How does React handle events?",choices:["Using event handlers like onClick","By modifying the DOM directly","Through asynchronous processes only","None of the above"],type:"MCQs",correctAnswer:"Using event handlers like onClick"},{question:"What are the benefits of using PropTypes in React?",choices:["To enforce the type of props passed to components","To declare global variables","To initialize state variables","None of the above"],type:"MCQs",correctAnswer:"To enforce the type of props passed to components"}]},gP=()=>{const[e,t]=p.useState(0),[n,r]=p.useState(!1),[o,i]=p.useState(!1),[s,a]=p.useState(null),[l,u]=p.useState({score:0,correctAnswers:0,wrongAnswers:0}),{questions:d,topic:f}=mP,{question:h,choices:g,correctAnswer:m}=d[e],x=()=>{a(null),u(v=>n?{...v,score:v.score+5,correctAnswers:v.correctAnswers+1}:{...v,wrongAnswers:v.wrongAnswers+1}),e!==d.length-1?t(v=>v+1):(t(0),i(!0))},w=(v,y)=>{a(y),r(v===m)};return c.jsx("section",{className:Un.quiz_container,children:o?c.jsx(hP,{totalQuestions:d.length,result:l}):c.jsxs("div",{children:[c.jsxs("div",{className:Un.quiz_container_header,children:[c.jsxs("p",{children:["TOPIC: ",f]}),c.jsxs("div",{children:[c.jsx("span",{children:As(e+1)}),c.jsxs("span",{children:["/",As(d.length)]})]})]}),c.jsxs("div",{className:Un.question,children:[c.jsx("h2",{children:h}),c.jsx("ul",{className:Un.question_choices,children:g.map((v,y)=>c.jsx("li",{onClick:()=>w(v,y),className:`${Un.question_choices_choice} + ${s===y?Un.selected:""}`,children:v},v))})]}),c.jsx("div",{className:Un.quiz_container_footer,children:c.jsx("button",{onClick:x,disabled:s===null,children:e===d.length-1?"Finish":"Next"})})]})})},vP=()=>c.jsx("main",{className:Un.app,children:c.jsx(gP,{})}),yP="_instruction_1e2bh_1",xP="_board_1e2bh_5",wP="_box_1e2bh_19",bP="_selected_1e2bh_35",_P="_clicked_1e2bh_39",xi={instruction:yP,board:xP,box:wP,selected:bP,clicked:_P};function SP({row:e,col:t,selectedTile:n,onClick:r}){let o=xi.box;return n&&((e-t===n.row-n.col||e+t===n.row+n.col)&&(o+=" "+xi.selected),e===n.row&&t===n.col&&(o+=" "+xi.clicked)),c.jsx("button",{className:o,"data-row":e,"data-col":t,onClick:r},t)}const vg=8;function kP(){const[e,t]=p.useState(null);function n(r){const o=r.target;t({row:Number(o.dataset.row),col:Number(o.dataset.col)})}return c.jsxs(c.Fragment,{children:[c.jsx("p",{className:xi.instruction,children:"Click on any cell to color diagonally"}),c.jsx("div",{className:xi.board,children:Array.from({length:vg},(r,o)=>c.jsx("div",{className:xi.row,children:Array.from({length:vg},(i,s)=>c.jsx(SP,{row:o,col:s,selectedTile:e,onClick:n},s))},o))})]})}const CP="_container_1wkcr_1",EP="_calculator__body_1wkcr_7",jP="_calculator__screen_1wkcr_13",$P="_calculator__screen__previous_1wkcr_26",TP="_calculator__buttons_1wkcr_32",RP="_ac_1wkcr_1",NP="_del_1wkcr_1",PP="_total_1wkcr_1",OP="_calculator__button_1wkcr_32",AP="_calculator__operator_1wkcr_76",DP="_exponent_1wkcr_1",MP="_square_1wkcr_1",me={container:CP,calculator__body:EP,calculator__screen:jP,calculator__screen__previous:$P,calculator__buttons:TP,ac:RP,del:NP,total:PP,calculator__button:OP,calculator__operator:AP,exponent:DP,square:MP},IP=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(""),[l,u]=p.useState(!1);let d="",f="";const h=k=>{!o&&l===!0?(t(k),u(!1)):o||e.toString().includes(".")&&k==="."||(d=e+k,t(d)),o&&(n.includes(".")&&k==="."||(d=n+k,r(d)))},g=k=>{i(e?k:"")},m=()=>{let k=e.toString(),_=n.toString();if(o==="^2")k.includes(".")&&(f=k.split(".")[1].length*2);else if(o==="*"&&k.includes(".")&&_.includes(".")){let j=k.split(".")[1].length,N=_.split(".")[1].length;f=j+N}else if(o==="*"&&k.includes(".")&&!_.includes("."))f=k.split(".")[1].length;else if(o==="*"&&!k.includes(".")&&_.includes("."))f=_.split(".")[1].length;else if(k.includes(".")&&_.includes(".")){let j=k.split(".")[1].length,N=_.split(".")[1].length;j>=N?f=j:f=N}else k.includes(".")?f=k.split(".")[1].length:_.includes(".")&&(f=_.split(".")[1].length)},x=k=>{a(k),t(k),r(""),i(""),u(!0)},w=()=>{if(o==="/"){const k=parseFloat(e*100)/parseFloat(n*100);x(k)}else if(o==="-"){let k=(parseFloat(e)-parseFloat(n))*100;m(),k=(k/100).toFixed(f),x(k)}else if(o==="*"){let k=e*n;m(),k=k.toFixed(f),x(k)}else if(o==="+"){let k=parseFloat(e)+parseFloat(n);m(),k=k.toFixed(f),x(k)}else if(o==="^"){const k=Math.pow(e,n);x(k)}else if(o==="^2"){let k=Math.pow(e,2);m(),k=k.toFixed(f),x(k)}else if(o==="√"){const k=Math.sqrt(e);x(k)}},v=()=>{t(""),i(""),r(""),a("")},y=()=>{if(o){const k=n.slice(0,n.length-1);r(k)}else{const k=e.toString(),_=k.slice(0,k.length-1);t(_)}},b=()=>{if(n){const k=n*-1;r(k)}else if(e){const k=e*-1;t(k)}},C=()=>n&&o==="/"||o==="-"||o==="+"||o==="*"||o==="^"?`${e} ${o} ${n}`:`${e||"-"} ${o}`;return c.jsx("div",{class:me.container,children:c.jsxs("div",{className:me.calculator__body,children:[c.jsxs("div",{className:me.calculator__screen,children:[c.jsx("div",{className:me.calculator__screen__previous,children:C()}),c.jsx("div",{className:me.calculator__screen__first,children:s})]}),c.jsxs("div",{className:me.calculator__buttons,children:[c.jsx("button",{onClick:()=>v(),id:"ac",className:me.calculator__operator,children:"Clear"}),c.jsx("button",{onClick:()=>y(),id:"del",className:me.calculator__operator,children:"Del"}),c.jsx("button",{onClick:()=>b(),className:me.calculator__operator,id:"negative",children:"+-"}),c.jsxs("button",{onClick:()=>g("^2"),className:me.calculator__operator,id:"square",children:["x",c.jsx("sup",{children:"2"})]}),c.jsx("button",{onClick:()=>h("1"),className:me.calculator__button,children:"1"}),c.jsx("button",{onClick:()=>h("2"),className:me.calculator__button,children:"2"}),c.jsx("button",{onClick:()=>h("3"),className:me.calculator__button,children:"3"}),c.jsx("button",{onClick:()=>g("+"),className:me.calculator__operator,children:"+"}),c.jsx("button",{onClick:()=>h("4"),className:me.calculator__button,children:"4"}),c.jsx("button",{onClick:()=>h("5"),className:me.calculator__button,children:"5"}),c.jsx("button",{onClick:()=>h("6"),className:me.calculator__button,children:"6"}),c.jsx("button",{onClick:()=>g("/"),className:me.calculator__operator,children:"÷"}),c.jsx("button",{onClick:()=>h("7"),className:me.calculator__button,children:"7"}),c.jsx("button",{onClick:()=>h("8"),className:me.calculator__button,children:"8"}),c.jsx("button",{onClick:()=>h("9"),className:me.calculator__button,children:"9"}),c.jsx("button",{onClick:()=>g("-"),className:me.calculator__operator,children:"–"}),c.jsx("button",{onClick:()=>h("0"),className:me.calculator__button,children:"0"}),c.jsxs("button",{onClick:()=>g("^"),className:me.calculator__operator,id:"exponent",children:["x",c.jsx("sup",{children:"y"})]}),c.jsx("button",{onClick:()=>g("√"),className:me.calculator__operator,id:"radical",children:"√"}),c.jsx("button",{onClick:()=>g("*"),className:me.calculator__operator,children:"*"}),c.jsx("button",{onClick:()=>h("."),className:me.calculator__button,children:"."}),c.jsx("button",{onClick:()=>w(),id:"total",className:me.calculator__operator,children:"="})]})]})})},LP=4,Gu=1e3,FP=200,zP=25,BP="_controls_1s50h_6",UP="_tanks_1s50h_17",HP="_tank_1s50h_17",WP="_range_1s50h_64",En={controls:BP,"text-center":"_text-center_1s50h_13",tanks:UP,"add-btn":"_add-btn_1s50h_23","empty-btn":"_empty-btn_1s50h_32",tank:HP,"tank-level":"_tank-level_1s50h_51","form-item":"_form-item_1s50h_57",range:WP};function VP({onDown:e,onUp:t,onEmpty:n,tankLevel:r,capacity:o}){return c.jsxs("div",{children:[c.jsxs("div",{className:En.controls,children:[c.jsx("button",{onMouseDown:e,onMouseUp:t,onTouchStart:e,onTouchEnd:t,className:En["add-btn"],children:"Add"}),c.jsx("button",{onClick:n,className:En["empty-btn"],children:"Empty"})]}),c.jsx("div",{className:En.tank,children:c.jsx("div",{className:En["tank-level"],style:{height:`${100*r/o}%`}})}),c.jsxs("p",{className:En["text-center"],children:[r," lts"]})]})}function GP({tank:e,setTanks:t,index:n}){const[r,o]=p.useState(0),i=p.useRef(0),s=p.useRef(0);s.current=e.level;function a(d){d.preventDefault(),t(f=>{const h=[...f];return h[n].isReady=!1,h}),i.current=setInterval(()=>{o(f=>{let h=f+FP;return s.current+h>=Gu&&(h=Gu-s.current),h})},1e3)}function l(){i.current&&clearInterval(i.current),o(0),t(d=>{const f=[...d.map(h=>({...h}))];return f[n].level+=r,f[n].isReady=!0,f})}function u(){t(d=>{const f=[...d.map(h=>({...h}))];return f[n].level=0,f})}return c.jsx(VP,{onDown:a,onUp:l,onEmpty:u,tankLevel:(s.current+r).toFixed(2),capacity:Gu})}function yg(e){return Array.from({length:e},()=>({level:0,isReady:!0}))}function KP(e){const n=e.filter(a=>a.isReady).reduce((a,l)=>a+l.level,0)/e.length,r=e.filter(a=>a.isReady&&a.levela.level-n<1e-4)||r.length===0)return null;let o=0;const i=e.map(a=>{const l={...a};if(a.isReady&&a.level>n){const u=Math.min(a.level-n,zP);l.level=a.level-u,o+=u}return l}),s=o/r.length;return i.forEach(a=>{a.isReady&&a.levelsetTimeout(t,e))}function YP({tanksCount:e,setTanksCount:t}){return c.jsx("section",{className:En.range,children:c.jsxs("div",{className:En["form-item"],children:[c.jsx("label",{htmlFor:"waterTanks",children:"Water Tanks: "}),c.jsx("input",{type:"range",min:"4",max:"8",value:e,onChange:n=>t(n.target.value),className:"slider",id:"waterTanks"})]})})}function QP(){const[e,t]=p.useState(LP),[n,r]=p.useState(()=>yg(e));return p.useEffect(()=>{const o=yg(e);r(o)},[e]),p.useEffect(()=>{let o=!1;async function i(){if(await qP(1e3),o)return;const s=KP(n);s&&r(s)}return i(),()=>{o=!0}},[n]),c.jsxs("div",{className:En["text-center"],children:[c.jsx("p",{children:'Press and Hold "Add" to start filling the tank'}),c.jsx("main",{className:En.tanks,children:n.map((o,i)=>c.jsx(GP,{tank:o,setTanks:r,index:i},i))}),c.jsx(YP,{tanksCount:e,setTanksCount:t})]})}const JP="_TransferListContainer_e51he_1",XP="_inputWrapper_e51he_29",ia={TransferListContainer:JP,"list-container":"_list-container_e51he_8","buttons-container":"_buttons-container_e51he_15",inputWrapper:XP,"disabled-button":"_disabled-button_e51he_33"},ZP=({leftClickHandler:e,rightClickHandler:t,leftClickHandlerAll:n,rightClickHandlerAll:r,disableLeftBtn:o,disableRightBtn:i,disableLeftBtnAll:s,disableRightBtnAll:a})=>c.jsxs("div",{className:ia["buttons-container"],children:[c.jsx("button",{onClick:n,disabled:s,children:">>"}),c.jsx("button",{onClick:e,disabled:o,children:">"}),c.jsx("button",{onClick:t,disabled:i,children:"<"}),c.jsx("button",{onClick:r,disabled:a,children:"<<"})]}),e3=[{value:"USA",id:"usa"},{value:"UAE",id:"uae"},{value:"India",id:"ind"},{value:"Australia",id:"aus"},{value:"Canada",id:"can"}],t3=({id:e,value:t,selected:n,onToggle:r})=>c.jsxs("div",{className:ia.inputWrapper,children:[c.jsx("input",{type:"checkbox",id:e,value:t,checked:n,onChange:()=>r(e)}),c.jsx("label",{htmlFor:e,children:t})]}),xg=({items:e,onToggle:t})=>c.jsx("div",{className:ia["list-container"],children:c.jsx("div",{className:ia["list-items"],children:e.map(n=>c.jsx(t3,{id:n.id,value:n.value,selected:n.selected,onToggle:t},n.id))})});function n3(){return e3.map(e=>({...e,selected:!1,direction:"left"}))}const r3=()=>{const[e,t]=p.useState(n3),n=e.filter(u=>u.direction==="left"),r=e.filter(u=>u.direction==="right"),o=n.filter(u=>u.selected),i=r.filter(u=>u.selected),s=u=>{const d=e.map(f=>f.id===u?{...f,selected:!f.selected}:f);t(d)},a=(u,d)=>{const f=e.map(h=>h.selected&&h.direction===u?{...h,selected:!1,direction:d}:h);t(f)},l=u=>{const d=e.map(f=>({...f,direction:u}));t(d)};return c.jsxs("div",{className:ia.TransferListContainer,children:[c.jsx(xg,{items:n,onToggle:s}),c.jsx(ZP,{leftClickHandler:()=>a("left","right"),rightClickHandler:()=>a("right","left"),leftClickHandlerAll:()=>l("right"),rightClickHandlerAll:()=>l("left"),disableLeftBtn:o.length===0,disableRightBtn:i.length===0,disableLeftBtnAll:n.length===0,disableRightBtnAll:r.length===0}),c.jsx(xg,{items:r,onToggle:s})]})},o3="_AppContainer_1tcc6_1",i3="_container_1tcc6_9",s3="_timeline_1tcc6_17",a3="_date_1tcc6_38",l3="_timeline_content_1tcc6_42",fs={AppContainer:o3,container:i3,timeline:s3,date:a3,timeline_content:l3},c3=[{date:"August 30, 2017",title:"Published First React Tutorial",content:"My first React tutorial was about building a simple component and understanding the basics of React."},{date:"June 3, 2020",title:"First React Live Stream",content:"In my first-ever React live stream, I shared tips and tricks while building a React application."},{date:"June 28, 2021",title:"Introduction to React Hooks",content:"Published a video exploring the power of React Hooks. Check out the code in the description."},{date:"September 15, 2021",title:"React Context API Deep Dive",content:"Delved into the React Context API and how it simplifies state management in complex React applications."},{date:"February 8, 2022",title:"React Testing Strategies",content:"Shared insights on effective testing strategies for React applications using popular testing libraries."},{date:"June 28, 2022",title:"Advanced React Patterns",content:"Explored advanced React patterns and best practices for building scalable and maintainable React applications."}],u3=()=>c.jsx(c.Fragment,{children:c.jsx("div",{className:fs.AppContainer,children:c.jsx("div",{className:fs.container,children:c.jsx("div",{className:fs.timeline,children:c.jsx("ul",{children:c3.map((e,t)=>c.jsx("li",{children:c.jsxs("div",{className:fs.timeline_content,children:[c.jsx("h3",{className:fs.date,children:e.date}),c.jsx("h1",{children:e.title}),c.jsx("p",{children:e.content})]})},t))})})})})}),d3=[["India","New Delhi"],["Indonesia","Jakarta"],["Iran","Tehran"],["Iraq","Baghdad"],["Ireland","Dublin"],["Israel","Jerusalem"],["Italy","Rome"],["Jamaica","Kingston"],["Japan","Tokyo"],["Jordan","Amman"],["Kazakhstan","Nur-Sultan"],["Kenya","Nairobi"],["Kiribati","South Tarawa"],["Kuwait","Kuwait City"],["Kyrgyzstan","Bishkek"],["Laos","Vientiane"],["Latvia","Riga"],["Lebanon","Beirut"],["Lesotho","Maseru"],["Liberia","Monrovia"],["Libya","Tripoli"],["Liechtenstein","Vaduz"],["Lithuania","Vilnius"],["Madagascar","Antananarivo"],["Malawi","Lilongwe"],["Malaysia","Kuala Lumpur"],["Maldives","Malé"],["Mali","Bamako"],["Malta","Valletta"],["Mauritania","Nouakchott"],["Mauritius","Port Louis"],["Mexico","Mexico City"]],f3=[["Basil","Thyme","Rosemary"],["Latte","Cappuccino","Espresso"],["Octopus","Dolphin","Seahorse"],["Beach","Mountain","Forest"],["Paintbrush","Canvas","Palette"],["Rock","Pop","Jazz"],["Running","Yoga","Dancing"],["Volcano","Canyon","Ocean"],["Phone","Email","Letter"],["Flood","Earthquake","Hurricane"],["Sight","Smell","Taste"],["Past","Present","Future"],["Literature","History","Biology"],["Spring","Summer","Autumn"],["Basketball","Jersey","Whistle"],["Textbook","Notebook","Pencil"],["Spoon","Fork","Knife"],["Shirt","Pants","Shoes"],["Lion","Elephant","Giraffe"],["Sunflower","Rose","Daisy"],["Cucumber","Tomato","Carrot"],["Tea","Coffee","Juice"],["Milk","Yogurt","Cheese"],["Pikachu","Charmander","Squirtle"],["Batman","Superman","Spiderman"],["Elsa","Anna","Olaf"]],p3=[["Cinnamon","Nutmeg","Ginger","Allspice"],["Guitar","Drums","Piano","Violin"],["Mercury","Venus","Earth","Mars"],["Monday","Tuesday","Friday","Sunday"],["Black","White","Grey","Navy Blue"],["Sun","Rain","Wind","Snow"],["Hand","Foot","Ear","Eye"],["Apple","Orange","Banana","Grape"],["Math","English","Science","History"],["Car","Bus","Train","Airplane"],["Phone","Laptop","Headset","Charger"],["Pen","Pencil","Eraser","Notebook"],["Scarf","Hat","Gloves","Boots"],["Ruler","Scissors","Calculator","Glue"]],h3=new Map([[2,d3],[3,f3],[4,p3]]);function m3(e,t){const n=[],r=new Set;for(let o=0;o{const t=e.length;for(let n=0;n{o.push(new Set(s))});const i=g3(r.flat());return[o,i]}function y3(e,t){const n=e.find(r=>r.has(t[0]));return n?t.every(r=>n.has(r)):!1}const x3="_grid_18i4i_1",w3="_itemBtn_18i4i_9",b3="_reset_18i4i_20",_3="_center_18i4i_26",S3="_highlight_18i4i_30",k3="_success_18i4i_34",C3="_failure_18i4i_38",qn={grid:x3,itemBtn:w3,reset:b3,center:_3,highlight:S3,success:k3,failure:C3},E3=p.forwardRef(function({items:t,cols:n,onSelection:r,status:o},i){const[s,a]=p.useState([]),l=d=>{if(o)return;let f=[];s.includes(d)?f=s.filter(h=>h!==d):f=[...s,d],a(f),r(f)};function u(){a([])}return p.useImperativeHandle(i,()=>({clearSelection:u})),c.jsx("section",{"data-status":o,className:qn.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:t.map(d=>{const f=s.includes(d),h=`${qn.itemBtn} ${f?qn.highlight:""} ${f&&o?qn[o]:""}`;return c.jsx("button",{className:h,onClick:()=>l(d),children:d},d)})})});var jl=(e=>(e.Success="success",e.Failure="failure",e))(jl||{});function j3({itemGroups:e,allItems:t,columns:n=2,groupSize:r}){const[o,i]=p.useState([]),[s,a]=p.useState(0),[l,u]=p.useState(null),d=p.useRef(null);p.useEffect(()=>{var g;i(t),a(0),u(null),(g=d.current)==null||g.clearSelection()},[t]);function f(g){if(g.length===r){a(s+1);const m=y3(e,g)?jl.Success:jl.Failure;u(m);const x=setTimeout(()=>h(g,m),1e3);return()=>clearTimeout(x)}}function h(g,m){var x;m===jl.Success&&i(o.filter(w=>!g.includes(w))),u(null),(x=d.current)==null||x.clearSelection()}return c.jsxs(c.Fragment,{children:[o.length?c.jsx(E3,{items:o,cols:n,onSelection:f,status:l,ref:d}):c.jsx("p",{className:qn.center,children:"Well done. Reset to play again!"}),c.jsxs("p",{className:qn.center,children:["Attempts: ",c.jsx("strong",{children:s})]})]})}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>$3(n,t))}function Fi(...e){return p.useCallback(lx(...e),e)}const cx=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(T3);if(i){const s=i.props.children,a=o.map(l=>l===i?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:l);return p.createElement(pf,Ge({},r,{ref:t}),p.isValidElement(s)?p.cloneElement(s,void 0,a):null)}return p.createElement(pf,Ge({},r,{ref:t}),n)});cx.displayName="Slot";const pf=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...R3(r,n.props),ref:t?lx(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});pf.displayName="SlotClone";const ux=({children:e})=>p.createElement(p.Fragment,null,e);function T3(e){return p.isValidElement(e)&&e.type===ux}function R3(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const N3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Co=N3.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?cx:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,Ge({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function P3(e,t){e&&ko.flushSync(()=>e.dispatchEvent(t))}const O3=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Np.createPortal(p.createElement(Co.div,Ge({},o,{ref:t})),r):null}),A3=O3;var wg=Object.prototype.hasOwnProperty;function sa(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&sa(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(wg.call(e,n)&&++r&&!wg.call(t,n)||!(n in t)||!sa(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function _a(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Pn=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Pn.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new Qc(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};Pn.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new D3(n,t.simple,t.async)),this};Pn.prototype._clone=function(){return new Pn(this.chain.slice(),this.nextRuleModifiers.slice())};Pn.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Pn.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new Hp(r,t,o))}}),n};Pn.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new Hp(n,t,r)}})};Pn.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){px(t,n.chain.slice(),r,o)})};function px(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){px(e,t,n,r)},function(i){r(new Hp(o,e,i))})}else n(e)}var bg=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function M3(e,t){return t===void 0&&(t=!1),{simple:function(n){return bg(n,t)||e.check(n)===void 0},async:function(n){return bg(n,t)||e.testAsync(n)}}}function $t(){return typeof Proxy<"u"?hx(new Pn):hf(new Pn)}var aa={};$t.extend=function(e){Object.assign(aa,e)};$t.clearCustomRules=function(){aa={}};function hx(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=hx(e._clone());if(r in uc)return o._applyModifier(uc[r],r);if(r in aa)return o._applyRule(aa[r],r);if(r in mf)return o._applyRule(mf[r],r)}})}function hf(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var u=hf(i._clone()),d=u._applyRule(o[s],s).apply(void 0,a);return d}}),i},n=t(mf,e),r=t(aa,n);return Object.keys(uc).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=hf(r._clone());return i._applyModifier(uc[o],o)}})}),r}var uc={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return tl(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(tl(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&tl(t).every(e)}},async:function(e){return function(t){return Promise.all(tl(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return _g(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return _g(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function _g(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function tl(e){return typeof e=="string"?e.split(""):e}var mf={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||I3;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Ho("string")},boolean:function(){return Ho("boolean")},undefined:function(){return Ho("undefined")},null:function(){return Ho("null")},array:function(){return Ho("array")},object:function(){return Ho("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return L3(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:M3};function Ho(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function I3(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function L3(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var ge="colors",vt="sizes",K="space",F3={gap:K,gridGap:K,columnGap:K,gridColumnGap:K,rowGap:K,gridRowGap:K,inset:K,insetBlock:K,insetBlockEnd:K,insetBlockStart:K,insetInline:K,insetInlineEnd:K,insetInlineStart:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockEnd:K,marginBlockStart:K,marginInline:K,marginInlineEnd:K,marginInlineStart:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockEnd:K,paddingBlockStart:K,paddingInline:K,paddingInlineEnd:K,paddingInlineStart:K,top:K,right:K,bottom:K,left:K,scrollMargin:K,scrollMarginTop:K,scrollMarginRight:K,scrollMarginBottom:K,scrollMarginLeft:K,scrollMarginX:K,scrollMarginY:K,scrollMarginBlock:K,scrollMarginBlockEnd:K,scrollMarginBlockStart:K,scrollMarginInline:K,scrollMarginInlineEnd:K,scrollMarginInlineStart:K,scrollPadding:K,scrollPaddingTop:K,scrollPaddingRight:K,scrollPaddingBottom:K,scrollPaddingLeft:K,scrollPaddingX:K,scrollPaddingY:K,scrollPaddingBlock:K,scrollPaddingBlockEnd:K,scrollPaddingBlockStart:K,scrollPaddingInline:K,scrollPaddingInlineEnd:K,scrollPaddingInlineStart:K,fontSize:"fontSizes",background:ge,backgroundColor:ge,backgroundImage:ge,borderImage:ge,border:ge,borderBlock:ge,borderBlockEnd:ge,borderBlockStart:ge,borderBottom:ge,borderBottomColor:ge,borderColor:ge,borderInline:ge,borderInlineEnd:ge,borderInlineStart:ge,borderLeft:ge,borderLeftColor:ge,borderRight:ge,borderRightColor:ge,borderTop:ge,borderTopColor:ge,caretColor:ge,color:ge,columnRuleColor:ge,fill:ge,outline:ge,outlineColor:ge,stroke:ge,textDecorationColor:ge,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:vt,minBlockSize:vt,maxBlockSize:vt,inlineSize:vt,minInlineSize:vt,maxInlineSize:vt,width:vt,minWidth:vt,maxWidth:vt,height:vt,minHeight:vt,maxHeight:vt,flexBasis:vt,gridTemplateColumns:vt,gridTemplateRows:vt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},z3=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,zi=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,z3))(t);return o in e?e[o]:e[o]=n(t,...r)}},po=Symbol.for("sxs.internal"),Wp=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Sg=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:B3}=Object.prototype,gf=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),U3=/\s+(?![^()]*\))/,Wo=e=>t=>e(...typeof t=="string"?String(t).split(U3):[t]),kg={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Wo((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Wo((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Wo((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Wo((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Wo((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Wo((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ku=/([\d.]+)([^]*)/,H3=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,W3=(e,t)=>e in V3&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${gf(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${gf(e)}:${r}fit-content`)+i):String(t),V3={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nr=e=>e?e+"-":"",mx=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?nr(t)+(a.includes("$")?"":nr(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),G3=/\s*,\s*(?![^()]*\))/,K3=Object.prototype.toString,ci=(e,t,n,r,o)=>{let i,s,a;const l=(u,d,f)=>{let h,g;const m=x=>{for(h in x){const y=h.charCodeAt(0)===64,b=y&&Array.isArray(x[h])?x[h]:[x[h]];for(g of b){const C=/[A-Z]/.test(v=h)?v:v.replace(/-[^]/g,_=>_[1].toUpperCase()),k=typeof g=="object"&&g&&g.toString===K3&&(!r.utils[C]||!d.length);if(C in r.utils&&!k){const _=r.utils[C];if(_!==s){s=_,m(_(g)),s=null;continue}}else if(C in kg){const _=kg[C];if(_!==a){a=_,m(_(g)),a=null;continue}}if(y&&(w=h.slice(1)in r.media?"@media "+r.media[h.slice(1)]:h,h=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(_,E,j,P,N,D)=>{const L=Ku.test(E),W=.0625*(L?-1:1),[H,J]=L?[P,E]:[E,P];return"("+(j[0]==="="?"":j[0]===">"===L?"max-":"min-")+H+":"+(j[0]!=="="&&j.length===1?J.replace(Ku,(q,Y,I)=>Number(Y)+W*(j===">"?1:-1)+I):J)+(N?") and ("+(N[0]===">"?"min-":"max-")+H+":"+(N.length===1?D.replace(Ku,(q,Y,I)=>Number(Y)+W*(N===">"?-1:1)+I):D):"")+")"})),k){const _=y?f.concat(h):[...f],E=y?[...d]:H3(d,h.split(G3));i!==void 0&&o(Cg(...i)),i=void 0,l(g,E,_)}else i===void 0&&(i=[[],d,f]),h=y||h.charCodeAt(0)!==36?h:`--${nr(r.prefix)}${h.slice(1).replace(/\$/g,"-")}`,g=k?g:typeof g=="number"?g&&C in q3?String(g)+"px":String(g):mx(W3(C,g??""),r.prefix,r.themeMap[C]),i[0].push(`${y?`${h} `:`${gf(h)}:`}${g}`)}}var w,v};m(u),i!==void 0&&o(Cg(...i)),i=void 0};l(e,t,n)},Cg=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,q3={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Eg=e=>String.fromCharCode(e+(e>25?39:97)),ho=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Eg(n%52)+r;return Eg(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_s=["themed","global","styled","onevar","resonevar","allvar","inline"],Y3=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Q3=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let l="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(l=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===i)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${a}`;return i.cssRules.length?`${l}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const u in a)delete a[u]}const o=Object(e).styleSheets||[];for(const a of o)if(Y3(a)){for(let l=0,u=a.cssRules;u[l];++l){const d=Object(u[l]);if(d.type!==1)continue;const f=Object(u[l+1]);if(f.type!==4)continue;++l;const{cssText:h}=d;if(!h.startsWith("--sxs"))continue;const g=h.slice(14,-3).trim().split(/\s+/),m=_s[g[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:l,cache:new Set(g)})}if(t)break}if(!t){const a=(l,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,a(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=_s.length-1;a>=0;--a){const l=_s[a];if(!s[l]){const u=_s[a+1],d=s[u]?s[u].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${a}}`,d),s[l]={group:i.cssRules[d+1],index:d,cache:new Set([a])}}J3(s[l])}};return r(),t},J3=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},ps=Symbol(),X3=zi(),jg=(e,t)=>X3(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[po]){r.type==null&&(r.type=o[po].type);for(const i of o[po].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(Z3(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),eO(e,r,t)}),Z3=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${nr(o.prefix)}c-${ho(r)}`,s=[],a=[],l=Object.create(null),u=[];for(const h in n)l[h]=String(n[h]);if(typeof e=="object"&&e)for(const h in e){d=l,f=h,B3.call(d,f)||(l[h]="undefined");const g=e[h];for(const m in g){const x={[h]:String(m)};String(m)==="undefined"&&u.push(h);const w=g[m],v=[x,w,!Sg(w)];s.push(v)}}var d,f;if(typeof t=="object"&&t)for(const h of t){let{css:g,...m}=h;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const x=[m,g,!Sg(g)];a.push(x)}return[i,r,s,a,l,u]},eO=(e,t,n)=>{const[r,o,i,s]=tO(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function h(){for(let g=0;gh.rules[g]={apply:m=>h[ps].push([g,m])}),h})(n):null,l=(a||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||nO;const{css:h,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let y=f[v];typeof y=="object"&&y?m[v]={"@initial":i[v],...y}:(y=String(y),m[v]=y!=="undefined"||s.has(v)?y:i[v])}else m[v]=i[v];const x=new Set([...o]);for(const[v,y,b,C]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),ci(y,[`.${v}`],[],e,E=>{l.styled.apply(E)}));const k=$g(b,m,e.media),_=$g(C,m,e.media,!0);for(const E of k)if(E!==void 0)for(const[j,P,N]of E){const D=`${v}-${ho(P)}-${j}`;x.add(D);const L=(N?n.rules.resonevar:n.rules.onevar).cache,W=N?l.resonevar:l.onevar;L.has(D)||(L.add(D),ci(P,[`.${D}`],[],e,H=>{W.apply(H)}))}for(const E of _)if(E!==void 0)for(const[j,P]of E){const N=`${v}-${ho(P)}-${j}`;x.add(N),n.rules.allvar.cache.has(N)||(n.rules.allvar.cache.add(N),ci(P,[`.${N}`],[],e,D=>{l.allvar.apply(D)}))}}if(typeof h=="object"&&h){const v=`${r}-i${ho(h)}-css`;x.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),ci(h,[`.${v}`],[],e,y=>{l.inline.apply(y)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&x.add(v);const w=g.className=[...x].join(" ");return{type:t.type,className:w,selector:u,props:g,toString:()=>w,deferredInjector:a}};return Wp(d,{className:r,selector:u,[po]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},tO=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const l in s){const u=s[l];(r[l]===void 0||u!=="undefined"||a.includes(u))&&(r[l]=u)}}return[t,n,r,new Set(o)]},$g=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let l,u=0,d=!1;for(l in i){const f=i[l];let h=t[l];if(h!==f){if(typeof h!="object"||!h)continue e;{let g,m,x=0;for(const w in h){if(f===String(h[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),d=!0}u+=x,g=!0}++x}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[u]=o[u]||[]).push([r?"cv":`${l}-${i[l]}`,s,d])}return o},nO={},rO=zi(),oO=(e,t)=>rO(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=ho(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}ci(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Wp(r,{toString:r})}),iO=zi(),sO=(e,t)=>iO(e,()=>n=>{const r=`${nr(e.prefix)}k-${ho(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];ci(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Wp(o,{get name(){return o()},toString:o})}),aO=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nr(this.prefix)+nr(this.scale)+this.token}toString(){return this.computedValue}},lO=zi(),cO=(e,t)=>lO(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${nr(e.prefix)}t-${ho(r)}`}`,i={},s=[];for(const l in r){i[l]={};for(const u in r[l]){const d=`--${nr(e.prefix)}${l}-${u}`,f=mx(String(r[l][u]),e.prefix,l);i[l][u]=new aO(u,f,l,e.prefix),s.push(`${d}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(l)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),uO=zi(),dO=zi(),fO=e=>{const t=(n=>{let r=!1;const o=uO(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},l=typeof i.root=="object"?i.root||null:globalThis.document||null,u=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:a,theme:u,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...F3},utils:typeof i.utils=="object"&&i.utils||{}},f=Q3(l),h={css:jg(d,f),globalCss:oO(d,f),keyframes:sO(d,f),createTheme:cO(d,f),reset(){f.reset(),h.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(h.theme=h.createTheme(u)),h});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>dO(n,()=>{const o=jg(n,r);return(...i)=>{const s=o(...i),a=s[po].type,l=S.forwardRef((u,d)=>{const f=u&&u.as||a,{props:h,deferredInjector:g}=s(u);return delete h.as,h.ref=d,g?S.createElement(S.Fragment,null,S.createElement(f,h),S.createElement(g,null)):S.createElement(f,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[po]=s[po],l}}))(t),t};function pO(e,t,n){return Math.max(t,Math.min(e,n))}const pt={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Tg(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Rg(e,t,n,r=.15){return r===0?pO(e,t,n):en?+Tg(e-n,n-t,r)+n:e}function hO(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Rg(t,i,s,r),Rg(n,a,l,o)]}function mO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gO(e){var t=mO(e,"string");return typeof t=="symbol"?t:String(t)}function Ct(e,t,n){return t=gO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function kO(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function yx(e){return Jc(e)?kO(e)[0]:e}function CO(e){return SO(e).map(t=>t.identifier)}function qu(e){const t=yx(e);return Jc(e)?t.identifier:t.pointerId}function Og(e){const t=yx(e);return[t.clientX,t.clientY]}function EO(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function dc(e,...t){return typeof e=="function"?e(...t):e}function jO(){}function $O(...e){return e.length===0?jO:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Ag(e,t){return Object.assign({},t,e||{})}const TO=32;class RO{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?dc(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,EO(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const _=n._delta.map(Math.abs);pt.addTo(n._distance,_)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[l,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(a)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=u&&Math.sign(a)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[_,E]=f;h[0]=d[0]!==!1?_-d[0]:0,h[1]=d[1]!==!1?E-d[1]:0}else h[0]=d[0]!==!1?s-d[0]:0,h[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=dc(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[x,w]=n.offset,[[v,y],[b,C]]=n._bounds;n.overflow=[xy?1:0,wC?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=hO(n._bounds,n.offset,k),n.delta=pt.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>TO)){n.delta=pt.sub(n.offset,g);const _=n.delta.map(Math.abs);pt.addTo(n.distance,_),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[_[0]/i,_[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(Pe(Pe(Pe({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function NO([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class PO extends RO{constructor(...t){super(...t),Ct(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[vx(t)]:r.axisThreshold;n.axis=NO(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const OO=e=>e,Dg=.15,xx={enabled(e=!0){return e},eventOptions(e,t,n){return Pe(Pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Dg,Dg];case!1:return[0,0];default:return pt.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return pt.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||OO},threshold(e){return pt.toVector(e,0)}},AO=0,Sa=Pe(Pe({},xx),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=AO){return e},bounds(e={}){if(typeof e=="function")return i=>Sa.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Mg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class DO extends PO{constructor(...t){super(...t),Ct(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Sa.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=qu(t),r._pointerActive=!0,this.computeValues(Og(t)),this.computeInitial(),n.preventScrollAxis&&vx(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=qu(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Og(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=pt.sub(i,n._values),this.computeValues(i)),pt.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=qu(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[u,d]=n._movement,[f,h]=r.swipe.velocity,[g,m]=r.swipe.distance,x=r.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>g&&(n.swipe[0]=Math.sign(a)),v>h&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,MO(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Mg[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,pt.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Mg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function MO(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const ka=typeof window<"u"&&window.document&&window.document.createElement;function wx(){return ka&&"ontouchstart"in window}function IO(){return wx()||ka&&window.navigator.maxTouchPoints>1}function LO(){return ka&&"onpointerdown"in window}function FO(){return ka&&"exitPointerLock"in window.document}function zO(){try{return"constructor"in GestureEvent}catch{return!1}}const qt={isBrowser:ka,gesture:zO(),touch:wx(),touchscreen:IO(),pointer:LO(),pointerLock:FO()},BO=250,UO=180,HO=.5,WO=50,VO=250,GO=10,Ig={mouse:0,touch:0,pen:8},KO=Pe(Pe({},Sa),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&qt.pointerLock,qt.touch&&n?"touch":this.pointerLock?"mouse":qt.pointer&&!o?"pointer":qt.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?BO:void 0,!(!qt.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=pt.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=HO,distance:t=WO,duration:n=VO}={}){return{velocity:this.transform(pt.toVector(e)),distance:this.transform(pt.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return UO;case!1:return 0;default:return e}},axisThreshold(e){return e?Pe(Pe({},Ig),e):Ig},keyboardDisplacement(e=GO){return e}});Pe(Pe({},xx),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!qt.touch&&qt.gesture)return"gesture";if(qt.touch&&r)return"touch";if(qt.touchscreen){if(qt.pointer)return"pointer";if(qt.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=Ag(dc(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=Ag(dc(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",pt.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Pe(Pe({},Sa),{},{mouseOnly:(e=!0)=>e});Pe(Pe({},Sa),{},{mouseOnly:(e=!0)=>e});const bx=new Map,vf=new Map;function qO(e){bx.set(e.key,e.engine),vf.set(e.key,e.resolver)}const YO={key:"drag",engine:DO,resolver:KO};function QO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function JO(e,t){if(e==null)return{};var n=QO(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const XO={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=qt.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},ZO=["target","eventOptions","window","enabled","transform"];function $l(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=$l(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function eA(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,u=JO(r,ZO);if(n.shared=$l({target:o,eventOptions:i,window:s,enabled:a,transform:l},XO),t){const d=vf.get(t);n[t]=$l(Pe({shared:n.shared},u),d)}else for(const d in u){const f=vf.get(d);f&&(n[d]=$l(Pe({shared:n.shared},u[d]),f))}return n}class _x{constructor(t,n){Ct(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=_O(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Pe(Pe({},l),i);t.addEventListener(a,o,u);const d=()=>{t.removeEventListener(a,o,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class tA{constructor(){Ct(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class nA{constructor(t){Ct(this,"gestures",new Set),Ct(this,"_targetEventStore",new _x(this)),Ct(this,"gestureEventStores",{}),Ct(this,"gestureTimeoutStores",{}),Ct(this,"handlers",{}),Ct(this,"config",{}),Ct(this,"pointerIds",new Set),Ct(this,"touchIds",new Set),Ct(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),rA(this,t)}setEventIds(t){if(Jc(t))return this.touchIds=new Set(CO(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=eA(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=Lg(r,a.eventOptions,!!o);if(a.enabled){const u=bx.get(s);new u(this,t,s).bind(l)}}const i=Lg(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](Pe(Pe({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=$O(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:l}=bO(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:l})}}}}function Vo(e,t){e.gestures.add(t),e.gestureEventStores[t]=new _x(e,t),e.gestureTimeoutStores[t]=new tA}function rA(e,t){t.drag&&Vo(e,"drag"),t.wheel&&Vo(e,"wheel"),t.scroll&&Vo(e,"scroll"),t.move&&Vo(e,"move"),t.pinch&&Vo(e,"pinch"),t.hover&&Vo(e,"hover")}const Lg=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,u;const d=(l=s.capture)!==null&&l!==void 0?l:t.capture,f=(u=s.passive)!==null&&u!==void 0?u:t.passive;let h=a?r:xO(r,o,d);n&&f&&(h+="Passive"),e[h]=e[h]||[],e[h].push(i)};function oA(e,t={},n,r){const o=S.useMemo(()=>new nA(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),S.useEffect(o.effect.bind(o)),S.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function iA(e,t){return qO(YO),oA({drag:e},t||{},"drag")}function Wn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sx(e,t=[]){let n=[];function r(i,s){const a=p.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:h,children:g,...m}=f,x=(h==null?void 0:h[e][l])||a,w=p.useMemo(()=>m,Object.values(m));return p.createElement(x.Provider,{value:w},g)}function d(f,h){const g=(h==null?void 0:h[e][l])||a,m=p.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>p.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,sA(o,...t)]}function sA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Bi(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function aA(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const yf="dismissableLayer.update",lA="dismissableLayer.pointerDownOutside",cA="dismissableLayer.focusOutside";let Fg;const uA=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dA=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...u}=e,d=p.useContext(uA),[f,h]=p.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=p.useState({}),x=Fi(t,j=>h(j)),w=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(v),b=f?w.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,_=fA(j=>{const P=j.target,N=[...d.branches].some(D=>D.contains(P));!k||N||(i==null||i(j),a==null||a(j),j.defaultPrevented||l==null||l())},g),E=pA(j=>{const P=j.target;[...d.branches].some(D=>D.contains(P))||(s==null||s(j),a==null||a(j),j.defaultPrevented||l==null||l())},g);return aA(j=>{b===d.layers.size-1&&(o==null||o(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},g),p.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Fg=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),zg(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fg)}},[f,g,r,d]),p.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),zg())},[f,d]),p.useEffect(()=>{const j=()=>m({});return document.addEventListener(yf,j),()=>document.removeEventListener(yf,j)},[]),p.createElement(Co.div,Ge({},u,{ref:x,style:{pointerEvents:C?k?"auto":"none":void 0,...e.style},onFocusCapture:Wn(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Wn(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Wn(e.onPointerDownCapture,_.onPointerDownCapture)}))});function fA(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){kx(lA,n,u,{discrete:!0})};var l=d;const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pA(e,t=globalThis==null?void 0:globalThis.document){const n=Bi(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&kx(cA,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zg(){const e=new CustomEvent(yf);document.dispatchEvent(e)}function kx(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P3(o,i):o.dispatchEvent(i)}const Ni=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},hA=sy["useId".toString()]||(()=>{});let mA=0;function gA(e){const[t,n]=p.useState(hA());return Ni(()=>{e||n(r=>r??String(mA++))},[e]),e||(t?`radix-${t}`:"")}const vA=["top","right","bottom","left"],zr=Math.min,Dt=Math.max,fc=Math.round,nl=Math.floor,Br=e=>({x:e,y:e}),yA={left:"right",right:"left",bottom:"top",top:"bottom"},xA={start:"end",end:"start"};function xf(e,t,n){return Dt(e,zr(t,n))}function rr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ui(e){return e.split("-")[1]}function Vp(e){return e==="x"?"y":"x"}function Gp(e){return e==="y"?"height":"width"}function Hi(e){return["top","bottom"].includes(or(e))?"y":"x"}function Kp(e){return Vp(Hi(e))}function wA(e,t,n){n===void 0&&(n=!1);const r=Ui(e),o=Kp(e),i=Gp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pc(s)),[s,pc(s)]}function bA(e){const t=pc(e);return[wf(e),t,wf(t)]}function wf(e){return e.replace(/start|end/g,t=>xA[t])}function _A(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function SA(e,t,n,r){const o=Ui(e);let i=_A(or(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(wf)))),i}function pc(e){return e.replace(/left|right|bottom|top/g,t=>yA[t])}function kA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cx(e){return typeof e!="number"?kA(e):{top:e,right:e,bottom:e,left:e}}function hc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Bg(e,t,n){let{reference:r,floating:o}=e;const i=Hi(t),s=Kp(t),a=Gp(s),l=or(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ui(t)){case"start":g[s]-=h*(n&&u?-1:1);break;case"end":g[s]+=h*(n&&u?-1:1);break}return g}const CA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Bg(u,r,l),h=r,g={},m=0;for(let x=0;x({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=rr(e,t)||{};if(u==null)return{};const f=Cx(d),h={x:n,y:r},g=Kp(o),m=Gp(g),x=await s.getDimensions(u),w=g==="y",v=w?"top":"left",y=w?"bottom":"right",b=w?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[g]-h[g]-i.floating[m],k=h[g]-i.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=_?_[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(_)))&&(E=a.floating[b]||i.floating[m]);const j=C/2-k/2,P=E/2-x[m]/2-1,N=zr(f[v],P),D=zr(f[y],P),L=N,W=E-x[m]-D,H=E/2-x[m]/2+j,J=xf(L,H,W),q=!l.arrow&&Ui(o)!=null&&H!=J&&i.reference[m]/2-(HL<=0)){var P,N;const L=(((P=i.flip)==null?void 0:P.index)||0)+1,W=k[L];if(W)return{data:{index:L,overflows:j},reset:{placement:W}};let H=(N=j.filter(J=>J.overflows[0]<=0).sort((J,q)=>J.overflows[1]-q.overflows[1])[0])==null?void 0:N.placement;if(!H)switch(g){case"bestFit":{var D;const J=(D=j.map(q=>[q.placement,q.overflows.filter(Y=>Y>0).reduce((Y,I)=>Y+I,0)]).sort((q,Y)=>q[1]-Y[1])[0])==null?void 0:D[0];J&&(H=J);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Hg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wg(e){return vA.some(t=>e[t]>=0)}const jA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rr(e,t);switch(r){case"referenceHidden":{const i=await la(t,{...o,elementContext:"reference"}),s=Hg(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wg(s)}}}case"escaped":{const i=await la(t,{...o,altBoundary:!0}),s=Hg(i,n.floating);return{data:{escapedOffsets:s,escaped:Wg(s)}}}default:return{}}}}};async function $A(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=or(n),a=Ui(n),l=Hi(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=rr(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const TA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await $A(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},RA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:v,y}=w;return{x:v,y}}},...l}=rr(e,t),u={x:n,y:r},d=await la(t,l),f=Hi(or(o)),h=Vp(f);let g=u[h],m=u[f];if(i){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=g+d[w],b=g-d[v];g=xf(y,g,b)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=m+d[w],b=m-d[v];m=xf(y,m,b)}const x=a.fn({...t,[h]:g,[f]:m});return{...x,data:{x:x.x-n,y:x.y-r}}}}},NA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=rr(e,t),d={x:n,y:r},f=Hi(o),h=Vp(f);let g=d[h],m=d[f];const x=rr(a,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const b=h==="y"?"height":"width",C=i.reference[h]-i.floating[b]+w.mainAxis,k=i.reference[h]+i.reference[b]-w.mainAxis;gk&&(g=k)}if(u){var v,y;const b=h==="y"?"width":"height",C=["top","left"].includes(or(o)),k=i.reference[f]-i.floating[b]+(C&&((v=s.offset)==null?void 0:v[f])||0)+(C?0:w.crossAxis),_=i.reference[f]+i.reference[b]+(C?0:((y=s.offset)==null?void 0:y[f])||0)-(C?w.crossAxis:0);m_&&(m=_)}return{[h]:g,[f]:m}}}},PA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=rr(e,t),l=await la(t,a),u=or(n),d=Ui(n),f=Hi(n)==="y",{width:h,height:g}=r.floating;let m,x;u==="top"||u==="bottom"?(m=u,x=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(x=u,m=d==="end"?"top":"bottom");const w=g-l[m],v=h-l[x],y=!t.middlewareData.shift;let b=w,C=v;if(f){const _=h-l.left-l.right;C=d||y?zr(v,_):_}else{const _=g-l.top-l.bottom;b=d||y?zr(w,_):_}if(y&&!d){const _=Dt(l.left,0),E=Dt(l.right,0),j=Dt(l.top,0),P=Dt(l.bottom,0);f?C=h-2*(_!==0||E!==0?_+E:Dt(l.left,l.right)):b=g-2*(j!==0||P!==0?j+P:Dt(l.top,l.bottom))}await s({...t,availableWidth:C,availableHeight:b});const k=await o.getDimensions(i.floating);return h!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}};function Ur(e){return Ex(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(Ex(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ex(e){return e instanceof Node||e instanceof Lt(e).Node}function ir(e){return e instanceof Element||e instanceof Lt(e).Element}function On(e){return e instanceof HTMLElement||e instanceof Lt(e).HTMLElement}function Vg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function Ca(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function OA(e){return["table","td","th"].includes(Ur(e))}function qp(e){const t=Yp(),n=tn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function AA(e){let t=Pi(e);for(;On(t)&&!Xc(t);){if(qp(t))return t;t=Pi(t)}return null}function Yp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xc(e){return["html","body","#document"].includes(Ur(e))}function tn(e){return Lt(e).getComputedStyle(e)}function Zc(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pi(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vg(e)&&e.host||ar(e);return Vg(t)?t.host:t}function jx(e){const t=Pi(e);return Xc(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&Ca(t)?t:jx(t)}function ca(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jx(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Lt(o);return i?t.concat(s,s.visualViewport||[],Ca(o)?o:[],s.frameElement&&n?ca(s.frameElement):[]):t.concat(o,ca(o,[],n))}function $x(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=fc(n)!==i||fc(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Qp(e){return ir(e)?e:e.contextElement}function bi(e){const t=Qp(e);if(!On(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$x(t);let s=(i?fc(n.width):n.width)/r,a=(i?fc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const DA=Br(0);function Tx(e){const t=Lt(e);return!Yp()||!t.visualViewport?DA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function wo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qp(e);let s=Br(1);t&&(r?ir(r)&&(s=bi(r)):s=bi(e));const a=MA(i,n,r)?Tx(i):Br(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const h=Lt(i),g=r&&ir(r)?Lt(r):r;let m=h.frameElement;for(;m&&r&&g!==h;){const x=bi(m),w=m.getBoundingClientRect(),v=tn(m),y=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*x.x,b=w.top+(m.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,f*=x.y,l+=y,u+=b,m=Lt(m).frameElement}}return hc({width:d,height:f,x:l,y:u})}function IA(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=On(n),i=ar(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Br(1);const l=Br(0);if((o||!o&&r!=="fixed")&&((Ur(n)!=="body"||Ca(i))&&(s=Zc(n)),On(n))){const u=wo(n);a=bi(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function LA(e){return Array.from(e.getClientRects())}function Rx(e){return wo(ar(e)).left+Zc(e).scrollLeft}function FA(e){const t=ar(e),n=Zc(e),r=e.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Rx(e);const a=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=Dt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function zA(e,t){const n=Lt(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Yp();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function BA(e,t){const n=wo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=On(e)?bi(e):Br(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Gg(e,t,n){let r;if(t==="viewport")r=zA(e,n);else if(t==="document")r=FA(ar(e));else if(ir(t))r=BA(t,n);else{const o=Tx(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return hc(r)}function Nx(e,t){const n=Pi(e);return n===t||!ir(n)||Xc(n)?!1:tn(n).position==="fixed"||Nx(n,t)}function UA(e,t){const n=t.get(e);if(n)return n;let r=ca(e,[],!1).filter(a=>ir(a)&&Ur(a)!=="body"),o=null;const i=tn(e).position==="fixed";let s=i?Pi(e):e;for(;ir(s)&&!Xc(s);){const a=tn(s),l=qp(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ca(s)&&!l&&Nx(e,s))?r=r.filter(d=>d!==s):o=a,s=Pi(s)}return t.set(e,r),r}function HA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?UA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const f=Gg(t,d,o);return u.top=Dt(f.top,u.top),u.right=zr(f.right,u.right),u.bottom=zr(f.bottom,u.bottom),u.left=Dt(f.left,u.left),u},Gg(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function WA(e){return $x(e)}function VA(e,t,n){const r=On(t),o=ar(t),i=n==="fixed",s=wo(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Br(0);if(r||!r&&!i)if((Ur(t)!=="body"||Ca(o))&&(a=Zc(t)),r){const u=wo(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Rx(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Kg(e,t){return!On(e)||tn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Px(e,t){const n=Lt(e);if(!On(e))return n;let r=Kg(e,t);for(;r&&OA(r)&&tn(r).position==="static";)r=Kg(r,t);return r&&(Ur(r)==="html"||Ur(r)==="body"&&tn(r).position==="static"&&!qp(r))?n:r||AA(e)||n}const GA=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Px,i=this.getDimensions;return{reference:VA(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function KA(e){return tn(e).direction==="rtl"}const qA={convertOffsetParentRelativeRectToViewportRelativeRect:IA,getDocumentElement:ar,getClippingRect:HA,getOffsetParent:Px,getElementRects:GA,getClientRects:LA,getDimensions:WA,getScale:bi,isElement:ir,isRTL:KA};function YA(e,t){let n=null,r;const o=ar(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const g=nl(d),m=nl(o.clientWidth-(u+f)),x=nl(o.clientHeight-(d+h)),w=nl(u),y={rootMargin:-g+"px "+-m+"px "+-x+"px "+-w+"px",threshold:Dt(0,zr(1,l))||1};let b=!0;function C(k){const _=k[0].intersectionRatio;if(_!==l){if(!b)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(C,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,y)}n.observe(e)}return s(!0),i}function QA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qp(e),d=o||i?[...u?ca(u):[],...ca(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&a?YA(u,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let m,x=l?wo(e):null;l&&w();function w(){const v=wo(e);x&&(v.x!==x.x||v.y!==x.y||v.width!==x.width||v.height!==x.height)&&n(),x=v,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const JA=(e,t,n)=>{const r=new Map,o={platform:qA,...n},i={...o.platform,_c:r};return CA(e,t,{...o,platform:i})},XA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ug({element:r.current,padding:o}).fn(n):{}:r?Ug({element:r,padding:o}).fn(n):{}}}};var Tl=typeof document<"u"?p.useLayoutEffect:p.useEffect;function mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!mc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!mc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ox(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qg(e,t){const n=Ox(e);return Math.round(t*n)/n}function Yg(e){const t=p.useRef(e);return Tl(()=>{t.current=e}),t}function ZA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(r);mc(h,r)||g(r);const[m,x]=p.useState(null),[w,v]=p.useState(null),y=p.useCallback(q=>{q!=_.current&&(_.current=q,x(q))},[x]),b=p.useCallback(q=>{q!==E.current&&(E.current=q,v(q))},[v]),C=i||m,k=s||w,_=p.useRef(null),E=p.useRef(null),j=p.useRef(d),P=Yg(l),N=Yg(o),D=p.useCallback(()=>{if(!_.current||!E.current)return;const q={placement:t,strategy:n,middleware:h};N.current&&(q.platform=N.current),JA(_.current,E.current,q).then(Y=>{const I={...Y,isPositioned:!0};L.current&&!mc(j.current,I)&&(j.current=I,ko.flushSync(()=>{f(I)}))})},[h,t,n,N]);Tl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const L=p.useRef(!1);Tl(()=>(L.current=!0,()=>{L.current=!1}),[]),Tl(()=>{if(C&&(_.current=C),k&&(E.current=k),C&&k){if(P.current)return P.current(C,k,D);D()}},[C,k,D,P]);const W=p.useMemo(()=>({reference:_,floating:E,setReference:y,setFloating:b}),[y,b]),H=p.useMemo(()=>({reference:C,floating:k}),[C,k]),J=p.useMemo(()=>{const q={position:n,left:0,top:0};if(!H.floating)return q;const Y=qg(H.floating,d.x),I=qg(H.floating,d.y);return a?{...q,transform:"translate("+Y+"px, "+I+"px)",...Ox(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:I}},[n,a,H.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:D,refs:W,elements:H,floatingStyles:J}),[d,D,W,H,J])}const eD=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.createElement(Co.svg,Ge({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),tD=eD;function nD(e){const[t,n]=p.useState(void 0);return Ni(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ax="Popper",[Dx,Mx]=Sx(Ax),[rD,Ix]=Dx(Ax),oD=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(rD,{scope:t,anchor:r,onAnchorChange:o},n)},iD="PopperAnchor",sD=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ix(iD,n),s=p.useRef(null),a=Fi(t,s);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:p.createElement(Co.div,Ge({},o,{ref:a}))}),Lx="PopperContent",[aD,lD]=Dx(Lx),cD=p.forwardRef((e,t)=>{var n,r,o,i,s,a,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:m=0,arrowPadding:x=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:k="optimized",onPlaced:_,...E}=e,j=Ix(Lx,d),[P,N]=p.useState(null),D=Fi(t,qe=>N(qe)),[L,W]=p.useState(null),H=nD(L),J=(n=H==null?void 0:H.width)!==null&&n!==void 0?n:0,q=(r=H==null?void 0:H.height)!==null&&r!==void 0?r:0,Y=f+(g!=="center"?"-"+g:""),I=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},V=Array.isArray(v)?v:[v],X=V.length>0,re={padding:I,boundary:V.filter(pD),altBoundary:X},{refs:pe,floatingStyles:st,placement:De,isPositioned:He,middlewareData:ye}=ZA({strategy:"fixed",placement:Y,whileElementsMounted:(...qe)=>QA(...qe,{animationFrame:k==="always"}),elements:{reference:j.anchor},middleware:[TA({mainAxis:h+q,alignmentAxis:m}),w&&RA({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?NA():void 0,...re}),w&&EA({...re}),PA({...re,apply:({elements:qe,rects:In,availableWidth:Ki,availableHeight:qi})=>{const{width:Yi,height:jo}=In.reference,Pt=qe.floating.style;Pt.setProperty("--radix-popper-available-width",`${Ki}px`),Pt.setProperty("--radix-popper-available-height",`${qi}px`),Pt.setProperty("--radix-popper-anchor-width",`${Yi}px`),Pt.setProperty("--radix-popper-anchor-height",`${jo}px`)}}),L&&XA({element:L,padding:x}),hD({arrowWidth:J,arrowHeight:q}),C&&jA({strategy:"referenceHidden",...re})]}),[at,yn]=Fx(De),Mn=Bi(_);Ni(()=>{He&&(Mn==null||Mn())},[He,Mn]);const Eo=(o=ye.arrow)===null||o===void 0?void 0:o.x,Ke=(i=ye.arrow)===null||i===void 0?void 0:i.y,xn=((s=ye.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[rn,qr]=p.useState();return Ni(()=>{P&&qr(window.getComputedStyle(P).zIndex)},[P]),p.createElement("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...st,transform:He?st.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rn,"--radix-popper-transform-origin":[(a=ye.transformOrigin)===null||a===void 0?void 0:a.x,(l=ye.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},p.createElement(aD,{scope:d,placedSide:at,onArrowChange:W,arrowX:Eo,arrowY:Ke,shouldHideArrow:xn},p.createElement(Co.div,Ge({"data-side":at,"data-align":yn},E,{ref:D,style:{...E.style,animation:He?void 0:"none",opacity:(u=ye.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),uD="PopperArrow",dD={top:"bottom",right:"left",bottom:"top",left:"right"},fD=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=lD(uD,r),s=dD[i.placedSide];return p.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},p.createElement(tD,Ge({},o,{ref:n,style:{...o.style,display:"block"}})))});function pD(e){return e!==null}const hD=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,x]=Fx(a),w={start:"0%",center:"50%",end:"100%"}[x],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,y=((i=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let b="",C="";return m==="bottom"?(b=f?w:`${v}px`,C=`${-g}px`):m==="top"?(b=f?w:`${v}px`,C=`${l.floating.height+g}px`):m==="right"?(b=`${-g}px`,C=f?w:`${y}px`):m==="left"&&(b=`${l.floating.width+g}px`,C=f?w:`${y}px`),{data:{x:b,y:C}}}});function Fx(e){const[t,n="center"]=e.split("-");return[t,n]}const mD=oD,gD=sD,vD=cD,yD=fD;function xD(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const zx=e=>{const{present:t,children:n}=e,r=wD(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Fi(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};zx.displayName="Presence";function wD(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[a,l]=xD(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=rl(r.current);i.current=a==="mounted"?u:"none"},[a]),Ni(()=>{const u=r.current,d=o.current;if(d!==e){const h=i.current,g=rl(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ni(()=>{if(t){const u=f=>{const g=rl(r.current).includes(f.animationName);f.target===t&&g&&ko.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=rl(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function rl(e){return(e==null?void 0:e.animationName)||"none"}function bD({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=_D({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Bi(n),l=p.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else o(u)},[i,e,o,a]);return[s,l]}function _D({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=Bi(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const SD=p.forwardRef((e,t)=>p.createElement(Co.span,Ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),kD=SD,[eu,Mz]=Sx("Tooltip",[Mx]),tu=Mx(),CD="TooltipProvider",bf="tooltip.open",[Iz,Jp]=eu(CD),Xp="Tooltip",[ED,nu]=eu(Xp),jD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Jp(Xp,e.__scopeTooltip),u=tu(t),[d,f]=p.useState(null),h=gA(),g=p.useRef(0),m=s??l.disableHoverableContent,x=a??l.delayDuration,w=p.useRef(!1),[v=!1,y]=bD({prop:r,defaultProp:o,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(bf))):l.onClose(),i==null||i(E)}}),b=p.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),C=p.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,y(!0)},[y]),k=p.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),_=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,y(!0)},x)},[x,y]);return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),p.createElement(mD,u,p.createElement(ED,{scope:t,contentId:h,open:v,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?_():C()},[l.isOpenDelayed,_,C]),onTriggerLeave:p.useCallback(()=>{m?k():window.clearTimeout(g.current)},[k,m]),onOpen:C,onClose:k,disableHoverableContent:m},n))},Qg="TooltipTrigger",$D=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nu(Qg,n),i=Jp(Qg,n),s=tu(n),a=p.useRef(null),l=Fi(t,a,o.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.createElement(gD,Ge({asChild:!0},s),p.createElement(Co.button,Ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Wn(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Wn(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Wn(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Wn(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Wn(e.onBlur,o.onClose),onClick:Wn(e.onClick,o.onClose)})))}),TD="TooltipPortal",[Lz,RD]=eu(TD,{forceMount:void 0}),ua="TooltipContent",ND=p.forwardRef((e,t)=>{const n=RD(ua,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nu(ua,e.__scopeTooltip);return p.createElement(zx,{present:r||s.open},s.disableHoverableContent?p.createElement(Bx,Ge({side:o},i,{ref:t})):p.createElement(PD,Ge({side:o},i,{ref:t})))}),PD=p.forwardRef((e,t)=>{const n=nu(ua,e.__scopeTooltip),r=Jp(ua,e.__scopeTooltip),o=p.useRef(null),i=Fi(t,o),[s,a]=p.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{a(null),f(!1)},[f]),g=p.useCallback((m,x)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},y=ID(v,w.getBoundingClientRect()),b=LD(v,y),C=FD(x.getBoundingClientRect()),k=BD([...b,...C]);a(k),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const m=w=>g(w,d),x=w=>g(w,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",x)}}},[l,d,g,h]),p.useEffect(()=>{if(s){const m=x=>{const w=x.target,v={x:x.clientX,y:x.clientY},y=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),b=!zD(v,s);y?h():b&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,s,u,h]),p.createElement(Bx,Ge({},e,{ref:i}))}),[OD,AD]=eu(Xp,{isInside:!1}),Bx=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=nu(ua,n),u=tu(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(bf,d),()=>document.removeEventListener(bf,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.createElement(dA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},p.createElement(vD,Ge({"data-state":l.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(ux,null,r),p.createElement(OD,{scope:n,isInside:!0},p.createElement(kD,{id:l.contentId,role:"tooltip"},o||r))))}),DD="TooltipArrow",MD=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tu(n);return AD(DD,n).isInside?null:p.createElement(yD,Ge({},o,r,{ref:t}))});function ID(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function LD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function FD(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function zD(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function BD(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),UD(t)}function UD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const HD=jD,WD=$D,VD=ND,GD=MD;function KD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ve(e,t){if(e==null)return{};var n=KD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let Re;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(Re||(Re={}));const qD={[Re.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[Re.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[Re.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[Re.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Re.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[Re.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[Re.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[Re.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[Re.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[Re.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[Re.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Ux(e,t,...n){const[r,...o]=qD[t](...n);console[e]("LEVA: "+r,...o)}const Vn=Ux.bind(null,"warn"),YD=Ux.bind(null,"log"),QD=["value"],JD=["schema"],XD=["value"],Hx=[],bo={};function Jg(e){let{value:t}=e,n=ve(e,QD);for(let r of Hx){const o=r(t,n);if(o)return o}}function lr(e,t){let{schema:n}=t,r=ve(t,JD);if(e in bo){Vn(Re.ALREADY_REGISTERED_TYPE,e);return}Hx.push((o,i)=>n(o,i)&&e),bo[e]=r}function Yu(e,t,n,r){const{normalize:o}=bo[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ve(t,XD);return{value:i,settings:s}}function ZD(e,t,n,r,o,i){const{sanitize:s}=bo[e];return s?s(t,n,r,o,i):t}function Xg(e,t,n){const{format:r}=bo[e];return r?r(t,n):t}function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=yr(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},nM=Math.log(10);function ev(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/nM)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const gc=(e,t,n)=>n===t?0:(Hr(e,t,n)-t)/(n-t),vc=(e,t,n)=>e*(n-t)+t,rM=()=>"_"+Math.random().toString(36).substr(2,9),tv=/\(([0-9+\-*/^ .]+)\)/,nv=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,rv=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,ov=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,iv=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,sv=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function yr(e){if(isNaN(Number(e)))if(tv.test(e)){const t=e.replace(tv,(n,r)=>String(yr(r)));return yr(t)}else if(nv.test(e)){const t=e.replace(nv,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return yr(t)}else if(rv.test(e)){const t=e.replace(rv,(n,r,o)=>String(Number(r)*Number(o)));return yr(t)}else if(ov.test(e)){const t=e.replace(ov,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return yr(t)}else if(iv.test(e)){const t=e.replace(iv,(n,r,o)=>String(Number(r)+Number(o)));return yr(t)}else if(sv.test(e)){const t=e.replace(sv,(n,r,o)=>String(Number(r)-Number(o)));return yr(t)}else return Number(e);return Number(e)}function oM(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function iM(e,t){const n=ne({},e);return t.forEach(r=>r in e&&delete n[r]),n}function sM(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Wx(e){return Object.prototype.toString.call(e)==="[object Object]"}const aM=e=>Wx(e)&&Object.keys(e).length===0;let pn;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(pn||(pn={}));let mn;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(mn||(mn={}));const lM=["type","__customInput"],cM=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],uM=["type"];function Vx(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:ne({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:k,__customInput:_}=e,E=ve(e,lM);return Vx(_,t,E,k)}const{render:s,label:a,optional:l,order:u=0,disabled:d,hint:f,onChange:h,onEditStart:g,onEditEnd:m,transient:x}=e,w=ve(e,cM),v=ne({render:s,key:t,label:a??t,hint:f,transient:x??!!h,onEditStart:g,onEditEnd:m,disabled:d,optional:l,order:u},n);let{type:y}=w,b=ve(w,uM);if(y=r??y,y in pn)return{type:y,input:b,options:v};let C;return r&&Wx(b)&&"value"in b?C=b.value:C=aM(b)?void 0:b,{type:y,input:C,options:ne(ne({},v),{},{onChange:h,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function dM(e,t,n,r){const o=Vx(e,t),{type:i,input:s,options:a}=o;if(i)return i in pn?o:{type:i,input:Yu(i,s,n,r),options:a};let l=Jg(s);return l?{type:l,input:Yu(l,s,n,r),options:a}:(l=Jg({value:s}),l?{type:l,input:Yu(l,{value:s},n,r),options:a}:!1)}function av(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Gx({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const fM=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Gx({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=ZD(e,s,n,t,o,i)}catch(l){throw new fM(`The value \`${r}\` did not result in a correct value.`,t,l)}return sa(a,t)?t:a}const Kx=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},qx=e=>e.shiftKey?5:e.altKey?1/5:1;function pM(e,t){const n=console.error;console.error=()=>{},Np.render(e,t),console.error=n}const hM=["value"],mM=["min","max"],gM=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},Yx=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Hr(o,t,n);return r?i+r:i},vM=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},Qx=e=>{let{value:t}=e,n=ve(e,hM);const{min:r=-1/0,max:o=1/0}=n,i=ve(n,mM);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Hr(s,r,o);let l=n.step;l||(Number.isFinite(r)?Number.isFinite(o)?l=+(Math.abs(o-r)/100).toPrecision(1):l=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(l=+(Math.abs(o-s)/100).toPrecision(1)));const u=l?ev(l)*10:ev(s);l=l||u/10;const d=Math.round(Hr(Math.log10(1/u),0,2));return{value:a?s+a:s,settings:ne({initialValue:s,step:l,pad:d,min:r,max:o,suffix:a},i)}},Jx=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var Xx=Object.freeze({__proto__:null,schema:gM,sanitize:Yx,format:vM,normalize:Qx,sanitizeStep:Jx});function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function ol(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const hs={$inputStyle:()=>e=>ol(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>ol(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>ol(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>ol(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ee,css:Fz,createTheme:xM,globalCss:wM,keyframes:zz}=fO({prefix:"leva",theme:nw(),utils:ne(ne({},hs),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":hs.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":hs.$focusStyle()(e)}),$hover:e=>({"&:hover":hs.$hoverStyle()(e)}),$active:e=>({"&:active":hs.$activeStyle()(e)})})}),bM=wM({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function _M(e){const t=nw();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=xM(t);return{theme:t,className:n.className}}function Jn(e,t){const{theme:n}=p.useContext(Zp);if(!(e in n)||!(t in n[e]))return Vn(Re.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const rw=ee("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),ow=ee("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${rw}`]:{paddingLeft:0}}),SM=ee(ow,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),kM=ee("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),CM=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],EM=["onUpdate"];function eh(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:l="text",rows:u=0}=e,d=ve(e,CM);const{id:f,emitOnEditStart:h,emitOnEditEnd:g,disabled:m}=mt(),x=a||f,w=p.useRef(null),v=u>0,y=v?"textarea":"input",b=p.useCallback(_=>E=>{const j=E.currentTarget.value;_(j)},[]);S.useEffect(()=>{const _=w.current,E=b(j=>{r(j),g()});return _==null||_.addEventListener("blur",E),()=>_==null?void 0:_.removeEventListener("blur",E)},[b,r,g]);const C=p.useCallback(_=>{_.key==="Enter"&&b(r)(_)},[b,r]),k=Object.assign({as:y},v?{rows:u}:{},d);return S.createElement(kM,{textArea:v},t&&typeof t=="string"?S.createElement(ow,null,t):t,S.createElement(rw,Fe({levaType:s,ref:w,id:x,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(o),onFocus:()=>h(),onKeyPress:C,onKeyDown:i,disabled:m},k)))}function jM(e){let{onUpdate:t}=e,n=ve(e,EM);const r=p.useCallback(i=>t(tM(i)),[t]),o=p.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(l=>parseFloat(l)+s*a)}},[t]);return S.createElement(eh,Fe({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const yc=ee("div",{}),_f=ee("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),$M=ee("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${_f}::after`]:{opacity:.6},[`${yc}:hover > & + ${_f}::after`]:{opacity:.6},[`${yc}:hover > & > svg`]:{opacity:1}}),iw=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${yc}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),sw=ee("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${iw} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),aw=ee(sw,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),TM=ee("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),RM=ee("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Sf=ee("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),NM=ee("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Sf}`]:{pointerEvents:"auto"}}}}}),lw=ee("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),PM=ee("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),OM=ee(GD,{fill:"$toolTipBackground"});function th({children:e}){const{className:t}=p.useContext(Zp);return S.createElement(A3,{className:t},e)}const AM=["align"];function DM(){const{id:e,disable:t,disabled:n}=mt();return S.createElement(S.Fragment,null,S.createElement(RM,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),S.createElement("label",{htmlFor:e+"__disable"}))}function MM(e){const{id:t,optional:n,hint:r}=mt(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return S.createElement(S.Fragment,null,n&&S.createElement(DM,null),r!==void 0?S.createElement(HD,null,S.createElement(WD,{asChild:!0},S.createElement(Sf,Fe({},o,e))),S.createElement(VD,{side:"top",sideOffset:2},S.createElement(PM,null,r,S.createElement(OM,null)))):S.createElement(Sf,Fe({},o,i,e)))}function gn(e){let{align:t}=e,n=ve(e,AM);const{value:r,label:o,key:i,disabled:s}=mt(),{hideCopyButton:a}=yM(),l=!a&&i!==void 0,[u,d]=p.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{Vn(Re.CLIPBOARD_ERROR,{[i]:r})}};return S.createElement(TM,{align:t,onPointerLeave:()=>d(!1)},S.createElement(MM,n),l&&!s&&S.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},u?S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),S.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):S.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),S.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const IM=["toggled"],LM=ee("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function nh(e){let{toggled:t}=e,n=ve(e,IM);return S.createElement(LM,Fe({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),S.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const FM=["input"];function nn(e){let{input:t}=e,n=ve(e,FM);return t?S.createElement(aw,n):S.createElement(sw,n)}function cw({value:e,type:t,settings:n,setValue:r}){const[o,i]=p.useState(Xg(t,e,n)),s=p.useRef(e),a=p.useRef(n);a.current=n;const l=p.useCallback(d=>i(Xg(t,d,a.current)),[t]),u=p.useCallback(d=>{try{r(d)}catch(f){const{type:h,previousValue:g}=f;if(h!=="LEVA_ERROR")throw f;l(g)}},[l,r]);return p.useEffect(()=>{sa(e,s.current)||l(e),s.current=e},[e,l]),{displayValue:o,onChange:i,onUpdate:u}}function ja(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=mt();return iA(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function zM(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!1);return p.useEffect(()=>{const o=Kx(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),p.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function uw(){const e=p.useRef(null),t=p.useRef({x:0,y:0}),n=p.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const BM=["__refCount"],Qu=(e,t)=>{if(!e[t])return null;const n=e[t];return ve(n,BM)};function UM(e){const t=Ea(),[n,r]=p.useState(Qu(t.getData(),e)),o=p.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),i=p.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),s=p.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),a=p.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=p.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return p.useEffect(()=>{r(Qu(t.getData(),e));const u=t.useStore.subscribe(d=>Qu(d.data,e),r,{equalityFn:_a});return()=>u()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const HM=ee("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),dw=ee("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),kf=ee("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),fw=ee("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),pw=ee("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function WM({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=p.useRef(null),a=p.useRef(null),l=p.useRef(0),u=Jn("sizes","scrubberWidth"),d=ja(({event:h,first:g,xy:[m],movement:[x],memo:w})=>{if(g){const{width:y,left:b}=s.current.getBoundingClientRect();l.current=y-parseFloat(u),w=(h==null?void 0:h.target)===a.current?e:vc((m-b)/y,t,n)}const v=w+vc(x/l.current,0,n-t);return r(Jx(v,{step:o,initialValue:i})),w}),f=gc(e,t,n);return S.createElement(fw,Fe({ref:s},d()),S.createElement(dw,null,S.createElement(pw,{style:{left:0,right:`${(1-f)*100}%`}})),S.createElement(kf,{ref:a,style:{left:`calc(${f} * (100% - ${u}))`}}))}const VM=S.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=p.useState(!1),s=ja(({active:a,delta:[l],event:u,memo:d=0})=>(i(a),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*qx(u)),d=0),d));return S.createElement(SM,Fe({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function hw({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&S.createElement(VM,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return S.createElement(jM,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function GM(){const e=mt(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,l=a!==1/0&&s!==-1/0;return S.createElement(nn,{input:!0},S.createElement(gn,null,t),S.createElement(HM,{hasRange:l},l&&S.createElement(WM,Fe({value:parseFloat(n),onDrag:r},o)),S.createElement(hw,Fe({},e,{id:i,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:KM}=Xx,qM=ve(Xx,["sanitizeStep"]);var YM=ne({component:GM},qM);const QM=(e,t)=>$t().schema({options:$t().passesAnyOf($t().object(),$t().array())}).test(t),JM=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},XM=(e,{values:t})=>t.indexOf(e),ZM=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var e5=Object.freeze({__proto__:null,schema:QM,sanitize:JM,format:XM,normalize:ZM});const t5=ee("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Cf=ee("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),n5=ee("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Cf}:focus + &`]:{$focusStyle:""},[`${Cf}:hover + &`]:{$hoverStyle:""}});function r5({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,l=p.useRef();return t===a[e]&&(l.current=s[e]),S.createElement(t5,null,S.createElement(Cf,{id:r,value:e,onChange:u=>n(a[Number(u.currentTarget.value)]),disabled:i},s.map((u,d)=>S.createElement("option",{key:u,value:d},u))),S.createElement(n5,null,l.current),S.createElement(nh,{toggled:!0}))}function o5(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(r5,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var i5=ne({component:o5},e5);const s5=e=>$t().string().test(e),a5=e=>{if(typeof e!="string")throw Error("Invalid string");return e},l5=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var c5=Object.freeze({__proto__:null,schema:s5,sanitize:a5,normalize:l5});const u5=["displayValue","onUpdate","onChange","editable"],d5=ee("div",{whiteSpace:"pre-wrap"});function f5(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ve(e,u5);return o?S.createElement(eh,Fe({value:t,onUpdate:n,onChange:r},i)):S.createElement(d5,null,t)}function p5(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(f5,Fe({displayValue:n,onUpdate:r,onChange:o},t)))}var h5=ne({component:p5},c5);const m5=e=>$t().boolean().test(e),g5=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var v5=Object.freeze({__proto__:null,schema:m5,sanitize:g5});const y5=ee("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function x5({value:e,onUpdate:t,id:n,disabled:r}){return S.createElement(y5,null,S.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),S.createElement("label",{htmlFor:n},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function w5(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(x5,{value:t,onUpdate:n,id:o,disabled:r}))}var b5=ne({component:w5},v5);const _5=["locked"];function S5({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=p.useRef(e[n]);s.current=e[n];const a=p.useCallback(u=>o({[n]:Gx({type:"NUMBER",value:s.current,settings:r},u)}),[o,r,n]),l=cw({type:"NUMBER",value:e[n],settings:r,setValue:a});return S.createElement(hw,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:r,innerLabelTrim:i})}const k5=ee("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function C5(e){let{locked:t}=e,n=ve(e,_5);return S.createElement("svg",Fe({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?S.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):S.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function rh({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=mt(),{lock:s,locked:a}=n;return S.createElement(k5,{withLock:s},s&&S.createElement(C5,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((l,u)=>S.createElement(S5,{id:u===0?o:`${o}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:r})))}const mw=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=Qx(ne({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:l}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(n[i].step=r,n[i].pad=o)}return n},E5=["lock"],j5=["value"];function $5(e){const t=$t().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function T5(e){return Array.isArray(e)?"array":"object"}function Ds(e,t,n){return T5(e)===t?e:t==="array"?Object.values(e):sM(e,n)}const R5=(e,t,n)=>{const r=Ds(e,"object",t.keys);for(let s in r)r[s]=Yx(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Ds(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],l=r[a],u=s[a],d=u!==0?l/u:1;for(let f in s)f===a?i[a]=l:i[f]=s[f]*d}else i=ne(ne({},s),r)}return Ds(i,t.format,t.keys)},N5=(e,t)=>Ds(e,"object",t.keys),P5=e=>!!e&&("step"in e||"min"in e||"max"in e);function O5(e,t,n=[]){const{lock:r=!1}=t,o=ve(t,E5),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=Ds(e,"object",s),l=P5(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,u=mw(a,l);return{value:i==="array"?e:a,settings:ne(ne({},u),{},{format:i,keys:s,lock:r,locked:!1})}}function gw(e){return{schema:$5(e.length),normalize:t=>{let{value:n}=t,r=ve(t,j5);return O5(n,r,e)},format:(t,n)=>N5(t,n),sanitize:(t,n,r)=>R5(t,n,r)}}var A5={grad:.9,turn:360,rad:360/(2*Math.PI)},zn=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Xe=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Qt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},vw=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},lv=function(e){return{r:Qt(e.r,0,255),g:Qt(e.g,0,255),b:Qt(e.b,0,255),a:Qt(e.a)}},Ju=function(e){return{r:Xe(e.r),g:Xe(e.g),b:Xe(e.b),a:Xe(e.a,3)}},D5=/^#([0-9a-f]{3,8})$/i,il=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},yw=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},xw=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,a,s,s,l,r][u],g:255*[l,r,r,a,s,s][u],b:255*[s,s,l,r,r,a][u],a:o}},cv=function(e){return{h:vw(e.h),s:Qt(e.s,0,100),l:Qt(e.l,0,100),a:Qt(e.a)}},uv=function(e){return{h:Xe(e.h),s:Xe(e.s),l:Xe(e.l),a:Xe(e.a,3)}},dv=function(e){return xw((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Ms=function(e){return{h:(t=yw(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},M5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,I5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,L5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,F5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ef={string:[[function(e){var t=D5.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Xe(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Xe(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=L5.exec(e)||F5.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:lv({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=M5.exec(e)||I5.exec(e);if(!t)return null;var n,r,o=cv({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(A5[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return dv(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return zn(t)&&zn(n)&&zn(r)?lv({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=cv({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return dv(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!zn(t)||!zn(n)||!zn(r))return null;var s=function(a){return{h:vw(a.h),s:Qt(a.s,0,100),v:Qt(a.v,0,100),a:Qt(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return xw(s)},"hsv"]]},fv=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Ju(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?il(Xe(255*i)):"","#"+il(n)+il(r)+il(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return Ju(this.rgba)},e.prototype.toRgbString=function(){return t=Ju(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return uv(Ms(this.rgba))},e.prototype.toHslString=function(){return t=uv(Ms(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=yw(this.rgba),{h:Xe(t.h),s:Xe(t.s),v:Xe(t.v),a:Xe(t.a,3)};var t},e.prototype.invert=function(){return xt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),xt(Xu(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),xt(Xu(this.rgba,-t))},e.prototype.grayscale=function(){return xt(Xu(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),xt(pv(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),xt(pv(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?xt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Xe(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ms(this.rgba);return typeof t=="number"?xt({h:t,s:n.s,l:n.l,a:n.a}):Xe(n.h)},e.prototype.isEqual=function(t){return this.toHex()===xt(t).toHex()},e}(),xt=function(e){return e instanceof jf?e:new jf(e)},hv=[],B5=function(e){e.forEach(function(t){hv.indexOf(t)<0&&(t(jf,Ef),hv.push(t))})};function U5(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,h="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var x=(a=d,l=i[m],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));x=0||(o[n]=e[n]);return o}function $f(e){var t=p.useRef(e),n=p.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Oi=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(mv(o.current,w,a.current)):x(!1)},m=function(){return x(!1)};function x(w){var v=l.current,y=Tf(o.current),b=w?y.addEventListener:y.removeEventListener;b(v?"touchmove":"mousemove",g),b(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,y=o.current;if(y&&(gv(v),!function(C,k){return k&&!Is(C)}(v,l.current)&&y)){if(Is(v)){l.current=!0;var b=v.changedTouches||[];b.length&&(a.current=b[0].identifier)}y.focus(),i(mv(y,v,a.current)),x(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},x]},[s,i]),d=u[0],f=u[1],h=u[2];return p.useEffect(function(){return h},[h]),S.createElement("div",Wi({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),$a=function(e){return e.filter(Boolean).join(" ")},sh=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=$a(["react-colorful__pointer",e.className]);return S.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},bt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},bw=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:bt(e.h),s:bt(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:bt(o/2),a:bt(r,2)}},Rf=function(e){var t=bw(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ed=function(e){var t=bw(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},_w=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:bt(255*[r,a,s,s,l,r][u]),g:bt(255*[l,r,r,a,s,s][u]),b:bt(255*[s,s,l,r,r,a][u]),a:bt(o,2)}},Sw=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:bt(60*(a<0?a+6:a)),s:bt(i?s/i*100:0),v:bt(i/255*100),a:o}},kw=S.memo(function(e){var t=e.hue,n=e.onChange,r=$a(["react-colorful__hue",e.className]);return S.createElement("div",{className:r},S.createElement(ih,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Oi(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":bt(t),"aria-valuemax":"360","aria-valuemin":"0"},S.createElement(sh,{className:"react-colorful__hue-pointer",left:t/360,color:Rf({h:t,s:100,v:100,a:1})})))}),Cw=S.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Rf({h:t.h,s:100,v:100,a:1})};return S.createElement("div",{className:"react-colorful__saturation",style:r},S.createElement(ih,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Oi(t.s+100*o.left,0,100),v:Oi(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+bt(t.s)+"%, Brightness "+bt(t.v)+"%"},S.createElement(sh,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Rf(t)})))}),ah=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Ew(e,t,n){var r=$f(n),o=p.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=p.useRef({color:t,hsva:i});p.useEffect(function(){if(!e.equal(t,a.current.color)){var u=e.toHsva(t);a.current={hsva:u,color:t},s(u)}},[t,e]),p.useEffect(function(){var u;ah(i,a.current.hsva)||e.equal(u=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:u},r(u))},[i,e,r]);var l=p.useCallback(function(u){s(function(d){return Object.assign({},d,u)})},[]);return[i,l]}var H5=typeof window<"u"?p.useLayoutEffect:p.useEffect,W5=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},vv=new Map,jw=function(e){H5(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!vv.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,vv.set(t,n);var r=W5();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},V5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=oh(e,["className","colorModel","color","onChange"]),a=p.useRef(null);jw(a);var l=Ew(n,o,i),u=l[0],d=l[1],f=$a(["react-colorful",t]);return S.createElement("div",Wi({},s,{ref:a,className:f}),S.createElement(Cw,{hsva:u,onChange:d}),S.createElement(kw,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},G5=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ed(Object.assign({},n,{a:0}))+", "+ed(Object.assign({},n,{a:1}))+")"},i=$a(["react-colorful__alpha",t]),s=bt(100*n.a);return S.createElement("div",{className:i},S.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),S.createElement(ih,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:Oi(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},S.createElement(sh,{className:"react-colorful__alpha-pointer",left:n.a,color:ed(n)})))},K5=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=oh(e,["className","colorModel","color","onChange"]),a=p.useRef(null);jw(a);var l=Ew(n,o,i),u=l[0],d=l[1],f=$a(["react-colorful",t]);return S.createElement("div",Wi({},s,{ref:a,className:f}),S.createElement(Cw,{hsva:u,onChange:d}),S.createElement(kw,{hue:u.h,onChange:d}),S.createElement(G5,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},q5={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Sw,fromHsva:_w,equal:ah},Y5=function(e){return S.createElement(K5,Wi({},e,{colorModel:q5}))},Q5={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Sw({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=_w(e)).r,g:t.g,b:t.b};var t},equal:ah},J5=function(e){return S.createElement(V5,Wi({},e,{colorModel:Q5}))},$w={exports:{}},X5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Z5=X5,eI=Z5;function Tw(){}function Rw(){}Rw.resetWarningCache=Tw;var tI=function(){function e(r,o,i,s,a,l){if(l!==eI){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Rw,resetWarningCache:Tw};return n.PropTypes=n,n};$w.exports=tI();var nI=$w.exports;const be=jc(nI);function Vi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{u(r.next(d))}catch(f){s(f)}}function l(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Gi(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function oI(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function sI(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=iI.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var aI=[".DS_Store","Thumbs.db"];function lI(e){return Vi(this,void 0,void 0,function(){return Gi(this,function(t){return xc(e)&&cI(e)?[2,pI(e.dataTransfer,e.type)]:uI(e)?[2,dI(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,fI(e)]:[2,[]]})})}function cI(e){return xc(e.dataTransfer)}function uI(e){return xc(e)&&xc(e.target)}function xc(e){return typeof e=="object"&&e!==null}function dI(e){return Nf(e.target.files).map(function(t){return Ta(t)})}function fI(e){return Vi(this,void 0,void 0,function(){var t;return Gi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ta(r)})]}})})}function pI(e,t){return Vi(this,void 0,void 0,function(){var n,r;return Gi(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=Nf(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(hI))]):[3,2];case 1:return r=o.sent(),[2,yv(Nw(r))];case 2:return[2,yv(Nf(e.files).map(function(i){return Ta(i)}))]}})})}function yv(e){return e.filter(function(t){return aI.indexOf(t.name)===-1})}function Nf(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,kv(n)];if(e.sizen)return[!1,kv(n)]}return[!0,null]}function ms(e){return e!=null}function $I(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var l=Aw(a,n),u=_v(l,1),d=u[0],f=Dw(a,r,o),h=_v(f,1),g=h[0];return d&&g})}function wc(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function sl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ev(e){e.preventDefault()}function TI(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function RI(e){return e.indexOf("Edge/")!==-1}function NI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return TI(e)||RI(e)}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lh=p.forwardRef(function(e,t){var n=e.children,r=bc(e,MI),o=Lw(r),i=o.open,s=bc(o,II);return p.useImperativeHandle(t,function(){return{open:i}},[i]),S.createElement(p.Fragment,null,n(Te(Te({},s),{},{open:i})))});lh.displayName="Dropzone";var Iw={disabled:!1,getFilesFromEvent:lI,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};lh.defaultProps=Iw;lh.propTypes={children:be.func,accept:be.oneOfType([be.string,be.arrayOf(be.string)]),multiple:be.bool,preventDropOnDocument:be.bool,noClick:be.bool,noKeyboard:be.bool,noDrag:be.bool,noDragEventsBubbling:be.bool,minSize:be.number,maxSize:be.number,maxFiles:be.number,disabled:be.bool,getFilesFromEvent:be.func,onFileDialogCancel:be.func,onFileDialogOpen:be.func,useFsAccessApi:be.bool,onDragEnter:be.func,onDragLeave:be.func,onDragOver:be.func,onDrop:be.func,onDropAccepted:be.func,onDropRejected:be.func,validator:be.func};var Af={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Lw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Te(Te({},Iw),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.preventDropOnDocument,b=t.noClick,C=t.noKeyboard,k=t.noDrag,_=t.noDragEventsBubbling,E=t.validator,j=p.useMemo(function(){return typeof w=="function"?w:$v},[w]),P=p.useMemo(function(){return typeof x=="function"?x:$v},[x]),N=p.useRef(null),D=p.useRef(null),L=p.useReducer(qI,Af),W=td(L,2),H=W[0],J=W[1],q=H.isFocused,Y=H.isFileDialogActive,I=H.draggedFiles,V=p.useRef(typeof window<"u"&&window.isSecureContext&&v&&PI()),X=function(){!V.current&&Y&&setTimeout(function(){if(D.current){var te=D.current.files;te.length||(J({type:"closeDialog"}),P())}},300)};p.useEffect(function(){return window.addEventListener("focus",X,!1),function(){window.removeEventListener("focus",X,!1)}},[D,Y,P,V]);var re=p.useRef([]),pe=function(te){N.current&&N.current.contains(te.target)||(te.preventDefault(),re.current=[])};p.useEffect(function(){return y&&(document.addEventListener("dragover",Ev,!1),document.addEventListener("drop",pe,!1)),function(){y&&(document.removeEventListener("dragover",Ev),document.removeEventListener("drop",pe))}},[N,y]);var st=p.useCallback(function(U){U.preventDefault(),U.persist(),In(U),re.current=[].concat(zI(re.current),[U.target]),sl(U)&&Promise.resolve(o(U)).then(function(te){wc(U)&&!_||(J({draggedFiles:te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(U))})},[o,u,_]),De=p.useCallback(function(U){U.preventDefault(),U.persist(),In(U);var te=sl(U);if(te&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(U),!1},[f,_]),He=p.useCallback(function(U){U.preventDefault(),U.persist(),In(U);var te=re.current.filter(function(et){return N.current&&N.current.contains(et)}),$e=te.indexOf(U.target);$e!==-1&&te.splice($e,1),re.current=te,!(te.length>0)&&(J({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),sl(U)&&d&&d(U))},[N,d,_]),ye=p.useCallback(function(U,te){var $e=[],et=[];U.forEach(function(lt){var Yr=Aw(lt,n),gt=td(Yr,2),$o=gt[0],To=gt[1],Ro=Dw(lt,s,i),No=td(Ro,2),Po=No[0],cr=No[1],Oo=E?E(lt):null;if($o&&Po&&!Oo)$e.push(lt);else{var Qr=[To,cr];Oo&&(Qr=Qr.concat(Oo)),et.push({file:lt,errors:Qr.filter(function(ru){return ru})})}}),(!a&&$e.length>1||a&&l>=1&&$e.length>l)&&($e.forEach(function(lt){et.push({file:lt,errors:[jI]})}),$e.splice(0)),J({acceptedFiles:$e,fileRejections:et,type:"setFiles"}),h&&h($e,et,te),et.length>0&&m&&m(et,te),$e.length>0&&g&&g($e,te)},[J,a,n,s,i,l,h,g,m,E]),at=p.useCallback(function(U){U.preventDefault(),U.persist(),In(U),re.current=[],sl(U)&&Promise.resolve(o(U)).then(function(te){wc(U)&&!_||ye(te,U)}),J({type:"reset"})},[o,ye,_]),yn=p.useCallback(function(){if(V.current){J({type:"openDialog"}),j();var U={multiple:a,types:OI(n)};window.showOpenFilePicker(U).then(function(te){return o(te)}).then(function(te){ye(te,null),J({type:"closeDialog"})}).catch(function(te){AI(te)?(P(te),J({type:"closeDialog"})):DI(te)&&(V.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&(J({type:"openDialog"}),j(),D.current.value=null,D.current.click())},[J,j,P,v,ye,n,a]),Mn=p.useCallback(function(U){!N.current||!N.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),yn())},[N,yn]),Eo=p.useCallback(function(){J({type:"focus"})},[]),Ke=p.useCallback(function(){J({type:"blur"})},[]),xn=p.useCallback(function(){b||(NI()?setTimeout(yn,0):yn())},[b,yn]),rn=function(te){return r?null:te},qr=function(te){return C?null:rn(te)},qe=function(te){return k?null:rn(te)},In=function(te){_&&te.stopPropagation()},Ki=p.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=U.refKey,$e=te===void 0?"ref":te,et=U.role,lt=U.onKeyDown,Yr=U.onFocus,gt=U.onBlur,$o=U.onClick,To=U.onDragEnter,Ro=U.onDragOver,No=U.onDragLeave,Po=U.onDrop,cr=bc(U,LI);return Te(Te(Of({onKeyDown:qr(Sn(lt,Mn)),onFocus:qr(Sn(Yr,Eo)),onBlur:qr(Sn(gt,Ke)),onClick:rn(Sn($o,xn)),onDragEnter:qe(Sn(To,st)),onDragOver:qe(Sn(Ro,De)),onDragLeave:qe(Sn(No,He)),onDrop:qe(Sn(Po,at)),role:typeof et=="string"&&et!==""?et:"button"},$e,N),!r&&!C?{tabIndex:0}:{}),cr)}},[N,Mn,Eo,Ke,xn,st,De,He,at,C,k,r]),qi=p.useCallback(function(U){U.stopPropagation()},[]),Yi=p.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=U.refKey,$e=te===void 0?"ref":te,et=U.onChange,lt=U.onClick,Yr=bc(U,FI),gt=Of({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:rn(Sn(et,at)),onClick:rn(Sn(lt,qi)),tabIndex:-1},$e,D);return Te(Te({},gt),Yr)}},[D,n,a,at,r]),jo=I.length,Pt=jo>0&&$I({files:I,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:l}),Ra=jo>0&&!Pt;return Te(Te({},H),{},{isDragAccept:Pt,isDragReject:Ra,isFocused:q&&!r,getRootProps:Ki,getInputProps:Yi,rootRef:N,inputRef:D,open:rn(yn)})}function qI(e,t){switch(t.type){case"focus":return Te(Te({},e),{},{isFocused:!0});case"blur":return Te(Te({},e),{},{isFocused:!1});case"openDialog":return Te(Te({},Af),{},{isFileDialogActive:!0});case"closeDialog":return Te(Te({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Te(Te({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Te(Te({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Te({},Af);default:return e}}function $v(){}function YI(e){let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,h))}},o=()=>t,i=(u,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function g(){const m=d(t);if(!f(h,m)){const x=h;u(h=m,x)}}return n.add(g),()=>n.delete(g)},l={setState:r,getState:o,subscribe:(u,d,f)=>d||f?i(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(r,o,l),l}const QI=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Tv=QI?p.useEffect:p.useLayoutEffect;function JI(e){const t=typeof e=="function"?YI(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=p.useReducer(w=>w+1,0),s=t.getState(),a=p.useRef(s),l=p.useRef(r),u=p.useRef(o),d=p.useRef(!1),f=p.useRef();f.current===void 0&&(f.current=r(s));let h,g=!1;(a.current!==s||l.current!==r||u.current!==o||d.current)&&(h=r(s),g=!o(f.current,h)),Tv(()=>{g&&(f.current=h),a.current=s,l.current=r,u.current=o,d.current=!1});const m=p.useRef(s);Tv(()=>{const w=()=>{try{const y=t.getState(),b=l.current(y);u.current(f.current,b)||(a.current=y,f.current=b,i())}catch{d.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const x=g?h:f.current;return p.useDebugValue(x),x};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const XI=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,l)=>{let u=s;if(a){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=s(r.getState());u=h=>{const g=s(h);if(!d(f,g)){const m=f;a(f=g,m)}},l!=null&&l.fireImmediately&&a(f,f)}return o(u)},e(t,n,r)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Fw=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var ZI=Fw;function Rv(e){return ZI(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var eL=function(t){var n,r;return!(Rv(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,Rv(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var tL=eL,ch=function(t){return tL(t)||typeof t=="function"||Array.isArray(t)};/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var nL=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},rL=ch,oL=nL;function zw(e,t){for(var n=arguments.length,r=0;++r + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var lL=function(e,t,n,r,o){if(!cL(e)||!t)return e;if(t=al(t),n&&(t+="."+al(n)),r&&(t+="."+al(r)),o&&(t+="."+al(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,a=-1;e&&++a + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var uL=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Nv(e)||(e={});for(var t=1;t + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var yL=pL,xL=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=yL({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],l=[""],u=r.sep,d=e.length,f=-1,h;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var _L=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Pv=_L,SL=function(t){Pv(t)||(t={});for(var n=arguments.length,r=1;r + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var EL=Fw;function Ov(e){return EL(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var jL=function(t){var n,r;return!(Ov(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,Ov(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var $L=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! + * set-value + * + * Copyright (c) 2014-2015, 2017, Jon Schlinkert. + * Released under the MIT License. + */var TL=xL,RL=SL,Av=jL,Dv=$L,NL=function(e,t,n){if(!Dv(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=TL(t,{sep:".",brackets:!0}).filter(PL),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function ML(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function IL(e,t){return Object.entries(oM(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function LL(e,t){const n=p.useRef();return(t?sa:_a)(e,n.current)||(n.current=e),n.current}function Bw(e,t){return p.useMemo(e,LL(t,!0))}function FL(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!0);return p.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),p.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const zL=e=>{const[t,n]=p.useState(e.getVisiblePaths());return p.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:_a});return()=>r()},[e]),t};function BL(e,t,n){return e.useStore(o=>{const i=ne(ne({},n),o.data);return IL(i,t)},_a)}function Uw(e=3){const t=p.useRef(null),n=p.useRef(null),[r,o]=p.useState(!1),i=p.useCallback(()=>o(!0),[]),s=p.useCallback(()=>o(!1),[]);return p.useLayoutEffect(()=>{if(r){const{bottom:a,top:l,left:u}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=a+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=u+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}B5([U5]);const UL={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};$t.extend({color:()=>e=>xt(e).isValid()});const HL=e=>$t().color().test(e);function Hw(e,{format:t,hasAlpha:n,isString:r}){const o=UL[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?iM(i,["a"]):i}const Ww=(e,t)=>{const n=xt(e);if(!n.isValid())throw Error("Invalid color");return Hw(n,t)},WL=(e,t)=>Hw(xt(e),ne(ne({},t),{},{isString:!0,format:"hex"})),VL=({value:e})=>{const t=z5(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:Ww(e,o),settings:o}};var GL=Object.freeze({__proto__:null,schema:HL,sanitize:Ww,format:WL,normalize:VL});const KL=ee("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),qL=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),YL=ee("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Lv(e,t){return t!=="rgb"?xt(e).toRgb():e}function QL({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=mt(),{format:s,hasAlpha:a}=n,{popinRef:l,wrapperRef:u,shown:d,show:f,hide:h}=Uw(),g=p.useRef(0),[m,x]=p.useState(()=>Lv(e,s)),w=a?Y5:J5,v=()=>{x(Lv(e,s)),f(),o()},y=()=>{h(),i(),window.clearTimeout(g.current)},b=()=>{g.current=window.setTimeout(y,500)};return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),S.createElement(S.Fragment,null,S.createElement(KL,{ref:l,active:d,onClick:()=>v(),style:{color:t}}),d&&S.createElement(th,null,S.createElement(lw,{onPointerUp:y}),S.createElement(YL,{ref:u,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:C=>C.buttons===0&&b()},S.createElement(w,{color:m,onChange:r}))))}function JL(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,n),S.createElement(qL,null,S.createElement(QL,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),S.createElement(eh,{value:t,onChange:r,onUpdate:o})))}var XL=ne({component:JL},GL);function ZL(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(rh,{value:t,settings:r,onUpdate:n}))}var e4=ne({component:ZL},gw(["x","y","z"]));const t4=ee("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),n4=ee("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function r4({value:e,settings:t,onUpdate:n}){const r=p.useRef(),o=p.useRef(0),i=p.useRef(0),s=p.useRef(1),[a,l]=p.useState(!1),[u,d]=p.useState(!1),[f,h]=uw(),g=p.useRef(null),m=p.useRef(null);p.useLayoutEffect(()=>{if(a){const{top:L,left:W,width:H,height:J}=g.current.getBoundingClientRect();m.current.style.left=W+H/2+"px",m.current.style.top=L+J/2+"px"}},[a]);const{keys:[x,w],joystick:v}=t,y=v==="invertY"?1:-1,{[x]:{step:b},[w]:{step:C}}=t,k=Jn("sizes","joystickWidth"),_=Jn("sizes","joystickHeight"),E=parseFloat(k)*.8/2,j=parseFloat(_)*.8/2,P=p.useCallback(()=>{r.current||(d(!0),o.current&&h({x:o.current*E}),i.current&&h({y:i.current*-j}),r.current=window.setInterval(()=>{n(L=>{const W=b*o.current*s.current,H=y*C*i.current*s.current;return Array.isArray(L)?{[x]:L[0]+W,[w]:L[1]+H}:{[x]:L[x]+W,[w]:L[w]+H}})},16))},[E,j,n,h,b,C,x,w,y]),N=p.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);p.useEffect(()=>{function L(W){s.current=qx(W)}return window.addEventListener("keydown",L),window.addEventListener("keyup",L),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",L),window.removeEventListener("keyup",L)}},[]);const D=ja(({first:L,active:W,delta:[H,J],movement:[q,Y]})=>{L&&l(!0);const I=Hr(q,-E,E),V=Hr(Y,-j,j);o.current=Math.abs(q)>Math.abs(I)?Math.sign(q-I):0,i.current=Math.abs(Y)>Math.abs(V)?Math.sign(V-Y):0;let X=e[x],re=e[w];W?(o.current||(X+=H*b*s.current,h({x:I})),i.current||(re-=y*J*C*s.current,h({y:V})),o.current||i.current?P():N(),n({[x]:X,[w]:re})):(l(!1),o.current=0,i.current=0,h({x:0,y:0}),N())});return S.createElement(t4,Fe({ref:g},D()),a&&S.createElement(th,null,S.createElement(n4,{ref:m,isOutOfBounds:u},S.createElement("div",null),S.createElement("span",{ref:f}))))}const o4=ee("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function i4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt();return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(o4,{withJoystick:!!r.joystick},r.joystick&&S.createElement(r4,{value:t,settings:r,onUpdate:n}),S.createElement(rh,{value:t,settings:r,onUpdate:n})))}const s4=["joystick"],Vw=gw(["x","y"]),a4=e=>{let{joystick:t=!0}=e,n=ve(e,s4);const{value:r,settings:o}=Vw.normalize(n);return{value:r,settings:ne(ne({},o),{},{joystick:t})}};var l4=ne(ne({component:i4},Vw),{},{normalize:a4});const c4=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},u4=(e,t)=>typeof t=="object"&&"image"in t,d4=({image:e})=>({value:e});var f4=Object.freeze({__proto__:null,sanitize:c4,schema:u4,normalize:d4});const p4=ee("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),h4=ee("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),m4=ee("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),g4=ee("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),v4=ee("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),y4=ee("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function x4(){const{label:e,value:t,onUpdate:n,disabled:r}=mt(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:l}=Uw(),u=p.useCallback(m=>{m.length&&n(m[0])},[n]),d=p.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:h,isDragAccept:g}=Lw({maxFiles:1,accept:"image/*",onDrop:u,disabled:r});return S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(p4,null,S.createElement(m4,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&S.createElement(th,null,S.createElement(lw,{onPointerUp:l,style:{cursor:"pointer"}}),S.createElement(g4,{ref:i,style:{backgroundImage:`url(${t})`}})),S.createElement(h4,f({isDragAccept:g}),S.createElement("input",h()),S.createElement(v4,null,g?"drop image":"click or drop")),S.createElement(y4,{onClick:d,disabled:!t})))}var w4=ne({component:x4},f4);const Fv=$t().number(),b4=(e,t)=>$t().array().length(2).every.number().test(e)&&$t().schema({min:Fv,max:Fv}).test(t),_c=e=>({min:e[0],max:e[1]}),Gw=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?_c(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=ne(ne({},i),o);return[Hr(Number(s),t,Math.max(t,a)),Hr(Number(a),Math.min(n,s),n)]},_4=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=mw(_c(e),{min:r,max:r}),i=[t,n],s=ne(ne({},o),{},{bounds:i});return{value:Gw(_c(e),s,e),settings:s}};var S4=Object.freeze({__proto__:null,schema:b4,format:_c,sanitize:Gw,normalize:_4});const k4=["value","bounds","onDrag"],C4=["bounds"],E4=ee("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function j4(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ve(e,k4);const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),u=p.useRef(0),d=Jn("sizes","scrubberWidth"),f=ja(({event:m,first:x,xy:[w],movement:[v],memo:y={}})=>{if(x){const{width:C,left:k}=s.current.getBoundingClientRect();u.current=C-parseFloat(d);const _=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===l.current;y.pos=vc((w-k)/C,n,r);const E=Math.abs(y.pos-t.min)-Math.abs(y.pos-t.max);y.key=E<0||E===0&&y.pos<=t.min?"min":"max",_&&(y.pos=t[y.key])}const b=y.pos+vc(v/u.current,0,r-n);return o({[y.key]:KM(b,i[y.key])}),y}),h=`calc(${gc(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-gc(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return S.createElement(fw,Fe({ref:s},f()),S.createElement(dw,null,S.createElement(pw,{style:{left:h,right:g}})),S.createElement(kf,{position:"left",ref:a,style:{left:h}}),S.createElement(kf,{position:"right",ref:l,style:{right:g}}))}function $4(){const{label:e,displayValue:t,onUpdate:n,settings:r}=mt(),o=ve(r,C4);return S.createElement(S.Fragment,null,S.createElement(nn,{input:!0},S.createElement(gn,null,e),S.createElement(E4,null,S.createElement(j4,Fe({value:t},r,{onDrag:n})),S.createElement(rh,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var T4=ne({component:$4},S4);const R4=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},N4=["type","value"],P4=["onChange","transient","onEditStart","onEditEnd"],O4=function(){const t=JI(XI(()=>({data:{}}))),n=R4();this.storeId=rM(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(r).forEach(([d,f])=>{f.render&&a.some(h=>h.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const u=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&u.push(d)}),u},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const l=a.data;return s.forEach(u=>{if(u in l){const d=l[u];d.__refCount--,d.__refCount===0&&d.type in pn&&delete l[u]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(l=>{const u=l.data;return Object.entries(s).forEach(([d,f])=>{let h=u[d];if(h){const{type:g,value:m}=f,x=ve(f,N4);g!==h.type?Vn(Re.INPUT_TYPE_OVERRIDE,g):((h.__refCount===0||a)&&Object.assign(h,x),h.__refCount++)}else u[d]=ne(ne({},f),{},{__refCount:1})}),{data:u}})},this.setValueAtPath=(s,a,l)=>{t.setState(u=>{const d=u.data;return av(d[s],a,s,this,l),{data:d}})},this.setSettingsAtPath=(s,a)=>{t.setState(l=>{const u=l.data;return u[s].settings=ne(ne({},u[s].settings),a),{data:u}})},this.disableInputAtPath=(s,a)=>{t.setState(l=>{const u=l.data;return u[s].disabled=a,{data:u}})},this.set=(s,a)=>{t.setState(l=>{const u=l.data;return Object.entries(s).forEach(([d,f])=>{try{av(u[d],f,void 0,void 0,a)}catch{}}),{data:u}})},this.getInput=s=>{try{return this.getData()[s]}catch{Vn(Re.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,ne(ne({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return n.on(l,a),()=>n.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return n.on(l,a),()=>n.off(l,a)};const i=(s,a,l)=>{const u={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return Vn(Re.EMPTY_KEY);let h=uh(a,d);if(f.type===pn.FOLDER){const g=i(f.schema,h,l);Object.assign(u,g),h in r||(r[h]=f.settings)}else if(d in l)Vn(Re.DUPLICATE_KEYS,d,h,l[d].path);else{const g=dM(f,d,h,u);if(g){const{type:m,options:x,input:w}=g,{onChange:v,transient:y,onEditStart:b,onEditEnd:C}=x,k=ve(x,P4);u[h]=ne(ne(ne({type:m},k),w),{},{fromPanel:!0}),l[d]={path:h,onChange:v,transient:y,onEditStart:b,onEditEnd:C}}else Vn(Re.UNKNOWN_INPUT,h,f)}}),u};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},Kw=new O4,A4={collapsed:!1};function D4(e,t){return{type:pn.FOLDER,schema:e,settings:ne(ne({},A4),t)}}const zv=e=>"__levaInput"in e,M4=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=ML(o);(!r||i.toLowerCase().indexOf(r)>-1)&&DL(n,s,{[i]:{__levaInput:!0,path:o}})}),n},I4=["type","label","path","valueKey","value","settings","setValue","disabled"];function L4(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:l}=e,u=ve(e,I4);const{displayValue:d,onChange:f,onUpdate:h}=cw({type:t,value:i,settings:s,setValue:a}),g=bo[t].component;return g?S.createElement(Zx.Provider,{value:ne({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:h,settings:s,setValue:a,disabled:l},u)},S.createElement(NM,{disabled:l},S.createElement(g,null))):(Vn(Re.NO_COMPONENT_FOR_TYPE,t,r),null)}const F4=ee("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function z4({onClick:e,settings:t,label:n}){const r=Ea();return S.createElement(nn,null,S.createElement(F4,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const B4=ee("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),U4=ee("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),H4=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function W4(e){const{label:t,opts:n}=H4(e),r=Ea();return S.createElement(nn,{input:!!t},t&&S.createElement(gn,null,t),S.createElement(B4,null,Object.entries(n).map(([o,i])=>S.createElement(U4,{key:o,onClick:()=>i(r.get)},o))))}const V4=ee("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),qw=100;function G4(e,t){e.push(t),e.length>qw&&e.shift()}const K4=p.forwardRef(function({initialValue:e},t){const n=Jn("colors","highlight3"),r=Jn("colors","elevation2"),o=Jn("colors","highlight1"),[i,s]=p.useMemo(()=>[xt(o).alpha(.4).toRgbString(),xt(o).alpha(.1).toRgbString()],[o]),a=p.useRef([e]),l=p.useRef(e),u=p.useRef(e),d=p.useRef(),f=p.useCallback((m,x)=>{if(!m)return;const{width:w,height:v}=m,y=new Path2D,b=w/qw,C=v*.05;for(let E=0;E({frame:m=>{(l.current===void 0||mu.current)&&(u.current=m),G4(a.current,m),d.current=requestAnimationFrame(()=>f(h.current,g.current))}}),[h,g,f]),p.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),S.createElement(V4,{ref:h})}),Bv=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),q4=p.forwardRef(function({initialValue:e},t){const[n,r]=p.useState(Bv(e));return p.useImperativeHandle(t,()=>({frame:o=>r(Bv(o))}),[]),S.createElement("div",null,n)});function Uv(e){return typeof e=="function"?e():e.current}function Y4({label:e,objectOrFn:t,settings:n}){const r=p.useRef(),o=p.useRef(Uv(t));return p.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Uv(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),S.createElement(nn,{input:!0},S.createElement(gn,{align:"top"},e),n.graph?S.createElement(K4,{ref:r,initialValue:o.current}):S.createElement(q4,{ref:r,initialValue:o.current}))}const Q4=["type","label","key"],J4={[pn.BUTTON]:z4,[pn.BUTTON_GROUP]:W4,[pn.MONITOR]:Y4},X4=S.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=UM(e);if(!t)return null;const{type:l,label:u,key:d}=t,f=ve(t,Q4);if(l in pn){const h=J4[l];return S.createElement(h,Fe({label:u,path:e},f))}return l in bo?S.createElement(L4,Fe({key:i+e,type:l,label:u,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(YD(Re.UNSUPPORTED_INPUT,l,e),null)});function Z4({toggle:e,toggled:t,name:n}){return S.createElement($M,{onClick:()=>e()},S.createElement(nh,{toggled:t}),S.createElement("div",null,n))}const e6=({name:e,path:t,tree:n})=>{const r=Ea(),o=uh(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,l]=p.useState(!i),u=p.useRef(null),d=Jn("colors","folderWidgetColor"),f=Jn("colors","folderTextColor");return p.useLayoutEffect(()=>{u.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),u.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),S.createElement(yc,{ref:u},S.createElement(Z4,{name:e,toggled:a,toggle:()=>l(h=>!h)}),S.createElement(Yw,{parent:o,tree:n,toggled:a}))},Yw=S.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=FL(i),l=Ea(),u=([f,h])=>{var g;return(zv(h)?(g=l.getInput(h.path))===null||g===void 0?void 0:g.order:l.getFolderSettings(uh(r,f)).order)||0},d=Object.entries(o).sort((f,h)=>u(f)-u(h));return S.createElement(_f,{ref:s,isRoot:e,fill:t,flat:n},S.createElement(iw,{ref:a,isRoot:e,toggled:i},d.map(([f,h])=>zv(h)?S.createElement(X4,{key:h.path,valueKey:h.valueKey,path:h.path}):S.createElement(e6,{key:f,name:f,path:r,tree:h}))))}),t6=ee("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${aw}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),Qw=40,Sc=ee("i",{$flexCenter:"",width:Qw,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),n6=ee("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),r6=ee("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Sc}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),o6=ee("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),i6=ee("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:Qw}}}}),s6=S.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=p.useState(""),i=p.useMemo(()=>Kx(e,250),[e]),s=()=>{e(""),o("")},a=l=>{const u=l.currentTarget.value;t(!0),o(u)};return p.useEffect(()=>{i(r)},[r,i]),S.createElement(S.Fragment,null,S.createElement(o6,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),S.createElement(Sc,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function a6({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:l,from:u}){const[d,f]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{var m,x;d?(m=h.current)===null||m===void 0||m.focus():(x=h.current)===null||x===void 0||x.blur()},[d]);const g=ja(({offset:[m,x],first:w,last:v})=>{t({x:m,y:x}),w&&n({x:m,y:x}),v&&r({x:m,y:x})},{filterTaps:!0,from:({offset:[m,x]})=>[(u==null?void 0:u.x)||m,(u==null?void 0:u.y)||x]});return p.useEffect(()=>{const m=x=>{x.key==="L"&&x.shiftKey&&x.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),S.createElement(S.Fragment,null,S.createElement(n6,{mode:a?"drag":void 0},S.createElement(Sc,{active:!i,onClick:()=>o()},S.createElement(nh,{toggled:i,width:12,height:8})),S.createElement(i6,Fe({},a?g():{},{drag:a,filterEnabled:l}),s===void 0&&a?S.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},S.createElement("circle",{cx:"2",cy:"2",r:"2"}),S.createElement("circle",{cx:"14",cy:"2",r:"2"}),S.createElement("circle",{cx:"26",cy:"2",r:"2"}),S.createElement("circle",{cx:"2",cy:"12",r:"2"}),S.createElement("circle",{cx:"14",cy:"12",r:"2"}),S.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),l&&S.createElement(Sc,{active:d,onClick:()=>f(m=>!m)},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},S.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),S.createElement(r6,{toggled:d},S.createElement(s6,{ref:h,setFilter:e,toggle:o})))}const l6=["store","hidden","theme","collapsed"];function c6(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ve(e,l6);const s=Bw(()=>_M(r),[r]),[a,l]=p.useState(!o),u=typeof o=="object"?!o.collapsed:a,d=p.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:l,[o]);return!t||n?null:S.createElement(Zp.Provider,{value:s},S.createElement(u6,Fe({store:t},i,{toggled:u,setToggle:d,rootClass:s.className})))}const u6=S.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:l,setToggle:u})=>{var d,f;const h=zL(e),[g,m]=p.useState(""),x=p.useMemo(()=>M4(h,g),[h,g]),[w,v]=uw(),y=o||h.length>0,b=typeof s=="object"&&s.title||void 0,C=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,k=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,_=typeof s=="object"&&s.position||void 0,E=typeof s=="object"&&s.onDrag||void 0,j=typeof s=="object"&&s.onDragStart||void 0,P=typeof s=="object"&&s.onDragEnd||void 0;return S.useEffect(()=>{v({x:_==null?void 0:_.x,y:_==null?void 0:_.y})},[_,v]),bM(),S.createElement(tw.Provider,{value:{hideCopyButton:a}},S.createElement(t6,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:y?"block":"none"}},s&&S.createElement(a6,{onDrag:N=>{v(N),E==null||E(N)},onDragStart:N=>j==null?void 0:j(N),onDragEnd:N=>P==null?void 0:P(N),setFilter:m,toggle:N=>u(D=>N??!D),toggled:l,title:b,drag:C,filterEnabled:k,from:_}),y&&S.createElement(ew.Provider,{value:e},S.createElement(Yw,{isRoot:!0,fill:n,flat:r,tree:x,toggled:l}))))}),d6=["isRoot"];let kc=!1,lo=null;function Jw(e){let{isRoot:t=!1}=e,n=ve(e,d6);return p.useEffect(()=>(kc=!0,!t&&lo&&(lo.remove(),lo=null),()=>{t||(kc=!1)}),[t]),S.createElement(c6,Fe({store:Kw},n))}function f6(e){p.useEffect(()=>{e&&!kc&&(lo||(lo=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(lo),pM(S.createElement(Jw,{isRoot:!0}),lo))),kc=!0)},[e])}function p6(e,t,n,r,o){let i,s,a,l,u;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?u=n:n&&("store"in n?(l=n,u=r):(a=n,Array.isArray(r)?u=r:(l=r,u=o)))):(i=e,Array.isArray(t)?u=t:(l=t,u=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:l,deps:u||[]}}function rd(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:l,deps:u}=p6(e,t,n,r,o),d=typeof s=="function",f=p.useRef(!1),h=p.useRef(!0),g=Bw(()=>{f.current=!0;const D=typeof s=="function"?s():s;return i?{[i]:D4(D,a)}:D},u),m=!(l!=null&&l.store);f6(m);const[x]=p.useState(()=>(l==null?void 0:l.store)||Kw),[w,v]=p.useMemo(()=>x.getDataFromSchema(g),[x,g]),[y,b,C,k,_]=p.useMemo(()=>{const D=[],L=[],W={},H={},J={};return Object.values(v).forEach(({path:q,onChange:Y,onEditStart:I,onEditEnd:V,transient:X})=>{D.push(q),Y?(W[q]=Y,X||L.push(q)):L.push(q),I&&(H[q]=I),V&&(J[q]=V)}),[D,L,W,H,J]},[v]),E=p.useMemo(()=>x.orderPaths(y),[y,x]),j=BL(x,b,w),P=p.useCallback(D=>{const L=Object.entries(D).reduce((W,[H,J])=>Object.assign(W,{[v[H].path]:J}),{});x.set(L,!1)},[x,v]),N=p.useCallback(D=>x.get(v[D].path),[x,v]);return p.useEffect(()=>{const D=!h.current&&f.current;return x.addData(w,D),h.current=!1,f.current=!1,()=>x.disposePaths(E)},[x,E,w]),p.useEffect(()=>{const D=[];return Object.entries(C).forEach(([L,W])=>{W(x.get(L),L,ne({initial:!0,get:x.get},x.getInput(L)));const H=x.useStore.subscribe(J=>{const q=J.data[L];return[q.disabled?void 0:q.value,q]},([J,q])=>W(J,L,ne({initial:!1,get:x.get},q)),{equalityFn:_a});D.push(H)}),()=>D.forEach(L=>L())},[x,C]),p.useEffect(()=>{const D=[];return Object.entries(k).forEach(([L,W])=>D.push(x.subscribeToEditStart(L,W))),Object.entries(_).forEach(([L,W])=>D.push(x.subscribeToEditEnd(L,W))),()=>D.forEach(L=>L())},[k,_,x]),d?[j,P,N]:j}lr(mn.SELECT,i5);lr(mn.IMAGE,w4);lr(mn.NUMBER,YM);lr(mn.COLOR,XL);lr(mn.STRING,h5);lr(mn.BOOLEAN,b5);lr(mn.INTERVAL,T4);lr(mn.VECTOR3D,e4);lr(mn.VECTOR2D,l4);const h6=window.innerWidth<=768,m6=()=>{const{groupSize:e}=rd({groupSize:{value:2,min:2,max:4,step:1}}),{itemCount:t}=rd({itemCount:{value:8,min:4,max:12,step:1}}),{columns:n}=rd({columns:{value:4,min:2,max:4,step:1,disabled:h6}}),[r,o]=p.useState([]),[i,s]=p.useState([]),a=p.useCallback(()=>{const[l,u]=v3(t,e);o(l),s(u)},[s,t,e]);return p.useEffect(a,[t,e,a]),c.jsxs(c.Fragment,{children:[c.jsx(Jw,{collapsed:!0,hideCopyButton:!0,titleBar:{position:{x:0,y:40},filter:!1,title:"Config"},theme:{colors:{highlight1:"white",highlight2:"white"}}}),c.jsxs("h3",{className:qn.center,children:["Connect group of ",e," words by clicking on related words"]}),c.jsx(j3,{itemGroups:r,allItems:i,columns:n,groupSize:e}),c.jsx("div",{className:qn.center,children:c.jsx("button",{className:qn.reset,onClick:()=>a(),children:"Reset"})})]})},g6="_heading_12asi_1",v6="_stepper_12asi_5",y6="_step_12asi_5",x6="_active_12asi_33",w6="_complete_12asi_38",b6="_btn_12asi_43",sn={heading:g6,stepper:v6,step:y6,"step-number":"_step-number_12asi_20",active:x6,complete:w6,btn:b6,"progress-container":"_progress-container_12asi_48","progress-bar":"_progress-bar_12asi_56","action-container":"_action-container_12asi_62"},_6=({stepConfig:e=[]})=>{var u;const[t,n]=p.useState(1),[r,o]=p.useState(!1);if(e.length===0)return null;const i=(u=e[t-1])==null?void 0:u.Component,s=d=>{o(!1),n(d)},a=()=>{n(d=>d{n(d=>d===e.length?(o(!0),d):d+1)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:sn.stepper,children:[e.map((d,f)=>c.jsxs("div",{className:`${sn.step} ${t===f+1?sn.active:""} ${t>f+1||r?sn.complete:""}`,children:[c.jsx("div",{className:sn["step-number"],onClick:()=>s(f+1),children:t>f+1||r?c.jsx("span",{children:"✓"}):f+1}),c.jsx("div",{className:sn["step-name"],children:d.name})]},d.name)),c.jsx("div",{className:sn["progress-container"],style:{width:`calc(100% - (100% / ${e.length}))`,marginLeft:`calc(100% /(${e.length} * 2))`,zIndex:-1},children:c.jsx("div",{className:sn["progress-bar"],style:{width:`${(t-1)/(e.length-1)*100}%`}})})]}),c.jsxs("div",{className:sn["action-container"],children:[!r&&c.jsx(i,{}),r&&c.jsx("div",{children:"Order Delivered successfully!🎉"}),c.jsxs("span",{children:[c.jsx("button",{disabled:t===1,className:sn.btn,onClick:a,children:"Previous"}),c.jsx("button",{disabled:r,className:sn.btn,onClick:l,children:t===e.length?"Finish":"Next"})]})]})]})},S6=[{name:"Contact Details",Component:()=>c.jsx("div",{children:"Add contact details for further communications."})},{name:"Shipping Address",Component:()=>c.jsx("div",{children:"Add shipping address for successful delivery."})},{name:"Payment",Component:()=>c.jsx("div",{children:"Complete Payment to complete the order."})},{name:"Delivered",Component:()=>c.jsx("div",{children:"Ready to get delivered!"})}],k6=()=>c.jsx("div",{children:c.jsx(_6,{stepConfig:S6})}),C6="_main_yhjgz_1",E6="_option_yhjgz_26",_i={main:C6,"select-dahi":"_select-dahi_yhjgz_7","inline-options":"_inline-options_yhjgz_14",option:E6,"option-selected":"_option-selected_yhjgz_44","option-disabled":"_option-disabled_yhjgz_50"};function j6({id:e,text:t,setOption:n,isDisabled:r,isSelected:o}){const i=p.useCallback(s=>{if(r)return;const l=s.target.getAttribute("data-option-id");l&&n(l)},[]);return c.jsx("button",{"data-option-id":e,onClick:i,className:`${_i.option} ${o?_i["option-selected"]:""} ${r?_i["option-disabled"]:""}`,children:t})}function $6({options:e}){const[t,n]=p.useState(e[0].id),r=p.useCallback(o=>n(o),[]);return c.jsx("div",{className:_i["inline-options"],children:e.map(o=>c.jsx(j6,{...o,isSelected:o.id===t,setOption:r},o.id))})}const T6=[{id:"1",text:"100ml"},{id:"2",text:"200ml"},{id:"3",text:"400ml"},{id:"4",text:"500ml",isDisabled:!0},{id:"5",text:"800ml"}];function R6(){return c.jsx("div",{className:_i.main,children:c.jsxs("div",{className:_i["select-dahi"],children:[c.jsx("h2",{children:"Select Size of Dahi"}),c.jsx($6,{options:T6})]})})}const N6="_a_13gc8_1",P6="_d_13gc8_2",O6="_g_13gc8_3",A6="_b_13gc8_18",D6="_c_13gc8_19",M6="_e_13gc8_20",I6="_f_13gc8_21",L6="_off_13gc8_54",F6="_container_13gc8_59",z6="_hours_13gc8_68",B6="_minutes_13gc8_72",U6="_seconds_13gc8_76",H6="_colons_13gc8_80",W6="_colon1_13gc8_89",V6="_colon2_13gc8_90",M={a:N6,d:P6,g:O6,b:A6,c:D6,e:M6,f:I6,off:L6,container:F6,hours:z6,minutes:B6,seconds:U6,colons:H6,colon1:W6,colon2:V6},G6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:M.c}),c.jsx("div",{className:`${M.d} ${M.off}`}),c.jsx("div",{className:M.e}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),K6=c.jsxs("div",{children:[c.jsx("div",{className:`${M.a} ${M.off}`}),c.jsx("div",{className:M.b}),c.jsx("div",{className:`${M.c} ${M.off}`}),c.jsx("div",{className:`${M.d} ${M.off}`}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:`${M.g} ${M.off}`})]}),q6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:`${M.c} ${M.off}`}),c.jsx("div",{className:M.d}),c.jsx("div",{className:M.e}),c.jsx("div",{className:`${M.f} ${M.off}`}),c.jsx("div",{className:M.g})]}),Y6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:`${M.c} ${M.off}`}),c.jsx("div",{className:M.d}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),Q6=c.jsxs("div",{children:[c.jsx("div",{className:`${M.a} ${M.off}`}),c.jsx("div",{className:M.b}),c.jsx("div",{className:M.c}),c.jsx("div",{className:M.d}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:`${M.g} ${M.off}`})]}),J6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:`${M.b} ${M.off}`}),c.jsx("div",{className:M.c}),c.jsx("div",{className:M.d}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),X6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:`${M.b} ${M.off}`}),c.jsx("div",{className:M.c}),c.jsx("div",{className:M.d}),c.jsx("div",{className:M.e}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),Z6=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:`${M.c} ${M.off}`}),c.jsx("div",{className:`${M.d} ${M.off}`}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:`${M.g} ${M.off}`})]}),eF=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:M.c}),c.jsx("div",{className:M.d}),c.jsx("div",{className:M.e}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),tF=c.jsxs("div",{children:[c.jsx("div",{className:M.a}),c.jsx("div",{className:M.b}),c.jsx("div",{className:M.c}),c.jsx("div",{className:M.d}),c.jsx("div",{className:`${M.e} ${M.off}`}),c.jsx("div",{className:M.f}),c.jsx("div",{className:M.g})]}),Hv=c.jsxs("div",{className:M.colons,children:[c.jsx("div",{className:M.colon1}),c.jsx("div",{className:M.colon2})]}),vn=new Map;vn.set(0,G6);vn.set(1,K6);vn.set(2,q6);vn.set(3,Y6);vn.set(4,Q6);vn.set(5,J6);vn.set(6,X6);vn.set(7,Z6);vn.set(8,eF);vn.set(9,tF);function nF(){let e=new Date;const[t,n]=p.useState(e.getHours()%12||12),[r,o]=p.useState(e.getMinutes()),[i,s]=p.useState(e.getSeconds()),a=()=>{let u=new Date;n(u.getHours()%12||12),o(u.getMinutes()),s(u.getSeconds())};setInterval(()=>a(),1e3);const l=u=>vn.get(u);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:M.container,children:[c.jsxs("div",{className:M.hours,children:[l(t.toString().split("").length>1?+t.toString().split("")[0]:0),l(t.toString().split("").length>1?+t.toString().split("")[1]:t)]}),Hv,c.jsxs("div",{className:M.minutes,children:[l(r.toString().split("").length>1?+r.toString().split("")[0]:0),l(r.toString().split("").length>1?+r.toString().split("")[1]:r)]}),Hv,c.jsxs("div",{className:M.seconds,children:[l(i.toString().split("").length>1?+i.toString().split("")[0]:0),l(i.toString().split("").length>1?+i.toString().split("")[1]:i)]})]})})}const rF=[{id:1,text:"Hello world! How are you?",replies:[{id:2,text:"Hey, I am fine, wau?",replies:[]}]}],oF="_comment_10sns_1",iF="_comment_replies_10sns_17",Wv={comment:oF,comment_replies:iF},Xw=({comments:e,addComment:t,deleteComment:n})=>{const[r,o]=p.useState(-1),[i,s]=p.useState(""),a=d=>{i&&(t(d,i),o(-1)),s("")},l=()=>{o(-1),s("")},u=(d,f)=>{d.key==="Enter"?a(f):d.key==="Escape"&&l()};return e.map(d=>c.jsxs("div",{children:[c.jsxs("div",{className:Wv.comment,children:[c.jsx("img",{src:"https://www.iconpacks.net/icons/2/free-user-icon-3296-thumb.png",alt:d.text}),c.jsxs("div",{children:[c.jsx("p",{children:d.text}),r===d.id&&c.jsx("input",{type:"text",placeholder:"Reply...",autoFocus:!0,value:i,onKeyDown:f=>u(f,d.id),onChange:f=>s(f.target.value)}),r===d.id?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>a(d.id),children:"Add"}),c.jsx("button",{onClick:l,children:"Cancel"})]}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>o(d.id),children:"Reply"}),c.jsx("button",{onClick:()=>n(d.id),children:"Delete"})]})]})]}),c.jsx("div",{className:Wv.comment_replies,children:c.jsx(Xw,{comments:d.replies,addComment:t,deleteComment:n})})]},d.id))},sF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(rF),o=(a,l)=>{l&&r(a===-1?u=>{const d=structuredClone(u);return d.unshift({id:Date.now(),text:l,replies:[]}),d}:u=>{const d=structuredClone(u);return Zw(d,a,l),d})},i=a=>{r(l=>{const u=structuredClone(l);return eb(u,a),u})},s=a=>{a.key==="Enter"&&(o(-1,e),t("")),a.key==="Escape"&&t("")};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{children:"Comments"}),c.jsxs("div",{style:{marginBottom:"1rem",display:"flex",gap:"1rem"},children:[c.jsx("input",{type:"text",placeholder:"Add comment...",onKeyDown:s,value:e,onChange:a=>t(a.target.value)}),c.jsx("button",{onClick:()=>{o(-1,e),t("")},children:"Add"})]}),c.jsx(Xw,{comments:n,addComment:o,deleteComment:i})]})},Zw=(e,t,n)=>{for(const r of e){if(r.id===t)return r.replies.unshift({id:Date.now(),text:n,replies:[]}),!0;if(Zw(r.replies,t,n))return!0}return!1},eb=(e,t)=>{for(let n=0;n{const{grid:h,activeCount:g}=lF(e,t);s(h),l.current=h,a.current=g;const m=setTimeout(()=>{s(x=>x.map(w=>w.map(()=>!1))),u.current=!0},to.timer);return()=>clearTimeout(m)},[e,t]);function d(h,g){i[h][g]||!u.current||(l.current[h][g]?(s(m=>m.map((x,w)=>x.map((v,y)=>w===h&&y===g?!0:v))),l.current[h][g]=!1,a.current=a.current-1):n(),a.current===0&&(r(),u.current=!1))}return c.jsx(fF,{rows:i.length,cols:(f=i[0])==null?void 0:f.length,width:.9*window.innerWidth,children:i.map((h,g)=>h.map((m,x)=>c.jsx("button",{disabled:o,onClick:()=>d(g,x),style:{backgroundColor:m?"yellow":"white"}},`${g}-${x}`)))})}function hF({level:e,size:t,onComplete:n,onError:r,life:o}){return e===0?null:c.jsxs("section",{children:[c.jsxs("h3",{children:["Level: ",e]}),c.jsx(pF,{rows:t.rows,cols:t.cols,onComplete:n,onError:r,disabled:o===0}),c.jsxs("p",{style:{fontSize:"2rem"},children:["Life Left: ",o]})]})}function mF({level:e,isGameInProgress:t,isGameOver:n,onNext:r,onRestart:o}){return t?null:n?c.jsx("div",{children:c.jsx("button",{className:Cc.button,onClick:o,children:"Restart"})}):c.jsx("div",{children:c.jsx("button",{className:Cc.button,onClick:r,children:e===0?"Start":"Next"})})}function gF(){const[e,t]=p.useState({rows:to.rows-1,cols:to.cols}),[n,r]=p.useState(to.life),[o,i]=p.useState(0),[s,a]=p.useState(!1),[l,u]=p.useState(!1);function d(){i(o+1),u(!0),e.rows>e.cols?t({rows:e.rows,cols:e.cols+1}):t({rows:e.rows+1,cols:e.cols})}function f(){u(!1)}function h(){r(n-1),n===1&&(a(!0),u(!1))}function g(){i(1),r(to.life),a(!1),u(!0),t({rows:to.rows,cols:to.cols})}return c.jsxs("main",{className:Cc.container,children:[c.jsx("header",{children:c.jsx("p",{children:"Remember the colored boxes displayed and click on the boxes once the game starts"})}),c.jsx(hF,{level:o,size:e,onComplete:f,onError:h,life:n}),c.jsx(mF,{level:o,isGameInProgress:l,isGameOver:s,onNext:d,onRestart:g})]})}const vF="_formContainer_muy2u_1",yF="_input_text_muy2u_5",xF="_chips_muy2u_12",wF="_remove_muy2u_20",gs={formContainer:vF,input_text:yF,chips:xF,remove:wF},bF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState([]),o=s=>{s.preventDefault(),e.trim()!==""&&r([...n,e]),t("")},i=s=>{r(n.filter((a,l)=>l!==s))};return c.jsxs(c.Fragment,{children:[c.jsx("form",{onSubmit:o,className:gs.formContainer,children:c.jsx("input",{type:"text",placeholder:"Type & hit Enter",className:gs.input_text,value:e,onChange:s=>t(s.target.value)})}),c.jsx("div",{className:gs.container,children:n.map((s,a)=>c.jsxs("span",{className:gs.chips,children:[s," ",c.jsx("button",{className:gs.remove,onClick:()=>i(a),children:"✕"})]},a))})]})},_F="_container_w1r10_1",SF="_btn_w1r10_8",kF="_active_w1r10_19",CF="_content_w1r10_23",ll={container:_F,btn:SF,active:kF,content:CF},cl=[{label:"Tab 1",content:"HTML elements tell the browser how to display the content. For example, you can use HTML to create static pages with text, headings, tables, lists, images, links, and more."},{label:"Tab 2",content:"Cascading Style Sheets is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML. "},{label:"Tab 3",content:"JavaScript, often abbreviated as JS, is a programming language and core technology of the Web, alongside HTML and CSS. 99% of websites use JavaScript on the client side for webpage behavior. Web browsers have a dedicated JavaScript engine that executes the client code. "}],EF=()=>{const[e,t]=p.useState(0),n=r=>t(r);return c.jsx(c.Fragment,{children:c.jsxs("div",{className:ll.container,children:[cl.map((r,o)=>c.jsx("span",{onClick:()=>n(o),className:`${e===o?ll.active:""} ${ll.btn}`,children:r.label},o)),c.jsxs("div",{className:ll.content,children:[c.jsxs("h2",{children:["Content of ",cl[e].label,":"]}),cl[e]&&c.jsx("p",{children:cl[e].content})]})]})})},jF="_container_1u8l1_1",$F="_listContainer_1u8l1_6",TF="_userDetail_1u8l1_19",RF="_saveBtn_1u8l1_24",Go={container:jF,listContainer:$F,userDetail:TF,saveBtn:RF};function NF(e){return Li({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}const PF=()=>{const[e,t]=p.useState([]),n=async()=>{const l=await(await fetch("https://jsonplaceholder.typicode.com/users")).json();t(l)};p.useEffect(()=>{const a=localStorage.getItem("savedList");a?t(JSON.parse(a)):n()},[]);const r=(a,l)=>{a.dataTransfer.setData("itemIndex",l)},o=()=>{localStorage.setItem("savedList",JSON.stringify(e)),alert("List Saved Successfully")},i=a=>{a.preventDefault()},s=(a,l)=>{const u=parseInt(a.dataTransfer.getData("itemIndex"));if(l!==u){const d=[...e],f=d.splice(u,1)[0];d.splice(l,0,f),t(d)}};return c.jsxs("div",{className:Go.container,children:[e.slice(0,5).map((a,l)=>c.jsxs("div",{draggable:!0,onDragStart:u=>r(u,l),onDragOver:i,onDrop:u=>s(u,l),className:Go.listContainer,children:[c.jsx("span",{className:Go.userDetail,children:a.id}),c.jsx("span",{className:Go.userDetail,children:a.name}),c.jsx("span",{className:Go.userDetail,children:a.website}),c.jsx(NF,{})]},l)),c.jsx("button",{className:Go.saveBtn,onClick:o,children:"Save List"})]})},OF="_container_1iv6r_1",AF="_inputWrapper_1iv6r_5",DF="_box_1iv6r_19",MF="_circle_1iv6r_26",ul={container:OF,inputWrapper:AF,box:DF,circle:MF},vs=Math.min(window.innerWidth-120,window.innerHeight-200),IF=50,LF=()=>{const[e,t]=p.useState(1),n=(vs-IF)/e,r=o=>{if(+o.target.value>2e3){t(2e3);return}if(+o.target.value<1){t(1);return}t(+o.target.value)};return c.jsxs("div",{className:ul.container,children:[c.jsxs("div",{className:ul.inputWrapper,children:[c.jsx("label",{htmlFor:"circles",children:"Number of circles:"}),c.jsx("input",{type:"number",id:"circles",value:e,min:"0",max:"2000",onChange:r})]}),c.jsx("div",{className:ul.box,style:{height:vs,width:vs},children:Array.from({length:e},(o,i)=>i).map(o=>c.jsx("div",{className:ul.circle,style:{height:vs-o*n,width:vs-o*n}},o))})]})},FF=60,Rl=[12,1,2,3,4,5,6,7,8,9,10,11],zF=e=>({seconds:Rl.length/2*e.getSeconds(),minutes:Rl.length/2*e.getMinutes()+e.getSeconds()/10,hours:e.getMinutes()/2+e.getHours()%Rl.length*30}),BF="_clock_as1nw_10",UF="_ticks_as1nw_22",HF="_tick_as1nw_22",WF="_digits_as1nw_42",VF="_digit_as1nw_42",GF="_bgImg_as1nw_57",KF="_centerConnector_as1nw_64",qF="_secondsHand_as1nw_73",YF="_minutesHand_as1nw_74",QF="_hoursHand_as1nw_75",jn={clock:BF,ticks:UF,tick:HF,digits:WF,digit:VF,bgImg:GF,centerConnector:KF,secondsHand:qF,minutesHand:YF,hoursHand:QF},tb=S.memo(()=>c.jsx("div",{className:jn.digits,children:Rl.map((e,t)=>c.jsx("div",{className:jn.digit,style:{left:`${50+Math.sin(Math.PI*2/12*t)*50}%`,top:`${50-Math.cos(Math.PI*2/12*t)*50}%`},children:e},e))}));tb.displayName="Digits";const nb=S.memo(()=>c.jsx("div",{className:jn.ticks,children:Array.from({length:FF}).map((e,t)=>c.jsx("div",{className:jn.tick,style:{left:`${50+Math.sin(Math.PI*2/60*t)*50}%`,top:`${50-Math.cos(Math.PI*2/60*t)*50}%`,rotate:`${t*6}deg`}},t))}));nb.displayName="Ticks";const JF=()=>{const[e,t]=p.useState({hours:0,minutes:0,seconds:0});return p.useEffect(()=>{const n=()=>{t(zF(new Date))};return n(),setInterval(n,1e3),()=>{clearInterval(n)}},[]),c.jsxs("div",{className:jn.clock,style:{overflow:"hidden"},children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1512428813834-c702c7702b78",alt:"",className:jn.bgImg}),c.jsx(nb,{}),c.jsx(tb,{}),c.jsx("div",{className:jn.centerConnector}),c.jsx("div",{className:jn.hoursHand,style:{rotate:`${e.hours}deg`}}),c.jsx("div",{className:jn.minutesHand,style:{rotate:`${e.minutes}deg`}}),c.jsx("div",{className:jn.secondsHand,style:{rotate:`${e.seconds}deg`}})]})},XF="_main_ykqcu_1",Ls={main:XF},ZF=p.forwardRef(function({delay:t,step:n,stepBy:r},o){const[i,s]=p.useState({decrement:null,increment:null});function a(){const u=n,d=setTimeout(()=>{r(-u),s(f=>({...f,decrement:null}))},t*1e3);s(f=>({...f,decrement:d}))}function l(){const u=n,d=setTimeout(()=>{r(+u),s(f=>({...f,increment:null}))},t*1e3);s(f=>({...f,increment:d}))}return p.useImperativeHandle(o,()=>({reset:()=>{i.decrement&&clearTimeout(i.decrement),i.increment&&clearTimeout(i.increment),s({decrement:null,increment:null})}})),c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:a,"aria-label":"Async Decrement",disabled:!!i.decrement,className:Ls.asyncButton,children:"async -"}),c.jsx("button",{onClick:l,"aria-label":"Async Increment",disabled:!!i.increment,className:Ls.asyncButton,children:"+ async"})]})});function ez({stepBy:e,step:t}){return c.jsxs("section",{className:Ls.async,children:[c.jsx("button",{onClick:()=>e(-t),"aria-label":"Decrement",children:"-"}),c.jsx("button",{onClick:()=>e(t),"aria-label":"Increment",children:"+"})]})}const od=1,id=100,tz=1,nz=3,Nl=-1e3,Pl=1e3,rz=function({step:t,setStep:n}){function r(o){const i=o.target.valueAsNumber;if(Number.isNaN(i))return n(1);i>id?n(id):in?r(n):le?r(e):r(l)}function s(a){const l=a.target.valueAsNumber;if(Number.isNaN(l))return o(Pl);lPl?o(Pl):l{}});function f(){d.current.reset(),t(0)}function h(g){t(m=>{const x=m+g;return s<=x&&x<=l?x:m})}return c.jsxs("main",{className:Ls.main,children:[c.jsx("h2",{children:e}),c.jsx(ez,{stepBy:h,step:n}),c.jsx(ZF,{delay:o,stepBy:h,step:n,ref:d}),c.jsx(iz,{delay:o,setDelay:i}),c.jsxs("section",{children:[c.jsx(rz,{step:n,setStep:r}),c.jsx(oz,{value:e,lowerLimit:s,upperLimit:l,setLowerLimit:a,setUpperLimit:u}),c.jsx("button",{onClick:f,children:"Reset"})]})]})}const az="_nested_checkbox_wrapper_sy313_1",lz="_nested_checkbox_label_sy313_6",cz="_nested_checkbox_child_sy313_12",dh={nested_checkbox_wrapper:az,nested_checkbox_label:lz,nested_checkbox_child:cz},uz=e=>{const{id:t,isChecked:n,label:r,onCheckBoxChange:o}=e;return c.jsxs("label",{className:dh.nested_checkbox_label,children:[c.jsx("input",{type:"checkbox",checked:n,onChange:()=>o(t,!n)}),r]})},rb=e=>{const{childCheckBoxList:t,onCheckBoxChange:n}=e;return c.jsx(p.Fragment,{children:t.map(r=>c.jsxs("div",{className:dh.nested_checkbox_child,children:[c.jsx(uz,{id:r.id,label:r.label,isChecked:r.checked,onCheckBoxChange:n}),r.children.length>0&&c.jsx(rb,{childCheckBoxList:r.children,onCheckBoxChange:n})]},r.id))})},dz=[{label:"p1",id:1,checked:!1,children:[{label:"p1-c1",id:2,checked:!1,children:[{label:"p1-c1-c1",id:3,checked:!1,children:[]},{label:"p1-c1-c2",id:4,checked:!1,children:[{label:"p1-c1-c2-c1",id:5,checked:!1,children:[]},{label:"p1-c1-c2-c2",id:6,checked:!1,children:[{label:"p1-c1-c2-c2-c1",id:7,checked:!1,children:[]},{label:"p1-c1-c2-c2-c2",id:8,checked:!1,children:[]}]},{label:"p1-c1-c2-c3",id:9,checked:!1,children:[]}]}]},{label:"p1-c2",id:10,checked:!1,children:[]},{label:"p1-c3",id:11,checked:!1,children:[]}]},{label:"p2",id:12,checked:!1,children:[{label:"p2-c1",id:13,checked:!1,children:[]},{label:"p2-c2",id:14,checked:!1,children:[]}]},{label:"p3",id:15,checked:!1,children:[{label:"p3-c1",id:16,checked:!1,children:[]}]},{label:"p4",id:17,checked:!1,children:[]}],fz=()=>{const[e,t]=p.useState(dz),n=(s,a)=>{for(let l=0;l{if(s.length===0)return u;for(let d=0;d{if(s.length===0)return 0;let a=0;for(let l=0;l{let l=JSON.parse(JSON.stringify(e)),u=!1,d=0;for(let h=0;h0&&(f!==l[d].children.length?l[d].checked=!1:l[d].checked=!0),t(l)};return c.jsx("div",{className:dh.nested_checkbox_wrapper,children:c.jsx(rb,{childCheckBoxList:e,onCheckBoxChange:i})})};var Cn=(e=>(e.Slotted="Slotted",e.Overlapping="Overlapping",e))(Cn||{});const pz=8,Vv=["8 am","9 am","10 am","11 am","12 pm","1 pm","2 pm","3 pm","4 pm","5 pm","6 pm","7 pm","8 pm"],Gv=100/(12*60),hz=new Map([[1,100],[2,80],[3,60],[4,40],[5,20]]),Kv=window.innerWidth<768?3:5;function qv(){const e=[],t=Math.floor(Math.random()*Kv)+Kv;for(let n=1;n<=t;n++){const r=Math.floor(Math.random()*12)+8,o=Math.floor(Math.random()*12)*5,i=r+Math.floor(Math.random()*(20-r));let s;i===r?s=o+Math.floor(Math.random()*(60-o)/5)*5:s=Math.floor(Math.random()*12)*5;const a=`${r}:${o.toString().padStart(2,"0")}`,l=`${i}:${s.toString().padStart(2,"0")}`;if(ib(a,l)<15){n--;continue}e.push({id:n,title:`Meeting ${n}`,start:a,end:l})}return e}function ob(e){return e.sort((t,n)=>{const[r,o]=t.start.split(":").map(g=>parseInt(g)),[i,s]=t.end.split(":").map(g=>parseInt(g)),[a,l]=n.start.split(":").map(g=>parseInt(g)),[u,d]=n.end.split(":").map(g=>parseInt(g)),f=(i-r)*60+(s-o),h=(u-a)*60+(d-l);return ra?1:ol?1:f>h?-1:ft.column&&n.column?t.column-n.column:0),e}function ib(e,t){const[n,r]=e.split(":").map(Number),[o,i]=t.split(":").map(Number);return(o-n)*60+(i-r)}function Ec(e,t){if(!t)return e.find(r=>!r.column)??null;const n=e.findIndex(r=>r.id===t.id);for(let r=n+1;r{const[l,u]=a.split(":").map(Number);return l*60+u},r=n(e.start),o=n(e.end),i=n(t.start),s=n(t.end);return ri}const gz="_layout_fefro_1",vz="_holder_fefro_13",yz="_hourLabels_fefro_17",xz="_day_fefro_24",wz="_hourSlot_fefro_34",bz="_meetings_fefro_37",_z="_meeting_fefro_37",Wr={layout:gz,holder:vz,hourLabels:yz,day:xz,hourSlot:wz,meetings:bz,meeting:_z};function Sz({meetings:e,layout:t}){return c.jsx("div",{className:Wr.meetings,children:e.map(n=>{const r=ib(n.start,n.end),[o,i]=n.start.split(":").map(d=>parseInt(d)),s=t===Cn.Overlapping?hz.get(n.column):100/(n.totalConflicts+1),a=r*Gv,l=((o-pz)*60+i)*Gv,u=100/(n.totalConflicts+1)*(n.column-1);return c.jsxs("button",{className:Wr.meeting,style:{width:`${s}%`,height:`${a}%`,top:`${l}%`,left:t===Cn.Overlapping?"unset":`${u}%`},title:`${n.title} : ${n.start} - ${n.end}`,children:[c.jsx("span",{children:n.title}),c.jsxs("span",{children:[n.start," - ",n.end]})]},n.id)})})}function kz({hours:e,meetings:t,layout:n}){return c.jsxs("div",{className:Wr.day,children:[e.slice(1).map(r=>c.jsx("div",{className:Wr.hourSlot},r)),c.jsx(Sz,{meetings:t,layout:n})]})}function Cz({hours:e}){return c.jsx("div",{className:Wr.hourLabels,children:e.map(t=>c.jsx("div",{className:Wr.hour,children:c.jsx("span",{children:t},t)},t))})}function sd(e){e.forEach(r=>r.column=0);const t=ob(e);let n=1;for(;t.some(r=>!r.column);)Ez(e,n++);return e}function Ez(e,t){let n=Ec(e,null);for(e.forEach(r=>r.modified=!1);n;)n.column=t,jz(e,n),n=Ec(e,n)}function jz(e,t){const n=[],r=$z(e,t),o=sb(e,t).concat(r);r.forEach(i=>{n[i.column]=!0}),o.forEach(i=>{i.modified||(i.totalConflicts=(i.totalConflicts??0)+1,i.modified=!0)}),t.totalConflicts=n.filter(Boolean).length}function $z(e,t){return e.filter(n=>n.column&&n.column!==t.column&&fh(t,n))}function sb(e,t){let n=new Set;return Tz(e,t).forEach(o=>{n.add(o),n=new Set([...n,...sb(e,o)])}),Array.from(n)}function Tz(e,t){return e.filter(n=>n.column===t.column-1&&fh(t,n))}function Yv(e){e.forEach(r=>r.column=0);const t=ob(e);let n=1;for(;t.some(r=>!r.column);)Rz(e,n++);return mz(e)}function Rz(e,t){let n=Ec(e,null);for(;n;)n.column=t,n=Ec(e,n)}function Nz(){const[e,t]=p.useState(Cn.Slotted),[n,r]=p.useState(sd(qv()));function o(s){t(s),r(s===Cn.Overlapping?Yv(n):sd(n))}function i(){const s=qv();r(e===Cn.Overlapping?Yv(s):sd(s))}return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Wr.layout,children:[c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"layout",value:"overlapping",checked:e===Cn.Overlapping,onChange:()=>o(Cn.Overlapping)}),"Overlapping"]}),c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"layout",value:"slotted",checked:e===Cn.Slotted,onChange:()=>o(Cn.Slotted)}),"Slotted"]}),c.jsx("button",{onClick:i,children:"Randomize"})]}),c.jsxs("div",{className:Wr.holder,children:[c.jsx(Cz,{hours:Vv}),c.jsx(kz,{hours:Vv,meetings:n,layout:e})]})]})}const Pz={"transfer-list":c.jsx(r3,{}),counter:c.jsx(NE,{}),"advanced-counter":c.jsx(sz,{}),accordion:c.jsx(FC,{}),"background-changer":c.jsx(yE,{}),"star-Rating":c.jsx(HT,{}),"light-dark-mode":c.jsx(C$,{}),"Guess-the-number":c.jsx(B2,{}),"telephone-formatter":c.jsx(aR,{}),"toast-popup":c.jsx(IR,{}),"password-strength":c.jsx(jT,{}),"todo-list":c.jsx(VR,{}),"investment-calculator":c.jsx(w$,{}),stopwatch:c.jsx(VT,{}),progressbar:c.jsx(AT,{}),"infinite-scrolling":c.jsx(c$,{}),"feedback-modal":c.jsx(u2,{}),"file-explorer":c.jsx(b2,{}),"autocomplete-offline":c.jsx(qC,{}),"autocomplete-online":c.jsx(XC,{}),"tic-tac-toe":c.jsx(wR,{}),stack:c.jsx(LT,{}),"food-recipe":c.jsx(I2,{}),"match-pair":c.jsx(I$,{}),"password-generator":c.jsx(wT,{}),"column-table":c.jsx($E,{}),"table-colorizer":c.jsx(sR,{}),"25-5-clock":c.jsx(iN,{}),"bmi-calculator":c.jsx(hE,{}),"email-templates":c.jsx(zE,{}),"expense-tracker":c.jsx(qE,{}),pagination:c.jsx(sT,{}),"image-gallery":c.jsx(H2,{}),"word-count":c.jsx(dN,{}),"temperature-converter":c.jsx(vR,{}),"color-mixer":c.jsx(wE,{}),"string-transformers":c.jsx(QT,{}),"your-sport":c.jsx(xN,{}),"modal-popup":c.jsx(CN,{}),"emoji-picker":c.jsx(zN,{}),"programming-languages-multiverse":c.jsx(YN,{}),otp:c.jsx(XN,{}),"traffic-lights":c.jsx(rP,{}),"quiz-app":c.jsx(vP,{}),"chess-board":c.jsx(kP,{}),"nested-dropdown":c.jsx(q$,{}),"anagram-checker":c.jsx(iE,{}),calculator:c.jsx(IP,{}),"water-balancer":c.jsx(QP,{}),timeline:c.jsx(u3,{}),"word-connect":c.jsx(m6,{}),stepper:c.jsx(k6,{}),"inline-options":c.jsx(R6,{}),"digital-clock":c.jsx(nF,{}),"nested-comments":c.jsx(sF,{}),"15puzzle":c.jsx(AC,{}),"memory-game":c.jsx(gF,{}),"chip-input":c.jsx(bF,{}),tabs:c.jsx(EF,{}),"drag-drop":c.jsx(PF,{}),circles:c.jsx(LF,{}),"analog-clock":c.jsx(JF,{}),"nested-checkbox":c.jsx(fz,{}),"meeting-calendar":c.jsx(Nz,{})};function Oz(){var n,r;const e=Pk(),t=(e==null?void 0:e.id)??"";return c.jsxs(c.Fragment,{children:[c.jsx(yC,{title:(n=Vm.get(t))==null?void 0:n.title,link:(r=Vm.get(t))==null?void 0:r.link}),c.jsx("div",{className:"container",children:Pz[t]})]})}const Az=Gk([{path:"/:id",element:c.jsx(Oz,{})}]);ad.createRoot(document.getElementById("root")).render(c.jsx(S.StrictMode,{children:c.jsx(tC,{router:Az})})); diff --git a/docs/react/assets/index-Xd054b2b.css b/docs/react/assets/index-Xd054b2b.css deleted file mode 100644 index 239f4ecd..00000000 --- a/docs/react/assets/index-Xd054b2b.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";.mobile{display:none}.challenge-navbar{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar .left{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar .left .back{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar .left .logo{height:40px}.challenge-navbar .left .logo img{width:40px;height:40px}.challenge-navbar h1{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar .right{flex:1}.challenge-navbar .right input{display:none}.challenge-navbar .right img{width:30px;height:30px}.challenge-navbar .right .menu{display:flex;align-items:center;gap:1.5rem}.challenge-navbar .right .menu a{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar .right .responsive_nav{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile{display:block}.challenge-navbar{padding:1rem 1rem 1rem .5rem}.challenge-navbar .logo{display:none}.challenge-navbar h1{font-size:1.25rem}.right .responsive_nav{display:block;position:relative;margin-left:2rem}.right .hamburger{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right .hamburger input{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right .hamburger div.line{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right .hamburger div.cross{transform:scale(1.4);margin-right:.25rem;z-index:2}.right .hamburger input:not(:checked)~div.line{display:block}.right .hamburger input:not(:checked)~div.cross{display:none}.right .hamburger input:checked~div.line{display:none}.right .hamburger input:checked~div.cross{display:block}.right .menu{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right .hamburger input:checked~.menu{transform:none}}._tile_5pn2z_1{aspect-ratio:1/1}._tile_5pn2z_1:not(._empty_5pn2z_5){display:flex;justify-content:center;align-items:center;border:1px solid rgb(182,182,182);margin:1px;box-shadow:1px 1px 4px 1px #9fd69f;cursor:pointer;background-color:#f3f7fa;-webkit-user-select:none;user-select:none}._correctTilePoz_5pn2z_17:not(._moveLeft_5pn2z_17,._moveRight_5pn2z_17,._moveUp_5pn2z_17,._moveDown_5pn2z_17){box-shadow:1px 1px 4px 1px #0a72e9!important}._moveLeft_5pn2z_17,._moveRight_5pn2z_17,._moveUp_5pn2z_17,._moveDown_5pn2z_17{animation-duration:.3s;animation-timing-function:linear}._moveLeft_5pn2z_17{animation-name:_move-left_5pn2z_1}._moveRight_5pn2z_17{animation-name:_move-right_5pn2z_1}._moveUp_5pn2z_17{animation-name:_move-up_5pn2z_1}._moveDown_5pn2z_17{animation-name:_move-down_5pn2z_1}@keyframes _move-left_5pn2z_1{0%{transform:translate(100%) rotate(0)}to{transform:translate(0) rotate(-90deg)}}@keyframes _move-right_5pn2z_1{0%{transform:translate(-100%) rotate(0)}to{transform:translate(0) rotate(90deg)}}@keyframes _move-up_5pn2z_1{0%{transform:translateY(100%) rotateX(0)}to{transform:translateY(0) rotateX(-180deg)}}@keyframes _move-down_5pn2z_1{0%{transform:translateY(-100%) rotateX(0)}to{transform:translateY(0) rotateX(180deg)}}._grid_e2nmy_1{display:grid;grid-template-columns:repeat(4,1fr);max-width:400px;margin:0 auto;transition:all .3s}._menu_e2nmy_9{text-align:center;margin-top:20px}._menu_e2nmy_9>button{margin:0 1rem}._App_150vf_1{margin-top:1rem;text-align:center}._accordion_150vf_6{padding:10px;margin-bottom:10px;font-size:14px;text-align:left;border:1px solid rgb(218,212,212)}._accordion-title_150vf_14{display:flex;align-items:center;justify-content:space-between}._accordion-icon_150vf_20{display:flex;align-items:center;align-self:center;justify-content:center;width:2rem;min-width:2rem;height:2rem;margin-left:1rem;font-size:20px;color:#fff;cursor:pointer;background:transparent;background:rgb(209,209,209);border-color:transparent;border-radius:50%}._main_xk16z_1{width:90%;margin:auto;text-align:center}._main_xk16z_1 input{width:94%;padding:.5rem 1rem;margin-bottom:.5rem;font-size:1rem}._main_xk16z_1 input:disabled{background-color:#0003}._main_xk16z_1 ._retryTimer_xk16z_15{margin:7px;font-size:24px;font-weight:600;color:#f14f4f}._main_xk16z_1 ._suggestions_xk16z_21{width:93%;padding-inline-start:0;margin:auto}._main_xk16z_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;list-style:none;cursor:pointer;background-color:beige}._main_xk16z_1 li._highlight_xk16z_36{background-color:khaki;outline:1px solid}@media (width >= 768px){._main_xk16z_1 input,._main_xk16z_1 ._suggestions_xk16z_21{width:50%}}._main_xk16z_1 ._loader_xk16z_46{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_xk16z_46 linear 1s infinite}@keyframes _loader_xk16z_46{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._container_zsbjj_3{text-align:center;margin:50px}h1{color:#333}._inputContainer_zsbjj_12{display:flex;justify-content:center;margin-bottom:20px}._input_zsbjj_12{padding:10px;margin:0 10px}._button_zsbjj_23{padding:10px;background-color:#4caf50;color:#fff;border:none;cursor:pointer}._button_zsbjj_23:hover{background-color:#45a049}._result_zsbjj_35{color:#333;font-weight:700;margin-top:20px}._App_7yaca_1 ._container_7yaca_1{display:flex;flex-direction:column;align-items:center;justify-content:center}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7{display:flex;flex-direction:column;gap:5px}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 input{width:100px;padding:10px;margin-bottom:10px;font-weight:700;background-color:#87ceeb;border-radius:10px;outline:none}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 ._calculateButton_7yaca_21{align-self:center;width:fit-content;padding:5px 15px;color:#fff;cursor:pointer;background-color:#000;border-radius:5px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30{padding:0 20px;margin:20px 0;background-color:#deb887;border-radius:10px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h1,._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h3{margin:10px;text-align:center}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 ._ranges_7yaca_41{padding-top:16px;font-weight:700}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 p{margin:5px}._container_10e68_1{width:100%;height:100%;text-align:center}._button_10e68_7{padding:10px 20px;margin:2rem auto;font-size:1.25rem;font-weight:500;border:none;border-radius:8px;box-shadow:0 2px 4px #0000}._button_10e68_7:active{transform:scale(.98)}._color-mixer-container_oo1rc_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:40%;min-width:300px;margin:0 auto;background-color:#f5f5f5;transition:background-color .3s}._color-box-top_oo1rc_13{display:flex;align-items:center;justify-content:center;width:100%;height:250px;background-color:#fff;border:2px solid #333;border-radius:10px}._color-box-top_oo1rc_13 p{font-size:24px;color:#333;mix-blend-mode:difference}._color-inputs_oo1rc_30{display:flex;flex-direction:column;gap:20px;align-items:center;padding:20px;background-color:#fff;border-radius:10px}._color-input_oo1rc_30{display:flex;gap:10px;align-items:center}._color-input_oo1rc_30 label{font-size:16px;color:#333}input[type=color]{width:60px;height:60px;border:none}._mix-button_oo1rc_57{padding:10px 20px;color:#fff;cursor:pointer;background-color:#ff5733;border:none;border-radius:5px;transition:background-color .3s}._mix-button_oo1rc_57:hover{background-color:#e83e1e}._main_pfcqp_1{text-align:center}._size_pfcqp_5{display:flex;flex-direction:column;gap:10px;justify-content:center;margin:20px 0}._grid_pfcqp_13{margin:1rem auto}._cell_pfcqp_17{width:50px;height:50px;padding-left:0;border:1px solid black}@media screen and (width >= 450px){._size_pfcqp_5{flex-direction:row}}._main_1cx3l_1{text-align:center}._main_1cx3l_1 section{margin:1rem 0}._main_1cx3l_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_1cx3l_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.15rem}._select_17qmd_1{padding:.25rem;font-size:1rem}._form_17qmd_6{display:flex;flex-flow:row wrap;gap:25px;justify-content:space-between;margin-top:20px}._form_17qmd_6 ._formField_17qmd_13{white-space:nowrap}._formInput_17qmd_17{padding:.25rem;font-size:1rem}._form_1ufkd_2{max-width:400px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0003;border-radius:8px;display:flex;flex-direction:column;gap:15px}._form_1ufkd_2 input,._form_1ufkd_2 select,._form_1ufkd_2 button{padding:10px;font-size:16px;border:1px solid #ccc;border-radius:4px;transition:border-color .2s}._form_1ufkd_2 input:focus,._form_1ufkd_2 select:focus{border-color:#007bff;outline:none}._form_1ufkd_2 button{background-color:#007bff;color:#fff;cursor:pointer;border:none}._form_1ufkd_2 button:hover{background-color:#0056b3}._form_1ufkd_2 button:disabled{background-color:#ccc;cursor:not-allowed}._form_1ufkd_2 select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}._mainContainer_1ynr6_2{max-width:500px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0000001a;border-radius:8px;background-color:#fff}._mainContainer_1ynr6_2 h2{border-bottom:2px solid #eee;padding-bottom:10px;margin-bottom:15px;font-size:24px;color:#333}._mainContainer_1ynr6_2 ul{list-style-type:none;margin:0;padding:0}._mainContainer_1ynr6_2 li{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #eee}._mainContainer_1ynr6_2 li:last-child{border-bottom:none}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32{padding:5px 10px;font-size:14px;color:#fff;background-color:#ff4136;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:hover{background-color:#ff3013}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:disabled{background-color:#ccc;cursor:not-allowed}._feedbackContainer_2c7o2_1{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:0;margin:0;background-color:#fff}._feedbackBtn_2c7o2_11{display:flex;align-items:center;justify-content:center;width:100px;height:30px;background-color:#ab5fc4;border:0;border-radius:5px}._modalContainer_2c7o2_22{position:absolute;top:0;left:0;z-index:99;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#0000007f}._modalContent_2c7o2_35{position:relative;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:space-between;width:500px;min-height:300px;padding:20px;background-color:#fff;border-radius:5px;box-shadow:0 5px 10px #0006}._iconContainer_2c7o2_50{display:flex;gap:10px;justify-content:center;padding:15px 5px}._iconItem_2c7o2_57{display:flex;flex-direction:column;align-items:center;justify-content:center;width:70px;height:70px;margin:10px 1px;cursor:pointer}._iconItem_2c7o2_57:hover{background-color:#a9a9a9;border-radius:5px;box-shadow:0 0 10px #0000004d;transition:all .2s ease}._active_2c7o2_75{background-color:#bca2d5;border-radius:5px;box-shadow:0 0 10px #0000004d}._iconImage_2c7o2_81{width:40px;height:40px}._iconItem_2c7o2_57 p{margin:5px;font-size:small;color:#000000b3}._modalClose_2c7o2_92{position:absolute;top:10px;right:10px;font-size:20px;background:none;border:none}._modalContent_2c7o2_35 h1{top:35px;font-size:25px;font-weight:400;color:#000c}._feedbackContent_2c7o2_108{display:flex;flex-direction:column;align-items:center;justify-content:center}._feedbackResponse_2c7o2_115{display:flex;flex-direction:column;gap:25px;align-items:center;justify-content:center;width:250px;height:120px;margin-bottom:30px;background-color:#bca2d54d;border:1px solid grey;border:none;border-radius:5px;box-shadow:0 5px 5px #0000004d}@media (width <= 510px){._feedbackContainer_2c7o2_1{flex-direction:column;padding:10px}._feedbackResponse_2c7o2_115{width:auto;height:150px}._feedbackResponse_2c7o2_115 p{text-align:center;text-wrap:wrap}._modalContent_2c7o2_35{width:90%;max-width:200px;padding:10px}._feedbackContent_2c7o2_108 textarea{width:100%;font-size:10px}._feedbackBtn_2c7o2_11{width:80px;height:25px}._iconItem_2c7o2_57{width:60px;height:60px}._iconImage_2c7o2_81{width:30px;height:30px}._iconContainer_2c7o2_50{flex-wrap:wrap}._modalClose_2c7o2_92{top:5px;right:5px;font-size:16px}}._app_1o28y_1{margin-top:1rem;font-size:1.2rem}._list_1o28y_6{display:flex;align-items:center;height:1.5em;padding-left:0;margin-bottom:.5em;list-style-type:none}._list_1o28y_6 button{font-size:1em;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6._editList_1o28y_22{padding:1px 6px}._list_1o28y_6 input{font-size:1em}._editableInputContainer_1o28y_30{position:relative}._editableInputError_1o28y_34{position:absolute;top:100%;background-color:#7f1d1d;border:1px solid red;font-size:small;color:#f87171;padding:.5rem}._editableInputError_1o28y_34>p{margin:0}._indent_1o28y_48{margin-left:30px}._controls_1o28y_52{display:flex;gap:.5em;margin-left:2rem}._controls_1o28y_52 button{display:none;align-items:center;justify-content:center;padding:0;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6:hover button{display:block}._list_1o28y_6[data-root=true]:hover div button:first-child,._list_1o28y_6[data-root=true]:hover div button:last-child{display:none}:root{--font-m: 16px}._App_lmi0v_5{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;margin:0}._meal_container_lmi0v_15{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:50%;padding:1rem 1.3rem;margin-top:3rem;background-color:#9fa732;border:.2rem solid black}._meal_name_lmi0v_27{font-size:1.6rem;text-align:center}._meal_img_lmi0v_32{width:100%;height:300px}._tags_container_lmi0v_37,._modal_tags_container_lmi0v_38{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;padding-inline-start:0;font-size:1.2rem;list-style:none}._tag_lmi0v_37,._modal_tag_lmi0v_38{padding:.4rem .7rem;cursor:pointer;background-color:#e2b044;transition:all .3s ease-in}._tag_lmi0v_37:hover,._modal_tag_lmi0v_38:hover{color:#ececec;background-color:#099}._dialog_lmi0v_62{top:3%;width:70%}._modal_meal_img_lmi0v_67{width:100%;height:350px}._modal_instruction_lmi0v_72{font-size:1.2rem;line-height:1.6rem}._foodBtn_lmi0v_77,._openBtn_lmi0v_78{padding:.4rem .9rem;font-size:1.3rem;font-weight:700;cursor:pointer;background-color:#fff;border:.2rem solid black;transition:background-color .2s ease-in}._openBtn_lmi0v_78{margin-top:2rem;font-size:1.1rem}._foodBtn_lmi0v_77:hover,._openBtn_lmi0v_78:hover{background-color:#eee}._foodBtn_lmi0v_77:active,._openBtn_lmi0v_78:active{background-color:#ddd}._closeBtn_lmi0v_103{position:absolute;top:-1.3rem;right:-1.3rem;padding:0 .6rem;font-size:2rem;font-weight:700;color:#fff;cursor:pointer;background-color:#df4848;border-radius:50%;transition:background-color .2s ease-in}._closeBtn_lmi0v_103:hover{background-color:#c74040}._closeBtn_lmi0v_103:active{background-color:#af3737}._recipe_table_lmi0v_126{width:100%;margin:1.8rem auto;font-size:1rem;border-collapse:collapse}._recipe_table_lmi0v_126 th,._recipe_table_lmi0v_126 td{height:3.12rem;padding-left:1.25rem;text-align:left}._recipe_table_lmi0v_126 th{color:#fff;background-color:#9fa732}._recipe_table_lmi0v_126 tr:nth-child(2n){background-color:#f9ffa3}@media screen and (width <= 768px){._meal_container_lmi0v_15{width:88%;padding:.5rem}._dialog_lmi0v_62{width:88%}._meal_name_lmi0v_27{font-size:1.4rem}._meal_img_lmi0v_32{height:200px}._tags_container_lmi0v_37,._modal_tags_container_lmi0v_38{font-size:1rem}._modal_meal_img_lmi0v_67{height:250px}._modal_instruction_lmi0v_72{font-size:1rem;line-height:1.4rem}._foodBtn_lmi0v_77,._openBtn_lmi0v_78{font-size:1.1rem}._closeBtn_lmi0v_103{top:-.5rem;right:-.5rem;font-size:1.5rem}._recipe_table_lmi0v_126 th,._recipe_table_lmi0v_126 td{height:40px;padding-left:10px}}@media screen and (width >= 1300px){._meal_container_lmi0v_15{width:40%}._dialog_lmi0v_62{width:60%}}@media screen and (width >= 1700px){._meal_container_lmi0v_15{width:35%}._dialog_lmi0v_62{width:55%}}._app_j2t5p_1{display:flex;flex-direction:column;margin:10px auto}._app_j2t5p_1 input{height:30px;padding:20px;text-align:center;outline:none}._app_j2t5p_1 ._widget_j2t5p_14{display:flex;flex-direction:column;justify-content:space-around;margin-top:5px}._app_j2t5p_1 ._text_j2t5p_21 p{text-align:center}._app_j2t5p_1 form{display:flex;flex-direction:column}._app_j2t5p_1 form label{padding:10px}._app_j2t5p_1 form button{min-width:40%;padding:10px;margin-top:10px;font-size:16px;cursor:pointer;border:none}@media (width >= 768px){._app_j2t5p_1{width:50%;max-width:500px}._app_j2t5p_1 ._widget_j2t5p_14{flex-direction:row}}._image-gallery-container_3b420_2{margin:20px;text-align:center}._gallery-para_3b420_7{text-decoration:underline}._image-container_3b420_11{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}._image-wrapper_3b420_18{cursor:pointer;transition:transform .2s ease-in-out}._image-wrapper_3b420_18:hover{transform:scale(1.1)}._gallery-image_3b420_27{width:200px;height:200px;object-fit:cover;border-radius:10px;box-shadow:0 0 5px #0000004d}._selected-image_3b420_36{margin-top:40px;text-align:center}._selected-heading_3b420_41{margin-bottom:10px;font-size:20px}._selected-img_3b420_46{max-width:100%;border-radius:10px;box-shadow:0 0 10px #0000007f}._loader_1hfl7_1{width:60px;height:60px;margin:1rem auto;border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;animation:_spin_1hfl7_1 2s linear infinite}@keyframes _spin_1hfl7_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._book-title_1hfl7_21{padding:2em;margin:2em 0;text-align:center;border:1px solid black;border-radius:6px}._result_1y6k8_1{max-width:60rem;padding:1rem;text-align:right;table-layout:fixed;border-spacing:1rem}._result_1y6k8_1 thead{font-size:.7rem}._result_1y6k8_1 tbody{font-size:.85rem;color:#8a2be2}@media screen and (width <= 400px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 tbody{font-size:.68rem}}@media screen and (width <= 300px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 thead{font-size:.52rem;color:#8a2be2}._result_1y6k8_1 tbody{font-size:.68rem}}._form_1schc_1{max-width:30rem;padding:1rem;margin:1rem 0;border:1px solid black;border-radius:4px}._input-group_1schc_17{display:flex;gap:1.5rem;justify-content:space-evenly}._form_1schc_1 label{display:block;margin-bottom:.25rem;font-size:.6rem;font-weight:700;text-transform:uppercase}._form_1schc_1 input{width:100%;padding:.5rem;font-size:1rem;background-color:transparent;border:1px solid #76c0ae;border-radius:.25rem}._actions_1schc_63{display:flex;gap:1rem;justify-content:center}._button_1schc_75{padding:.5rem 1rem;color:#c2e9e0;cursor:pointer;background:linear-gradient(180deg,#1f584b,#17493d);border:none;border-radius:.25rem}._buttonAlt_1schc_93{cursor:pointer;background:transparent;border:none}._button_1schc_75:hover{background:linear-gradient(180deg,#1b5346,#113c32)}._buttonAlt_1schc_93:hover{color:#91e1d0;background:transparent}@media screen and (width <= 400px){._form_1schc_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;max-width:20rem}}._main_kxpla_1{display:flex;flex-flow:column wrap;align-items:center;justify-content:center}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1w4bd_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1w4bd_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1w4bd_19{padding:10px;background-color:var(--clr-bcg);transition:.3s linear}._main_1w4bd_19 h1{color:var(--clr-font)}._main_1w4bd_19 button{padding:10px;margin-top:10px;font-size:16px;color:var(--clr-font);cursor:pointer;background-color:var(--clr-primary);border:none}._layout_1dsxo_1{margin:20px 0;text-align:center}._layout_1dsxo_1 output{font-size:1.25rem}._layout_1dsxo_1 p{margin:0}._button_1dsxo_14{margin:40px 0 20px}._grid_1dsxo_18{display:inline-grid;font-size:2rem}._tile_1dsxo_23{position:relative}._frontface_1dsxo_27,._backface_1dsxo_28{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:khaki;border-radius:4px;box-shadow:0 5px 4px #00000026;transition:all 1s;transform:rotateY(0);backface-visibility:hidden}._backface_1dsxo_28{transform:rotateY(180deg)}._frontface_1dsxo_27{transform:rotateY(0)}@media screen and (width >= 768px){._grid_1dsxo_18{font-size:3rem}}._main_h642g_1{text-align:center}._nestedDropdown_h642g_4{display:flex;justify-content:center;margin:0 auto;padding:0 20px;height:58px}._dropdownMain_h642g_12{display:flex;list-style:none;padding-inline-start:0px;min-width:10rem}._dropdownItems_h642g_19{position:relative;font-size:14px}._dropdownItems_h642g_19 a{display:block;font-size:inherit;color:inherit;text-decoration:none}._dropdownItems_h642g_19 button{color:inherit;font-size:inherit;border:none;background-color:transparent;cursor:pointer;width:100%}._dropdownItems_h642g_19 a,._dropdownItems_h642g_19 button{text-align:left;padding:.7rem 1rem;border:#142b31 1px solid}._dropdownItems_h642g_19 a:hover,._dropdownItems_h642g_19 button:hover{background-color:#86c9dd}._arrow_h642g_52:after{content:"";display:inline-block;margin-left:.28em;vertical-align:.09em;border-top:.42em solid;border-right:.32em solid transparent;border-left:.32em solid transparent}._dropdown_h642g_12{right:0;left:auto;box-shadow:0 10px 15px - 3px #2e293314,0 4px 6px - 2px #473f4f29;font-size:.875rem;z-index:9999;min-width:10rem;padding:.5rem;list-style:none;background-color:#fff;border-radius:.5rem;display:none}._dropdown_h642g_12._show_h642g_76{display:block}._dropdown_h642g_12._dropdownSubItems_h642g_80{left:100%;top:-7px;min-width:10rem}@media (max-width: 820px){._dropdown_h642g_12._dropdownSubItems_h642g_80{top:auto;left:auto;right:0}}@media (min-width: 822px){._dropdown_h642g_12,._dropdown_h642g_12._dropdownSubItems_h642g_80{position:absolute}}._pagination_1mnjc_1{width:100%;text-align:center;margin-bottom:2rem}._pagination_1mnjc_1 button{margin:0 1rem}._container_for_table_1pb6f_1{width:100%}._table_1pb6f_5{width:100%;text-align:center}._thead_1pb6f_10 tr th{padding:4px;margin:0;font-size:1.25rem;text-transform:uppercase;background-color:beige;border:1px solid beige}._tbody_1pb6f_19 tr td{padding:4px;margin:0;font-size:1rem;border-right:1px solid beige;border-bottom:1px solid beige;border-left:1px solid beige}._pagination_container_13fvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(95%,800px);margin:0 auto}._title_13fvi_10{margin:2rem 0;text-align:center;font-size:2rem;font-weight:700;text-transform:uppercase}._App_6bcv0_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:2.5rem}._main_section_6bcv0_10{width:78%;font-size:1.1rem}._main_header_6bcv0_15{margin-bottom:2rem;font-size:1.5rem;font-weight:700;text-align:center}._password_form_6bcv0_22{display:grid;grid-template-columns:1fr 1fr;gap:1rem}._second_section_6bcv0_28{display:flex;flex-direction:column;row-gap:1rem;align-items:flex-start;width:78%;margin-top:1rem;font-size:1.1rem}._second_section_6bcv0_28 ._inputText_6bcv0_38,._fifth_section_6bcv0_39 ._inputText_6bcv0_38{padding:.4rem;margin-right:1.5rem;font-size:1rem;border:.18rem solid black}._second_section_6bcv0_28 ._btn_6bcv0_46,._fourth_section_6bcv0_47 ._btn_6bcv0_46,._fifth_section_6bcv0_39 ._btn_6bcv0_46{padding:.4rem .8rem;margin-right:1.5rem;font-size:1rem;cursor:pointer;background-color:#ccc;border:none;border-radius:.5rem;outline:none;transition:background-color .3s ease-in-out}._second_section_6bcv0_28 ._btn_6bcv0_46:hover,._fourth_section_6bcv0_47 ._btn_6bcv0_46:hover,._fifth_section_6bcv0_39 ._btn_6bcv0_46:hover{background-color:#bbb}._second_section_6bcv0_28 ._btn_6bcv0_46:active,._fourth_section_6bcv0_47 ._btn_6bcv0_46:active,._fifth_section_6bcv0_39 ._btn_6bcv0_46:active{background-color:#aaa}._third_section_6bcv0_72{width:78%;margin-top:1rem}._fourth_section_6bcv0_47{display:flex;align-items:center;justify-content:center;width:78%;margin-top:2rem;font-size:1.1rem}._fifth_section_6bcv0_39{width:78%;margin-top:1rem}._sixth_section_6bcv0_91{width:78%;margin-top:1rem;font-size:1.1rem}._second_header_6bcv0_97{margin-bottom:2rem;font-size:1.3rem;font-weight:700;text-align:center}._password-table_6bcv0_105{width:100%;margin-bottom:2rem;border-collapse:collapse}._password-table_6bcv0_105 thead th{padding:8px;text-align:left;background-color:#f2f2f2;border:1px solid #ddd}._password-table_6bcv0_105 tbody tr{border-bottom:1px solid #ddd}._password-table_6bcv0_105 tbody td{padding:8px;text-align:left}._password-table_6bcv0_105 tbody tr:nth-child(2n){background-color:#f2f2f2}@media (width <= 800px){._main_section_6bcv0_10,._second_section_6bcv0_28,._third_section_6bcv0_72,._fourth_section_6bcv0_47,._fifth_section_6bcv0_39,._sixth_section_6bcv0_91{width:90%}._password_form_6bcv0_22{grid-template-columns:1fr}._password-table_6bcv0_105 tbody tr{display:block;margin-bottom:10px;border:1px solid #ddd;border-radius:5px}._password-table_6bcv0_105 tbody td{display:block;text-align:left}._password-table_6bcv0_105 tr ._password-table_6bcv0_105 td,._password-table_6bcv0_105 thead,._password-table_6bcv0_105 tbody,._password-table_6bcv0_105 th{display:block}._password-table_6bcv0_105 thead{display:none}}._main_3eouk_1{width:90%;margin:2rem auto 0;text-align:center}._main_3eouk_1 ._indicators_3eouk_6{display:flex;justify-content:space-between;width:20rem;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_3eouk_1 ._active_3eouk_14{color:green}._main_3eouk_1 ._progressContainer_3eouk_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_3eouk_1 ._progressBar_3eouk_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_3eouk_1 input{width:20rem;font-size:1.5rem}._App_omdzp_1{padding:1rem 0;display:flex;flex-direction:column;align-items:center;justify-content:center}._bg-progress_omdzp_9{position:relative;width:15rem;height:2rem;overflow:hidden;background-color:#0000ff4d;border-radius:50px}._fg-progress_omdzp_18{position:absolute;width:15rem;height:5rem;background-color:#0000ff7f;transition:transform 10ms ease-in-out}._controls_omdzp_26{display:flex;flex-direction:column;align-items:center;gap:1rem;margin:auto;margin-top:2.5rem;margin-bottom:0}._controls_omdzp_26 button{width:7rem;padding:1.2rem 2rem;color:#fff;background-color:#0000ff7f;border:none}@media screen and (min-width: 480px){._controls_omdzp_26{flex-direction:row}}._controls_omdzp_26 button:hover{color:#0000ff7f;background-color:#0000ff4d;transform:scale(1.1)}._slidecontainer_omdzp_56{width:100%;margin-top:2rem;text-align:center}._QRCodeGenerator_a1hdg_2{display:flex;flex-direction:column;align-items:center;margin-top:20px}._input-field_a1hdg_9{width:100%;padding:10px;margin-bottom:10px;font-size:16px;border:1px solid #ccc;border-radius:5px}._generate-button_a1hdg_18{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px}._generate-button_a1hdg_18:hover{background-color:#0056b3}._qrcode_a1hdg_32{margin-top:20px}._stack_u1sn7_1{max-width:500px;padding:20px;margin:1rem auto 0rem;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 4px #0000001a}._stack_u1sn7_1 h1{margin-bottom:20px;font-size:24px;text-align:center;animation:_slide-in_u1sn7_1 1s ease-in-out}._stack_u1sn7_1 input[type=text]{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25{display:flex;justify-content:center;margin-bottom:20px;flex-wrap:wrap;row-gap:1rem}._stack_u1sn7_1 ._btn_root_u1sn7_25 button{padding:10px 20px;margin:0 5px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25 button:hover{background-color:#0056b3}._stack_u1sn7_1 hr{margin:10px 0;border:none;border-top:1px solid #ccc}._stack_u1sn7_1 h3{margin-bottom:10px;font-size:18px;text-align:center}._stack_u1sn7_1 p{margin:5px 0}._stack_u1sn7_1 ._stackElement_u1sn7_62{padding:.1rem;margin-bottom:1rem;background-color:#007bff34;border-radius:3px}._stack_u1sn7_1 ._stackElement_u1sn7_62 p{text-align:center}@keyframes _slide-in_u1sn7_1{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}._App_33mq4_1{margin-top:2rem;text-align:center}._star_33mq4_6{font-size:30px;cursor:pointer}._watch-container_g783o_1{display:flex;align-items:center;justify-content:center;margin-top:1rem}._watch_g783o_1{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:250px;height:250px;padding:20px;text-align:center;background:#b4161b;background:linear-gradient(145deg,#cacaca,#f0f0f0);border-radius:50%;box-shadow:0 0 20px #bebebe}._watch-heading_g783o_24{font-size:30px;font-weight:900;color:purple}._watch-timer_g783o_30{font-size:30px;font-weight:900;color:#b4161b}._watch-btn_g783o_36{height:40px;padding:0 10px;margin:20px 2px 0;font-weight:700;color:#fff;text-transform:uppercase;background:linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%);border:none;border-radius:12px}._watch-btn_g783o_36:disabled{cursor:not-allowed;background:linear-gradient(-45deg,#e81cff80 0%,#40c9ff80 100%)}@media (width <= 300px){._watch_g783o_1{width:230px;height:230px;padding:0}._watch-heading_g783o_24{font-size:20px}._watch-btn_g783o_36{margin:5px}}._App_1hyma_1{max-width:32rem;margin:auto}._textarea_1hyma_6{display:block;width:100%;resize:vertical}._buttonBox_1hyma_12{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}._buttonBox_1hyma_12>button{padding:.4rem}._output_1hyma_22{margin-top:2rem;text-align:center}._output_1hyma_22>strong{font-size:large}._output_1hyma_22>p{margin-top:1rem;margin-bottom:0}._color_1kotf_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}form._form_1kotf_9{display:flex;flex-direction:column;align-items:center;justify-content:space-around;height:70px}._containers_1kotf_17{display:flex;flex-wrap:wrap;justify-content:center;width:90%;max-width:200px;margin-top:10px}._container_1kotf_17{width:30%;padding:10px;text-align:center;border:1px solid black}._containerColor_1kotf_33{width:30%;padding:10px;color:#fff;text-align:center;background-color:red;border:1px solid black}._numberInput_1kotf_42{height:25px;padding:0 10px;margin:10px 0;border:1px solid black;border-radius:15px}input{cursor:pointer}._error_1kotf_53{color:red;font-size:.75rem;margin:0 0 .5rem;padding:0}._container_12wso_1{display:flex;align-items:center;justify-content:center}._card_12wso_7{width:30rem;padding:20px;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px #0003}._cardTitle_12wso_15{text-align:center}._formGroup_12wso_19{margin:20px 0}._inputGroup_12wso_23{display:flex;align-items:center}._input_12wso_23{padding:5px;margin:0}._select_12wso_33{padding:5px;margin:0 10px}._convertButton_12wso_38{margin-top:10px}._outputGroup_12wso_42{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin-top:20px}@media screen and (width >= 450px){._outputGroup_12wso_42{flex-direction:row}}._container_1rajw_1{display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;text-align:center}._mx-5_1rajw_10{margin:20px}._grid-container_1rajw_14{display:grid;grid-template-columns:repeat(3,1fr);width:300px;margin:0 auto;overflow:hidden;background-color:#fff}._grid-item_1rajw_23{height:80px;padding:20px;font-size:30px;text-align:center;cursor:pointer;border:1px solid grey;transition:all .2s ease}._grid-item_1rajw_23:hover{box-shadow:#32325d26 0 30px 60px -12px inset}._container_1rajw_1 button{padding:15px;margin:20px auto;font-weight:700;border:none;border-radius:8px}@media (width <= 300px){._grid-container_1rajw_14{width:100%}._grid-item_1rajw_23{height:70px}}:root{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}._main_gsrvy_20{width:90%;margin:auto;margin-top:1rem;text-align:center}._main_gsrvy_20 form{display:flex;flex-direction:column;gap:1rem;align-items:center;width:max(40%,250px);margin:2rem auto}._main_gsrvy_20 input,._main_gsrvy_20 select{padding:.5em;font-size:1rem;width:100%}._main_gsrvy_20 label{display:flex}._main_gsrvy_20 #_message_gsrvy_1{min-width:25ch}._main_gsrvy_20 [for=duration]{align-items:center}._main_gsrvy_20 ._toastContainer_gsrvy_49{position:fixed;display:flex;flex-direction:column;gap:.5rem}._main_gsrvy_20 ._toast_gsrvy_49{padding:.5em;border-radius:.25rem;box-shadow:0 4px 10px #00000040;display:flex;align-items:center;color:var(--normal-text);background-color:var(--normal-bg);border:1px solid var(--normal-border)}._main_gsrvy_20 ._toast_gsrvy_49._success_gsrvy_65{color:var(--success-text);background-color:var(--success-bg);border:1px solid var(--success-border)}._main_gsrvy_20 ._toast_gsrvy_49._error_gsrvy_70{color:var(--error-text);background-color:var(--error-bg);border:1px solid var(--error-border)}._main_gsrvy_20 ._toast_gsrvy_49._warning_gsrvy_75{color:var(--warning-text);background-color:var(--warning-bg);border:1px solid var(--warning-border)}._main_gsrvy_20 ._toast_gsrvy_49._info_gsrvy_80{color:var(--info-text);background-color:var(--info-bg);border:1px solid var(--info-border)}._main_gsrvy_20 ._toast_gsrvy_49:before{min-width:1rem;padding:.1em .5em;font-size:.85em;font-weight:700}._main_gsrvy_20 ._success_gsrvy_65:before{content:"✓"}._main_gsrvy_20 ._error_gsrvy_70:before{content:"!"}._main_gsrvy_20 ._warning_gsrvy_75:before{content:"⚠"}._main_gsrvy_20 ._info_gsrvy_80:before{content:"ⓘ"}._main_gsrvy_20 ._remove_gsrvy_103{all:unset;margin-left:1em;cursor:pointer}._main_gsrvy_20 ._tcLeftTop_gsrvy_108{top:1rem;left:1rem;align-items:flex-start}._main_gsrvy_20 ._tcLeftBottom_gsrvy_113{bottom:1rem;left:1rem;align-items:flex-start}._main_gsrvy_20 ._tcRightTop_gsrvy_118{top:1rem;right:1rem;align-items:flex-end}._main_gsrvy_20 ._tcRightBottom_gsrvy_123{right:1rem;bottom:1rem;align-items:flex-end}._main_gsrvy_20 ._tcLeftTop_gsrvy_108 ._toast_gsrvy_49,._main_gsrvy_20 ._tcLeftBottom_gsrvy_113 ._toast_gsrvy_49{animation:_appear-from-left_gsrvy_1 .1s ease-in forwards}._main_gsrvy_20 ._tcLeftTop_gsrvy_108 ._toast_gsrvy_49._fade-out-left_gsrvy_132,._main_gsrvy_20 ._tcLeftBottom_gsrvy_113 ._toast_gsrvy_49._fade-out-left_gsrvy_132{animation:_fade-out-to-left_gsrvy_1 .1s ease-in forwards}@keyframes _appear-from-left_gsrvy_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fade-out-to-left_gsrvy_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_gsrvy_20 ._tcRightTop_gsrvy_118 ._toast_gsrvy_49,._main_gsrvy_20 ._tcRightBottom_gsrvy_123 ._toast_gsrvy_49{animation:_appear-from-right_gsrvy_1 .1s ease-in forwards}._main_gsrvy_20 ._tcRightTop_gsrvy_118 ._toast_gsrvy_49._fade-out-right_gsrvy_156,._main_gsrvy_20 ._tcRightBottom_gsrvy_123 ._toast_gsrvy_49._fade-out-right_gsrvy_156{animation:_fade-out-right_gsrvy_156 .1s ease-in forwards}@keyframes _appear-from-right_gsrvy_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fade-out-right_gsrvy_156{0%{transform:translate(0)}to{transform:translate(200%)}}._App_1k5ja_1{margin:auto}._App_1k5ja_1 button{padding:.5rem .75rem;color:#fff;border:none;border-radius:6px;transition:all .33s;transform:scale(1)}._App_1k5ja_1 form{width:100%;margin-top:10px}._App_1k5ja_1 form input{width:100%;height:80%;padding:.5rem;border-radius:6px}._App_1k5ja_1 form button{margin-top:10px;margin-right:.5rem;background-color:#00f}._App_1k5ja_1 ._item_1k5ja_27{display:flex;align-items:center;justify-content:space-between;margin-top:10px}._App_1k5ja_1 ._item_1k5ja_27 ._editBtn_1k5ja_33{background-color:green}._App_1k5ja_1 ._item_1k5ja_27 ._deleteBtn_1k5ja_36{margin-left:10px;background-color:red}._App_1k5ja_1 ._item_1k5ja_27 ._completed_1k5ja_40{font-style:italic;color:#a9a9a9;text-decoration:line-through}._App_1k5ja_1 button:hover{transition:all .33s;transform:scale(1.1)}._App_1k5ja_1 button:disabled{cursor:not-allowed;background-color:gray;transform:scale(1)}._hint_1k5ja_55{margin:.5rem 0;font-size:.9rem;color:#333}@media screen and (width >= 768px){._App_1k5ja_1{width:50%}}._container_10vfd_1{display:flex;align-items:center;justify-content:center;width:100%}._container_10vfd_1 *{box-sizing:border-box;padding:0;margin:0}._clockWrapper_10vfd_14{max-width:500px;padding:1.5rem;background-color:#f3f3f3;border:2px solid #ccc;border-radius:1rem}._timeSection_10vfd_22{display:flex;gap:1.5rem;margin-bottom:1.5rem}._timeSection_10vfd_22 div{display:flex;gap:.5rem;align-items:center}._timeSection_10vfd_22 p{font-size:1.8rem;font-weight:700}._timeAdjustment_10vfd_39{display:flex;gap:.5rem;align-items:center}._timeAdjustment_10vfd_39 ._timeAdjustmentButton_10vfd_45{display:flex;flex-direction:column;gap:0}._timerDisplay_10vfd_51{display:flex;flex-direction:column;gap:1rem;align-items:center}._timerDisplay_10vfd_51 p:first-child{font-size:1.5rem;font-weight:700;text-transform:capitalize}._timerDisplay_10vfd_51 p span{font-size:3rem;font-weight:700}._buttonGroup_10vfd_69{display:flex}._buttonGroup_10vfd_69 button,._timeAdjustmentButton_10vfd_45 button{color:#007bff;cursor:pointer;background-color:transparent;border:none;transition:color .2s ease}._buttonGroup_10vfd_69 button:hover,._timeAdjustmentButton_10vfd_45 button:hover{color:#0056b3}._lastMinute_10vfd_87{color:red}._container_1twmk_2{max-width:600px;padding:20px;margin:20px auto 0;background-color:#fff;border-radius:5px}._container_1twmk_2 h1{color:#333;text-align:center}._container_1twmk_2 textarea{width:100%;height:150px;padding:10px;margin-bottom:10px;resize:none;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._controls_1twmk_23{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}._container_1twmk_2 #_char-limit_1twmk_1{width:80px}._container_1twmk_2 button{padding:8px 16px;margin-top:10px;color:#fff;cursor:pointer;background-color:#333;border:none;border-radius:5px}._container_1twmk_2 button:hover{background-color:#555}._container_1twmk_2 ._highlight_1twmk_44{margin-top:20px}._container_1twmk_2 input[type=text]{width:200px;padding:5px;margin-right:10px;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._highlight-button_1twmk_54{color:#fff;background-color:#f2a154}._container_1twmk_2 ._highlight-button_1twmk_54:hover{background-color:#f93}._container_1twmk_2 ._highlighted_1twmk_61{font-weight:700;background-color:#ff0}._sport_1g70d_1{display:flex;justify-content:center;min-height:40vh}._container_1g70d_7{width:400px;padding:20px;text-align:center;background-color:#fff;border-radius:10px}._header_1g70d_15{padding:10px;font-size:24px}._question_1g70d_20{margin:20px 0;font-size:18px;color:#333}._answers_1g70d_26{display:flex;gap:10px;justify-content:center;margin-top:20px}._button_1g70d_33{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px;transition:background-color .3s}._button_1g70d_33:hover{background-color:#0056b3}._buttonStartOver_1g70d_48{font-size:16px;color:#fff;cursor:pointer;background-color:#ff5050;border:none;border-radius:5px;transition:background-color .3s}._buttonStartOver_1g70d_48:hover{background-color:#e63939}:modal._dialog_b8qgm_1{padding:0;border:1px solid gray;box-shadow:0 0 10px #00000080}:modal._dialog_b8qgm_1::backdrop{opacity:0}:modal._dialog_b8qgm_1._backdrop_b8qgm_9::backdrop{background-color:#000;opacity:.5}:modal._dialog_b8qgm_1 section{padding:1rem}:modal._dialog_b8qgm_1 header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}:modal._dialog_b8qgm_1 header h2{margin:0}:modal._dialog_b8qgm_1 header button{background-color:transparent;border:1px solid lightgray}:modal._dialog_b8qgm_1 footer{display:flex;justify-content:flex-end;margin-top:2rem}:modal._dialog_b8qgm_1 footer button{margin-left:1rem}:modal._dialog_b8qgm_1 ._dialog-content_b8qgm_37{padding:1rem}._form_b8qgm_41{display:flex;flex-direction:column;align-items:center;gap:1rem;font-size:larger;margin:3rem 0}._form_b8qgm_41>div{display:flex;align-items:center;gap:1rem}._form_b8qgm_41 button{margin-top:1rem}._main_5yt35_2{display:flex;flex-direction:column;align-items:center;justify-content:center}._container_5yt35_10{width:100%;height:400px;padding:10px;margin:26px;overflow-x:hidden;overflow-y:scroll;background-color:#f9f9f9;border-radius:3px;box-shadow:0 0 3px 2px #c9c9c9ee}._container_5yt35_10::-webkit-scrollbar,._container_5yt35_10::-webkit-scrollbar-thumb{width:6px;height:40px;border-radius:12px}._container_5yt35_10::-webkit-scrollbar-thumb{box-shadow:inset 10px 10px 10px 5px #b8b8b8}._iconContainer_5yt35_33{width:30%;height:30%}._icon_5yt35_33{display:inline-block;width:calc(100% / 3);padding:1px;font-size:30px;text-align:center;cursor:pointer;border:3px solid transparent;border-radius:10px;transition:border-color .3s}._icon_5yt35_33:hover{border-color:#d9d9d9}._inputField_5yt35_54{padding:10px;margin-bottom:10px;font-size:1rem;border:1px solid #ccc;border:2px solid rgb(80,66,0);border-radius:4px}._inputField_5yt35_54:hover{cursor:auto;border:2px solid rgb(80,66,0)}._toast_5yt35_68{position:fixed;top:20px;display:flex;align-items:center;justify-content:center;width:300px;height:30px;color:#2f4f4f;text-align:center;background-color:#80ee80;border-radius:20px;box-shadow:0 0 3px 2px #c9c9c9ee}._loader_5yt35_83{width:60px;height:60px;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;animation:_spin_5yt35_1 2s linear infinite}._loaderContainer_5yt35_92{display:flex;justify-content:center}._topSection_5yt35_97{display:flex;flex-direction:column;justify-content:center}._select_5yt35_103{width:180px;padding:10px;margin-bottom:10px;font-size:1rem;border:2px solid rgb(80,66,0);border-radius:5px}._copyText_5yt35_112{font-size:small;color:#bababa;text-align:center;opacity:1}._hidden_5yt35_119{opacity:0}@keyframes _spin_5yt35_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (width <= 576px){._icon_5yt35_33{width:calc(100% / 6)}}@media (width >= 768px){._icon_5yt35_33{width:12.5%}._container_5yt35_10{width:500px}}@media (width >= 992px){._icon_5yt35_33{width:10%}._container_5yt35_10{width:500px}}._container_5ie15_1{padding:20px;text-align:center}._languageList_5ie15_6{display:flex;flex-wrap:wrap;justify-content:center}._languageCard_5ie15_12{max-width:300px;padding:10px;margin:10px;text-align:left;background-color:#f7f7f7;border:1px solid #ccc;border-radius:8px;box-shadow:2px 2px 5px #0000001a;transition:transform .2s}._languageCard_5ie15_12:hover{transform:translateY(-3px)}._languageName_5ie15_28{margin-top:0;font-size:20px;color:#007bff}._info_5ie15_34{margin:5px 0;font-size:16px;color:#555}._heading_5ie15_40{font-size:24px;color:#333}._otpFields_1d1qn_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}._otpinput_1d1qn_15{display:flex;gap:1rem;align-items:center;justify-content:center}._otpinput_1d1qn_15 input{width:3rem;height:3rem;text-align:center;border:1px solid rgba(0,0,0,30%)}._AppContainer_wtrmq_1{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}._trafficWrapper_wtrmq_9{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:25px;width:8rem;padding:30px;background:black;border-radius:25px}._light_wtrmq_21{width:5rem;height:5rem;background:gray;border-radius:50%}._countdownTime_wtrmq_28{font-size:18px;font-weight:700}._button_g66ua_1,._quiz_container_footer_g66ua_1 button{all:unset;padding:.5rem 1rem;background:#2c3658;margin-left:auto;border-radius:.2rem;outline:none;border:none;cursor:pointer}._button_g66ua_1:active,._quiz_container_footer_g66ua_1 button:active{transform:scale(.98)}._button_g66ua_1:disabled,._quiz_container_footer_g66ua_1 button:disabled{background:rgba(44,54,88,.3);cursor:not-allowed}._button_g66ua_1:disabled:active,._quiz_container_footer_g66ua_1 button:disabled:active{transform:none}._app_g66ua_22{width:100%;min-height:85vh;background-color:#2c3658;display:flex;align-items:center;justify-content:center;font-size:1rem}._quiz_container_g66ua_1{color:#fff;height:30rem;width:30rem;padding:1rem 2rem;background:#699cf4;border-radius:1rem;border-top:5px solid #00fff2;transition:all .3s ease-in}._quiz_container_header_g66ua_42{display:flex;align-items:center;justify-content:center;justify-content:space-between}._quiz_container_footer_g66ua_1{width:100%;display:inline-flex;flex-direction:row-reverse}._question_g66ua_53{min-height:20rem}._question_g66ua_53 h2{min-height:5rem;font-size:1.2rem;font-weight:600;background:rgba(0,255,242,.2);border-radius:.4rem;padding:1rem;border:2px solid rgba(0,255,242,.5)}._question_choices_g66ua_65{list-style:none;list-style-position:inside;padding-left:0}._question_choices_g66ua_65>*{margin-block:.4rem}._question_choices_choice_g66ua_73{padding:.5rem;border:2px solid rgba(44,54,88,.5);border-radius:.4rem;cursor:pointer;background:rgba(44,54,88,.2)}._question_choices_choice_g66ua_73:active{transform:scale(.98)}._question_choices_choice_g66ua_73._selected_g66ua_83{background:rgba(44,54,88,.6)}._quiz_result_g66ua_87{display:flex;align-items:center;justify-content:center;height:100%}._quiz_result_g66ua_87 h3{background:rgba(0,255,242,.2);border:2px solid rgba(0,255,242,.5);text-align:center;padding:.5rem 1rem;border-radius:.5rem}._quiz_result_g66ua_87 table{background-color:#2c365880;border-collapse:collapse}._quiz_result_g66ua_87 table tr>td{padding:1rem 2rem;border:2px solid rgba(0,255,242,.5)}._app_2nnow_1{width:100%;height:85dvh;background-color:red}._app_2nnow_1{height:85dvh;width:100%;background-color:#333642;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:0}._chess_2nnow_18{height:100%;min-height:2.5rem;aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);gap:0;box-shadow:#0003 0 0 25px;overflow:hidden;background-color:#151417;color:#fff}._tile_2nnow_33{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:0;width:100%;height:100%;font-size:3.5em}._tile_color_2nnow_44{background-color:#fff;overflow:hidden;color:#151417}._container_1wkcr_1{display:flex;align-items:center;justify-content:center}._calculator__body_1wkcr_7{padding:3rem 1rem;background-color:#d6e4e5;border-radius:1rem}._calculator__screen_1wkcr_13{min-height:65px;padding:10px;margin-bottom:1rem;font-weight:700;color:#fff;text-align:right;word-break:break-all;word-wrap:break-word;background-color:#000;border-radius:.5rem}._calculator__screen__previous_1wkcr_26{margin-bottom:10px;font-size:.8rem;color:#d3d3d3}._calculator__buttons_1wkcr_32{display:grid;grid-template-rows:repeat(6,4rem);grid-template-columns:repeat(4,4rem);gap:5px;border:none;outline:none}._calculator__buttons_1wkcr_32 button{font-size:1.25rem;font-weight:700;color:#fff;border:none;border-radius:1rem;outline:none}#_ac_1wkcr_1{grid-column:1 / 3;background-color:#497174}#_del_1wkcr_1{background-color:#497174}#_total_1wkcr_1{grid-column:3 / 5;background-color:#eb6440}._calculator__buttons_1wkcr_32 button:hover,#_total_1wkcr_1:hover,#_ac_1wkcr_1:hover,#_del_1wkcr_1:hover{color:#000;background-color:gray}._calculator__button_1wkcr_32{background-color:#497174}._calculator__operator_1wkcr_76{background-color:#eb6440}._calculator__button_1wkcr_32:active,._calculator__operator_1wkcr_76:active,#_total_1wkcr_1:active,#_ac_1wkcr_1:active,#_del_1wkcr_1:active{box-shadow:0 0 5px #000}#_exponent_1wkcr_1,#_square_1wkcr_1{font-style:italic}button{cursor:pointer;padding:.5rem}._controls_1s50h_6{display:flex;flex-direction:column;gap:10px;margin-bottom:2rem}._text-center_1s50h_13{text-align:center}._tanks_1s50h_17{display:inline-flex;padding:0 20px;gap:20px}._add-btn_1s50h_23{background-color:green;color:#fff;border:none;border-radius:.5rem;text-transform:uppercase;-webkit-user-select:none;user-select:none}._empty-btn_1s50h_32{background-color:#fff;color:red;border:2px solid red;border-radius:.5rem;text-transform:uppercase;-webkit-user-select:none;user-select:none}._tank_1s50h_17{height:250px;width:100px;border:2px solid black;border-radius:0 0 .5rem .5rem;display:flex;align-items:flex-end;overflow:hidden}._tank-level_1s50h_51{width:100%;background-color:#0ff;transition:height 1s linear}._form-item_1s50h_57{display:flex;align-items:center;justify-content:center}@media screen and (max-width: 768px){._range_1s50h_64{display:none}._tanks_1s50h_17{padding:0}._tank_1s50h_17{width:70px}}@media screen and (max-width: 1024px){._tanks_1s50h_17{padding:0}._tank_1s50h_17{width:70px}}._TransferListContainer_e51he_1{display:flex;width:500px;height:250px;margin:2rem auto}._list-container_e51he_8{width:300px;border:1px solid rgb(13,13,20);display:flex;flex-direction:column}._buttons-container_e51he_15{width:100px;display:flex;flex-direction:column;justify-content:center;padding:5px}._buttons-container_e51he_15 button{padding:5px;margin-bottom:10px;cursor:pointer}._inputWrapper_e51he_29{padding:5px}._disabled-button_e51he_33{pointer-events:none}._AppContainer_1tcc6_1{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;padding:10px 20px}._container_1tcc6_9{min-height:100vh;width:100%;display:flex;align-items:center;justify-content:center;padding:100px 0}._timeline_1tcc6_17{width:80%;height:auto;max-width:800px;margin:0 auto;position:relative}._timeline_1tcc6_17 ul{list-style:none}._timeline_1tcc6_17 ul li{padding:20px;background-color:#1e1f22;color:#fff;border-radius:10px;margin-bottom:20px}._timeline_1tcc6_17 ul li:last-child{margin-bottom:0}._date_1tcc6_38{color:#000;font-size:12px}._timeline_content_1tcc6_42 h1{font-weight:500;font-size:25px;line-height:30px;margin-bottom:10px;color:#fff}._timeline_content_1tcc6_42 p{font-size:16px;line-height:30px;font-weight:300}._timeline_content_1tcc6_42 ._date_1tcc6_38{font-size:12px;font-weight:300;margin-bottom:10px;letter-spacing:2px}._timeline_1tcc6_17:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:2px;height:100%;background-color:gray}._timeline_1tcc6_17 ul li{width:50%;position:relative;margin-bottom:50px}._timeline_1tcc6_17 ul li:nth-child(odd){float:left;clear:right;transform:translate(-60px);border-radius:20px 0 20px 20px}._timeline_1tcc6_17 ul li:nth-child(2n){float:right;clear:left;transform:translate(30px);border-radius:0 20px 20px}._timeline_1tcc6_17 ul li:before{content:"";position:absolute;height:20px;width:20px;border-radius:50%;background-color:gray;top:-10px}._timeline_1tcc6_17 ul li:nth-child(odd):before{transform:translate(50%,-50%);right:-40px}._timeline_1tcc6_17 ul li:nth-child(2n):before{transform:translate(-50%,-50%);left:-48px}._timeline_content_1tcc6_42 ._date_1tcc6_38{position:absolute;top:-30px}._timeline_1tcc6_17 ul li:hover:before{background-color:#0ff}@media only screen and (max-width: 420px){._timeline_content_1tcc6_42 h1{font-size:20px;line-height:25px;padding-right:10px}._timeline_content_1tcc6_42 p{font-size:14px;line-height:20px}._timeline_content_1tcc6_42 ._date_1tcc6_38{font-size:10px;margin-bottom:5px}}._grid_18i4i_1{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:10px;margin:0 auto;margin-bottom:2rem}._itemBtn_18i4i_9{background-color:#fff;border-radius:5px;padding:10px 5px;text-align:center;cursor:pointer;border:1px solid grey;box-shadow:0 0 5px #0003;font-size:medium}._reset_18i4i_20{background-color:#00f;color:#fff;padding:.5rem 1rem}._center_18i4i_26{text-align:center}._highlight_18i4i_30{background-color:#add8e6}._success_18i4i_34{background-color:#90ee90}._failure_18i4i_38{background-color:#f08080}[data-status] button{cursor:not-allowed}._heading_12asi_1{text-align:center}._stepper_12asi_5{position:relative;display:flex;align-items:center;justify-content:space-between;margin-top:20px}._step_12asi_5{display:flex;flex:1;flex-direction:column;align-items:center}._step-number_12asi_20{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:5px;background-color:#ccc;border:2px solid black;border-radius:50%;cursor:pointer}._step_12asi_5._active_12asi_33 ._step-number_12asi_20{color:#fff;background-color:#4747f7}._step_12asi_5._complete_12asi_38 ._step-number_12asi_20{color:#fff;background-color:#1ec41e}._btn_12asi_43{margin-top:10px;cursor:pointer}._progress-container_12asi_48{position:absolute;top:15px;width:100%;height:4px;background-color:gray}._progress-bar_12asi_56{height:100%;background-color:green;transition:all .2s ease}._action-container_12asi_62{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:15px}._action-container_12asi_62 div{font-size:20px;font-weight:600}._action-container_12asi_62 ._btn_12asi_43{height:40px;padding:10px;margin:10px 50px;font-size:20px;cursor:pointer;background:none;background-color:#ccc;border:none;border-radius:5px}button:disabled{cursor:not-allowed!important}._main_yhjgz_1{display:flex;align-items:center;justify-content:center}._select-dahi_yhjgz_7{display:flex;flex-direction:column;gap:4px;padding:6px 8px}._inline-options_yhjgz_14{display:inline-flex;border-radius:8px;gap:4px;padding:3px;background:#fff;color:#5b5e64;-webkit-user-select:none;user-select:none;border:1px solid #dcd5c8;font-size:14px}._option_yhjgz_26{position:relative;cursor:pointer;padding:4px 6px;border-radius:4px;width:60px;display:flex;justify-content:center;align-items:center;background:#fff;box-shadow:none;border:0}._option_yhjgz_26:focus{outline:1px solid #6a604f}._option-selected_yhjgz_44{outline:none;color:#fff;background:#6a604f}._option-disabled_yhjgz_50{color:#bfbdbd;cursor:not-allowed}._a_13gc8_1,._d_13gc8_2,._g_13gc8_3{width:70px;height:10px;background-color:red;border-radius:70%}._d_13gc8_2,._g_13gc8_3{margin-top:30px}._b_13gc8_18,._c_13gc8_19,._e_13gc8_20,._f_13gc8_21{width:70px;height:10px;background-color:red;border-radius:70%}._b_13gc8_18{margin:28px 0 30px 35px;transform:rotate(90deg)}._c_13gc8_19{margin-top:-40px;margin-left:-36px;background-color:red;transform:rotate(90deg)}._e_13gc8_20{margin-top:30px;margin-left:-36px;background-color:red;transform:rotate(90deg)}._f_13gc8_21{margin-top:-10px;margin-left:35px;background-color:red;transform:rotate(90deg)}._off_13gc8_54{background-color:red;opacity:.2}._container_13gc8_59{margin:80px 0 0;padding:50px;display:flex;justify-content:center;background-color:#000}._hours_13gc8_68,._minutes_13gc8_72,._seconds_13gc8_76{display:flex}._colons_13gc8_80{display:flex;flex-direction:column;gap:30px;padding:30px;justify-content:space-between;align-items:center}._colon1_13gc8_89,._colon2_13gc8_90{width:30px;height:30px;background-color:red;border-radius:50%}._comment_10sns_1{display:flex;align-items:center;background-color:#f3f4f6;margin-bottom:.5rem;border-radius:1rem;padding:0 .5rem;border-left:.5rem solid blue}._comment_10sns_1 img{width:3.125rem;height:3.125rem;margin-right:.8rem}._comment_replies_10sns_17{margin-left:1rem;padding-left:1rem}._comment_10sns_1 button{border:none;background-color:transparent}._container_1d6j8_1{text-align:center}._button_1d6j8_5{padding:5px 25px;font-size:1rem;color:#fff;background-color:#000;border-radius:.5rem}._grid_1d6j8_13{display:inline-grid;grid-gap:4px;transition:all .25s}._grid_1d6j8_13 button{border:2px solid grey}._formContainer_muy2u_1{display:flex;justify-content:center}._input_text_muy2u_5{width:80%;padding:1rem;font-size:1rem;margin-bottom:3rem}._chips_muy2u_12{margin:.5em;padding:.5em .75em;background-color:#eee;border:1px solid lightgrey;border-radius:1em}._remove_muy2u_20{border:none;color:red;cursor:pointer}._container_w1r10_1{margin:3rem;padding:1rem 0;border:1px solid lightgray;border-radius:1rem;width:50%}._btn_w1r10_8{padding:1rem 2rem;background-color:#add8e6;color:#fff;cursor:pointer}._btn_w1r10_8:first-child{border-top-left-radius:1rem}._active_w1r10_19{background-color:#4747e8}._content_w1r10_23{margin:2rem 1rem;line-height:1.5}._container_1u8l1_1{width:50%;margin:0 auto}._listContainer_1u8l1_6{display:flex;justify-content:space-between;border:1px solid lightgray;padding:1rem;margin:1rem;cursor:grab;border-radius:1.5rem;box-shadow:#32325d40 0 2px 5px -1px,#0000004d 0 1px 3px -1px}._userDetail_1u8l1_19{flex:1;text-align:justify}._saveBtn_1u8l1_24{margin:2rem 0 0 1rem;padding:.8rem;letter-spacing:1.2px;border-radius:1.2rem;border:0;transition:all .2s ease}._saveBtn_1u8l1_24:hover{box-shadow:#0003 0 12px 28px,#0000001a 0 2px 4px,#ffffff0d 0 0 0 1px inset}._container_1iv6r_1{text-align:center;font-size:1.4rem}._container_1iv6r_1 ._inputWrapper_1iv6r_5{margin:20px 0;display:flex;justify-content:center;align-items:center;gap:1rem}._container_1iv6r_1 input{font-size:1.4rem;width:100px}._box_1iv6r_19{border:10px solid black;position:relative;margin:20px auto;box-sizing:content-box}._circle_1iv6r_26{border-radius:50%;border:1px solid blue;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}:root{--clock-size: min(100vh - 140px, 90vw);--clock-border: min(2vh, 2vw);--hand-color: black;--tick-color: black;--clock-color: black;--digit-color: brown}._clock_as1nw_10{position:relative;display:flex;align-items:center;justify-content:center;width:var(--clock-size);height:var(--clock-size);margin:2rem auto 0;border:min(2vh,2vw) solid var(--clock-color);border-radius:50%}._ticks_as1nw_22{position:absolute;width:100%;height:100%}._tick_as1nw_22{position:absolute;height:1%;background-color:var(--tick-color);border:1px solid var(--tick-color);transform:translate(-50%,-50%);transform-origin:top left}._tick_as1nw_22:nth-child(5n+1){width:.25%;height:1.5%}._digits_as1nw_42{position:absolute;width:90%;height:90%;font-size:min(4vh,4vw);font-weight:600;color:var(--digit-color)}._digit_as1nw_42{position:absolute;text-shadow:0 2px rgb(0,0,0,15%);transform:translate(-50%,-50%)}._bgImg_as1nw_57{width:100%;height:100%;object-fit:cover;opacity:.75}._centerConnector_as1nw_64{position:absolute;z-index:100;width:5%;height:5%;background-color:var(--clock-color);border-radius:50%}._secondsHand_as1nw_73,._minutesHand_as1nw_74,._hoursHand_as1nw_75{position:absolute;background-color:var(--hand-color);transform-origin:50% 100%}._hoursHand_as1nw_75{top:20%;left:calc(50% - 2.5px);width:.5%;height:30%}._minutesHand_as1nw_74{top:5%;left:calc(50% - 1.5px);width:.3%;height:45%}._secondsHand_as1nw_73{top:15%;left:calc(50% - .5px);width:.1%;height:55%;transform-origin:50% 63.5%}._secondsHand_as1nw_73:before{position:absolute;bottom:0;left:-250%;width:600%;height:25%;content:"";background-color:var(--hand-color)}._main_ykqcu_1{text-align:center;font-size:1.5rem}._main_ykqcu_1 section{margin:1rem 0}._main_ykqcu_1 section div{margin:1rem 0}._main_ykqcu_1 section button{padding:.25rem 1rem;margin:0 .5rem;font-size:1.5rem}._main_ykqcu_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.5rem}._nested_checkbox_wrapper_sy313_1{margin:20px 0;width:300px}._nested_checkbox_label_sy313_6{display:flex;align-items:center;gap:4px}._nested_checkbox_child_sy313_12{margin:10px 0;padding:0 0 0 25px}._layout_1tukw_1{display:flex;align-items:center;justify-content:center;margin:1rem 0;gap:2rem}._layout_1tukw_1 button{padding:.25rem;border-radius:4px}._holder_1tukw_13{display:flex;height:calc(100dvh - 9rem)}._holder_1tukw_13 ._hourLabels_1tukw_17{display:flex;flex-direction:column;margin-right:1rem;justify-content:space-between;width:8ch}._holder_1tukw_13 ._day_1tukw_24{position:relative;margin-top:.5rem;width:100%;display:flex;flex-direction:column;justify-content:space-between;height:calc(100% - 1rem);border-bottom:1px solid #ccc}._holder_1tukw_13 ._day_1tukw_24 ._hourSlot_1tukw_34{border-top:1px solid #ccc}._holder_1tukw_13 ._day_1tukw_24 ._meetings_1tukw_37{display:flex;justify-content:flex-end}._holder_1tukw_13 ._day_1tukw_24 ._meeting_1tukw_37{position:absolute;opacity:.8;overflow:hidden;border-radius:4px;background-color:#add8e6;outline:1px solid white;border:1px solid gray;transition:background-color .5s;display:flex;flex-direction:column;gap:4px;padding:4px;font-size:small}._holder_1tukw_13 ._day_1tukw_24 ._meeting_1tukw_37 span:first-child{font-weight:700}._holder_1tukw_13 ._day_1tukw_24 ._meeting_1tukw_37:hover{background-color:#aadff0}@media (width > 768px){._holder_1tukw_13 ._day_1tukw_24 ._meeting_1tukw_37{font-size:medium}}@media (width > 1200px){._holder_1tukw_13 ._day_1tukw_24 ._meeting_1tukw_37{font-size:large}}:root{--bg-body: #f3f4f6;--text-body: #111827;--bg-navbar: #ffffff;--shadow-navbar: rgba(0 0 0 / .1);--bg-navbar-logo-img: transparent;--bg-footer: #f9fafb;--shadow-footer: rgba(0 0 0 / .1);--text-link: blue;--card-body: #ffffff;--card-shadow: rgb(226, 226, 226);--card-shadow-hover: rgba(0, 0, 0, .3);--card-border: rgb(250, 250, 250);--difficulty-color: ""}[data-theme=dark]{--bg-body: #030712;--text-body: #e5e7eb;--bg-navbar: #030712;--shadow-navbar: rgba(150 150 150 / .2);--bg-footer: var(--bg-body);--shadow-footer: #1f2937;--text-link: #6366f1;--card-body: #000000;--card-shadow: rgb(51, 51, 51);--card-shadow-hover: rgba(255, 255, 255, .2);--card-border: rgb(70, 70, 70);color-scheme:dark}html{margin:0;box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}*,*:before,*:after{box-sizing:inherit}body{margin:0;color:var(--text-body);overflow-x:hidden}a{text-decoration:none;color:var(--text-link)}button{cursor:pointer}input:disabled,button:disabled{cursor:not-allowed}h1{align-items:center;justify-content:center}.container{width:90%;margin:auto}.hidden{display:none!important}button.btn.btn-primary{padding:10px 16px;background-color:#0ff;border:1px solid grey;border-radius:4px;cursor:pointer}button.btn:disabled,.btn.btn-primary:disabled{cursor:not-allowed}.btn.btn-primary.small{padding:4px 6px}.disabled{color:gray;cursor:not-allowed}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-space-between{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.grid{display:grid}.text-center{text-align:center}.text-bold{font-weight:700}.fixed{position:fixed}.relative{position:relative}html{scroll-behavior:smooth} diff --git a/docs/react/index.html b/docs/react/index.html index 176f7130..14fba01c 100644 --- a/docs/react/index.html +++ b/docs/react/index.html @@ -14,8 +14,8 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - - + +
diff --git a/docs/vue/assets/index-60UR9JO3.js b/docs/vue/assets/index-k2flRGCC.js similarity index 63% rename from docs/vue/assets/index-60UR9JO3.js rename to docs/vue/assets/index-k2flRGCC.js index 0f533bbc..1ac9940d 100644 --- a/docs/vue/assets/index-60UR9JO3.js +++ b/docs/vue/assets/index-k2flRGCC.js @@ -1,8 +1,8 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ii(e,t){const n=Object.create(null),i=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const ie={},Ut=[],Ye=()=>{},pr=()=>!1,Yn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oi=e=>e.startsWith("onUpdate:"),ge=Object.assign,$i=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hr=Object.prototype.hasOwnProperty,W=(e,t)=>hr.call(e,t),U=Array.isArray,jt=e=>wn(e)==="[object Map]",Qt=e=>wn(e)==="[object Set]",ss=e=>wn(e)==="[object Date]",K=e=>typeof e=="function",ce=e=>typeof e=="string",gt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",no=e=>(te(e)||K(e))&&K(e.then)&&K(e.catch),io=Object.prototype.toString,wn=e=>io.call(e),mr=e=>wn(e).slice(8,-1),so=e=>wn(e)==="[object Object]",Ni=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=Ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gr=/-(\w)/g,Vt=Jn(e=>e.replace(gr,(t,n)=>n?n.toUpperCase():"")),vr=/\B([A-Z])/g,Xt=Jn(e=>e.replace(vr,"-$1").toLowerCase()),oo=Jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),li=Jn(e=>e?`on${oo(e)}`:""),Tt=(e,t)=>!Object.is(e,t),$n=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let os;const vi=()=>os||(os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function et(e){if(U(e)){const t={};for(let n=0;n{if(n){const i=n.split(_r);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function it(e){let t="";if(ce(e))t=e;else if(U(e))for(let n=0;nPt(n,t))}const oe=e=>ce(e)?e:e==null?"":U(e)||te(e)&&(e.toString===io||!K(e.toString))?JSON.stringify(e,lo,2):String(e),lo=(e,t)=>t&&t.__v_isRef?lo(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],o)=>(n[ai(i,o)+" =>"]=s,n),{})}:Qt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ai(n))}:gt(t)?ai(t):te(t)&&!U(t)&&!so(t)?String(t):t,ai=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ne;class Cr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ao=e=>(e.w&vt)>0,co=e=>(e.n&vt)>0,Rr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(c==="length"||!gt(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":U(e)?Ni(n)&&a.push(r.get("length")):(a.push(r.get(Mt)),jt(e)&&a.push(r.get(_i)));break;case"delete":U(e)||(a.push(r.get(Mt)),jt(e)&&a.push(r.get(_i)));break;case"set":jt(e)&&a.push(r.get(Mt));break}if(a.length===1)a[0]&&bi(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);bi(Hi(l))}}function bi(e,t){const n=U(e)?e:[...e];for(const i of n)i.computed&&ls(i);for(const i of n)i.computed||ls(i)}function ls(e,t){(e!==Le||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Pr(e,t){var n;return(n=Vn.get(e))==null?void 0:n.get(t)}const Ar=Ii("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),as=Ir();function Ir(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=G(this);for(let o=0,r=this.length;o{e[t]=function(...n){Zt();const i=G(this)[t].apply(this,n);return en(),i}}),e}function Or(e){const t=G(this);return Se(t,"has",e),t.hasOwnProperty(e)}class ho{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const s=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(s?o?qr:yo:o?vo:go).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=U(t);if(!s){if(r&&W(as,n))return Reflect.get(as,n,i);if(n==="hasOwnProperty")return Or}const a=Reflect.get(t,n,i);return(gt(n)?po.has(n):Ar(n))||(s||Se(t,"get",n),o)?a:we(a)?r&&Ni(n)?a:a.value:te(a)?s?bo(a):kn(a):a}}class mo extends ho{constructor(t=!1){super(!1,t)}set(t,n,i,s){let o=t[n];if(!this._shallow){const l=Kt(o);if(!Kn(i)&&!Kt(i)&&(o=G(o),i=G(i)),!U(t)&&we(o)&&!we(i))return l?!1:(o.value=i,!0)}const r=U(t)&&Ni(n)?Number(n)e,Qn=e=>Reflect.getPrototypeOf(e);function Cn(e,t,n=!1,i=!1){e=e.__v_raw;const s=G(e),o=G(t);n||(Tt(t,o)&&Se(s,"get",t),Se(s,"get",o));const{has:r}=Qn(s),a=i?Ui:n?Bi:mn;if(r.call(s,t))return a(e.get(t));if(r.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function Sn(e,t=!1){const n=this.__v_raw,i=G(n),s=G(e);return t||(Tt(e,s)&&Se(i,"has",e),Se(i,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Se(G(e),"iterate",Mt),Reflect.get(e,"size",e)}function cs(e){e=G(e);const t=G(this);return Qn(t).has.call(t,e)||(t.add(e),st(t,"add",e,e)),this}function us(e,t){t=G(t);const n=G(this),{has:i,get:s}=Qn(n);let o=i.call(n,e);o||(e=G(e),o=i.call(n,e));const r=s.call(n,e);return n.set(e,t),o?Tt(t,r)&&st(n,"set",e,t):st(n,"add",e,t),this}function fs(e){const t=G(this),{has:n,get:i}=Qn(t);let s=n.call(t,e);s||(e=G(e),s=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return s&&st(t,"delete",e,void 0),o}function ds(){const e=G(this),t=e.size!==0,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}function Rn(e,t){return function(i,s){const o=this,r=o.__v_raw,a=G(r),l=t?Ui:e?Bi:mn;return!e&&Se(a,"iterate",Mt),r.forEach((u,c)=>i.call(s,l(u),l(c),o))}}function Tn(e,t,n){return function(...i){const s=this.__v_raw,o=G(s),r=jt(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=s[e](...i),c=n?Ui:t?Bi:mn;return!t&&Se(o,"iterate",l?_i:Mt),{next(){const{value:p,done:v}=u.next();return v?{value:p,done:v}:{value:a?[c(p[0]),c(p[1])]:c(p),done:v}},[Symbol.iterator](){return this}}}}function at(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fr(){const e={get(o){return Cn(this,o)},get size(){return Mn(this)},has:Sn,add:cs,set:us,delete:fs,clear:ds,forEach:Rn(!1,!1)},t={get(o){return Cn(this,o,!1,!0)},get size(){return Mn(this)},has:Sn,add:cs,set:us,delete:fs,clear:ds,forEach:Rn(!1,!0)},n={get(o){return Cn(this,o,!0)},get size(){return Mn(this,!0)},has(o){return Sn.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Rn(!0,!1)},i={get(o){return Cn(this,o,!0,!0)},get size(){return Mn(this,!0)},has(o){return Sn.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Rn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Tn(o,!1,!1),n[o]=Tn(o,!0,!1),t[o]=Tn(o,!1,!0),i[o]=Tn(o,!0,!0)}),[e,n,t,i]}const[Ur,jr,Dr,Br]=Fr();function ji(e,t){const n=t?e?Br:Dr:e?jr:Ur;return(i,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(W(n,s)&&s in i?n:i,s,o)}const Vr={get:ji(!1,!1)},Kr={get:ji(!1,!0)},zr={get:ji(!0,!1)},go=new WeakMap,vo=new WeakMap,yo=new WeakMap,qr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(mr(e))}function kn(e){return Kt(e)?e:Di(e,!1,Nr,Vr,go)}function _o(e){return Di(e,!1,Hr,Kr,vo)}function bo(e){return Di(e,!0,Lr,zr,yo)}function Di(e,t,n,i,s){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const r=Gr(e);if(r===0)return e;const a=new Proxy(e,r===2?i:n);return s.set(e,a),a}function Dt(e){return Kt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function wo(e){return Dt(e)||Kt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function ko(e){return Dn(e,"__v_skip",!0),e}const mn=e=>te(e)?kn(e):e,Bi=e=>te(e)?bo(e):e;function Eo(e){pt&&Le&&(e=G(e),fo(e.dep||(e.dep=Hi())))}function xo(e,t){e=G(e);const n=e.dep;n&&bi(n)}function we(e){return!!(e&&e.__v_isRef===!0)}function z(e){return Co(e,!1)}function Yr(e){return Co(e,!0)}function Co(e,t){return we(e)?e:new Jr(e,t)}class Jr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:mn(t)}get value(){return Eo(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||Kt(t);t=n?t:G(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:mn(t),xo(this))}}function se(e){return we(e)?e.value:e}const Qr={get:(e,t,n)=>se(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function So(e){return Dt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Pr(G(this._object),this._key)}}class Zr{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function el(e,t,n){return we(e)?e:K(e)?new Zr(e):te(e)&&arguments.length>1?tl(e,t,n):z(e)}function tl(e,t,n){const i=e[t];return we(i)?i:new Xr(e,t,n)}class nl{constructor(t,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fi(t,()=>{this._dirty||(this._dirty=!0,xo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const t=G(this);return Eo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function il(e,t,n=!1){let i,s;const o=K(e);return o?(i=e,s=Ye):(i=e.get,s=e.set),new nl(i,s,o||!s,n)}function ht(e,t,n,i){let s;try{s=i?e(...i):e()}catch(o){Xn(o,t,n)}return s}function Ue(e,t,n,i){if(K(e)){const o=ht(e,t,n,i);return o&&no(o)&&o.catch(r=>{Xn(r,t,n)}),o}const s=[];for(let o=0;o>>1,s=_e[i],o=vn(s);oGe&&_e.splice(t,1)}function ll(e){U(e)?Bt.push(...e):(!Ze||!Ze.includes(e,e.allowRecurse?Et+1:Et))&&Bt.push(e),To()}function ps(e,t,n=gn?Ge+1:0){for(;n<_e.length;n++){const i=_e[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;_e.splice(n,1),n--,i()}}}function Po(e){if(Bt.length){const t=[...new Set(Bt)];if(Bt.length=0,Ze){Ze.push(...t);return}for(Ze=t,Ze.sort((n,i)=>vn(n)-vn(i)),Et=0;Ete.id==null?1/0:e.id,al=(e,t)=>{const n=vn(e)-vn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ao(e){wi=!1,gn=!0,_e.sort(al);try{for(Ge=0;Ge<_e.length;Ge++){const t=_e[Ge];t&&t.active!==!1&&ht(t,null,14)}}finally{Ge=0,_e.length=0,Po(),gn=!1,Vi=null,(_e.length||Bt.length)&&Ao()}}function cl(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ie;let s=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in i){const c=`${r==="modelValue"?"model":r}Modifiers`,{number:p,trim:v}=i[c]||ie;v&&(s=n.map(w=>ce(w)?w.trim():w)),p&&(s=n.map(Bn))}let a,l=i[a=li(t)]||i[a=li(Vt(t))];!l&&o&&(l=i[a=li(Xt(t))]),l&&Ue(l,e,6,s);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ue(u,e,6,s)}}function Io(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const o=e.emits;let r={},a=!1;if(!K(e)){const l=u=>{const c=Io(u,t,!0);c&&(a=!0,ge(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(te(e)&&i.set(e,null),null):(U(o)?o.forEach(l=>r[l]=null):ge(r,o),te(e)&&i.set(e,r),r)}function Zn(e,t){return!e||!Yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,Xt(t))||W(e,t))}let He=null,ei=null;function zn(e){const t=He;return He=e,ei=e&&e.type.__scopeId||null,t}function Pe(e){ei=e}function Ae(){ei=null}function ul(e,t=He,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&Es(-1);const o=zn(t);let r;try{r=e(...s)}finally{zn(o),i._d&&Es(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function ci(e){const{type:t,vnode:n,proxy:i,withProxy:s,props:o,propsOptions:[r],slots:a,attrs:l,emit:u,render:c,renderCache:p,data:v,setupState:w,ctx:P,inheritAttrs:I}=e;let B,H;const j=zn(e);try{if(n.shapeFlag&4){const D=s||i,ue=D;B=We(c.call(ue,D,p,o,w,v,P)),H=l}else{const D=t;B=We(D.length>1?D(o,{attrs:l,slots:a,emit:u}):D(o,null)),H=t.props?l:fl(l)}}catch(D){fn.length=0,Xn(D,e,1),B=me(At)}let Y=B;if(H&&I!==!1){const D=Object.keys(H),{shapeFlag:ue}=Y;D.length&&ue&7&&(r&&D.some(Oi)&&(H=dl(H,r)),Y=qt(Y,H))}return n.dirs&&(Y=qt(Y),Y.dirs=Y.dirs?Y.dirs.concat(n.dirs):n.dirs),n.transition&&(Y.transition=n.transition),B=Y,zn(j),B}const fl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yn(n))&&((t||(t={}))[n]=e[n]);return t},dl=(e,t)=>{const n={};for(const i in e)(!Oi(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function pl(e,t,n){const{props:i,children:s,component:o}=e,{props:r,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?hs(i,r,u):!!r;if(l&8){const c=t.dynamicProps;for(let p=0;pe.__isSuspense;function vl(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ll(e)}const Pn={};function mt(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:i,flush:s,onTrack:o,onTrigger:r}=ie){var a;const l=Mr()===((a=be)==null?void 0:a.scope)?be:null;let u,c=!1,p=!1;if(we(e)?(u=()=>e.value,c=Kn(e)):Dt(e)?(u=()=>e,i=!0):U(e)?(p=!0,c=e.some(D=>Dt(D)||Kn(D)),u=()=>e.map(D=>{if(we(D))return D.value;if(Dt(D))return St(D);if(K(D))return ht(D,l,2)})):K(e)?t?u=()=>ht(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return v&&v(),Ue(e,l,3,[w])}:u=Ye,t&&i){const D=u;u=()=>St(D())}let v,w=D=>{v=j.onStop=()=>{ht(D,l,4),v=j.onStop=void 0}},P;if(_n)if(w=Ye,t?n&&Ue(t,l,3,[u(),p?[]:void 0,w]):u(),s==="sync"){const D=aa();P=D.__watcherHandles||(D.__watcherHandles=[])}else return Ye;let I=p?new Array(e.length).fill(Pn):Pn;const B=()=>{if(j.active)if(t){const D=j.run();(i||c||(p?D.some((ue,ve)=>Tt(ue,I[ve])):Tt(D,I)))&&(v&&v(),Ue(t,l,3,[D,I===Pn?void 0:p&&I[0]===Pn?[]:I,w]),I=D)}else j.run()};B.allowRecurse=!!t;let H;s==="sync"?H=B:s==="post"?H=()=>xe(B,l&&l.suspense):(B.pre=!0,l&&(B.id=l.uid),H=()=>Ki(B));const j=new Fi(u,H);t?n?B():I=j.run():s==="post"?xe(j.run.bind(j),l&&l.suspense):j.run();const Y=()=>{j.stop(),l&&l.scope&&$i(l.scope.effects,j)};return P&&P.push(Y),Y}function yl(e,t,n){const i=this.proxy,s=ce(e)?e.includes(".")?$o(i,e):()=>i[e]:e.bind(i,i);let o;K(t)?o=t:(o=t.handler,n=t);const r=be;Wt(this);const a=Oo(s,o.bind(i),n);return r?Wt(r):Rt(),a}function $o(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s{St(n,t)});else if(so(e))for(const n in e)St(e[n],t);return e}function de(e,t){const n=He;if(n===null)return e;const i=si(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;oge({name:e.name},t,{setup:e}))():e}const Nn=e=>!!e.type.__asyncLoader,No=e=>e.type.__isKeepAlive;function _l(e,t){Lo(e,"a",t)}function bl(e,t){Lo(e,"da",t)}function Lo(e,t,n=be){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ti(t,i,n),n){let s=n.parent;for(;s&&s.parent;)No(s.parent.vnode)&&wl(i,t,n,s),s=s.parent}}function wl(e,t,n,i){const s=ti(t,e,i,!0);Ho(()=>{$i(i[t],s)},n)}function ti(e,t,n=be,i=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zt(),Wt(n);const a=Ue(t,n,e,r);return Rt(),en(),a});return i?s.unshift(o):s.push(o),o}}const ot=e=>(t,n=be)=>(!_n||e==="sp")&&ti(e,(...i)=>t(...i),n),kl=ot("bm"),El=ot("m"),xl=ot("bu"),Cl=ot("u"),Sl=ot("bum"),Ho=ot("um"),Ml=ot("sp"),Rl=ot("rtg"),Tl=ot("rtc");function Pl(e,t=be){ti("ec",e,t)}function zt(e,t,n,i){let s;const o=n&&n[i];if(U(e)||ce(e)){s=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);s=new Array(r.length);for(let a=0,l=r.length;ae?Go(e)?si(e)||e.proxy:ki(e.parent):null,un=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ki(e.parent),$root:e=>ki(e.root),$emit:e=>e.emit,$options:e=>zi(e),$forceUpdate:e=>e.f||(e.f=()=>Ki(e.update)),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>yl.bind(e)}),ui=(e,t)=>e!==ie&&!e.__isScriptSetup&&W(e,t),Al={get({_:e},t){const{ctx:n,setupState:i,data:s,props:o,accessCache:r,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const w=r[t];if(w!==void 0)switch(w){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(ui(i,t))return r[t]=1,i[t];if(s!==ie&&W(s,t))return r[t]=2,s[t];if((u=e.propsOptions[0])&&W(u,t))return r[t]=3,o[t];if(n!==ie&&W(n,t))return r[t]=4,n[t];Ei&&(r[t]=0)}}const c=un[t];let p,v;if(c)return t==="$attrs"&&Se(e,"get",t),c(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==ie&&W(n,t))return r[t]=4,n[t];if(v=l.config.globalProperties,W(v,t))return v[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:o}=e;return ui(s,t)?(s[t]=n,!0):i!==ie&&W(i,t)?(i[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:o}},r){let a;return!!n[r]||e!==ie&&W(e,r)||ui(t,r)||(a=o[0])&&W(a,r)||W(i,r)||W(un,r)||W(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ms(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ei=!0;function Il(e){const t=zi(e),n=e.proxy,i=e.ctx;Ei=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:r,watch:a,provide:l,inject:u,created:c,beforeMount:p,mounted:v,beforeUpdate:w,updated:P,activated:I,deactivated:B,beforeDestroy:H,beforeUnmount:j,destroyed:Y,unmounted:D,render:ue,renderTracked:ve,renderTriggered:Oe,errorCaptured:De,serverPrefetch:It,expose:Be,inheritAttrs:rt,components:_t,directives:Ve,filters:nn}=t;if(u&&Ol(u,i,null),r)for(const ee in r){const J=r[ee];K(J)&&(i[ee]=J.bind(n))}if(s){const ee=s.call(n,n);te(ee)&&(e.data=kn(ee))}if(Ei=!0,o)for(const ee in o){const J=o[ee],Qe=K(J)?J.bind(n,n):K(J.get)?J.get.bind(n,n):Ye,lt=!K(J)&&K(J.set)?J.set.bind(n):Ye,Ke=le({get:Qe,set:lt});Object.defineProperty(i,ee,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Ee=>Ke.value=Ee})}if(a)for(const ee in a)Fo(a[ee],i,n,ee);if(l){const ee=K(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(J=>{Ln(J,ee[J])})}c&&gs(c,e,"c");function fe(ee,J){U(J)?J.forEach(Qe=>ee(Qe.bind(n))):J&&ee(J.bind(n))}if(fe(kl,p),fe(El,v),fe(xl,w),fe(Cl,P),fe(_l,I),fe(bl,B),fe(Pl,De),fe(Tl,ve),fe(Rl,Oe),fe(Sl,j),fe(Ho,D),fe(Ml,It),U(Be))if(Be.length){const ee=e.exposed||(e.exposed={});Be.forEach(J=>{Object.defineProperty(ee,J,{get:()=>n[J],set:Qe=>n[J]=Qe})})}else e.exposed||(e.exposed={});ue&&e.render===Ye&&(e.render=ue),rt!=null&&(e.inheritAttrs=rt),_t&&(e.components=_t),Ve&&(e.directives=Ve)}function Ol(e,t,n=Ye){U(e)&&(e=xi(e));for(const i in e){const s=e[i];let o;te(s)?"default"in s?o=Je(s.from||i,s.default,!0):o=Je(s.from||i):o=Je(s),we(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[i]=o}}function gs(e,t,n){Ue(U(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fo(e,t,n,i){const s=i.includes(".")?$o(n,i):()=>n[i];if(ce(e)){const o=t[e];K(o)&&mt(s,o)}else if(K(e))mt(s,e.bind(n));else if(te(e))if(U(e))e.forEach(o=>Fo(o,t,n,i));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&mt(s,o,e)}}function zi(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!i?l=t:(l={},s.length&&s.forEach(u=>qn(l,u,r,!0)),qn(l,t,r)),te(t)&&o.set(t,l),l}function qn(e,t,n,i=!1){const{mixins:s,extends:o}=t;o&&qn(e,o,n,!0),s&&s.forEach(r=>qn(e,r,n,!0));for(const r in t)if(!(i&&r==="expose")){const a=$l[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const $l={data:vs,props:ys,emits:ys,methods:cn,computed:cn,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:cn,directives:cn,watch:Ll,provide:vs,inject:Nl};function vs(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Nl(e,t){return cn(xi(e),xi(t))}function xi(e){if(U(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(i&&i.proxy):t}}function Ul(e,t,n,i=!1){const s={},o={};Dn(o,ii,1),e.propsDefaults=Object.create(null),jo(e,t,s,o);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=i?s:_o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function jl(e,t,n,i){const{props:s,attrs:o,vnode:{patchFlag:r}}=e,a=G(s),[l]=e.propsOptions;let u=!1;if((i||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let p=0;p{l=!0;const[v,w]=Do(p,t,!0);ge(r,v),w&&a.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return te(e)&&i.set(e,Ut),Ut;if(U(o))for(let c=0;c-1,w[1]=I<0||P-1||W(w,"default"))&&a.push(p)}}}const u=[r,a];return te(e)&&i.set(e,u),u}function _s(e){return e[0]!=="$"}function bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ws(e,t){return bs(e)===bs(t)}function ks(e,t){return U(t)?t.findIndex(n=>ws(n,e)):K(t)&&ws(t,e)?0:-1}const Bo=e=>e[0]==="_"||e==="$stable",qi=e=>U(e)?e.map(We):[We(e)],Dl=(e,t,n)=>{if(t._n)return t;const i=ul((...s)=>qi(t(...s)),n);return i._c=!1,i},Vo=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Bo(s))continue;const o=e[s];if(K(o))t[s]=Dl(s,o,i);else if(o!=null){const r=qi(o);t[s]=()=>r}}},Ko=(e,t)=>{const n=qi(t);e.slots.default=()=>n},Bl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),Dn(t,"_",n)):Vo(t,e.slots={})}else e.slots={},t&&Ko(e,t);Dn(e.slots,ii,1)},Vl=(e,t,n)=>{const{vnode:i,slots:s}=e;let o=!0,r=ie;if(i.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(ge(s,t),!n&&a===1&&delete s._):(o=!t.$stable,Vo(t,s)),r=t}else t&&(Ko(e,t),r={default:1});if(o)for(const a in s)!Bo(a)&&r[a]==null&&delete s[a]};function Si(e,t,n,i,s=!1){if(U(e)){e.forEach((v,w)=>Si(v,t&&(U(t)?t[w]:t),n,i,s));return}if(Nn(i)&&!s)return;const o=i.shapeFlag&4?si(i.component)||i.component.proxy:i.el,r=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ie?a.refs={}:a.refs,p=a.setupState;if(u!=null&&u!==l&&(ce(u)?(c[u]=null,W(p,u)&&(p[u]=null)):we(u)&&(u.value=null)),K(l))ht(l,a,12,[r,c]);else{const v=ce(l),w=we(l);if(v||w){const P=()=>{if(e.f){const I=v?W(p,l)?p[l]:c[l]:l.value;s?U(I)&&$i(I,o):U(I)?I.includes(o)||I.push(o):v?(c[l]=[o],W(p,l)&&(p[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=r,W(p,l)&&(p[l]=r)):w&&(l.value=r,e.k&&(c[e.k]=r))};r?(P.id=-1,xe(P,n)):P()}}}const xe=vl;function Kl(e){return zl(e)}function zl(e,t){const n=vi();n.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:r,createText:a,createComment:l,setText:u,setElementText:c,parentNode:p,nextSibling:v,setScopeId:w=Ye,insertStaticContent:P}=e,I=(f,d,m,y=null,b=null,k=null,R=!1,x=null,C=!!d.dynamicChildren)=>{if(f===d)return;f&&!on(f,d)&&(y=_(f),Ee(f,b,k,!0),f=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:E,ref:N,shapeFlag:A}=d;switch(E){case ni:B(f,d,m,y);break;case At:H(f,d,m,y);break;case fi:f==null&&j(d,m,y,R);break;case he:_t(f,d,m,y,b,k,R,x,C);break;default:A&1?ue(f,d,m,y,b,k,R,x,C):A&6?Ve(f,d,m,y,b,k,R,x,C):(A&64||A&128)&&E.process(f,d,m,y,b,k,R,x,C,S)}N!=null&&b&&Si(N,f&&f.ref,k,d||f,!d)},B=(f,d,m,y)=>{if(f==null)i(d.el=a(d.children),m,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},H=(f,d,m,y)=>{f==null?i(d.el=l(d.children||""),m,y):d.el=f.el},j=(f,d,m,y)=>{[f.el,f.anchor]=P(f.children,d,m,y,f.el,f.anchor)},Y=({el:f,anchor:d},m,y)=>{let b;for(;f&&f!==d;)b=v(f),i(f,m,y),f=b;i(d,m,y)},D=({el:f,anchor:d})=>{let m;for(;f&&f!==d;)m=v(f),s(f),f=m;s(d)},ue=(f,d,m,y,b,k,R,x,C)=>{R=R||d.type==="svg",f==null?ve(d,m,y,b,k,R,x,C):It(f,d,b,k,R,x,C)},ve=(f,d,m,y,b,k,R,x)=>{let C,E;const{type:N,props:A,shapeFlag:L,transition:V,dirs:q}=f;if(C=f.el=r(f.type,k,A&&A.is,A),L&8?c(C,f.children):L&16&&De(f.children,C,null,y,b,k&&N!=="foreignObject",R,x),q&&bt(f,null,y,"created"),Oe(C,f,f.scopeId,R,y),A){for(const Z in A)Z!=="value"&&!On(Z)&&o(C,Z,null,A[Z],k,f.children,y,b,ye);"value"in A&&o(C,"value",null,A.value),(E=A.onVnodeBeforeMount)&&qe(E,y,f)}q&&bt(f,null,y,"beforeMount");const ne=ql(b,V);ne&&V.beforeEnter(C),i(C,d,m),((E=A&&A.onVnodeMounted)||ne||q)&&xe(()=>{E&&qe(E,y,f),ne&&V.enter(C),q&&bt(f,null,y,"mounted")},b)},Oe=(f,d,m,y,b)=>{if(m&&w(f,m),y)for(let k=0;k{for(let E=C;E{const x=d.el=f.el;let{patchFlag:C,dynamicChildren:E,dirs:N}=d;C|=f.patchFlag&16;const A=f.props||ie,L=d.props||ie;let V;m&&wt(m,!1),(V=L.onVnodeBeforeUpdate)&&qe(V,m,d,f),N&&bt(d,f,m,"beforeUpdate"),m&&wt(m,!0);const q=b&&d.type!=="foreignObject";if(E?Be(f.dynamicChildren,E,x,m,y,q,k):R||J(f,d,x,null,m,y,q,k,!1),C>0){if(C&16)rt(x,d,A,L,m,y,b);else if(C&2&&A.class!==L.class&&o(x,"class",null,L.class,b),C&4&&o(x,"style",A.style,L.style,b),C&8){const ne=d.dynamicProps;for(let Z=0;Z{V&&qe(V,m,d,f),N&&bt(d,f,m,"updated")},y)},Be=(f,d,m,y,b,k,R)=>{for(let x=0;x{if(m!==y){if(m!==ie)for(const x in m)!On(x)&&!(x in y)&&o(f,x,m[x],null,R,d.children,b,k,ye);for(const x in y){if(On(x))continue;const C=y[x],E=m[x];C!==E&&x!=="value"&&o(f,x,E,C,R,d.children,b,k,ye)}"value"in y&&o(f,"value",m.value,y.value)}},_t=(f,d,m,y,b,k,R,x,C)=>{const E=d.el=f?f.el:a(""),N=d.anchor=f?f.anchor:a("");let{patchFlag:A,dynamicChildren:L,slotScopeIds:V}=d;V&&(x=x?x.concat(V):V),f==null?(i(E,m,y),i(N,m,y),De(d.children,m,N,b,k,R,x,C)):A>0&&A&64&&L&&f.dynamicChildren?(Be(f.dynamicChildren,L,m,b,k,R,x),(d.key!=null||b&&d===b.subTree)&&zo(f,d,!0)):J(f,d,m,N,b,k,R,x,C)},Ve=(f,d,m,y,b,k,R,x,C)=>{d.slotScopeIds=x,f==null?d.shapeFlag&512?b.ctx.activate(d,m,y,R,C):nn(d,m,y,b,k,R,C):Ot(f,d,C)},nn=(f,d,m,y,b,k,R)=>{const x=f.component=ta(f,y,b);if(No(f)&&(x.ctx.renderer=S),na(x),x.asyncDep){if(b&&b.registerDep(x,fe),!f.el){const C=x.subTree=me(At);H(null,C,d,m)}return}fe(x,f,d,m,b,k,R)},Ot=(f,d,m)=>{const y=d.component=f.component;if(pl(f,d,m))if(y.asyncDep&&!y.asyncResolved){ee(y,d,m);return}else y.next=d,rl(y.update),y.update();else d.el=f.el,y.vnode=d},fe=(f,d,m,y,b,k,R)=>{const x=()=>{if(f.isMounted){let{next:N,bu:A,u:L,parent:V,vnode:q}=f,ne=N,Z;wt(f,!1),N?(N.el=q.el,ee(f,N,R)):N=q,A&&$n(A),(Z=N.props&&N.props.onVnodeBeforeUpdate)&&qe(Z,V,N,q),wt(f,!0);const ae=ci(f),$e=f.subTree;f.subTree=ae,I($e,ae,p($e.el),_($e),f,b,k),N.el=ae.el,ne===null&&hl(f,ae.el),L&&xe(L,b),(Z=N.props&&N.props.onVnodeUpdated)&&xe(()=>qe(Z,V,N,q),b)}else{let N;const{el:A,props:L}=d,{bm:V,m:q,parent:ne}=f,Z=Nn(d);if(wt(f,!1),V&&$n(V),!Z&&(N=L&&L.onVnodeBeforeMount)&&qe(N,ne,d),wt(f,!0),A&&Q){const ae=()=>{f.subTree=ci(f),Q(A,f.subTree,f,b,null)};Z?d.type.__asyncLoader().then(()=>!f.isUnmounted&&ae()):ae()}else{const ae=f.subTree=ci(f);I(null,ae,m,y,f,b,k),d.el=ae.el}if(q&&xe(q,b),!Z&&(N=L&&L.onVnodeMounted)){const ae=d;xe(()=>qe(N,ne,ae),b)}(d.shapeFlag&256||ne&&Nn(ne.vnode)&&ne.vnode.shapeFlag&256)&&f.a&&xe(f.a,b),f.isMounted=!0,d=m=y=null}},C=f.effect=new Fi(x,()=>Ki(E),f.scope),E=f.update=()=>C.run();E.id=f.uid,wt(f,!0),E()},ee=(f,d,m)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,jl(f,d.props,y,m),Vl(f,d.children,m),Zt(),ps(f),en()},J=(f,d,m,y,b,k,R,x,C=!1)=>{const E=f&&f.children,N=f?f.shapeFlag:0,A=d.children,{patchFlag:L,shapeFlag:V}=d;if(L>0){if(L&128){lt(E,A,m,y,b,k,R,x,C);return}else if(L&256){Qe(E,A,m,y,b,k,R,x,C);return}}V&8?(N&16&&ye(E,b,k),A!==E&&c(m,A)):N&16?V&16?lt(E,A,m,y,b,k,R,x,C):ye(E,b,k,!0):(N&8&&c(m,""),V&16&&De(A,m,y,b,k,R,x,C))},Qe=(f,d,m,y,b,k,R,x,C)=>{f=f||Ut,d=d||Ut;const E=f.length,N=d.length,A=Math.min(E,N);let L;for(L=0;LN?ye(f,b,k,!0,!1,A):De(d,m,y,b,k,R,x,C,A)},lt=(f,d,m,y,b,k,R,x,C)=>{let E=0;const N=d.length;let A=f.length-1,L=N-1;for(;E<=A&&E<=L;){const V=f[E],q=d[E]=C?ft(d[E]):We(d[E]);if(on(V,q))I(V,q,m,null,b,k,R,x,C);else break;E++}for(;E<=A&&E<=L;){const V=f[A],q=d[L]=C?ft(d[L]):We(d[L]);if(on(V,q))I(V,q,m,null,b,k,R,x,C);else break;A--,L--}if(E>A){if(E<=L){const V=L+1,q=VL)for(;E<=A;)Ee(f[E],b,k,!0),E++;else{const V=E,q=E,ne=new Map;for(E=q;E<=L;E++){const Me=d[E]=C?ft(d[E]):We(d[E]);Me.key!=null&&ne.set(Me.key,E)}let Z,ae=0;const $e=L-q+1;let Lt=!1,ts=0;const sn=new Array($e);for(E=0;E<$e;E++)sn[E]=0;for(E=V;E<=A;E++){const Me=f[E];if(ae>=$e){Ee(Me,b,k,!0);continue}let ze;if(Me.key!=null)ze=ne.get(Me.key);else for(Z=q;Z<=L;Z++)if(sn[Z-q]===0&&on(Me,d[Z])){ze=Z;break}ze===void 0?Ee(Me,b,k,!0):(sn[ze-q]=E+1,ze>=ts?ts=ze:Lt=!0,I(Me,d[ze],m,null,b,k,R,x,C),ae++)}const ns=Lt?Wl(sn):Ut;for(Z=ns.length-1,E=$e-1;E>=0;E--){const Me=q+E,ze=d[Me],is=Me+1{const{el:k,type:R,transition:x,children:C,shapeFlag:E}=f;if(E&6){Ke(f.component.subTree,d,m,y);return}if(E&128){f.suspense.move(d,m,y);return}if(E&64){R.move(f,d,m,S);return}if(R===he){i(k,d,m);for(let A=0;Ax.enter(k),b);else{const{leave:A,delayLeave:L,afterLeave:V}=x,q=()=>i(k,d,m),ne=()=>{A(k,()=>{q(),V&&V()})};L?L(k,q,ne):ne()}else i(k,d,m)},Ee=(f,d,m,y=!1,b=!1)=>{const{type:k,props:R,ref:x,children:C,dynamicChildren:E,shapeFlag:N,patchFlag:A,dirs:L}=f;if(x!=null&&Si(x,null,m,f,!0),N&256){d.ctx.deactivate(f);return}const V=N&1&&L,q=!Nn(f);let ne;if(q&&(ne=R&&R.onVnodeBeforeUnmount)&&qe(ne,d,f),N&6)xn(f.component,m,y);else{if(N&128){f.suspense.unmount(m,y);return}V&&bt(f,null,d,"beforeUnmount"),N&64?f.type.remove(f,d,m,b,S,y):E&&(k!==he||A>0&&A&64)?ye(E,d,m,!1,!0):(k===he&&A&384||!b&&N&16)&&ye(C,d,m),y&&$t(f)}(q&&(ne=R&&R.onVnodeUnmounted)||V)&&xe(()=>{ne&&qe(ne,d,f),V&&bt(f,null,d,"unmounted")},m)},$t=f=>{const{type:d,el:m,anchor:y,transition:b}=f;if(d===he){Nt(m,y);return}if(d===fi){D(f);return}const k=()=>{s(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:x}=b,C=()=>R(m,k);x?x(f.el,k,C):C()}else k()},Nt=(f,d)=>{let m;for(;f!==d;)m=v(f),s(f),f=m;s(d)},xn=(f,d,m)=>{const{bum:y,scope:b,update:k,subTree:R,um:x}=f;y&&$n(y),b.stop(),k&&(k.active=!1,Ee(R,f,d,m)),x&&xe(x,d),xe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},ye=(f,d,m,y=!1,b=!1,k=0)=>{for(let R=k;Rf.shapeFlag&6?_(f.component.subTree):f.shapeFlag&128?f.suspense.next():v(f.anchor||f.el),T=(f,d,m)=>{f==null?d._vnode&&Ee(d._vnode,null,null,!0):I(d._vnode||null,f,d,null,null,null,m),ps(),Po(),d._vnode=f},S={p:I,um:Ee,m:Ke,r:$t,mt:nn,mc:De,pc:J,pbc:Be,n:_,o:e};let O,Q;return t&&([O,Q]=t(S)),{render:T,hydrate:O,createApp:Fl(T,O)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ql(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zo(e,t,n=!1){const i=e.children,s=t.children;if(U(i)&&U(s))for(let o=0;o>1,e[n[a]]0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}const Gl=e=>e.__isTeleport,he=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),fn=[];let Fe=null;function $(e=!1){fn.push(Fe=e?null:[])}function Yl(){fn.pop(),Fe=fn[fn.length-1]||null}let yn=1;function Es(e){yn+=e}function qo(e){return e.dynamicChildren=yn>0?Fe||Ut:null,Yl(),yn>0&&Fe&&Fe.push(e),e}function F(e,t,n,i,s,o){return qo(g(e,t,n,i,s,o,!0))}function Wi(e,t,n,i,s){return qo(me(e,t,n,i,s,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ii="__vInternal",Wo=({key:e})=>e??null,Hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||we(e)||K(e)?{i:He,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,i=0,s=null,o=e===he?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wo(t),ref:t&&Hn(t),scopeId:ei,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:He};return a?(Gi(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ce(n)?8:16),yn>0&&!r&&Fe&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Fe.push(l),l}const me=Jl;function Jl(e,t=null,n=null,i=0,s=null,o=!1){if((!e||e===ml)&&(e=At),Mi(e)){const a=qt(e,t,!0);return n&&Gi(a,n),yn>0&&!o&&Fe&&(a.shapeFlag&6?Fe[Fe.indexOf(e)]=a:Fe.push(a)),a.patchFlag|=-2,a}if(ra(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:a,style:l}=t;a&&!ce(a)&&(t.class=it(a)),te(l)&&(wo(l)&&!U(l)&&(l=ge({},l)),t.style=et(l))}const r=ce(e)?1:gl(e)?128:Gl(e)?64:te(e)?4:K(e)?2:0;return g(e,t,n,i,s,r,o,!0)}function Ql(e){return e?wo(e)||ii in e?ge({},e):e:null}function qt(e,t,n=!1){const{props:i,ref:s,patchFlag:o,children:r}=e,a=t?Xl(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Wo(a),ref:t&&t.ref?n&&s?U(s)?s.concat(Hn(t)):[s,Hn(t)]:Hn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ce(e=" ",t=0){return me(ni,null,e,t)}function tt(e="",t=!1){return t?($(),Wi(At,null,e)):me(At,null,e)}function We(e){return e==null||typeof e=="boolean"?me(At):U(e)?me(he,null,e.slice()):typeof e=="object"?ft(e):me(ni,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Gi(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Gi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(ii in t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:He},n=32):(t=String(t),i&64?(n=16,t=[Ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xl(...e){const t={};for(let n=0;nbe=e),Yi=e=>{Ht.length>1?Ht.forEach(t=>t(e)):Ht[0](e)};const Wt=e=>{Yi(e),e.scope.on()},Rt=()=>{be&&be.scope.off(),Yi(null)};function Go(e){return e.vnode.shapeFlag&4}let _n=!1;function na(e,t=!1){_n=t;const{props:n,children:i}=e.vnode,s=Go(e);Ul(e,n,s,t),Bl(e,i);const o=s?ia(e,t):void 0;return _n=!1,o}function ia(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ko(new Proxy(e.ctx,Al));const{setup:i}=n;if(i){const s=e.setupContext=i.length>1?oa(e):null;Wt(e),Zt();const o=ht(i,e,0,[e.props,s]);if(en(),Rt(),no(o)){if(o.then(Rt,Rt),t)return o.then(r=>{Cs(e,r,t)}).catch(r=>{Xn(r,e,0)});e.asyncDep=o}else Cs(e,o,t)}else Yo(e,t)}function Cs(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=So(t)),Yo(e,n)}let Ss;function Yo(e,t,n){const i=e.type;if(!e.render){if(!t&&Ss&&!i.render){const s=i.template||zi(e).template;if(s){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,u=ge(ge({isCustomElement:o,delimiters:a},r),l);i.render=Ss(s,u)}}e.render=i.render||Ye}{Wt(e),Zt();try{Il(e)}finally{en(),Rt()}}}function sa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}}))}function oa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sa(e)},slots:e.slots,emit:e.emit,expose:t}}function si(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(So(ko(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)},has(t,n){return n in t||n in un}}))}function ra(e){return K(e)&&"__vccOpts"in e}const le=(e,t)=>il(e,t,_n);function Jo(e,t,n){const i=arguments.length;return i===2?te(t)&&!U(t)?Mi(t)?me(e,null,[t]):me(e,t):me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mi(n)&&(n=[n]),me(e,t,n))}const la=Symbol.for("v-scx"),aa=()=>Je(la),ca="3.3.13",ua="http://www.w3.org/2000/svg",xt=typeof document<"u"?document:null,Ms=xt&&xt.createElement("template"),fa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t?xt.createElementNS(ua,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,o){const r=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ms.innerHTML=i?`${e}`:e;const a=Ms.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},da=Symbol("_vtc");function pa(e,t,n){const i=e[da];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ji=Symbol("_vod"),Qo={beforeMount(e,{value:t},{transition:n}){e[Ji]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),rn(e,!0),i.enter(e)):i.leave(e,()=>{rn(e,!1)}):rn(e,t))},beforeUnmount(e,{value:t}){rn(e,t)}};function rn(e,t){e.style.display=t?e[Ji]:"none"}const ha=Symbol("");function ma(e,t,n){const i=e.style,s=ce(n);if(n&&!s){if(t&&!ce(t))for(const o in t)n[o]==null&&Ri(i,o,"");for(const o in n)Ri(i,o,n[o])}else{const o=i.display;if(s){if(t!==n){const r=i[ha];r&&(n+=";"+r),i.cssText=n}}else t&&e.removeAttribute("style");Ji in e&&(i.display=o)}}const Rs=/\s*!important$/;function Ri(e,t,n){if(U(n))n.forEach(i=>Ri(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=ga(e,t);Rs.test(n)?e.setProperty(Xt(i),n.replace(Rs,""),"important"):e[i]=n}}const Ts=["Webkit","Moz","ms"],di={};function ga(e,t){const n=di[t];if(n)return n;let i=Vt(t);if(i!=="filter"&&i in e)return di[t]=i;i=oo(i);for(let s=0;spi||(ka.then(()=>pi=0),pi=Date.now());function xa(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ue(Ca(i,n.value),t,5,[i])};return n.value=e,n.attached=Ea(),n}function Ca(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const Os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sa=(e,t,n,i,s=!1,o,r,a,l)=>{t==="class"?pa(e,i,s):t==="style"?ma(e,n,i):Yn(t)?Oi(t)||ba(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ma(e,t,i,s))?ya(e,t,i,o,r,a,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),va(e,t,i,s))};function Ma(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Os(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Os(t)&&ce(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>$n(t,n):t};function Ra(e){e.target.composing=!0}function $s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Re=Symbol("_assign"),Te={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Re]=yt(s);const o=i||s.props&&s.props.type==="number";nt(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=Bn(a)),e[Re](a)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Ra),nt(e,"compositionend",$s),nt(e,"change",$s))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:s}},o){if(e[Re]=yt(o),e.composing)return;const r=s||e.type==="number"?Bn(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===a)||(e.value=a))}},Xo={deep:!0,created(e,t,n){e[Re]=yt(n),nt(e,"change",()=>{const i=e._modelValue,s=Gt(e),o=e.checked,r=e[Re];if(U(i)){const a=Li(i,s),l=a!==-1;if(o&&!l)r(i.concat(s));else if(!o&&l){const u=[...i];u.splice(a,1),r(u)}}else if(Qt(i)){const a=new Set(i);o?a.add(s):a.delete(s),r(a)}else r(Zo(e,o))})},mounted:Ns,beforeUpdate(e,t,n){e[Re]=yt(n),Ns(e,t,n)}};function Ns(e,{value:t,oldValue:n},i){e._modelValue=t,U(t)?e.checked=Li(t,i.props.value)>-1:Qt(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Pt(t,Zo(e,!0)))}const Ta={created(e,{value:t},n){e.checked=Pt(t,n.props.value),e[Re]=yt(n),nt(e,"change",()=>{e[Re](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Re]=yt(i),t!==n&&(e.checked=Pt(t,i.props.value))}},dn={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=Qt(t);nt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Bn(Gt(r)):Gt(r));e[Re](e.multiple?s?new Set(o):o:o[0])}),e[Re]=yt(i)},mounted(e,{value:t}){Ls(e,t)},beforeUpdate(e,t,n){e[Re]=yt(n)},updated(e,{value:t}){Ls(e,t)}};function Ls(e,t){const n=e.multiple;if(!(n&&!U(t)&&!Qt(t))){for(let i=0,s=e.options.length;i-1:o.selected=t.has(r);else if(Pt(Gt(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function Zo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Pa={created(e,t,n){An(e,t,n,null,"created")},mounted(e,t,n){An(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){An(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){An(e,t,n,i,"updated")}};function Aa(e,t){switch(e){case"SELECT":return dn;case"TEXTAREA":return Te;default:switch(t){case"checkbox":return Xo;case"radio":return Ta;default:return Te}}}function An(e,t,n,i,s){const r=Aa(e.tagName,n.props&&n.props.type)[s];r&&r(e,t,n,i)}const Ia=["ctrl","shift","alt","meta"],Oa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ia.some(n=>e[`${n}Key`]&&!t.includes(n))},Fn=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...o)=>{for(let r=0;r{const t=Na().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=Ha(i);if(!s)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function Ha(e){return ce(e)?document.querySelector(e):e}/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ii(e,t){const n=Object.create(null),i=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const ie={},Ut=[],Ye=()=>{},pr=()=>!1,Yn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oi=e=>e.startsWith("onUpdate:"),ge=Object.assign,$i=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hr=Object.prototype.hasOwnProperty,W=(e,t)=>hr.call(e,t),U=Array.isArray,jt=e=>wn(e)==="[object Map]",Qt=e=>wn(e)==="[object Set]",ss=e=>wn(e)==="[object Date]",K=e=>typeof e=="function",ce=e=>typeof e=="string",gt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",no=e=>(te(e)||K(e))&&K(e.then)&&K(e.catch),io=Object.prototype.toString,wn=e=>io.call(e),mr=e=>wn(e).slice(8,-1),so=e=>wn(e)==="[object Object]",Ni=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=Ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gr=/-(\w)/g,Vt=Jn(e=>e.replace(gr,(t,n)=>n?n.toUpperCase():"")),vr=/\B([A-Z])/g,Xt=Jn(e=>e.replace(vr,"-$1").toLowerCase()),oo=Jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),li=Jn(e=>e?`on${oo(e)}`:""),Tt=(e,t)=>!Object.is(e,t),$n=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let os;const vi=()=>os||(os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function et(e){if(U(e)){const t={};for(let n=0;n{if(n){const i=n.split(_r);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function it(e){let t="";if(ce(e))t=e;else if(U(e))for(let n=0;nPt(n,t))}const oe=e=>ce(e)?e:e==null?"":U(e)||te(e)&&(e.toString===io||!K(e.toString))?JSON.stringify(e,lo,2):String(e),lo=(e,t)=>t&&t.__v_isRef?lo(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],o)=>(n[ai(i,o)+" =>"]=s,n),{})}:Qt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ai(n))}:gt(t)?ai(t):te(t)&&!U(t)&&!so(t)?String(t):t,ai=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ne;class Cr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ao=e=>(e.w&vt)>0,co=e=>(e.n&vt)>0,Rr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(c==="length"||!gt(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":U(e)?Ni(n)&&a.push(r.get("length")):(a.push(r.get(Mt)),jt(e)&&a.push(r.get(_i)));break;case"delete":U(e)||(a.push(r.get(Mt)),jt(e)&&a.push(r.get(_i)));break;case"set":jt(e)&&a.push(r.get(Mt));break}if(a.length===1)a[0]&&bi(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);bi(Hi(l))}}function bi(e,t){const n=U(e)?e:[...e];for(const i of n)i.computed&&ls(i);for(const i of n)i.computed||ls(i)}function ls(e,t){(e!==Le||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Pr(e,t){var n;return(n=Vn.get(e))==null?void 0:n.get(t)}const Ar=Ii("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),as=Ir();function Ir(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=G(this);for(let o=0,r=this.length;o{e[t]=function(...n){Zt();const i=G(this)[t].apply(this,n);return en(),i}}),e}function Or(e){const t=G(this);return Se(t,"has",e),t.hasOwnProperty(e)}class ho{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const s=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(s?o?qr:yo:o?vo:go).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=U(t);if(!s){if(r&&W(as,n))return Reflect.get(as,n,i);if(n==="hasOwnProperty")return Or}const a=Reflect.get(t,n,i);return(gt(n)?po.has(n):Ar(n))||(s||Se(t,"get",n),o)?a:we(a)?r&&Ni(n)?a:a.value:te(a)?s?bo(a):kn(a):a}}class mo extends ho{constructor(t=!1){super(!1,t)}set(t,n,i,s){let o=t[n];if(!this._shallow){const l=Kt(o);if(!Kn(i)&&!Kt(i)&&(o=G(o),i=G(i)),!U(t)&&we(o)&&!we(i))return l?!1:(o.value=i,!0)}const r=U(t)&&Ni(n)?Number(n)e,Qn=e=>Reflect.getPrototypeOf(e);function Cn(e,t,n=!1,i=!1){e=e.__v_raw;const s=G(e),o=G(t);n||(Tt(t,o)&&Se(s,"get",t),Se(s,"get",o));const{has:r}=Qn(s),a=i?Ui:n?Bi:mn;if(r.call(s,t))return a(e.get(t));if(r.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function Sn(e,t=!1){const n=this.__v_raw,i=G(n),s=G(e);return t||(Tt(e,s)&&Se(i,"has",e),Se(i,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Se(G(e),"iterate",Mt),Reflect.get(e,"size",e)}function cs(e){e=G(e);const t=G(this);return Qn(t).has.call(t,e)||(t.add(e),st(t,"add",e,e)),this}function us(e,t){t=G(t);const n=G(this),{has:i,get:s}=Qn(n);let o=i.call(n,e);o||(e=G(e),o=i.call(n,e));const r=s.call(n,e);return n.set(e,t),o?Tt(t,r)&&st(n,"set",e,t):st(n,"add",e,t),this}function fs(e){const t=G(this),{has:n,get:i}=Qn(t);let s=n.call(t,e);s||(e=G(e),s=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return s&&st(t,"delete",e,void 0),o}function ds(){const e=G(this),t=e.size!==0,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}function Rn(e,t){return function(i,s){const o=this,r=o.__v_raw,a=G(r),l=t?Ui:e?Bi:mn;return!e&&Se(a,"iterate",Mt),r.forEach((u,c)=>i.call(s,l(u),l(c),o))}}function Tn(e,t,n){return function(...i){const s=this.__v_raw,o=G(s),r=jt(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=s[e](...i),c=n?Ui:t?Bi:mn;return!t&&Se(o,"iterate",l?_i:Mt),{next(){const{value:p,done:v}=u.next();return v?{value:p,done:v}:{value:a?[c(p[0]),c(p[1])]:c(p),done:v}},[Symbol.iterator](){return this}}}}function at(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fr(){const e={get(o){return Cn(this,o)},get size(){return Mn(this)},has:Sn,add:cs,set:us,delete:fs,clear:ds,forEach:Rn(!1,!1)},t={get(o){return Cn(this,o,!1,!0)},get size(){return Mn(this)},has:Sn,add:cs,set:us,delete:fs,clear:ds,forEach:Rn(!1,!0)},n={get(o){return Cn(this,o,!0)},get size(){return Mn(this,!0)},has(o){return Sn.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Rn(!0,!1)},i={get(o){return Cn(this,o,!0,!0)},get size(){return Mn(this,!0)},has(o){return Sn.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Rn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Tn(o,!1,!1),n[o]=Tn(o,!0,!1),t[o]=Tn(o,!1,!0),i[o]=Tn(o,!0,!0)}),[e,n,t,i]}const[Ur,jr,Dr,Br]=Fr();function ji(e,t){const n=t?e?Br:Dr:e?jr:Ur;return(i,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(W(n,s)&&s in i?n:i,s,o)}const Vr={get:ji(!1,!1)},Kr={get:ji(!1,!0)},zr={get:ji(!0,!1)},go=new WeakMap,vo=new WeakMap,yo=new WeakMap,qr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(mr(e))}function kn(e){return Kt(e)?e:Di(e,!1,Nr,Vr,go)}function _o(e){return Di(e,!1,Hr,Kr,vo)}function bo(e){return Di(e,!0,Lr,zr,yo)}function Di(e,t,n,i,s){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const r=Gr(e);if(r===0)return e;const a=new Proxy(e,r===2?i:n);return s.set(e,a),a}function Dt(e){return Kt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function wo(e){return Dt(e)||Kt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function ko(e){return Dn(e,"__v_skip",!0),e}const mn=e=>te(e)?kn(e):e,Bi=e=>te(e)?bo(e):e;function xo(e){pt&&Le&&(e=G(e),fo(e.dep||(e.dep=Hi())))}function Eo(e,t){e=G(e);const n=e.dep;n&&bi(n)}function we(e){return!!(e&&e.__v_isRef===!0)}function z(e){return Co(e,!1)}function Yr(e){return Co(e,!0)}function Co(e,t){return we(e)?e:new Jr(e,t)}class Jr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:mn(t)}get value(){return xo(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||Kt(t);t=n?t:G(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:mn(t),Eo(this))}}function se(e){return we(e)?e.value:e}const Qr={get:(e,t,n)=>se(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function So(e){return Dt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Pr(G(this._object),this._key)}}class Zr{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function el(e,t,n){return we(e)?e:K(e)?new Zr(e):te(e)&&arguments.length>1?tl(e,t,n):z(e)}function tl(e,t,n){const i=e[t];return we(i)?i:new Xr(e,t,n)}class nl{constructor(t,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fi(t,()=>{this._dirty||(this._dirty=!0,Eo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const t=G(this);return xo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function il(e,t,n=!1){let i,s;const o=K(e);return o?(i=e,s=Ye):(i=e.get,s=e.set),new nl(i,s,o||!s,n)}function ht(e,t,n,i){let s;try{s=i?e(...i):e()}catch(o){Xn(o,t,n)}return s}function Ue(e,t,n,i){if(K(e)){const o=ht(e,t,n,i);return o&&no(o)&&o.catch(r=>{Xn(r,t,n)}),o}const s=[];for(let o=0;o>>1,s=_e[i],o=vn(s);oGe&&_e.splice(t,1)}function ll(e){U(e)?Bt.push(...e):(!Ze||!Ze.includes(e,e.allowRecurse?xt+1:xt))&&Bt.push(e),To()}function ps(e,t,n=gn?Ge+1:0){for(;n<_e.length;n++){const i=_e[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;_e.splice(n,1),n--,i()}}}function Po(e){if(Bt.length){const t=[...new Set(Bt)];if(Bt.length=0,Ze){Ze.push(...t);return}for(Ze=t,Ze.sort((n,i)=>vn(n)-vn(i)),xt=0;xte.id==null?1/0:e.id,al=(e,t)=>{const n=vn(e)-vn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ao(e){wi=!1,gn=!0,_e.sort(al);try{for(Ge=0;Ge<_e.length;Ge++){const t=_e[Ge];t&&t.active!==!1&&ht(t,null,14)}}finally{Ge=0,_e.length=0,Po(),gn=!1,Vi=null,(_e.length||Bt.length)&&Ao()}}function cl(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ie;let s=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in i){const c=`${r==="modelValue"?"model":r}Modifiers`,{number:p,trim:v}=i[c]||ie;v&&(s=n.map(w=>ce(w)?w.trim():w)),p&&(s=n.map(Bn))}let a,l=i[a=li(t)]||i[a=li(Vt(t))];!l&&o&&(l=i[a=li(Xt(t))]),l&&Ue(l,e,6,s);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ue(u,e,6,s)}}function Io(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const o=e.emits;let r={},a=!1;if(!K(e)){const l=u=>{const c=Io(u,t,!0);c&&(a=!0,ge(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(te(e)&&i.set(e,null),null):(U(o)?o.forEach(l=>r[l]=null):ge(r,o),te(e)&&i.set(e,r),r)}function Zn(e,t){return!e||!Yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,Xt(t))||W(e,t))}let He=null,ei=null;function zn(e){const t=He;return He=e,ei=e&&e.type.__scopeId||null,t}function Pe(e){ei=e}function Ae(){ei=null}function ul(e,t=He,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&xs(-1);const o=zn(t);let r;try{r=e(...s)}finally{zn(o),i._d&&xs(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function ci(e){const{type:t,vnode:n,proxy:i,withProxy:s,props:o,propsOptions:[r],slots:a,attrs:l,emit:u,render:c,renderCache:p,data:v,setupState:w,ctx:P,inheritAttrs:I}=e;let B,H;const j=zn(e);try{if(n.shapeFlag&4){const D=s||i,ue=D;B=We(c.call(ue,D,p,o,w,v,P)),H=l}else{const D=t;B=We(D.length>1?D(o,{attrs:l,slots:a,emit:u}):D(o,null)),H=t.props?l:fl(l)}}catch(D){fn.length=0,Xn(D,e,1),B=me(At)}let Y=B;if(H&&I!==!1){const D=Object.keys(H),{shapeFlag:ue}=Y;D.length&&ue&7&&(r&&D.some(Oi)&&(H=dl(H,r)),Y=qt(Y,H))}return n.dirs&&(Y=qt(Y),Y.dirs=Y.dirs?Y.dirs.concat(n.dirs):n.dirs),n.transition&&(Y.transition=n.transition),B=Y,zn(j),B}const fl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yn(n))&&((t||(t={}))[n]=e[n]);return t},dl=(e,t)=>{const n={};for(const i in e)(!Oi(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function pl(e,t,n){const{props:i,children:s,component:o}=e,{props:r,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?hs(i,r,u):!!r;if(l&8){const c=t.dynamicProps;for(let p=0;pe.__isSuspense;function vl(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ll(e)}const Pn={};function mt(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:i,flush:s,onTrack:o,onTrigger:r}=ie){var a;const l=Mr()===((a=be)==null?void 0:a.scope)?be:null;let u,c=!1,p=!1;if(we(e)?(u=()=>e.value,c=Kn(e)):Dt(e)?(u=()=>e,i=!0):U(e)?(p=!0,c=e.some(D=>Dt(D)||Kn(D)),u=()=>e.map(D=>{if(we(D))return D.value;if(Dt(D))return St(D);if(K(D))return ht(D,l,2)})):K(e)?t?u=()=>ht(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return v&&v(),Ue(e,l,3,[w])}:u=Ye,t&&i){const D=u;u=()=>St(D())}let v,w=D=>{v=j.onStop=()=>{ht(D,l,4),v=j.onStop=void 0}},P;if(_n)if(w=Ye,t?n&&Ue(t,l,3,[u(),p?[]:void 0,w]):u(),s==="sync"){const D=aa();P=D.__watcherHandles||(D.__watcherHandles=[])}else return Ye;let I=p?new Array(e.length).fill(Pn):Pn;const B=()=>{if(j.active)if(t){const D=j.run();(i||c||(p?D.some((ue,ve)=>Tt(ue,I[ve])):Tt(D,I)))&&(v&&v(),Ue(t,l,3,[D,I===Pn?void 0:p&&I[0]===Pn?[]:I,w]),I=D)}else j.run()};B.allowRecurse=!!t;let H;s==="sync"?H=B:s==="post"?H=()=>Ee(B,l&&l.suspense):(B.pre=!0,l&&(B.id=l.uid),H=()=>Ki(B));const j=new Fi(u,H);t?n?B():I=j.run():s==="post"?Ee(j.run.bind(j),l&&l.suspense):j.run();const Y=()=>{j.stop(),l&&l.scope&&$i(l.scope.effects,j)};return P&&P.push(Y),Y}function yl(e,t,n){const i=this.proxy,s=ce(e)?e.includes(".")?$o(i,e):()=>i[e]:e.bind(i,i);let o;K(t)?o=t:(o=t.handler,n=t);const r=be;Wt(this);const a=Oo(s,o.bind(i),n);return r?Wt(r):Rt(),a}function $o(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s{St(n,t)});else if(so(e))for(const n in e)St(e[n],t);return e}function de(e,t){const n=He;if(n===null)return e;const i=si(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;oge({name:e.name},t,{setup:e}))():e}const Nn=e=>!!e.type.__asyncLoader,No=e=>e.type.__isKeepAlive;function _l(e,t){Lo(e,"a",t)}function bl(e,t){Lo(e,"da",t)}function Lo(e,t,n=be){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ti(t,i,n),n){let s=n.parent;for(;s&&s.parent;)No(s.parent.vnode)&&wl(i,t,n,s),s=s.parent}}function wl(e,t,n,i){const s=ti(t,e,i,!0);Ho(()=>{$i(i[t],s)},n)}function ti(e,t,n=be,i=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zt(),Wt(n);const a=Ue(t,n,e,r);return Rt(),en(),a});return i?s.unshift(o):s.push(o),o}}const ot=e=>(t,n=be)=>(!_n||e==="sp")&&ti(e,(...i)=>t(...i),n),kl=ot("bm"),xl=ot("m"),El=ot("bu"),Cl=ot("u"),Sl=ot("bum"),Ho=ot("um"),Ml=ot("sp"),Rl=ot("rtg"),Tl=ot("rtc");function Pl(e,t=be){ti("ec",e,t)}function zt(e,t,n,i){let s;const o=n&&n[i];if(U(e)||ce(e)){s=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);s=new Array(r.length);for(let a=0,l=r.length;ae?Go(e)?si(e)||e.proxy:ki(e.parent):null,un=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ki(e.parent),$root:e=>ki(e.root),$emit:e=>e.emit,$options:e=>zi(e),$forceUpdate:e=>e.f||(e.f=()=>Ki(e.update)),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>yl.bind(e)}),ui=(e,t)=>e!==ie&&!e.__isScriptSetup&&W(e,t),Al={get({_:e},t){const{ctx:n,setupState:i,data:s,props:o,accessCache:r,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const w=r[t];if(w!==void 0)switch(w){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(ui(i,t))return r[t]=1,i[t];if(s!==ie&&W(s,t))return r[t]=2,s[t];if((u=e.propsOptions[0])&&W(u,t))return r[t]=3,o[t];if(n!==ie&&W(n,t))return r[t]=4,n[t];xi&&(r[t]=0)}}const c=un[t];let p,v;if(c)return t==="$attrs"&&Se(e,"get",t),c(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==ie&&W(n,t))return r[t]=4,n[t];if(v=l.config.globalProperties,W(v,t))return v[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:o}=e;return ui(s,t)?(s[t]=n,!0):i!==ie&&W(i,t)?(i[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:o}},r){let a;return!!n[r]||e!==ie&&W(e,r)||ui(t,r)||(a=o[0])&&W(a,r)||W(i,r)||W(un,r)||W(s.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ms(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xi=!0;function Il(e){const t=zi(e),n=e.proxy,i=e.ctx;xi=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:r,watch:a,provide:l,inject:u,created:c,beforeMount:p,mounted:v,beforeUpdate:w,updated:P,activated:I,deactivated:B,beforeDestroy:H,beforeUnmount:j,destroyed:Y,unmounted:D,render:ue,renderTracked:ve,renderTriggered:Oe,errorCaptured:De,serverPrefetch:It,expose:Be,inheritAttrs:rt,components:_t,directives:Ve,filters:nn}=t;if(u&&Ol(u,i,null),r)for(const ee in r){const J=r[ee];K(J)&&(i[ee]=J.bind(n))}if(s){const ee=s.call(n,n);te(ee)&&(e.data=kn(ee))}if(xi=!0,o)for(const ee in o){const J=o[ee],Qe=K(J)?J.bind(n,n):K(J.get)?J.get.bind(n,n):Ye,lt=!K(J)&&K(J.set)?J.set.bind(n):Ye,Ke=le({get:Qe,set:lt});Object.defineProperty(i,ee,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:xe=>Ke.value=xe})}if(a)for(const ee in a)Fo(a[ee],i,n,ee);if(l){const ee=K(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(J=>{Ln(J,ee[J])})}c&&gs(c,e,"c");function fe(ee,J){U(J)?J.forEach(Qe=>ee(Qe.bind(n))):J&&ee(J.bind(n))}if(fe(kl,p),fe(xl,v),fe(El,w),fe(Cl,P),fe(_l,I),fe(bl,B),fe(Pl,De),fe(Tl,ve),fe(Rl,Oe),fe(Sl,j),fe(Ho,D),fe(Ml,It),U(Be))if(Be.length){const ee=e.exposed||(e.exposed={});Be.forEach(J=>{Object.defineProperty(ee,J,{get:()=>n[J],set:Qe=>n[J]=Qe})})}else e.exposed||(e.exposed={});ue&&e.render===Ye&&(e.render=ue),rt!=null&&(e.inheritAttrs=rt),_t&&(e.components=_t),Ve&&(e.directives=Ve)}function Ol(e,t,n=Ye){U(e)&&(e=Ei(e));for(const i in e){const s=e[i];let o;te(s)?"default"in s?o=Je(s.from||i,s.default,!0):o=Je(s.from||i):o=Je(s),we(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[i]=o}}function gs(e,t,n){Ue(U(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fo(e,t,n,i){const s=i.includes(".")?$o(n,i):()=>n[i];if(ce(e)){const o=t[e];K(o)&&mt(s,o)}else if(K(e))mt(s,e.bind(n));else if(te(e))if(U(e))e.forEach(o=>Fo(o,t,n,i));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&mt(s,o,e)}}function zi(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!i?l=t:(l={},s.length&&s.forEach(u=>qn(l,u,r,!0)),qn(l,t,r)),te(t)&&o.set(t,l),l}function qn(e,t,n,i=!1){const{mixins:s,extends:o}=t;o&&qn(e,o,n,!0),s&&s.forEach(r=>qn(e,r,n,!0));for(const r in t)if(!(i&&r==="expose")){const a=$l[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const $l={data:vs,props:ys,emits:ys,methods:cn,computed:cn,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:cn,directives:cn,watch:Ll,provide:vs,inject:Nl};function vs(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Nl(e,t){return cn(Ei(e),Ei(t))}function Ei(e){if(U(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(i&&i.proxy):t}}function Ul(e,t,n,i=!1){const s={},o={};Dn(o,ii,1),e.propsDefaults=Object.create(null),jo(e,t,s,o);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=i?s:_o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function jl(e,t,n,i){const{props:s,attrs:o,vnode:{patchFlag:r}}=e,a=G(s),[l]=e.propsOptions;let u=!1;if((i||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let p=0;p{l=!0;const[v,w]=Do(p,t,!0);ge(r,v),w&&a.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return te(e)&&i.set(e,Ut),Ut;if(U(o))for(let c=0;c-1,w[1]=I<0||P-1||W(w,"default"))&&a.push(p)}}}const u=[r,a];return te(e)&&i.set(e,u),u}function _s(e){return e[0]!=="$"}function bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ws(e,t){return bs(e)===bs(t)}function ks(e,t){return U(t)?t.findIndex(n=>ws(n,e)):K(t)&&ws(t,e)?0:-1}const Bo=e=>e[0]==="_"||e==="$stable",qi=e=>U(e)?e.map(We):[We(e)],Dl=(e,t,n)=>{if(t._n)return t;const i=ul((...s)=>qi(t(...s)),n);return i._c=!1,i},Vo=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Bo(s))continue;const o=e[s];if(K(o))t[s]=Dl(s,o,i);else if(o!=null){const r=qi(o);t[s]=()=>r}}},Ko=(e,t)=>{const n=qi(t);e.slots.default=()=>n},Bl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),Dn(t,"_",n)):Vo(t,e.slots={})}else e.slots={},t&&Ko(e,t);Dn(e.slots,ii,1)},Vl=(e,t,n)=>{const{vnode:i,slots:s}=e;let o=!0,r=ie;if(i.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(ge(s,t),!n&&a===1&&delete s._):(o=!t.$stable,Vo(t,s)),r=t}else t&&(Ko(e,t),r={default:1});if(o)for(const a in s)!Bo(a)&&r[a]==null&&delete s[a]};function Si(e,t,n,i,s=!1){if(U(e)){e.forEach((v,w)=>Si(v,t&&(U(t)?t[w]:t),n,i,s));return}if(Nn(i)&&!s)return;const o=i.shapeFlag&4?si(i.component)||i.component.proxy:i.el,r=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ie?a.refs={}:a.refs,p=a.setupState;if(u!=null&&u!==l&&(ce(u)?(c[u]=null,W(p,u)&&(p[u]=null)):we(u)&&(u.value=null)),K(l))ht(l,a,12,[r,c]);else{const v=ce(l),w=we(l);if(v||w){const P=()=>{if(e.f){const I=v?W(p,l)?p[l]:c[l]:l.value;s?U(I)&&$i(I,o):U(I)?I.includes(o)||I.push(o):v?(c[l]=[o],W(p,l)&&(p[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=r,W(p,l)&&(p[l]=r)):w&&(l.value=r,e.k&&(c[e.k]=r))};r?(P.id=-1,Ee(P,n)):P()}}}const Ee=vl;function Kl(e){return zl(e)}function zl(e,t){const n=vi();n.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:r,createText:a,createComment:l,setText:u,setElementText:c,parentNode:p,nextSibling:v,setScopeId:w=Ye,insertStaticContent:P}=e,I=(f,d,m,y=null,b=null,k=null,R=!1,E=null,C=!!d.dynamicChildren)=>{if(f===d)return;f&&!on(f,d)&&(y=_(f),xe(f,b,k,!0),f=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:x,ref:N,shapeFlag:A}=d;switch(x){case ni:B(f,d,m,y);break;case At:H(f,d,m,y);break;case fi:f==null&&j(d,m,y,R);break;case he:_t(f,d,m,y,b,k,R,E,C);break;default:A&1?ue(f,d,m,y,b,k,R,E,C):A&6?Ve(f,d,m,y,b,k,R,E,C):(A&64||A&128)&&x.process(f,d,m,y,b,k,R,E,C,M)}N!=null&&b&&Si(N,f&&f.ref,k,d||f,!d)},B=(f,d,m,y)=>{if(f==null)i(d.el=a(d.children),m,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},H=(f,d,m,y)=>{f==null?i(d.el=l(d.children||""),m,y):d.el=f.el},j=(f,d,m,y)=>{[f.el,f.anchor]=P(f.children,d,m,y,f.el,f.anchor)},Y=({el:f,anchor:d},m,y)=>{let b;for(;f&&f!==d;)b=v(f),i(f,m,y),f=b;i(d,m,y)},D=({el:f,anchor:d})=>{let m;for(;f&&f!==d;)m=v(f),s(f),f=m;s(d)},ue=(f,d,m,y,b,k,R,E,C)=>{R=R||d.type==="svg",f==null?ve(d,m,y,b,k,R,E,C):It(f,d,b,k,R,E,C)},ve=(f,d,m,y,b,k,R,E)=>{let C,x;const{type:N,props:A,shapeFlag:L,transition:V,dirs:q}=f;if(C=f.el=r(f.type,k,A&&A.is,A),L&8?c(C,f.children):L&16&&De(f.children,C,null,y,b,k&&N!=="foreignObject",R,E),q&&bt(f,null,y,"created"),Oe(C,f,f.scopeId,R,y),A){for(const Z in A)Z!=="value"&&!On(Z)&&o(C,Z,null,A[Z],k,f.children,y,b,ye);"value"in A&&o(C,"value",null,A.value),(x=A.onVnodeBeforeMount)&&qe(x,y,f)}q&&bt(f,null,y,"beforeMount");const ne=ql(b,V);ne&&V.beforeEnter(C),i(C,d,m),((x=A&&A.onVnodeMounted)||ne||q)&&Ee(()=>{x&&qe(x,y,f),ne&&V.enter(C),q&&bt(f,null,y,"mounted")},b)},Oe=(f,d,m,y,b)=>{if(m&&w(f,m),y)for(let k=0;k{for(let x=C;x{const E=d.el=f.el;let{patchFlag:C,dynamicChildren:x,dirs:N}=d;C|=f.patchFlag&16;const A=f.props||ie,L=d.props||ie;let V;m&&wt(m,!1),(V=L.onVnodeBeforeUpdate)&&qe(V,m,d,f),N&&bt(d,f,m,"beforeUpdate"),m&&wt(m,!0);const q=b&&d.type!=="foreignObject";if(x?Be(f.dynamicChildren,x,E,m,y,q,k):R||J(f,d,E,null,m,y,q,k,!1),C>0){if(C&16)rt(E,d,A,L,m,y,b);else if(C&2&&A.class!==L.class&&o(E,"class",null,L.class,b),C&4&&o(E,"style",A.style,L.style,b),C&8){const ne=d.dynamicProps;for(let Z=0;Z{V&&qe(V,m,d,f),N&&bt(d,f,m,"updated")},y)},Be=(f,d,m,y,b,k,R)=>{for(let E=0;E{if(m!==y){if(m!==ie)for(const E in m)!On(E)&&!(E in y)&&o(f,E,m[E],null,R,d.children,b,k,ye);for(const E in y){if(On(E))continue;const C=y[E],x=m[E];C!==x&&E!=="value"&&o(f,E,x,C,R,d.children,b,k,ye)}"value"in y&&o(f,"value",m.value,y.value)}},_t=(f,d,m,y,b,k,R,E,C)=>{const x=d.el=f?f.el:a(""),N=d.anchor=f?f.anchor:a("");let{patchFlag:A,dynamicChildren:L,slotScopeIds:V}=d;V&&(E=E?E.concat(V):V),f==null?(i(x,m,y),i(N,m,y),De(d.children,m,N,b,k,R,E,C)):A>0&&A&64&&L&&f.dynamicChildren?(Be(f.dynamicChildren,L,m,b,k,R,E),(d.key!=null||b&&d===b.subTree)&&zo(f,d,!0)):J(f,d,m,N,b,k,R,E,C)},Ve=(f,d,m,y,b,k,R,E,C)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?b.ctx.activate(d,m,y,R,C):nn(d,m,y,b,k,R,C):Ot(f,d,C)},nn=(f,d,m,y,b,k,R)=>{const E=f.component=ta(f,y,b);if(No(f)&&(E.ctx.renderer=M),na(E),E.asyncDep){if(b&&b.registerDep(E,fe),!f.el){const C=E.subTree=me(At);H(null,C,d,m)}return}fe(E,f,d,m,b,k,R)},Ot=(f,d,m)=>{const y=d.component=f.component;if(pl(f,d,m))if(y.asyncDep&&!y.asyncResolved){ee(y,d,m);return}else y.next=d,rl(y.update),y.update();else d.el=f.el,y.vnode=d},fe=(f,d,m,y,b,k,R)=>{const E=()=>{if(f.isMounted){let{next:N,bu:A,u:L,parent:V,vnode:q}=f,ne=N,Z;wt(f,!1),N?(N.el=q.el,ee(f,N,R)):N=q,A&&$n(A),(Z=N.props&&N.props.onVnodeBeforeUpdate)&&qe(Z,V,N,q),wt(f,!0);const ae=ci(f),$e=f.subTree;f.subTree=ae,I($e,ae,p($e.el),_($e),f,b,k),N.el=ae.el,ne===null&&hl(f,ae.el),L&&Ee(L,b),(Z=N.props&&N.props.onVnodeUpdated)&&Ee(()=>qe(Z,V,N,q),b)}else{let N;const{el:A,props:L}=d,{bm:V,m:q,parent:ne}=f,Z=Nn(d);if(wt(f,!1),V&&$n(V),!Z&&(N=L&&L.onVnodeBeforeMount)&&qe(N,ne,d),wt(f,!0),A&&Q){const ae=()=>{f.subTree=ci(f),Q(A,f.subTree,f,b,null)};Z?d.type.__asyncLoader().then(()=>!f.isUnmounted&&ae()):ae()}else{const ae=f.subTree=ci(f);I(null,ae,m,y,f,b,k),d.el=ae.el}if(q&&Ee(q,b),!Z&&(N=L&&L.onVnodeMounted)){const ae=d;Ee(()=>qe(N,ne,ae),b)}(d.shapeFlag&256||ne&&Nn(ne.vnode)&&ne.vnode.shapeFlag&256)&&f.a&&Ee(f.a,b),f.isMounted=!0,d=m=y=null}},C=f.effect=new Fi(E,()=>Ki(x),f.scope),x=f.update=()=>C.run();x.id=f.uid,wt(f,!0),x()},ee=(f,d,m)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,jl(f,d.props,y,m),Vl(f,d.children,m),Zt(),ps(f),en()},J=(f,d,m,y,b,k,R,E,C=!1)=>{const x=f&&f.children,N=f?f.shapeFlag:0,A=d.children,{patchFlag:L,shapeFlag:V}=d;if(L>0){if(L&128){lt(x,A,m,y,b,k,R,E,C);return}else if(L&256){Qe(x,A,m,y,b,k,R,E,C);return}}V&8?(N&16&&ye(x,b,k),A!==x&&c(m,A)):N&16?V&16?lt(x,A,m,y,b,k,R,E,C):ye(x,b,k,!0):(N&8&&c(m,""),V&16&&De(A,m,y,b,k,R,E,C))},Qe=(f,d,m,y,b,k,R,E,C)=>{f=f||Ut,d=d||Ut;const x=f.length,N=d.length,A=Math.min(x,N);let L;for(L=0;LN?ye(f,b,k,!0,!1,A):De(d,m,y,b,k,R,E,C,A)},lt=(f,d,m,y,b,k,R,E,C)=>{let x=0;const N=d.length;let A=f.length-1,L=N-1;for(;x<=A&&x<=L;){const V=f[x],q=d[x]=C?ft(d[x]):We(d[x]);if(on(V,q))I(V,q,m,null,b,k,R,E,C);else break;x++}for(;x<=A&&x<=L;){const V=f[A],q=d[L]=C?ft(d[L]):We(d[L]);if(on(V,q))I(V,q,m,null,b,k,R,E,C);else break;A--,L--}if(x>A){if(x<=L){const V=L+1,q=VL)for(;x<=A;)xe(f[x],b,k,!0),x++;else{const V=x,q=x,ne=new Map;for(x=q;x<=L;x++){const Me=d[x]=C?ft(d[x]):We(d[x]);Me.key!=null&&ne.set(Me.key,x)}let Z,ae=0;const $e=L-q+1;let Lt=!1,ts=0;const sn=new Array($e);for(x=0;x<$e;x++)sn[x]=0;for(x=V;x<=A;x++){const Me=f[x];if(ae>=$e){xe(Me,b,k,!0);continue}let ze;if(Me.key!=null)ze=ne.get(Me.key);else for(Z=q;Z<=L;Z++)if(sn[Z-q]===0&&on(Me,d[Z])){ze=Z;break}ze===void 0?xe(Me,b,k,!0):(sn[ze-q]=x+1,ze>=ts?ts=ze:Lt=!0,I(Me,d[ze],m,null,b,k,R,E,C),ae++)}const ns=Lt?Wl(sn):Ut;for(Z=ns.length-1,x=$e-1;x>=0;x--){const Me=q+x,ze=d[Me],is=Me+1{const{el:k,type:R,transition:E,children:C,shapeFlag:x}=f;if(x&6){Ke(f.component.subTree,d,m,y);return}if(x&128){f.suspense.move(d,m,y);return}if(x&64){R.move(f,d,m,M);return}if(R===he){i(k,d,m);for(let A=0;AE.enter(k),b);else{const{leave:A,delayLeave:L,afterLeave:V}=E,q=()=>i(k,d,m),ne=()=>{A(k,()=>{q(),V&&V()})};L?L(k,q,ne):ne()}else i(k,d,m)},xe=(f,d,m,y=!1,b=!1)=>{const{type:k,props:R,ref:E,children:C,dynamicChildren:x,shapeFlag:N,patchFlag:A,dirs:L}=f;if(E!=null&&Si(E,null,m,f,!0),N&256){d.ctx.deactivate(f);return}const V=N&1&&L,q=!Nn(f);let ne;if(q&&(ne=R&&R.onVnodeBeforeUnmount)&&qe(ne,d,f),N&6)En(f.component,m,y);else{if(N&128){f.suspense.unmount(m,y);return}V&&bt(f,null,d,"beforeUnmount"),N&64?f.type.remove(f,d,m,b,M,y):x&&(k!==he||A>0&&A&64)?ye(x,d,m,!1,!0):(k===he&&A&384||!b&&N&16)&&ye(C,d,m),y&&$t(f)}(q&&(ne=R&&R.onVnodeUnmounted)||V)&&Ee(()=>{ne&&qe(ne,d,f),V&&bt(f,null,d,"unmounted")},m)},$t=f=>{const{type:d,el:m,anchor:y,transition:b}=f;if(d===he){Nt(m,y);return}if(d===fi){D(f);return}const k=()=>{s(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:E}=b,C=()=>R(m,k);E?E(f.el,k,C):C()}else k()},Nt=(f,d)=>{let m;for(;f!==d;)m=v(f),s(f),f=m;s(d)},En=(f,d,m)=>{const{bum:y,scope:b,update:k,subTree:R,um:E}=f;y&&$n(y),b.stop(),k&&(k.active=!1,xe(R,f,d,m)),E&&Ee(E,d),Ee(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},ye=(f,d,m,y=!1,b=!1,k=0)=>{for(let R=k;Rf.shapeFlag&6?_(f.component.subTree):f.shapeFlag&128?f.suspense.next():v(f.anchor||f.el),T=(f,d,m)=>{f==null?d._vnode&&xe(d._vnode,null,null,!0):I(d._vnode||null,f,d,null,null,null,m),ps(),Po(),d._vnode=f},M={p:I,um:xe,m:Ke,r:$t,mt:nn,mc:De,pc:J,pbc:Be,n:_,o:e};let O,Q;return t&&([O,Q]=t(M)),{render:T,hydrate:O,createApp:Fl(T,O)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ql(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zo(e,t,n=!1){const i=e.children,s=t.children;if(U(i)&&U(s))for(let o=0;o>1,e[n[a]]0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}const Gl=e=>e.__isTeleport,he=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),fn=[];let Fe=null;function $(e=!1){fn.push(Fe=e?null:[])}function Yl(){fn.pop(),Fe=fn[fn.length-1]||null}let yn=1;function xs(e){yn+=e}function qo(e){return e.dynamicChildren=yn>0?Fe||Ut:null,Yl(),yn>0&&Fe&&Fe.push(e),e}function F(e,t,n,i,s,o){return qo(g(e,t,n,i,s,o,!0))}function Wi(e,t,n,i,s){return qo(me(e,t,n,i,s,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ii="__vInternal",Wo=({key:e})=>e??null,Hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||we(e)||K(e)?{i:He,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,i=0,s=null,o=e===he?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wo(t),ref:t&&Hn(t),scopeId:ei,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:He};return a?(Gi(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ce(n)?8:16),yn>0&&!r&&Fe&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Fe.push(l),l}const me=Jl;function Jl(e,t=null,n=null,i=0,s=null,o=!1){if((!e||e===ml)&&(e=At),Mi(e)){const a=qt(e,t,!0);return n&&Gi(a,n),yn>0&&!o&&Fe&&(a.shapeFlag&6?Fe[Fe.indexOf(e)]=a:Fe.push(a)),a.patchFlag|=-2,a}if(ra(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:a,style:l}=t;a&&!ce(a)&&(t.class=it(a)),te(l)&&(wo(l)&&!U(l)&&(l=ge({},l)),t.style=et(l))}const r=ce(e)?1:gl(e)?128:Gl(e)?64:te(e)?4:K(e)?2:0;return g(e,t,n,i,s,r,o,!0)}function Ql(e){return e?wo(e)||ii in e?ge({},e):e:null}function qt(e,t,n=!1){const{props:i,ref:s,patchFlag:o,children:r}=e,a=t?Xl(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Wo(a),ref:t&&t.ref?n&&s?U(s)?s.concat(Hn(t)):[s,Hn(t)]:Hn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ce(e=" ",t=0){return me(ni,null,e,t)}function tt(e="",t=!1){return t?($(),Wi(At,null,e)):me(At,null,e)}function We(e){return e==null||typeof e=="boolean"?me(At):U(e)?me(he,null,e.slice()):typeof e=="object"?ft(e):me(ni,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Gi(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Gi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(ii in t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:He},n=32):(t=String(t),i&64?(n=16,t=[Ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xl(...e){const t={};for(let n=0;nbe=e),Yi=e=>{Ht.length>1?Ht.forEach(t=>t(e)):Ht[0](e)};const Wt=e=>{Yi(e),e.scope.on()},Rt=()=>{be&&be.scope.off(),Yi(null)};function Go(e){return e.vnode.shapeFlag&4}let _n=!1;function na(e,t=!1){_n=t;const{props:n,children:i}=e.vnode,s=Go(e);Ul(e,n,s,t),Bl(e,i);const o=s?ia(e,t):void 0;return _n=!1,o}function ia(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ko(new Proxy(e.ctx,Al));const{setup:i}=n;if(i){const s=e.setupContext=i.length>1?oa(e):null;Wt(e),Zt();const o=ht(i,e,0,[e.props,s]);if(en(),Rt(),no(o)){if(o.then(Rt,Rt),t)return o.then(r=>{Cs(e,r,t)}).catch(r=>{Xn(r,e,0)});e.asyncDep=o}else Cs(e,o,t)}else Yo(e,t)}function Cs(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=So(t)),Yo(e,n)}let Ss;function Yo(e,t,n){const i=e.type;if(!e.render){if(!t&&Ss&&!i.render){const s=i.template||zi(e).template;if(s){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,u=ge(ge({isCustomElement:o,delimiters:a},r),l);i.render=Ss(s,u)}}e.render=i.render||Ye}{Wt(e),Zt();try{Il(e)}finally{en(),Rt()}}}function sa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}}))}function oa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sa(e)},slots:e.slots,emit:e.emit,expose:t}}function si(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(So(ko(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)},has(t,n){return n in t||n in un}}))}function ra(e){return K(e)&&"__vccOpts"in e}const le=(e,t)=>il(e,t,_n);function Jo(e,t,n){const i=arguments.length;return i===2?te(t)&&!U(t)?Mi(t)?me(e,null,[t]):me(e,t):me(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mi(n)&&(n=[n]),me(e,t,n))}const la=Symbol.for("v-scx"),aa=()=>Je(la),ca="3.3.13",ua="http://www.w3.org/2000/svg",Et=typeof document<"u"?document:null,Ms=Et&&Et.createElement("template"),fa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t?Et.createElementNS(ua,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,o){const r=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ms.innerHTML=i?`${e}`:e;const a=Ms.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},da=Symbol("_vtc");function pa(e,t,n){const i=e[da];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ji=Symbol("_vod"),Qo={beforeMount(e,{value:t},{transition:n}){e[Ji]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),rn(e,!0),i.enter(e)):i.leave(e,()=>{rn(e,!1)}):rn(e,t))},beforeUnmount(e,{value:t}){rn(e,t)}};function rn(e,t){e.style.display=t?e[Ji]:"none"}const ha=Symbol("");function ma(e,t,n){const i=e.style,s=ce(n);if(n&&!s){if(t&&!ce(t))for(const o in t)n[o]==null&&Ri(i,o,"");for(const o in n)Ri(i,o,n[o])}else{const o=i.display;if(s){if(t!==n){const r=i[ha];r&&(n+=";"+r),i.cssText=n}}else t&&e.removeAttribute("style");Ji in e&&(i.display=o)}}const Rs=/\s*!important$/;function Ri(e,t,n){if(U(n))n.forEach(i=>Ri(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=ga(e,t);Rs.test(n)?e.setProperty(Xt(i),n.replace(Rs,""),"important"):e[i]=n}}const Ts=["Webkit","Moz","ms"],di={};function ga(e,t){const n=di[t];if(n)return n;let i=Vt(t);if(i!=="filter"&&i in e)return di[t]=i;i=oo(i);for(let s=0;spi||(ka.then(()=>pi=0),pi=Date.now());function Ea(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ue(Ca(i,n.value),t,5,[i])};return n.value=e,n.attached=xa(),n}function Ca(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const Os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sa=(e,t,n,i,s=!1,o,r,a,l)=>{t==="class"?pa(e,i,s):t==="style"?ma(e,n,i):Yn(t)?Oi(t)||ba(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ma(e,t,i,s))?ya(e,t,i,o,r,a,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),va(e,t,i,s))};function Ma(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Os(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Os(t)&&ce(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>$n(t,n):t};function Ra(e){e.target.composing=!0}function $s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Re=Symbol("_assign"),Te={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Re]=yt(s);const o=i||s.props&&s.props.type==="number";nt(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=Bn(a)),e[Re](a)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Ra),nt(e,"compositionend",$s),nt(e,"change",$s))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:s}},o){if(e[Re]=yt(o),e.composing)return;const r=s||e.type==="number"?Bn(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===a)||(e.value=a))}},Xo={deep:!0,created(e,t,n){e[Re]=yt(n),nt(e,"change",()=>{const i=e._modelValue,s=Gt(e),o=e.checked,r=e[Re];if(U(i)){const a=Li(i,s),l=a!==-1;if(o&&!l)r(i.concat(s));else if(!o&&l){const u=[...i];u.splice(a,1),r(u)}}else if(Qt(i)){const a=new Set(i);o?a.add(s):a.delete(s),r(a)}else r(Zo(e,o))})},mounted:Ns,beforeUpdate(e,t,n){e[Re]=yt(n),Ns(e,t,n)}};function Ns(e,{value:t,oldValue:n},i){e._modelValue=t,U(t)?e.checked=Li(t,i.props.value)>-1:Qt(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Pt(t,Zo(e,!0)))}const Ta={created(e,{value:t},n){e.checked=Pt(t,n.props.value),e[Re]=yt(n),nt(e,"change",()=>{e[Re](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Re]=yt(i),t!==n&&(e.checked=Pt(t,i.props.value))}},dn={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=Qt(t);nt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Bn(Gt(r)):Gt(r));e[Re](e.multiple?s?new Set(o):o:o[0])}),e[Re]=yt(i)},mounted(e,{value:t}){Ls(e,t)},beforeUpdate(e,t,n){e[Re]=yt(n)},updated(e,{value:t}){Ls(e,t)}};function Ls(e,t){const n=e.multiple;if(!(n&&!U(t)&&!Qt(t))){for(let i=0,s=e.options.length;i-1:o.selected=t.has(r);else if(Pt(Gt(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function Zo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Pa={created(e,t,n){An(e,t,n,null,"created")},mounted(e,t,n){An(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){An(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){An(e,t,n,i,"updated")}};function Aa(e,t){switch(e){case"SELECT":return dn;case"TEXTAREA":return Te;default:switch(t){case"checkbox":return Xo;case"radio":return Ta;default:return Te}}}function An(e,t,n,i,s){const r=Aa(e.tagName,n.props&&n.props.type)[s];r&&r(e,t,n,i)}const Ia=["ctrl","shift","alt","meta"],Oa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ia.some(n=>e[`${n}Key`]&&!t.includes(n))},Fn=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...o)=>{for(let r=0;r{const t=Na().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=Ha(i);if(!s)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t};function Ha(e){return ce(e)?document.querySelector(e):e}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ft=typeof window<"u";function Fa(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const X=Object.assign;function hi(e,t){const n={};for(const i in t){const s=t[i];n[i]=je(s)?s.map(e):e(s)}return n}const pn=()=>{},je=Array.isArray,Ua=/\/$/,ja=e=>e.replace(Ua,"");function mi(e,t,n="/"){let i,s={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(i=i||t.slice(0,a),r=t.slice(a,t.length)),i=Ka(i??t,n),{fullPath:i+(o&&"?")+o+r,path:i,query:s,hash:r}}function Da(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ba(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&Yt(t.matched[i],n.matched[s])&&er(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function er(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Va(e[n],t[n]))return!1;return!0}function Va(e,t){return je(e)?Us(e,t):je(t)?Us(t,e):e===t}function Us(e,t){return je(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Ka(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var bn;(function(e){e.pop="pop",e.push="push"})(bn||(bn={}));var hn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hn||(hn={}));function za(e){if(!e)if(Ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ja(e)}const qa=/^[^#]+#/;function Wa(e,t){return e.replace(qa,"#")+t}function Ga(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const oi=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ya(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Ga(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function js(e,t){return(history.state?history.state.position-t:-1)+e}const Ti=new Map;function Ja(e,t){Ti.set(e,t)}function Qa(e){const t=Ti.get(e);return Ti.delete(e),t}let Xa=()=>location.protocol+"//"+location.host;function tr(e,t){const{pathname:n,search:i,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Fs(l,"")}return Fs(n,e)+i+s}function Za(e,t,n,i){let s=[],o=[],r=null;const a=({state:v})=>{const w=tr(e,location),P=n.value,I=t.value;let B=0;if(v){if(n.value=w,t.value=v,r&&r===P){r=null;return}B=I?v.position-I.position:0}else i(w);s.forEach(H=>{H(n.value,P,{delta:B,type:bn.pop,direction:B?B>0?hn.forward:hn.back:hn.unknown})})};function l(){r=n.value}function u(v){s.push(v);const w=()=>{const P=s.indexOf(v);P>-1&&s.splice(P,1)};return o.push(w),w}function c(){const{history:v}=window;v.state&&v.replaceState(X({},v.state,{scroll:oi()}),"")}function p(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:p}}function Ds(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?oi():null}}function ec(e){const{history:t,location:n}=window,i={value:tr(e,n)},s={value:t.state};s.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+l:Xa()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),s.value=u}catch(w){console.error(w),n[c?"replace":"assign"](v)}}function r(l,u){const c=X({},t.state,Ds(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,c,!0),i.value=l}function a(l,u){const c=X({},s.value,t.state,{forward:l,scroll:oi()});o(c.current,c,!0);const p=X({},Ds(i.value,l,null),{position:c.position+1},u);o(l,p,!1),i.value=l}return{location:i,state:s,push:a,replace:r}}function tc(e){e=za(e);const t=ec(e),n=Za(e,t.state,t.location,t.replace);function i(o,r=!0){r||n.pauseListeners(),history.go(o)}const s=X({location:"",base:e,go:i,createHref:Wa.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function nc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tc(e)}function ic(e){return typeof e=="string"||e&&typeof e=="object"}function nr(e){return typeof e=="string"||typeof e=="symbol"}const ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ir=Symbol("");var Bs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Bs||(Bs={}));function Jt(e,t){return X(new Error,{type:e,[ir]:!0},t)}function Xe(e,t){return e instanceof Error&&ir in e&&(t==null||!!(e.type&t))}const Vs="[^/]+?",sc={sensitive:!1,strict:!1,start:!0,end:!0},oc=/[.+*?^${}()[\]/\\]/g;function rc(e,t){const n=X({},sc,t),i=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function ac(e,t){let n=0;const i=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const cc={type:0,value:""},uc=/[a-zA-Z0-9_]/;function fc(e){if(!e)return[[]];if(e==="/")return[[cc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${u}": ${w}`)}let n=0,i=n;const s=[];let o;function r(){o&&s.push(o),o=[]}let a=0,l,u="",c="";function p(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a{r(j)}:pn}function r(c){if(nr(c)){const p=i.get(c);p&&(i.delete(c),n.splice(n.indexOf(p),1),p.children.forEach(r),p.alias.forEach(r))}else{const p=n.indexOf(c);p>-1&&(n.splice(p,1),c.record.name&&i.delete(c.record.name),c.children.forEach(r),c.alias.forEach(r))}}function a(){return n}function l(c){let p=0;for(;p=0&&(c.record.path!==n[p].record.path||!sr(c,n[p]));)p++;n.splice(p,0,c),c.record.name&&!qs(c)&&i.set(c.record.name,c)}function u(c,p){let v,w={},P,I;if("name"in c&&c.name){if(v=i.get(c.name),!v)throw Jt(1,{location:c});I=v.record.name,w=X(zs(p.params,v.keys.filter(j=>!j.optional).map(j=>j.name)),c.params&&zs(c.params,v.keys.map(j=>j.name))),P=v.stringify(w)}else if("path"in c)P=c.path,v=n.find(j=>j.re.test(P)),v&&(w=v.parse(P),I=v.record.name);else{if(v=p.name?i.get(p.name):n.find(j=>j.re.test(p.path)),!v)throw Jt(1,{location:c,currentLocation:p});I=v.record.name,w=X({},p.params,c.params),P=v.stringify(w)}const B=[];let H=v;for(;H;)B.unshift(H.record),H=H.parent;return{name:I,path:P,params:w,matched:B,meta:gc(B)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:r,getRoutes:a,getRecordMatcher:s}}function zs(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function hc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function qs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gc(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Ws(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function sr(e,t){return t.children.some(n=>n===e||sr(e,n))}const or=/#/g,vc=/&/g,yc=/\//g,_c=/=/g,bc=/\?/g,rr=/\+/g,wc=/%5B/g,kc=/%5D/g,lr=/%5E/g,Ec=/%60/g,ar=/%7B/g,xc=/%7C/g,cr=/%7D/g,Cc=/%20/g;function Qi(e){return encodeURI(""+e).replace(xc,"|").replace(wc,"[").replace(kc,"]")}function Sc(e){return Qi(e).replace(ar,"{").replace(cr,"}").replace(lr,"^")}function Pi(e){return Qi(e).replace(rr,"%2B").replace(Cc,"+").replace(or,"%23").replace(vc,"%26").replace(Ec,"`").replace(ar,"{").replace(cr,"}").replace(lr,"^")}function Mc(e){return Pi(e).replace(_c,"%3D")}function Rc(e){return Qi(e).replace(or,"%23").replace(bc,"%3F")}function Tc(e){return e==null?"":Rc(e).replace(yc,"%2F")}function Gn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Pc(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Pi(o)):[i&&Pi(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ac(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=je(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const Ic=Symbol(""),Ys=Symbol(""),Xi=Symbol(""),Zi=Symbol(""),Ai=Symbol("");function ln(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function dt(e,t,n,i,s){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((r,a)=>{const l=p=>{p===!1?a(Jt(4,{from:n,to:t})):p instanceof Error?a(p):ic(p)?a(Jt(2,{from:t,to:p})):(o&&i.enterCallbacks[s]===o&&typeof p=="function"&&o.push(p),r())},u=e.call(i&&i.instances[s],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(p=>a(p))})}function gi(e,t,n,i){const s=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(Oc(a)){const u=(a.__vccOpts||a)[t];u&&s.push(dt(u,n,i,o,r))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const c=Fa(u)?u.default:u;o.components[r]=c;const v=(c.__vccOpts||c)[t];return v&&dt(v,n,i,o,r)()}))}}return s}function Oc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Js(e){const t=Je(Xi),n=Je(Zi),i=le(()=>t.resolve(se(e.to))),s=le(()=>{const{matched:l}=i.value,{length:u}=l,c=l[u-1],p=n.matched;if(!c||!p.length)return-1;const v=p.findIndex(Yt.bind(null,c));if(v>-1)return v;const w=Qs(l[u-2]);return u>1&&Qs(c)===w&&p[p.length-1].path!==w?p.findIndex(Yt.bind(null,l[u-2])):v}),o=le(()=>s.value>-1&&Hc(n.params,i.value.params)),r=le(()=>s.value>-1&&s.value===n.matched.length-1&&er(n.params,i.value.params));function a(l={}){return Lc(l)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(pn):Promise.resolve()}return{route:i,href:le(()=>i.value.href),isActive:o,isExactActive:r,navigate:a}}const $c=re({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Js,setup(e,{slots:t}){const n=kn(Js(e)),{options:i}=Je(Xi),s=le(()=>({[Xs(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Xs(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Jo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Nc=$c;function Lc(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hc(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!je(s)||s.length!==i.length||i.some((o,r)=>o!==s[r]))return!1}return!0}function Qs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xs=(e,t,n)=>e??t??n,Fc=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Je(Ai),s=le(()=>e.route||i.value),o=Je(Ys,0),r=le(()=>{let u=se(o);const{matched:c}=s.value;let p;for(;(p=c[u])&&!p.components;)u++;return u}),a=le(()=>s.value.matched[r.value]);Ln(Ys,le(()=>r.value+1)),Ln(Ic,a),Ln(Ai,s);const l=z();return mt(()=>[l.value,a.value,e.name],([u,c,p],[v,w,P])=>{c&&(c.instances[p]=u,w&&w!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=w.leaveGuards),c.updateGuards.size||(c.updateGuards=w.updateGuards))),u&&c&&(!w||!Yt(c,w)||!v)&&(c.enterCallbacks[p]||[]).forEach(I=>I(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,p=a.value,v=p&&p.components[c];if(!v)return Zs(n.default,{Component:v,route:u});const w=p.props[c],P=w?w===!0?u.params:typeof w=="function"?w(u):w:null,B=Jo(v,X({},P,t,{onVnodeUnmounted:H=>{H.component.isUnmounted&&(p.instances[c]=null)},ref:l}));return Zs(n.default,{Component:B,route:u})||B}}});function Zs(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const es=Fc;function Uc(e){const t=pc(e.routes,e),n=e.parseQuery||Pc,i=e.stringifyQuery||Gs,s=e.history,o=ln(),r=ln(),a=ln(),l=Yr(ct);let u=ct;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=hi.bind(null,_=>""+_),p=hi.bind(null,Tc),v=hi.bind(null,Gn);function w(_,T){let S,O;return nr(_)?(S=t.getRecordMatcher(_),O=T):O=_,t.addRoute(O,S)}function P(_){const T=t.getRecordMatcher(_);T&&t.removeRoute(T)}function I(){return t.getRoutes().map(_=>_.record)}function B(_){return!!t.getRecordMatcher(_)}function H(_,T){if(T=X({},T||l.value),typeof _=="string"){const m=mi(n,_,T.path),y=t.resolve({path:m.path},T),b=s.createHref(m.fullPath);return X(m,y,{params:v(y.params),hash:Gn(m.hash),redirectedFrom:void 0,href:b})}let S;if("path"in _)S=X({},_,{path:mi(n,_.path,T.path).path});else{const m=X({},_.params);for(const y in m)m[y]==null&&delete m[y];S=X({},_,{params:p(m)}),T.params=p(T.params)}const O=t.resolve(S,T),Q=_.hash||"";O.params=c(v(O.params));const f=Da(i,X({},_,{hash:Sc(Q),path:O.path})),d=s.createHref(f);return X({fullPath:f,hash:Q,query:i===Gs?Ac(_.query):_.query||{}},O,{redirectedFrom:void 0,href:d})}function j(_){return typeof _=="string"?mi(n,_,l.value.path):X({},_)}function Y(_,T){if(u!==_)return Jt(8,{from:T,to:_})}function D(_){return Oe(_)}function ue(_){return D(X(j(_),{replace:!0}))}function ve(_){const T=_.matched[_.matched.length-1];if(T&&T.redirect){const{redirect:S}=T;let O=typeof S=="function"?S(_):S;return typeof O=="string"&&(O=O.includes("?")||O.includes("#")?O=j(O):{path:O},O.params={}),X({query:_.query,hash:_.hash,params:"path"in O?{}:_.params},O)}}function Oe(_,T){const S=u=H(_),O=l.value,Q=_.state,f=_.force,d=_.replace===!0,m=ve(S);if(m)return Oe(X(j(m),{state:typeof m=="object"?X({},Q,m.state):Q,force:f,replace:d}),T||S);const y=S;y.redirectedFrom=T;let b;return!f&&Ba(i,O,S)&&(b=Jt(16,{to:y,from:O}),Ke(O,O,!0,!1)),(b?Promise.resolve(b):Be(y,O)).catch(k=>Xe(k)?Xe(k,2)?k:lt(k):J(k,y,O)).then(k=>{if(k){if(Xe(k,2))return Oe(X({replace:d},j(k.to),{state:typeof k.to=="object"?X({},Q,k.to.state):Q,force:f}),T||y)}else k=_t(y,O,!0,d,Q);return rt(y,O,k),k})}function De(_,T){const S=Y(_,T);return S?Promise.reject(S):Promise.resolve()}function It(_){const T=Nt.values().next().value;return T&&typeof T.runWithContext=="function"?T.runWithContext(_):_()}function Be(_,T){let S;const[O,Q,f]=jc(_,T);S=gi(O.reverse(),"beforeRouteLeave",_,T);for(const m of O)m.leaveGuards.forEach(y=>{S.push(dt(y,_,T))});const d=De.bind(null,_,T);return S.push(d),ye(S).then(()=>{S=[];for(const m of o.list())S.push(dt(m,_,T));return S.push(d),ye(S)}).then(()=>{S=gi(Q,"beforeRouteUpdate",_,T);for(const m of Q)m.updateGuards.forEach(y=>{S.push(dt(y,_,T))});return S.push(d),ye(S)}).then(()=>{S=[];for(const m of f)if(m.beforeEnter)if(je(m.beforeEnter))for(const y of m.beforeEnter)S.push(dt(y,_,T));else S.push(dt(m.beforeEnter,_,T));return S.push(d),ye(S)}).then(()=>(_.matched.forEach(m=>m.enterCallbacks={}),S=gi(f,"beforeRouteEnter",_,T),S.push(d),ye(S))).then(()=>{S=[];for(const m of r.list())S.push(dt(m,_,T));return S.push(d),ye(S)}).catch(m=>Xe(m,8)?m:Promise.reject(m))}function rt(_,T,S){a.list().forEach(O=>It(()=>O(_,T,S)))}function _t(_,T,S,O,Q){const f=Y(_,T);if(f)return f;const d=T===ct,m=Ft?history.state:{};S&&(O||d?s.replace(_.fullPath,X({scroll:d&&m&&m.scroll},Q)):s.push(_.fullPath,Q)),l.value=_,Ke(_,T,S,d),lt()}let Ve;function nn(){Ve||(Ve=s.listen((_,T,S)=>{if(!xn.listening)return;const O=H(_),Q=ve(O);if(Q){Oe(X(Q,{replace:!0}),O).catch(pn);return}u=O;const f=l.value;Ft&&Ja(js(f.fullPath,S.delta),oi()),Be(O,f).catch(d=>Xe(d,12)?d:Xe(d,2)?(Oe(d.to,O).then(m=>{Xe(m,20)&&!S.delta&&S.type===bn.pop&&s.go(-1,!1)}).catch(pn),Promise.reject()):(S.delta&&s.go(-S.delta,!1),J(d,O,f))).then(d=>{d=d||_t(O,f,!1),d&&(S.delta&&!Xe(d,8)?s.go(-S.delta,!1):S.type===bn.pop&&Xe(d,20)&&s.go(-1,!1)),rt(O,f,d)}).catch(pn)}))}let Ot=ln(),fe=ln(),ee;function J(_,T,S){lt(_);const O=fe.list();return O.length?O.forEach(Q=>Q(_,T,S)):console.error(_),Promise.reject(_)}function Qe(){return ee&&l.value!==ct?Promise.resolve():new Promise((_,T)=>{Ot.add([_,T])})}function lt(_){return ee||(ee=!_,nn(),Ot.list().forEach(([T,S])=>_?S(_):T()),Ot.reset()),_}function Ke(_,T,S,O){const{scrollBehavior:Q}=e;if(!Ft||!Q)return Promise.resolve();const f=!S&&Qa(js(_.fullPath,0))||(O||!S)&&history.state&&history.state.scroll||null;return Ro().then(()=>Q(_,T,f)).then(d=>d&&Ya(d)).catch(d=>J(d,_,T))}const Ee=_=>s.go(_);let $t;const Nt=new Set,xn={currentRoute:l,listening:!0,addRoute:w,removeRoute:P,hasRoute:B,getRoutes:I,resolve:H,options:e,push:D,replace:ue,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:fe.add,isReady:Qe,install(_){const T=this;_.component("RouterLink",Nc),_.component("RouterView",es),_.config.globalProperties.$router=T,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),Ft&&!$t&&l.value===ct&&($t=!0,D(s.location).catch(Q=>{}));const S={};for(const Q in ct)Object.defineProperty(S,Q,{get:()=>l.value[Q],enumerable:!0});_.provide(Xi,T),_.provide(Zi,_o(S)),_.provide(Ai,l);const O=_.unmount;Nt.add(_),_.unmount=function(){Nt.delete(_),Nt.size<1&&(u=ct,Ve&&Ve(),Ve=null,l.value=ct,$t=!1,ee=!1),O()}}};function ye(_){return _.reduce((T,S)=>T.then(()=>It(S)),Promise.resolve())}return xn}function jc(e,t){const n=[],i=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rYt(u,a))?i.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>Yt(u,l))||s.push(l))}return[n,i,s]}function Dc(){return Je(Zi)}const Bc=re({__name:"App",setup(e){return(t,n)=>($(),Wi(se(es)))}}),Vc=`