import{R as G,r as l,n as pn,_ as m,j as u}from"./index-2SI3TtYZ.js";import{ae as Pe,af as mn,ag as gn,A as He,_ as ce,ah as Mt,ai as at,aj as it,ak as vn,al as yn,am as ot,an as lt,ao as wn,ap as En,aq as le,ar as At,as as ct,at as Cn,au as xn,av as bn,aw as _n,ax as V,ay as Ft,e as ye,m as W,z as Pn,b as w,az as Rn,aA as Je,aB as Ye,h as Y,G as se,aC as Ut,aD as Ze,aE as Sn,C as Ln,l as Tn,aF as Ae,aG as On,aH as In,aI as jn,F as kn,aJ as Nn}from"./moreIcon-hyogBtJh.js";function ut(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Xe(e,t){if(ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let s=0;s"u"&&(E==="loading"||E==="idle")){var A;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))A=c.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=ot(c==null?void 0:c.data,A)),this.selectError=null}catch(K){lt().error(K),this.selectError=K}typeof A<"u"&&(E="success",j=A,N=!0)}this.selectError&&(v=this.selectError,j=this.selectResult,S=Date.now(),E="error");var Me={status:E,isLoading:E==="loading",isSuccess:E==="success",isError:E==="error",isIdle:E==="idle",data:j,dataUpdatedAt:R,error:v,errorUpdatedAt:S,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:O,isRefetching:O&&E!=="loading",isLoadingError:E==="error"&&g.dataUpdatedAt===0,isPlaceholderData:N,isPreviousData:b,isRefetchError:E==="error"&&g.dataUpdatedAt!==0,isStale:et(s,a),refetch:this.refetch,remove:this.remove};return Me},n.shouldNotifyListeners=function(s,a){if(!a)return!0;var i=this.options,o=i.notifyOnChangeProps,c=i.notifyOnChangePropsExclusions;if(!o&&!c||o==="tracked"&&!this.trackedProps.length)return!0;var d=o==="tracked"?this.trackedProps:o;return Object.keys(s).some(function(f){var h=f,p=s[h]!==a[h],x=d==null?void 0:d.some(function(R){return R===f}),g=c==null?void 0:c.some(function(R){return R===f});return p&&!g&&(!d||x)})},n.updateResult=function(s){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!wn(this.currentResult,a)){var i={cache:!0};(s==null?void 0:s.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(ce({},i,s))}},n.updateQuery=function(){var s=this.client.getQueryCache().build(this.client,this.options);if(s!==this.currentQuery){var a=this.currentQuery;this.currentQuery=s,this.currentQueryInitialState=s.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),s.addObserver(this))}},n.onQueryUpdate=function(s){var a={};s.type==="success"?a.onSuccess=!0:s.type==="error"&&!En(s.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(s){var a=this;le.batch(function(){s.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):s.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),s.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),s.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(At);function Fn(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dt(e,t){return Fn(e,t)||e.state.dataUpdatedAt>0&&De(e,t,t.refetchOnMount)}function De(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&et(e,t)}return!1}function ft(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&et(e,n)}function et(e,t){return e.isStaleByTime(t.staleTime)}var Un=function(e){He(t,e);function t(r,s){return e.call(this,r,s)||this}var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(s,a){e.prototype.setOptions.call(this,ce({},s,{behavior:ct()}),a)},n.getOptimisticResult=function(s){return s.behavior=ct(),e.prototype.getOptimisticResult.call(this,s)},n.fetchNextPage=function(s){var a;return this.fetch({cancelRefetch:(a=s==null?void 0:s.cancelRefetch)!=null?a:!0,throwOnError:s==null?void 0:s.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:s==null?void 0:s.pageParam}}})},n.fetchPreviousPage=function(s){var a;return this.fetch({cancelRefetch:(a=s==null?void 0:s.cancelRefetch)!=null?a:!0,throwOnError:s==null?void 0:s.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:s==null?void 0:s.pageParam}}})},n.createResult=function(s,a){var i,o,c,d,f,h,p=s.state,x=e.prototype.createResult.call(this,s,a);return ce({},x,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Cn(a,(i=p.data)==null?void 0:i.pages),hasPreviousPage:xn(a,(o=p.data)==null?void 0:o.pages),isFetchingNextPage:p.isFetching&&((c=p.fetchMeta)==null||(d=c.fetchMore)==null?void 0:d.direction)==="forward",isFetchingPreviousPage:p.isFetching&&((f=p.fetchMeta)==null||(h=f.fetchMore)==null?void 0:h.direction)==="backward"})},t}($t),Dn=function(e){He(t,e);function t(r,s){var a;return a=e.call(this)||this,a.client=r,a.setOptions(s),a.bindMethods(),a.updateResult(),a}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(s){this.options=this.client.defaultMutationOptions(s)},n.onUnsubscribe=function(){if(!this.listeners.length){var s;(s=this.currentMutation)==null||s.removeObserver(this)}},n.onMutationUpdate=function(s){this.updateResult();var a={listeners:!0};s.type==="success"?a.onSuccess=!0:s.type==="error"&&(a.onError=!0),this.notify(a)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(s,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,ce({},this.options,{variables:typeof s<"u"?s:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var s=this.currentMutation?this.currentMutation.state:bn(),a=ce({},s,{isLoading:s.status==="loading",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},n.notify=function(s){var a=this;le.batch(function(){a.mutateOptions&&(s.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):s.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),s.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(At);function $n(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Gn=G.createContext($n()),zn=function(){return G.useContext(Gn)};function Gt(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function M(e,t,n){var r=G.useRef(!1),s=G.useState(0),a=s[1],i=_n(e,t,n),o=V(),c=G.useRef();c.current?c.current.setOptions(i):c.current=new Dn(o,i);var d=c.current.getCurrentResult();G.useEffect(function(){r.current=!0;var h=c.current.subscribe(le.batchCalls(function(){r.current&&a(function(p){return p+1})}));return function(){r.current=!1,h()}},[]);var f=G.useCallback(function(h,p){c.current.mutate(h,p).catch(Mt)},[]);if(d.error&&Gt(void 0,c.current.options.useErrorBoundary,[d.error]))throw d.error;return ce({},d,{mutate:f,mutateAsync:d.mutate})}function zt(e,t){var n=G.useRef(!1),r=G.useState(0),s=r[1],a=V(),i=zn(),o=a.defaultQueryObserverOptions(e);o.optimisticResults=!0,o.onError&&(o.onError=le.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=le.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=le.batchCalls(o.onSettled)),o.suspense&&(typeof o.staleTime!="number"&&(o.staleTime=1e3),o.cacheTime===0&&(o.cacheTime=1)),(o.suspense||o.useErrorBoundary)&&(i.isReset()||(o.retryOnMount=!1));var c=G.useState(function(){return new t(a,o)}),d=c[0],f=d.getOptimisticResult(o);if(G.useEffect(function(){n.current=!0,i.clearReset();var h=d.subscribe(le.batchCalls(function(){n.current&&s(function(p){return p+1})}));return d.updateResult(),function(){n.current=!1,h()}},[i,d]),G.useEffect(function(){d.setOptions(o,{listeners:!1})},[o,d]),o.suspense&&f.isLoading)throw d.fetchOptimistic(o).then(function(h){var p=h.data;o.onSuccess==null||o.onSuccess(p),o.onSettled==null||o.onSettled(p,null)}).catch(function(h){i.clearReset(),o.onError==null||o.onError(h),o.onSettled==null||o.onSettled(void 0,h)});if(f.isError&&!i.isReset()&&!f.isFetching&&Gt(o.suspense,o.useErrorBoundary,[f.error,d.getCurrentQuery()]))throw f.error;return o.notifyOnChangeProps==="tracked"&&(f=d.trackResult(f,o)),f}function P(e,t,n){var r=Ft(e,t,n);return zt(r,$t)}function tt(e,t,n){var r=Ft(e,t,n);return zt(r,Un)}/** * @remix-run/router v1.14.1 * * 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 me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vn(){return Math.random().toString(36).substr(2,8)}function pt(e,t){return{usr:e.state,key:e.key,idx:t}}function $e(e,t,n,r){return n===void 0&&(n=null),me({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?he(t):t,{state:n,key:t&&t.key||r||Vn()})}function Re(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 he(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 Qn(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:a=!1}=r,i=s.history,o=ne.Pop,c=null,d=f();d==null&&(d=0,i.replaceState(me({},i.state,{idx:d}),""));function f(){return(i.state||{idx:null}).idx}function h(){o=ne.Pop;let v=f(),S=v==null?null:v-d;d=v,c&&c({action:o,location:R.location,delta:S})}function p(v,S){o=ne.Push;let O=$e(R.location,v,S);n&&n(O,v),d=f()+1;let E=pt(O,d),b=R.createHref(O);try{i.pushState(E,"",b)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(b)}a&&c&&c({action:o,location:R.location,delta:1})}function x(v,S){o=ne.Replace;let O=$e(R.location,v,S);n&&n(O,v),d=f();let E=pt(O,d),b=R.createHref(O);i.replaceState(E,"",b),a&&c&&c({action:o,location:R.location,delta:0})}function g(v){let S=s.location.origin!=="null"?s.location.origin:s.location.href,O=typeof v=="string"?v:Re(v);return k(S,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,S)}let R={get action(){return o},get location(){return e(s,i)},listen(v){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(ht,h),c=v,()=>{s.removeEventListener(ht,h),c=null}},createHref(v){return t(s,v)},createURL:g,encodeLocation(v){let S=g(v);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:x,go(v){return i.go(v)}};return R}var mt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mt||(mt={}));function Wn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?he(t):t,s=ge(r.pathname||"/",n);if(s==null)return null;let a=Bt(e);qn(a);let i=null;for(let o=0;i==null&&o{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(k(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=re([r,c.relativePath]),f=n.concat(c);a.children&&a.children.length>0&&(k(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),Bt(a.children,t,f,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:er(d,a.index),routesMeta:f})};return e.forEach((a,i)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))s(a,i);else for(let c of Vt(a.path))s(a,i,c)}),t}function Vt(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return s?[a,""]:[a];let i=Vt(r.join("/")),o=[];return o.push(...i.map(c=>c===""?a:[a,c].join("/"))),s&&o.push(...i),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function qn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tr(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kn=/^:\w+$/,Hn=3,Jn=2,Yn=1,Zn=10,Xn=-2,gt=e=>e==="*";function er(e,t){let n=e.split("/"),r=n.length;return n.some(gt)&&(r+=Xn),t&&(r+=Jn),n.filter(s=>!gt(s)).reduce((s,a)=>s+(Kn.test(a)?Hn:a===""?Yn:Zn),r)}function tr(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function nr(e,t){let{routesMeta:n}=e,r={},s="/",a=[];for(let i=0;i{let{paramName:p,isOptional:x}=f;if(p==="*"){let R=o[h]||"";i=a.slice(0,a.length-R.length).replace(/(.)\/+$/,"$1")}const g=o[h];return x&&!g?d[p]=void 0:d[p]=ar(g||"",p),d},{}),pathname:a,pathnameBase:i,pattern:e}}function rr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nt(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function sr(e){try{return decodeURI(e)}catch(t){return nt(!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 ar(e,t){try{return decodeURIComponent(e)}catch(n){return nt(!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 ge(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 ir(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?he(e):e;return{pathname:n?n.startsWith("/")?n:or(n,t):t,search:ur(r),hash:dr(s)}}function or(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Fe(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 lr(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rt(e,t){let n=lr(e);return t?n.map((r,s)=>s===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function st(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=he(e):(s=me({},e),k(!s.pathname||!s.pathname.includes("?"),Fe("?","pathname","search",s)),k(!s.pathname||!s.pathname.includes("#"),Fe("#","pathname","hash",s)),k(!s.search||!s.search.includes("#"),Fe("#","search","hash",s)));let a=e===""||s.pathname==="",i=a?"/":s.pathname,o;if(i==null)o=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}o=h>=0?t[h]:"/"}let c=ir(s,o),d=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const re=e=>e.join("/").replace(/\/\/+/g,"/"),cr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ur=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qt=["post","put","patch","delete"];new Set(Qt);const hr=["get",...Qt];new Set(hr);/** * React Router v6.21.1 * * 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 ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),l.useCallback(function(d,f){if(f===void 0&&(f={}),!o.current)return;if(typeof d=="number"){r.go(d);return}let h=st(d,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:re([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,i,a,e])}function Hi(){let{matches:e}=l.useContext(X),t=e[e.length-1];return t?t.params:{}}function ke(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(Z),{matches:s}=l.useContext(X),{pathname:a}=q(),i=JSON.stringify(rt(s,r.v7_relativeSplatPath));return l.useMemo(()=>st(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function gr(e,t){return vr(e,t)}function vr(e,t,n,r){pe()||k(!1);let{navigator:s}=l.useContext(Z),{matches:a}=l.useContext(X),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let d=q(),f;if(t){var h;let v=typeof t=="string"?he(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||k(!1),f=v}else f=d;let p=f.pathname||"/",x=c==="/"?p:p.slice(c.length)||"/",g=Wn(e,{pathname:x}),R=xr(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:re([c,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:re([c,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return t&&R?l.createElement(Ie.Provider,{value:{location:ve({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ne.Pop}},R):R}function yr(){let e=Rr(),t=fr(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:s},n):null,a)}const wr=l.createElement(yr,null);class Er extends l.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?l.createElement(X.Provider,{value:this.props.routeContext},l.createElement(qt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cr(e){let{routeContext:t,match:n,children:r}=e,s=l.useContext(Oe);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(X.Provider,{value:t},r)}function xr(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,o=(s=n)==null?void 0:s.errors;if(o!=null){let f=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id]));f>=0||k(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((f,h,p)=>{let x,g=!1,R=null,v=null;n&&(x=o&&h.route.id?o[h.route.id]:void 0,R=h.route.errorElement||wr,c&&(d<0&&p===0?(Lr("route-fallback",!1),g=!0,v=null):d===p&&(g=!0,v=h.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,p+1)),O=()=>{let E;return x?E=R:g?E=v:h.route.Component?E=l.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=f,l.createElement(Cr,{match:h,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?l.createElement(Er,{location:n.location,revalidation:n.revalidation,component:R,error:x,children:O(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):O()},null)}var Ht=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ht||{}),Se=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}(Se||{});function br(e){let t=l.useContext(Oe);return t||k(!1),t}function _r(e){let t=l.useContext(Wt);return t||k(!1),t}function Pr(e){let t=l.useContext(X);return t||k(!1),t}function Jt(e){let t=Pr(),n=t.matches[t.matches.length-1];return n.route.id||k(!1),n.route.id}function Rr(){var e;let t=l.useContext(qt),n=_r(Se.UseRouteError),r=Jt(Se.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Sr(){let{router:e}=br(Ht.UseNavigateStable),t=Jt(Se.UseNavigateStable),n=l.useRef(!1);return Kt(()=>{n.current=!0}),l.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ve({fromRouteId:t},a)))},[e,t])}const vt={};function Lr(e,t,n){!t&&!vt[e]&&(vt[e]=!0)}function Tr(e){let{to:t,replace:n,state:r,relative:s}=e;pe()||k(!1);let{future:a,static:i}=l.useContext(Z),{matches:o}=l.useContext(X),{pathname:c}=q(),d=je(),f=st(t,rt(o,a.v7_relativeSplatPath),c,s==="path"),h=JSON.stringify(f);return l.useEffect(()=>d(JSON.parse(h),{replace:n,state:r,relative:s}),[d,h,s,n,r]),null}function y(e){k(!1)}function Or(e){let{basename:t="/",children:n=null,location:r,navigationType:s=ne.Pop,navigator:a,static:i=!1,future:o}=e;pe()&&k(!1);let c=t.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:a,static:i,future:ve({v7_relativeSplatPath:!1},o)}),[c,o,a,i]);typeof r=="string"&&(r=he(r));let{pathname:f="/",search:h="",hash:p="",state:x=null,key:g="default"}=r,R=l.useMemo(()=>{let v=ge(f,c);return v==null?null:{location:{pathname:v,search:h,hash:p,state:x,key:g},navigationType:s}},[c,f,h,p,x,g,s]);return R==null?null:l.createElement(Z.Provider,{value:d},l.createElement(Ie.Provider,{children:n,value:R}))}function Ir(e){let{children:t,location:n}=e;return gr(ze(t),n)}new Promise(()=>{});function ze(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,s)=>{if(!l.isValidElement(r))return;let a=[...t,s];if(r.type===l.Fragment){n.push.apply(n,ze(r.props.children,a));return}r.type!==y&&k(!1),!r.props.index||!r.props.children||k(!1);let i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ze(r.props.children,a)),n.push(i)}),n}/** * React Router DOM v6.21.1 * * 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=0)&&(n[s]=e[s]);return n}function jr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kr(e,t){return e.button===0&&(!t||t==="_self")&&!jr(e)}function Be(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Nr(e,t){let n=Be(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(a=>{n.append(s,a)})}),n}const Mr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ar=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Fr=l.createContext({isTransitioning:!1}),Ur="startTransition",yt=pn[Ur];function Dr(e){let{basename:t,children:n,future:r,window:s}=e,a=l.useRef();a.current==null&&(a.current=Bn({window:s,v5Compat:!0}));let i=a.current,[o,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:d}=r||{},f=l.useCallback(h=>{d&&yt?yt(()=>c(h)):c(h)},[c,d]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.createElement(Or,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i,future:r})}const $r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zr=l.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:a,replace:i,state:o,target:c,to:d,preventScrollReset:f,unstable_viewTransition:h}=t,p=Yt(t,Mr),{basename:x}=l.useContext(Z),g,R=!1;if(typeof d=="string"&&Gr.test(d)&&(g=d,$r))try{let E=new URL(window.location.href),b=d.startsWith("//")?new URL(E.protocol+d):new URL(d),N=ge(b.pathname,x);b.origin===E.origin&&N!=null?d=N+b.search+b.hash:R=!0}catch{}let v=pr(d,{relative:s}),S=Vr(d,{replace:i,state:o,target:c,preventScrollReset:f,relative:s,unstable_viewTransition:h});function O(E){r&&r(E),E.defaultPrevented||S(E)}return l.createElement("a",Le({},p,{href:g||v,onClick:R||a?r:O,ref:n,target:c}))}),Ji=l.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:a="",end:i=!1,style:o,to:c,unstable_viewTransition:d,children:f}=t,h=Yt(t,Ar),p=ke(c,{relative:h.relative}),x=q(),g=l.useContext(Wt),{navigator:R}=l.useContext(Z),v=g!=null&&Qr(p)&&d===!0,S=R.encodeLocation?R.encodeLocation(p).pathname:p.pathname,O=x.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;s||(O=O.toLowerCase(),E=E?E.toLowerCase():null,S=S.toLowerCase());const b=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let N=O===S||!i&&O.startsWith(S)&&O.charAt(b)==="/",j=E!=null&&(E===S||!i&&E.startsWith(S)&&E.charAt(S.length)==="/"),z={isActive:N,isPending:j,isTransitioning:v},ie=N?r:void 0,ee;typeof a=="function"?ee=a(z):ee=[a,N?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A=typeof o=="function"?o(z):o;return l.createElement(zr,Le({},h,{"aria-current":ie,className:ee,ref:n,style:A,to:c,unstable_viewTransition:d}),typeof f=="function"?f(z):f)});var Ve;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ve||(Ve={}));var wt;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wt||(wt={}));function Br(e){let t=l.useContext(Oe);return t||k(!1),t}function Vr(e,t){let{target:n,replace:r,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o}=t===void 0?{}:t,c=je(),d=q(),f=ke(e,{relative:i});return l.useCallback(h=>{if(kr(h,n)){h.preventDefault();let p=r!==void 0?r:Re(d)===Re(f);c(e,{replace:p,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:o})}},[d,c,f,r,s,n,e,a,i,o])}function Yi(e){let t=l.useRef(Be(e)),n=l.useRef(!1),r=q(),s=l.useMemo(()=>Nr(r.search,n.current?null:t.current),[r.search]),a=je(),i=l.useCallback((o,c)=>{const d=Be(typeof o=="function"?o(s):o);n.current=!0,a("?"+d,c)},[a,s]);return[s,i]}function Qr(e,t){t===void 0&&(t={});let n=l.useContext(Fr);n==null&&k(!1);let{basename:r}=Br(Ve.useViewTransitionState),s=ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ge(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=ge(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ge(s.pathname,i)!=null||Ge(s.pathname,a)!=null}const Wr=l.lazy(()=>m(()=>import("./ApplicationFooterContainer-1GPy4oqS.js"),__vite__mapDeps([0,1,2,3,4,5]))),qr=l.lazy(()=>m(()=>import("./ApplicationHeader-aMjc6lmb.js"),__vite__mapDeps([6,1,7,2,8,9,10,11,12,13]))),Kr=480,Hr=800,Zi=1024;var Qe=(e=>(e.PHONE="phone",e.TABLET="tablet",e.DESKTOP="desktop",e))(Qe||{});const Et=()=>{const{innerWidth:e}=window;return e},Ct=e=>e<=Kr?"phone":e<=Hr?"tablet":"desktop",Jr=()=>{const[e,t]=l.useState(Ct(Et())),n=l.useCallback(()=>{t(Ct(Et()))},[]);return l.useEffect(()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[n]),e},Yr=(e,t)=>{for(const n in Qe){const r=Qe[n];e.classList.toggle(r,t===r)}},Zr=()=>{const{isProfileMenuOpen:e,isBurgerMenuOpen:t,isSearchBarOpen:n,isFullScreen:r}=ye(a=>a.application,Xe),s=Jr();l.useEffect(()=>{const a=document.body;if(e||t||n){if(window.innerWidth>1170&&e)return;a.style.overflow="hidden"}else r?a.style.overflow="inherit":(a.style.overflow="auto",a.style.overflowY="scroll")},[e,t,n,r]),l.useEffect(()=>{const a=document.querySelector("#root");a!==null&&(r?a.classList.add("fullScreen"):a.classList.remove("fullScreen"))},[r]),l.useEffect(()=>{const a=document.querySelector("#root");a!==null&&Yr(a,s)},[s])},Xr=()=>{const e=ue();l.useEffect(()=>{(async()=>await W()&&e(Pn()))()},[e])},es="trending-tags",ts="trending-creators",ns="trending-niches",Zt="single-niche",_={refetchOnWindowFocus:!1,refetchOnMount:!1,retry:!1},Xi=()=>P(["following-ids"],async()=>await W()?await w.getFollowingIds():[],_),eo=e=>P(["following"],async()=>{if(await W())return await w.fetchUserFollows({count:100})},{..._,cacheTime:0}),to=()=>P(["likes"],async()=>{try{return await w.getLikedGifs()}catch(e){return console.error("Error checking for user auth.",e),[]}},_),no=()=>P([es],async()=>await Je.getTrendingTags(),_),ro=()=>P([ts],async()=>(await Ye.getTrendingCreators()).items,_),so=()=>P([ns],async()=>(await Y.getTrendingNiches()).niches,_),ao=()=>P(["personal-suggested-niches"],async()=>await W()?await Y.getSuggestedNiches():[],_),io=e=>P([Zt,e],async()=>{if(e!==void 0)return await Y.getNiche(e)},_),oo=e=>P(["user-info",e],async()=>{if(e===void 0)throw Error("user id not specified");return await w.fetchCreatorById(e)},_),lo=e=>P(["following-niches",e],async()=>await W()?(console.debug("The user is authenticated, requesting following niches."),await Y.getFollowingNiches({previews:e.previews})):(console.debug("The user is not authenticated, not requesting following niches."),{niches:[]}),_),co=()=>P(["new-verified-creators"],async()=>await Ye.getNewVerifiedCreators(),_),uo=e=>P(["niche-gifs",e],async({queryKey:t})=>{if(e.id!==void 0)return await Y.getNicheGifs({id:e.id,page:e.page,type:e.type,order:e.order,count:e.count})},_),fo=e=>P(["search-creators",e],async({queryKey:t})=>await Ye.searchCreators({order:e.order,page:e.page,tags:e.tags,verified:e.verified}),_),ho=e=>P(["search-gifs",e],async({queryKey:t})=>await w.searchGifs({search_text:e.tag,order:e.order,count:e.count,type:e.type,page:e.page,following:!!e.following,favourites:!!e.favourites,verified:!!e.verified}),_),po=e=>P(["search-user-gifs",e],async()=>await w.searchUserGifs({username:e.username,order:e.order,count:e.count??10,type:e.type,page:e.page,tags:e.tags}),_),mo=e=>P(["search-my-gifs",e],async()=>await w.searchMyGifs({order:e.order,count:50,type:e.type,page:e.page,tags:e.tags}),_),go=(e,t={})=>P(["single-gif-info",e],async()=>await w.fetchGifById(e),{..._,...t}),vo=e=>P(["collection-items",e],async()=>e.showPrivate?await se.getMyCollectionItems({collectionId:e.collection,page:e.page,count:e.count}):await se.getCollectionItems({userId:e.user,collectionId:e.collection,page:e.page,count:e.count}),_),yo=e=>P(["account-info",e],async()=>await w.getUser({userName:e.userName}),_),wo=()=>M(e=>Ut.verifyUserProfile(e)),Eo=e=>P(["collection-info",e],async()=>e.showPrivate?await se.getMyCollection({collectionId:e.collectionId}):await se.getCollectionById({userName:e.userName,collectionId:e.collectionId}),_),rs=()=>P(["get-me"],async()=>{if(await W())return await w.getMe()},_),Co=e=>P(["all-niches",e],async()=>await Y.getNiches({order:e.order,previews:e.previews===void 0?!0:e.previews}),_),xo=()=>P(["top-this-week"],async()=>await Ze.getTopThisWeek(),_),bo=()=>P(["trending-gifs"],async()=>await Ze.getTrendingGifs(),_),_o=()=>P(["trending-images"],async()=>await Ze.getTrendingImages(),_),Po=e=>P(["gallery",e],async()=>{if(e)return console.debug(`Requesting contents of gallery ${e}`),await w.getGallery(e)},_),Ro=e=>P(["creators-tags",e],async()=>await w.fetchCreatorTagsById(e),_),So=()=>P(["tags"],async()=>await Je.getTags(),_),Lo=e=>{const{isTrigger:t,...n}=e;return P(["meGifs",e],()=>w.fetchUserGifs(n),_)},To=()=>{const e=V();return M(async t=>{const n=t.map(r=>w.deleteGif(r));return await Promise.all(n)},{onSuccess:()=>e.invalidateQueries({queryKey:["meGifs"]})})},Oo=()=>{const e=V();return M(async({ids:t,value:n})=>{const r=t.map(s=>w.patchGif(s,{published:!!n}));return await Promise.all(r)},{onSuccess:()=>e.invalidateQueries({queryKey:["meGifs"]})})},Io=()=>{const e=V();return M(async({ids:t,tags:n})=>{const r=t.map(s=>w.patchGif(s,{tags:n}));return await Promise.all(r)},{onSuccess:()=>e.invalidateQueries({queryKey:["meGifs"]})})},jo=e=>P(["related-gifs-smart",e.gif,e.rel,e.page],async()=>{const t=e.rel.match(/^niche:(.+)/);if(t!==null)return console.debug(`Smart feed source: niche ${t[1]} page=${e.page}.`),await Y.getNicheGifs({id:t[1],page:e.page,count:100,type:void 0,order:e.order||"trending"});const n=e.rel.match(/^tag:([^,]+),([agi])/);if(n!==null)return console.debug(`Smart feed source: tag ${n[1]}, mode=${n[2]} page=${e.page}.`),await w.searchGifs({search_text:n[1],page:e.page,count:100,order:e.order||"trending",verified:e.verified,type:n[2]==="a"?void 0:n[2]});const r=e.rel.match(/^user:(.+)/);if(r!==null){console.debug(`Smart feed source: user ${r[1]} page=${e.page}.`);const i=await W()?(await w.getMe()).username===r[1]:!1,o={order:e.order||"trending",count:100,type:void 0,page:e.page};return i?await w.searchMyGifs(o):await w.searchUserGifs({username:r[1],...o})}const s=e.rel.match(/^c:(.+)/);if(s!==null){const a=e.rel.split(":"),i=await W();let o=!1;return i&&(await w.getMe()).username===a[1]&&(o=!0),console.debug(`Smart feed source: collection ${s[1]} page=${e.page}.`),o?await se.getMyCollectionItems({collectionId:a[2],page:e.page,count:100}):await se.getCollectionItems({userId:a[1],collectionId:a[2],page:e.page,count:100})}return console.debug(`Smart feed source: default, rel=${e.rel} page=${e.page}`),await w.getRelatedGifs({id:e.gif,page:e.page})},_),ko=e=>P(["for-you-feed",e],()=>w.getForYouFeed({page:e.page,count:e.count}),_),No=e=>P(["home-feed-default",e],()=>w.getHomeFeed({page:e.page,count:e.count}),_),Mo=e=>P(["liked-feed",e],()=>w.getLikedFeed({page:e.page,count:e.count,type:e.type}),_),Ao=e=>P(["matchedTags",e],()=>Je.getMatchedTags(e),_),Fo=()=>tt("following-feed",async({pageParam:t=1})=>await w.getFollowing({count:100,page:t}),{getNextPageParam:(t,n)=>t.pagett("followers-feed",async({pageParam:t=1})=>await w.getFollowers({count:100,page:t}),{getNextPageParam:(t,n)=>t.pageM(()=>w.deleteMyAccount()),$o=e=>{const t=async({pageParam:n=1})=>await se.getUserCollections({userId:e.userName,page:n,count:50});return tt(["user-collection",e.isRefetch],t,{getNextPageParam:(n,r)=>n.pageM(e=>se.createCollection(e)),zo=()=>{const e=V();return M(t=>Ut.updateVisitorInfo(t),{onSuccess:()=>{e.invalidateQueries("get-me")}})},Bo=()=>M(e=>w.likeGifById(e)),Vo=()=>M(e=>w.unlikeGifById(e)),Qo=e=>P(["boosted-gifs",e],async()=>await w.getBoostedGifs(e),_),Wo=()=>M(e=>Y.setGifNiches(e)),qo=()=>P(["analytics"],async()=>{try{return await w.getAnalytics()}catch(e){throw Xt(e)}},_),Ko=(e,t={})=>P(["gif-niche",e],async()=>{try{return await w.getGifNiches(e)}catch(n){throw Xt(n)}},{..._,...t}),Ho=e=>{const t=V();return M(n=>Y.editNiche(n),{onSuccess:()=>t.invalidateQueries({queryKey:[Zt,e]})})},Jo=()=>{const e=V();return M(t=>w.followUser(t.username,t.context),{onSuccess:()=>{e.invalidateQueries({queryKey:["following-ids"]})}})},Yo=()=>{const e=V();return M(({id:t,gifParams:n})=>w.patchGif(t,n),{onSuccess:()=>{e.invalidateQueries({queryKey:["meGifs"]})}})},Zo=e=>P(["pins",`pins-${e}`],async()=>await w.getPinGifs(e),{..._}),Xo=()=>{const e=V();return M(t=>w.addPinGif(t),{onSuccess:()=>{e.invalidateQueries({queryKey:["pins"]})}})},el=()=>{const e=V();return M(t=>w.unPinGif(t),{onSuccess:()=>{e.invalidateQueries({queryKey:["pins"]})}})},tl=()=>{const e=V();return M(t=>w.reorderPinGifs(t),{onSuccess:()=>{e.invalidateQueries({queryKey:["pins"]})}})},Xt=e=>{var t;if(e instanceof Rn.AxiosError){if((t=e.response)!=null&&t.data)return e.response.data;console.error("OOPS, unknown axios error.",e.response)}else console.error("OOPS, unknown exception.",e);return{error:{code:"UnknownError",message:"We could not process this request, please try again later.",status:500}}};function en(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}var L=(e=>(e.OpenEventKey="open",e.CloseEventKey="close",e))(L||{});const T=en(),ss=l.lazy(()=>m(()=>import("./PreferencesPopup-4EQeEsW_.js"),__vite__mapDeps([14,1,15,3,4,7,2,8,16,17,18,19,20,21]))),as=l.lazy(()=>m(()=>import("./ChangedEmailPopup-G_XWxw5b.js"),__vite__mapDeps([22,1,15,3,4,7,2,8,16,17,18,23]))),is=l.lazy(()=>m(()=>import("./AuthPopup-dqCOdfYW.js"),__vite__mapDeps([24,1,3,4,15,7,2,8,16,17,18,25,26,27,28,29,30,31,19,20,32,33,11,12,34,35,36,37,38]))),os=l.lazy(()=>m(()=>import("./AddToNichePopupContainer-2RQxHdr9.js"),__vite__mapDeps([39,1,15,3,4,7,2,8,16,17,18,19,20,40]))),ls=l.lazy(()=>m(()=>import("./ReportPopup-itpzuXo4.js"),__vite__mapDeps([41,1,2,16,7,8,17,15,3,4,18,42]))),cs=l.lazy(()=>m(()=>import("./AddToCollectionPopup-wu3kkYC8.js"),__vite__mapDeps([43,1,15,3,4,7,2,8,16,17,18,44,25,29,30,45,46,47,34,48]))),us=l.lazy(()=>m(()=>import("./EditNichePopupContainer-AsLF38pp.js"),__vite__mapDeps([49,1,50,25,3,4,51,2,52,15,7,8,16,17,18,53]))),ds=l.lazy(()=>m(()=>import("./EditNichesDialog-RybFzSQj.js"),__vite__mapDeps([54,1,19,20,2,55]))),fs=l.lazy(()=>m(()=>import("./GifPreferencePopup-1NRAYnlS.js"),__vite__mapDeps([56,1,15,3,4,7,2,8,16,17,18,57,58,59]))),hs=l.lazy(()=>m(()=>import("./ShareGifMenu-k_9Y1zfl.js").then(e=>e.a),__vite__mapDeps([60,1,7,2,8,61,15,3,4,16,17,18,62,63,33,64,65]))),ps=l.lazy(()=>m(()=>import("./MoreMenuContainer-BNeqH-Q1.js"),__vite__mapDeps([66,1,2,63,33,64,67]))),ms=l.lazy(()=>m(()=>import("./CookieNoticeWrapper-t04Y-FFg.js"),__vite__mapDeps([68,1,2,69]))),gs=l.lazy(()=>m(()=>import("./EditGifPopup-aNaJr-D1.js"),__vite__mapDeps([70,1,7,2,8,16,17,32,33,11,12,34,35,57,58,71,3,4,45,46,72,73,74,75])));var I=(e=>(e.Preferences="preferences",e.ChangedEmail="changedEmail",e.Auth="auth",e.AddNiche="addNiche",e.Report="report",e.AddCollection="addCollection",e.EditNiche="editNiche",e.EditGifNiches="editGifNiches",e.EditGifPreferences="editGifPreferences",e.ShareGif="shareGif",e.MoreMenu="moreMenu",e.CookieNotice="cookieNotice",e.EditGif="editGif",e))(I||{});const vs={preferences:ss,changedEmail:as,auth:is,addNiche:os,report:ls,addCollection:cs,editNiche:us,editGifNiches:ds,editGifPreferences:fs,shareGif:hs,moreMenu:ps,cookieNotice:ms,editGif:gs},ys="_loaderWrapper_16tha_1",ws="_loader_16tha_1",Es="_loaderAnimation_16tha_1",xt={loaderWrapper:ys,loader:ws,loaderAnimation:Es},tn=()=>u.jsx("div",{className:xt.loaderWrapper,children:u.jsxs("div",{className:xt.loader,children:[u.jsx("div",{}),u.jsx("div",{}),u.jsx("div",{}),u.jsx("div",{})]})}),Cs="_Backdrop_g568a_1",xs={Backdrop:Cs},bs=({children:e})=>(l.useEffect(()=>{if(document.body)return document.body.classList.add("noScroll"),()=>{document.body.classList.remove("noScroll")}},[]),u.jsx("div",{className:xs.Backdrop,children:e})),_s=()=>{const{isFullScreen:e}=ye(i=>i.application,Xe),[t,n]=l.useState([]),r=l.useMemo(()=>t.map(({name:i,...o})=>{const c=vs[i];return u.jsx(c,{...o},i)}),[t]),s=l.useCallback(i=>{n(o=>{const c=o.findIndex(({name:f})=>f===i.name),d=[...o];return c!==-1?d[c]=i:d.push(i),d})},[]),a=l.useCallback(i=>{n(o=>{const c=o.findIndex(({name:f})=>f===i.name);if(c===-1)return o;const d=[...o];return d.splice(c,1),d})},[]);return l.useEffect(()=>{n([])},[e]),l.useEffect(()=>{T.on(L.OpenEventKey,s),T.on(L.CloseEventKey,a)},[s,a]),u.jsx(l.Suspense,{fallback:u.jsx(bs,{children:u.jsx(tn,{})}),children:r})},Ps=()=>{T.emit(L.OpenEventKey,{name:I.Preferences})},nl=()=>{T.emit(L.CloseEventKey,{name:I.Preferences})},Rs=()=>{T.emit(L.OpenEventKey,{name:I.ChangedEmail})},rl=()=>{T.emit(L.CloseEventKey,{name:I.ChangedEmail})},nn=(e={})=>{T.emit(L.OpenEventKey,{name:I.Auth,...e})},sl=()=>{T.emit(L.CloseEventKey,{name:I.Auth})},al=e=>{T.emit(L.OpenEventKey,{name:I.AddNiche,...e})},il=()=>{T.emit(L.CloseEventKey,{name:I.AddNiche})},ol=e=>{T.emit(L.OpenEventKey,{name:I.Report,...e})},ll=()=>{T.emit(L.CloseEventKey,{name:I.Report})},cl=e=>{T.emit(L.OpenEventKey,{name:I.AddCollection,...e})},ul=()=>{T.emit(L.CloseEventKey,{name:I.AddCollection})},dl=e=>{T.emit(L.OpenEventKey,{name:I.EditNiche,...e})},fl=()=>{T.emit(L.CloseEventKey,{name:I.EditNiche})},hl=e=>{T.emit(L.OpenEventKey,{name:I.EditGifNiches,...e})},pl=()=>{T.emit(L.CloseEventKey,{name:I.EditGifNiches})},ml=e=>{T.emit(L.OpenEventKey,{name:I.EditGifPreferences,...e})},gl=()=>{T.emit(L.CloseEventKey,{name:I.EditGifPreferences})},vl=e=>{T.emit(L.OpenEventKey,{name:I.ShareGif,...e})},yl=()=>{T.emit(L.CloseEventKey,{name:I.ShareGif})},wl=e=>{T.emit(L.OpenEventKey,{name:I.MoreMenu,...e})},El=()=>{T.emit(L.CloseEventKey,{name:I.MoreMenu})},Ss=()=>{T.emit(L.OpenEventKey,{name:I.CookieNotice})},Cl=()=>{T.emit(L.CloseEventKey,{name:I.CookieNotice})},xl=e=>{T.emit(L.OpenEventKey,{name:I.EditGif,...e})},bl=()=>{T.emit(L.CloseEventKey,{name:I.EditGif})},Ls=()=>{const{data:e}=rs();l.useEffect(()=>{console.debug("Visitor info changes, checking for preferences."),!(!e||!e.preferences)&&e.preferences.length===0&&(Ps(),console.debug("Showing the preferences dialog."))},[e])},Ts=()=>{l.useEffect(()=>{new URLSearchParams(window.location.search).get("message")&&Rs()},[])},Os=()=>{const e=ue();l.useEffect(()=>{e(Sn())},[e])},Is=()=>{l.useEffect(()=>{const e=t=>{t.button===3&&window.history.back(),t.button===4&&window.history.forward()};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[])},js=()=>{l.useEffect(()=>{document.head.querySelectorAll("title").length===0&&(document.title="")},[])},ks=()=>{const e=ue(),t=l.useCallback(n=>{n.code==="Escape"&&e(Ln())},[e]);l.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t])},Ee=en();var rn=void 0,Ns=function(){return new Promise(function(e,t){var n="Unknown";function r(b){e({isPrivate:b,browserName:n})}function s(){var b=navigator.userAgent;return b.match(/Chrome/)?navigator.brave!==void 0?"Brave":b.match(/Edg/)?"Edge":b.match(/OPR/)?"Opera":"Chrome":"Chromium"}function a(b){return b===eval.toString().length}function i(){var b=navigator.vendor;return b!==void 0&&b.indexOf("Apple")===0&&a(37)}function o(){var b=navigator.vendor;return b!==void 0&&b.indexOf("Google")===0&&a(33)}function c(){return document.documentElement!==void 0&&document.documentElement.style.MozAppearance!==void 0&&a(37)}function d(){return navigator.msSaveBlob!==void 0&&a(39)}function f(){var b=String(Math.random());try{var N=window.indexedDB.open(b,1);N.onupgradeneeded=function(j){var z,ie,ee=(z=j.target)===null||z===void 0?void 0:z.result;try{ee.createObjectStore("test",{autoIncrement:!0}).put(new Blob),r(!1)}catch(K){var A=K;if(K instanceof Error&&(A=(ie=K.message)!==null&&ie!==void 0?ie:K),typeof A!="string")return r(!1);var Me=/BlobURLs are not yet supported/.test(A);return r(Me)}finally{ee.close(),window.indexedDB.deleteDatabase(b)}}}catch{return r(!1)}}function h(){var b=window.openDatabase,N=window.localStorage;try{b(null,null,null,null)}catch{return r(!0)}try{N.setItem("test","1"),N.removeItem("test")}catch{return r(!0)}return r(!1)}function p(){navigator.maxTouchPoints!==void 0?f():h()}function x(){var b=window;return b.performance!==void 0&&b.performance.memory!==void 0&&b.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824}function g(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(b,N){var j=Math.round(N/1048576),z=Math.round(x()/(1024*1024))*2;r(j(e.Collections="collections",e.Embed="embed",e.Explore="explore",e.Favourites="favourites",e.ForYou="foryou",e.Main="main",e.Niche="niche",e.Other="other",e.Profile="profile",e.Related="related",e.Search="search",e))(Ms||{});class As{async init(){await this.isPrivate()&&await this.sendSessionStartPrivate()}async sendAddedToCollection(t){await this.sendRawEvent({event:"addedToCollection",gifId:t.gif})}async sendAdLoaded(t){await this.sendRawEvent({event:"AdLoaded",isAdLoaded:t})}async sendEncodingFinished(){await this.sendRawEvent({event:"encodingFinished"})}async sendEncodingStarted(t){await this.sendRawEvent({event:"encodingStarted",sourceUrl:t.sourceURL})}async sendFollowUserClicked(t){await this.sendRawEvent({event:"followClicked",username_clicked:t.userName,username_owner:await this.getUserName()})}async sendGifClick(t){await this.sendRawEvent({event:"gifClick",source:t.source,position:t.position})}async sendGifView(t){await this.sendRawEvent({event:"gifView",gifId:t.gifId,tags:t.tags,source:t.source}),await this.sendPixelGifView({gifId:t.gifId,position:t.position,source:t.source,boosted:t.boosted,userName:t.userName})}async sendMeaningfulGifView(t){await this.sendRawEvent({event:"meaningfulGifView",gifId:t.gifId})}async sendLiked(t){await this.sendRawEvent({event:"liked",gifId:t.gif})}async sendMenuButtonClicked(t){await this.sendRawEvent({event:"menuButtonClicked",buttonName:t.name,pageType:t.pageType,category:t.category})}async sendProfileView(t){await this.sendRawEvent({event:"profileView",username_clicked:await this.getUserName(),username_owner:t.userName})}async sendSearch(t){await this.sendRawEvent({event:"search",query:t.query,count:t.totalCount,pageType:t.pageType,category:t.category})}async sendSignUpFormView(){await this.sendRawEvent({event:"signUpView"})}async sendSignUpSuccessful(){await this.sendRawEvent({event:"signUpSuccess"})}async sendSocialProfileClick(t){await this.sendRawEvent({event:"socialProfileClicked",username_clicked:await this.getUserName(),username_owner:t.userName})}async sendTagClicked(t){await this.sendRawEvent({event:"tagClicked",tagName:t.tag,pageType:t.pageType,category:t.category})}async sendUploadFinisher(t){await this.sendRawEvent({event:"uploadFinished",source:t.sourceURL})}async sendUploadStarted(t){await this.sendRawEvent({event:"uploadStarted",context:t.context})}async sendUploadUrlSelected(){await this.sendRawEvent({event:"uploadUrlSelected"})}async sendUploadImageSelected(){await this.sendRawEvent({event:"uploadImageSelected"})}async sendUploadImageConfirmed(){await this.sendRawEvent({event:"uploadImageConfirmed"})}async sendUploadVideoSelected(){await this.sendRawEvent({event:"uploadVideoSelected"})}async sendUploadVideoTrim(){await this.sendRawEvent({event:"uploadVideoTrim"})}async sendUploadVideoConfirmed(){await this.sendRawEvent({event:"uploadVideoConfirmed"})}async sendUploadAudienceDefined(){await this.sendRawEvent({event:"uploadAudienceDefined"})}async sendUploadTagsSelected(){await this.sendRawEvent({event:"uploadTagsSelected"})}async sendUploadGetVerifiedClicked(){await this.sendRawEvent({event:"uploadGetVerifiedClicked"})}async sendUploadPublished(){await this.sendRawEvent({event:"uploadPublished"})}async sendUploadMultipleConfirmed(){await this.sendRawEvent({event:"uploadMultipleConfirmed"})}async sendUploadVideoDropped(){await this.sendRawEvent({event:"uploadVideoDropped"})}async sendUploadImageDropped(){await this.sendRawEvent({event:"uploadImageDropped"})}async sendUploadImagesDropped(){await this.sendRawEvent({event:"uploadImagesDropped"})}async sendOptionClick(){await this.sendRawEvent({event:"optionClick"})}async sendShareClick(){await this.sendRawEvent({event:"shareClick"})}async sendShareCopy(){await this.sendRawEvent({event:"shareCopy"})}async sendShareEmbed(){await this.sendRawEvent({event:"shareEmbed"})}async sendShareReddit(){await this.sendRawEvent({event:"shareReddit"})}async sendShareTwitter(){await this.sendRawEvent({event:"shareTwitter"})}async sendShareDiscord(){await this.sendRawEvent({event:"shareDiscord"})}async sendShareEmbedFixed(){await this.sendRawEvent({event:"shareEmbedFixed"})}async sendShareEmbedResponsive(){await this.sendRawEvent({event:"shareEmbedResponsive"})}async sendEnterFullscreen(){await this.sendRawEvent({event:"enterFullscreen"})}async sendScrollPromptShow(){await this.sendRawEvent({event:"scrollPromptShow"})}async sendScrollPromptDismiss(){await this.sendRawEvent({event:"scrollPromptDismiss"})}async sendUploadBulkClick(){await this.sendRawEvent({event:"uploadBulkClick"})}async sendSessionStartPrivate(){await this.sendRawEvent({event:"sessionStartPrivate"})}async sendRawEvent(t){window.dataLayer=window.dataLayer?window.dataLayer:[],t.userLogIn=await this.isUserLoggedIn(),t.userName=await this.getUserName(),t.experiments=await this.getExperiments(),t.userVerified=await this.getUserVerifiedStatus(),t.fullscreen=this.isFullscreen(),t.isPrivate=await this.isPrivate(),window.dataLayer.push(t)===!0?console.warn(`[GTM] Event not set, make sure that "${t.event}" is added properly in the console here: https://tagmanager.google.com/#/container/accounts/6000141753/containers/30150878/workspaces/20/tags`,t):console.debug("[GTM] Event sent.",t)}async isUserLoggedIn(){try{return await W()}catch{return console.warn("[GTM] Could not tell if the user is authenticated, assuming no."),!1}}async getExperiments(){const t=Tn();if(t)return Object.keys(t).filter(r=>t[r]===!0);const n=await w.getExperiments();return n?Object.keys(n).filter(r=>n[r]):[]}async sendPixelGifView(t){try{await w.sendGifMetrics({event:"view",gif:t.gifId,position:t.position,source:t.source,boosted:t.boosted,username:t.userName})}catch{console.error("Error sending metrics.")}}async sendGifPlayback(t){try{await w.sendGifMetrics({event:"playback",username:await this.getUserName(),duration:t.duration,gif:t.gif,source:t.context})}catch{console.error("Error sending metrics.")}}async getUserName(){return await this.isUserLoggedIn()?w.getUserName():null}async getUserVerifiedStatus(){return await this.isUserLoggedIn()?w.getUserVerifiedStatus():null}isFullscreen(){var t,n;return!!((n=(t=document==null?void 0:document.body)==null?void 0:t.classList)!=null&&n.contains("fullScreen"))}async isPrivate(){try{const{isPrivate:t}=await rn();return t}catch{return!1}}}const fe=new As;var $={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},bt=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],_t=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],Pt=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],D=typeof window<"u"&&typeof window.document<"u"?window.document:{},B="fullscreenEnabled"in D&&Object.keys($)||bt[0]in D&&bt||_t[0]in D&&_t||Pt[0]in D&&Pt||[],Fs={requestFullscreen:function(e){return e[B[$.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[B[$.requestFullscreen]]},get exitFullscreen(){return D[B[$.exitFullscreen]].bind(D)},get fullscreenPseudoClass(){return":"+B[$.fullscreen]},addEventListener:function(e,t,n){return D.addEventListener(B[$[e]],t,n)},removeEventListener:function(e,t,n){return D.removeEventListener(B[$[e]],t,n)},get fullscreenEnabled(){return!!D[B[$.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return D[B[$.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return D[("on"+B[$.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return D[("on"+B[$.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return D[("on"+B[$.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return D[("on"+B[$.fullscreenerror]).toLowerCase()]=e}};const Q=Fs,Us=()=>{const{isFullScreen:e}=ye(o=>o.application,Xe),t=l.useRef(null),n=ue(),r=q(),s=l.useCallback(()=>{var o;t.current!==null&&((o=document.querySelector(`#${t.current}`))==null||o.scrollIntoView())},[]),a=l.useCallback(()=>{const o=Q.fullscreenElement!==null;n(Ae(o)),o&&console.debug("Entered fullscreen mode")},[n]),i=l.useCallback(o=>{console.debug("Fullscreen Error",o)},[]);l.useEffect(()=>{if(Q.fullscreenEnabled)return Q.addEventListener("fullscreenchange",a,!1),Q.addEventListener("fullscreenerror",i,!1),window.addEventListener("resize",s,!1),()=>{Q.removeEventListener("fullscreenchange",a),Q.removeEventListener("fullscreenerror",i),window.removeEventListener("resize",s)}},[a,i,s]),l.useEffect(()=>{e&&fe.sendEnterFullscreen(),s()},[e,s]),l.useEffect(()=>{const o=c=>{if(!e||t.current===null)return;const d=document.querySelector(`#${t.current}`);if(!d)return;const f=d.parentElement;if(f)switch(c.key){case"ArrowDown":c.preventDefault(),f.scrollBy({top:window.innerHeight,behavior:"smooth"});break;case"ArrowUp":c.preventDefault(),f.scrollBy({top:-window.innerHeight,behavior:"smooth"});break}};return window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}},[e]),l.useEffect(()=>()=>{if(Q.fullscreenEnabled||n(Ae(!1)),document.fullscreenElement&&document.hasFocus())try{Q.exitFullscreen()}catch(o){console.error(`Could not exit fullscreen: ${o}`)}},[n,r]),l.useEffect(()=>{const o=()=>{try{Q.requestFullscreen(document.body)}catch(h){console.error(`Could not enter fullscreen: ${h}`)}},c=()=>{if(document.hasFocus()&&document.fullscreenElement)try{Q.exitFullscreen()}catch(h){console.error(`Could not exit fullscreen: ${h}`)}},d=({id:h})=>{t.current=`gif_${h}`,Q.fullscreenEnabled?e?c():o():n(Ae(!e))},f=({id:h})=>{t.current=`gif_${h}`};return Ee.on("toggle_fullscreen",d),Ee.on("set_playing_gif",f),()=>{Ee.off("toggle_fullscreen",d),Ee.off("set_playing_gif",f)}},[e,n])},Ds=1e3,$s=()=>{l.useEffect(()=>{setTimeout(()=>{try{if(window.location.pathname.indexOf("/ifr/")===0)return;On()===null&&Ss()}catch{console.error("Local storage not available, not showing the cookie notice.")}},Ds)},[])},Gs=()=>(Os(),Xr(),Ls(),Ts(),Zr(),Is(),js(),ks(),Us(),$s(),null),zs=l.lazy(()=>m(()=>import("./AccountSettingsPage-fZ5P9kU9.js"),__vite__mapDeps([76,1,73,74,2,25,77,78,79,80,81,82,83,84,85,86,7,8,87,88,89,90,28,3,4,29,30,31,15,16,17,18,91,92,93,94,95,19,20,96,97]))),Bs=l.lazy(()=>m(()=>import("./AnalyticsPage-HJQxgf6l.js"),__vite__mapDeps([98,1,2,73,74,99,100,101]))),Rt=l.lazy(()=>m(()=>import("./CategoriesPage-R3Zzz9-b.js"),__vite__mapDeps([102,1,2,96,78,79,83,84,103,104,7,8,16,17,105,106,11,12,107,73,74,108,109,110,92,93,94,111,91,95,33,112]))),Vs=l.lazy(()=>m(()=>import("./CollectionItemsPage-prixTO4G.js"),__vite__mapDeps([113,1,2,114,115,92,93,94,116,78,79,89,86,7,8,90,83,84,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,128,129,63,33,64,25,15,3,4,18,80,73,74,91,95,60,61,62,65,130]))),Qs=l.lazy(()=>m(()=>import("./CollectionsPage-Y3l2eo8W.js"),__vite__mapDeps([131,1,7,2,8,16,17,128,129,34,45,46,44,25,15,3,4,18,29,30,47,123,124,84,79,91,92,93,94,95,73,74]))),Ws=l.lazy(()=>m(()=>Promise.resolve().then(()=>Qi),void 0)),qs=l.lazy(()=>m(()=>import("./EmbedPage-UMhTpcCe.js"),__vite__mapDeps([132,1,61,15,3,4,7,2,8,16,17,18,62,133,134,135]))),Ks=l.lazy(()=>m(()=>import("./ExploreCreatorsPage-24TCo5fo.js"),__vite__mapDeps([136,1,34,2,7,8,16,17,105,106,123,124,84,79,117,78,96,83,118,81,82,85,86,87,119,120,121,137,89,90,73,74,93,110,92,94,111,138]))),Hs=l.lazy(()=>m(()=>import("./ExploreGifsPage-InHtWXlB.js"),__vite__mapDeps([139,1,110,92,93,2,94,111,137,78,79,89,86,7,8,90,83,84,114,115,116,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,73,74,140]))),Js=l.lazy(()=>m(()=>import("./ExploreImagesPage-QRo47ElU.js"),__vite__mapDeps([141,1,137,78,2,79,89,86,7,8,90,83,84,114,115,92,93,94,116,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,104,105,106,11,12,107,73,74,110,111,142]))),Ys=l.lazy(()=>m(()=>import("./ExploreNichesPage-h4j8AfkS.js"),__vite__mapDeps([143,1,137,78,2,79,89,86,7,8,90,83,84,73,74,91,92,93,94,95,110,111,144,105,106,16,17,11,12,123,124,15,3,4,18,50,25,51,52,145,118,81,82,85,87,119,120,146]))),Zs=l.lazy(()=>m(()=>import("./ExplorePage-csVRyCr6.js"),__vite__mapDeps([147,1,2,148,103,104,7,8,16,17,105,106,11,12,107,73,74,108,149,122,123,124,19,20,125,109,110,92,93,94,111,91,95,150]))),Xs=l.lazy(()=>m(()=>import("./FavouritesPage-p7pBZRs1.js"),__vite__mapDeps([151,1,2,114,115,92,93,94,116,78,79,89,86,7,8,90,83,84,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,152,153,91,95,110,111,73,74,154]))),ea=l.lazy(()=>m(()=>import("./FollowingPage-PRT6WsTF.js").then(e=>e.F),__vite__mapDeps([155,1,152,7,2,8,16,17,153,91,92,93,94,95,73,74,88,78,79,89,86,90,83,84,34,105,106,156]))),ta=l.lazy(()=>m(()=>import("./FollowingPage-PRT6WsTF.js").then(e=>e.a),__vite__mapDeps([155,1,152,7,2,8,16,17,153,91,92,93,94,95,73,74,88,78,79,89,86,90,83,84,34,105,106,156]))),Ue=l.lazy(()=>m(()=>import("./HomePage-kaN_GYzG.js"),__vite__mapDeps([157,1,110,92,93,2,94,111,158,159,115,116,148,103,104,7,8,16,17,105,106,11,12,107,73,74,108,149,109,160,161,123,124,162,163,3,4,133,134,33,9,10,164,165]))),na=l.lazy(()=>m(()=>import("./index-CCzw6Pkl.js"),__vite__mapDeps([166,1,73,74,7,2,8,16,17,86,78,79,85,82,83,84,87,90,96,36,37,19,20,158,159,91,92,93,94,95,167,168]))),ra=l.lazy(()=>m(()=>import("./MigrateImgurSuccessPage-7ZCmeAfX.js").then(e=>e.M),__vite__mapDeps([169,1,2,3,4,73,74,170]))),sa=l.lazy(()=>m(()=>import("./MigrateImgurSuccessPage-7ZCmeAfX.js").then(e=>e.a),__vite__mapDeps([169,1,2,3,4,73,74,170]))),aa=l.lazy(()=>m(()=>import("./MigrateImgurSuccessPage-7ZCmeAfX.js").then(e=>e.b),__vite__mapDeps([169,1,2,3,4,73,74,170]))),ia=l.lazy(()=>m(()=>import("./MyNichesPage-tquvNqoj.js"),__vite__mapDeps([171,1,144,105,106,7,2,8,16,17,11,12,73,74,123,124,15,3,4,18,50,25,51,52,145,152,153,117,78,79,96,83,84,118,81,82,85,86,87,119,120,121,91,92,93,94,95,172]))),oa=l.lazy(()=>m(()=>import("./NichePage-7bAOm0Kw.js"),__vite__mapDeps([173,1,2,15,3,4,7,8,16,17,18,86,78,79,87,85,82,83,84,174,96,81,119,175,114,115,92,93,94,116,89,90,117,118,120,121,34,122,123,124,19,20,125,126,127,160,73,74,176]))),la=l.lazy(()=>m(()=>import("./DMCAPage-VvfPk3Ld.js").then(e=>e.b),__vite__mapDeps([177,1,73,74,91,92,93,2,94,95,78,79,87]))),ca=l.lazy(()=>m(()=>import("./ProfileSettingsPage-dk5OWWPY.js"),__vite__mapDeps([178,1,2,25,88,78,79,89,86,7,8,90,83,84,77,80,81,82,85,87,91,92,93,94,95,179,99,100,180,181,182,174,96,3,4,119,175,73,74,183,16,17,184]))),ua=l.lazy(()=>m(()=>import("./DMCAPage-VvfPk3Ld.js").then(e=>e.c),__vite__mapDeps([177,1,73,74,91,92,93,2,94,95,78,79,87]))),da=l.lazy(()=>m(()=>import("./SudoPage-mpq6EdZU.js"),__vite__mapDeps([185,1,73,74,2,186]))),fa=l.lazy(()=>m(()=>import("./TagPage-YppdVXz0.js"),__vite__mapDeps([187,1,114,115,92,93,2,94,116,78,79,89,86,7,8,90,83,84,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,160,73,74,110,111,91,95,188]))),ha=l.lazy(()=>m(()=>Promise.resolve().then(()=>Wi),void 0)),pa=l.lazy(()=>m(()=>import("./VerifyPage-vMD44e-8.js"),__vite__mapDeps([189,1,179,99,100,180,181,15,3,4,7,2,8,16,17,18,91,92,93,94,95,190]))),ma=l.lazy(()=>m(()=>import("./TermsPage-T23BLdy4.js"),__vite__mapDeps([191,1,73,74,177,91,92,93,2,94,95,78,79,87]))),ga=l.lazy(()=>m(()=>import("./DMCAPage-VvfPk3Ld.js").then(e=>e.G),__vite__mapDeps([177,1,73,74,91,92,93,2,94,95,78,79,87]))),va=l.lazy(()=>m(()=>import("./FAQPage-ofEgCTCj.js"),__vite__mapDeps([192,1,73,74,96,2,78,79,83,84,177,91,92,93,94,95,87,82]))),ya=l.lazy(()=>m(()=>import("./DMCAPage-VvfPk3Ld.js").then(e=>e.D),__vite__mapDeps([177,1,73,74,91,92,93,2,94,95,78,79,87]))),wa=l.lazy(()=>m(()=>import("./UnsubscribedPage-ndVJr_to.js").then(e=>e.U),__vite__mapDeps([73,1,74]))),Ea=l.lazy(()=>m(()=>import("./UploadPage-6VdYjGRE.js").then(e=>e.U),__vite__mapDeps([193,1,2,78,79,51,26,27,167,83,84,16,7,8,17,180,71,3,4,45,46,72,126,82,86,81,85,87,96,32,33,11,12,34,35,57,58,15,18,80,194]))),Ca=l.lazy(()=>m(()=>import("./UserPage-7ZEFq6PW.js"),__vite__mapDeps([195,1,115,92,93,2,94,116,114,78,79,89,86,7,8,90,83,84,117,96,118,81,82,85,87,119,120,16,17,121,34,122,123,124,19,20,125,126,127,162,163,182,174,3,4,175,73,74,99,100,180,183,110,111,196,197,198]))),xa=l.lazy(()=>m(()=>import("./WatchPage-kG48OQG7.js"),__vite__mapDeps([199,1,110,92,93,2,94,111,115,116,103,104,7,8,16,17,105,106,11,12,107,73,74,108,196,197,160,161,123,124,162,163,3,4,133,134,33,9,10,164,200]))),ba=l.lazy(()=>m(()=>import("./AuthorizePage-R24ZluBJ.js"),__vite__mapDeps([201,1,3,4,2,202]))),_a=l.lazy(()=>m(()=>import("./ExperimentsPage-duEroOio.js"),__vite__mapDeps([203,1,7,2,8,16,17,3,4,204]))),Pa=l.lazy(()=>m(()=>import("./ManageAdSlotsPage-U_pt-zI9.js"),__vite__mapDeps([205,1,73,74,19,20,3,4,93,2,206]))),U=({children:e})=>{const t=ue(),[n,r]=l.useState(!1);return l.useEffect(()=>{(async()=>await W()?r(!0):nn())()},[t]),n?u.jsx(l.Fragment,{children:e}):null},sn=e=>{const t=[];for(const n in e)n&&e[n]&&t.push(n);return t.length===0?"":t.join(" ")},an=e=>e?e[0]===":"?e:e.toString().trim().replace(/[^a-z\d]+/gi,"-").toLowerCase():"undefined",Ra=e=>e.map(t=>an(t)).join(","),Sa=e=>e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "),_l=e=>e.split(",").map(t=>Sa(t)),Pl=e=>e?e.split(";")[0].replace(/,([agi])$/,""):null,La=(e,t="",n="")=>`/browse/${e}${t||n?"?":""}${t?`sort=${t}`:""}${n?`${t?"&":""}type=${n}`:""}`,oe=(e,t)=>{const n=new URLSearchParams;return e&&n.append("order",e),t&&n.append("verified","1"),n.toString().length?`?${n.toString()}`:""},C={accountSettings:()=>"/settings/account",collection:(e,t)=>`/users/${e}/collections/${t}`,crash:()=>"/crash",create:()=>"/create",dashboard:()=>"/dashboard",dmca:()=>"/dmca",embed:e=>`/ifr/${e}`,explore:()=>"/explore",exploreCreators:(e,t)=>`/creators${oe(e,t)}`,exploreImages:(e,t)=>`/explore/images${oe(e,t)}`,exploreTop:(e,t)=>`/explore/top${oe(e,t)}`,favourites:()=>"/gifs/favourites",faq:()=>"/faq",following:()=>"/following",followers:()=>"/followers",guidelines:()=>"/guidelines",home:e=>`/${e?`?video=${e}`:""}`,login:()=>"/login",manageProfile:(e,t)=>{const n=new URLSearchParams;return e&&n.append("tab",e),t&&n.append("count",t),`/profile/manage${n.toString().length?`?${n.toString()}`:""}`},migrateImgur:()=>"/migrate/imgur",migrateImgurConfirm:()=>"/migrate/imgur/confirm",migrateImgurSuccess:()=>"/migrate/imgur/success",myNiches:()=>"/niches/my",niche:(e,t)=>`/niches/${e}${oe(t)}`,niches:()=>"/niches",privacyPolicy:()=>"/privacy",profileSettings:()=>"/settings/profile",search:La,signup:()=>"/signup",singleTag:(e,t,n)=>`/gifs/${an(e)}${oe(t,n)}`,multipleTag:(e,t,n)=>`/gifs/${Ra(e)}${oe(t,n)}`,statement2257:()=>"/notice2257",sudo:()=>"/sudo",terms:()=>"/terms",trendingTags:()=>"/categories",trendingTagsA:e=>`/categories/${e}`,unsubscribed:()=>"/unsubscribed",user:(e,t)=>`/users/${e}${oe(t)}`,userCollections:e=>`/users/${e}/collections`,verify:()=>"/user/verify",authorize:()=>"/authorize",experiments:()=>"/experiments",watch:(e,t,n,r,s)=>{const a=t?`#rel=${encodeURIComponent(t)}`:"",i=n?`?source=${n}`:"",o=r?`;order=${r}`:"",c=s?`;verified=${s}`:"",d=a?`${a}${o}${c}`:`${i}`;return`/watch/${e}${d}`},manageAdSlots:()=>"/admin/ads"},Ta=()=>{const e=ye(t=>{var n;return(n=t.user.currentUser)==null?void 0:n.username});return u.jsx(l.Suspense,{fallback:u.jsx(tn,{}),children:u.jsxs(Ir,{children:[u.jsx(y,{path:C.crash(),element:u.jsx(Ws,{})}),u.jsx(y,{path:C.dashboard(),element:u.jsx(U,{children:u.jsx(Bs,{})})}),u.jsx(y,{path:C.watch(":id"),element:u.jsx(xa,{})}),u.jsx(y,{path:C.embed(":id"),element:u.jsx(qs,{})}),u.jsxs(y,{path:C.home(),element:u.jsx(Ue,{}),children:[u.jsx(y,{path:":videoId",element:u.jsx(Ue,{})}),u.jsx(y,{path:"",element:u.jsx(Ue,{})})]}),u.jsx(y,{path:C.explore(),element:u.jsx(Zs,{})}),u.jsx(y,{path:C.exploreCreators(),element:u.jsx(Ks,{})}),u.jsx(y,{path:C.exploreImages(),element:u.jsx(Js,{})}),u.jsx(y,{path:C.exploreTop(),element:u.jsx(Hs,{})}),u.jsx(y,{path:C.niches(),element:u.jsx(Ys,{})}),u.jsx(y,{path:C.migrateImgur(),element:u.jsx(U,{children:u.jsx(ra,{})})}),u.jsx(y,{path:C.migrateImgurConfirm(),element:u.jsx(U,{children:u.jsx(sa,{})})}),u.jsx(y,{path:C.migrateImgurSuccess(),element:u.jsx(U,{children:u.jsx(aa,{})})}),u.jsx(y,{path:C.myNiches(),element:u.jsx(U,{children:u.jsx(ia,{})})}),u.jsx(y,{path:C.favourites(),element:u.jsx(Xs,{})}),u.jsx(y,{path:C.niche(":id"),element:u.jsx(oa,{})}),u.jsx(y,{path:C.user(":id"),element:u.jsx(Ca,{})}),u.jsx(y,{path:C.userCollections(":userId"),element:u.jsx(Qs,{})}),u.jsx(y,{path:C.collection(":userId",":id"),element:u.jsx(Vs,{})}),u.jsx(y,{path:C.following(),element:u.jsx(U,{children:u.jsx(ta,{userName:e})})}),u.jsx(y,{path:C.followers(),element:u.jsx(U,{children:u.jsx(ea,{userName:e})})}),u.jsx(y,{path:C.singleTag(":tag"),element:u.jsx(fa,{})}),u.jsx(y,{path:C.trendingTags(),element:u.jsx(Rt,{})}),u.jsx(y,{path:C.trendingTagsA(":letter"),element:u.jsx(Rt,{})}),u.jsx(y,{path:C.create(),element:u.jsx(Ea,{})}),u.jsx(y,{path:C.manageProfile(),element:u.jsx(U,{children:u.jsx(na,{})})}),u.jsx(y,{path:C.accountSettings(),element:u.jsx(U,{children:u.jsx(zs,{})})}),u.jsx(y,{path:C.profileSettings(),element:u.jsx(U,{children:u.jsx(ca,{})})}),u.jsx(y,{path:C.verify(),element:u.jsx(U,{children:u.jsx(pa,{})})}),u.jsx(y,{path:C.unsubscribed(),element:u.jsx(wa,{})}),u.jsx(y,{path:C.authorize(),element:u.jsx(U,{children:u.jsx(ba,{})})}),u.jsx(y,{path:C.experiments(),element:u.jsx(_a,{})}),u.jsx(y,{path:C.sudo(),element:u.jsx(U,{children:u.jsx(da,{})})}),u.jsx(y,{path:C.manageAdSlots(),element:u.jsx(U,{children:u.jsx(Pa,{})})}),u.jsx(y,{path:C.guidelines(),element:u.jsx(ga,{})}),u.jsx(y,{path:C.faq(),element:u.jsx(va,{})}),u.jsx(y,{path:C.terms(),element:u.jsx(ma,{})}),u.jsx(y,{path:C.statement2257(),element:u.jsx(ua,{})}),u.jsx(y,{path:C.dmca(),element:u.jsx(ya,{})}),u.jsx(y,{path:C.privacyPolicy(),element:u.jsx(la,{})}),u.jsx(y,{path:C.login(),element:u.jsx(ha,{})}),u.jsx(y,{path:"*",element:u.jsx(Tr,{to:C.home()})})]})})},Oa=e=>{const t=q();return l.useEffect(()=>{window.scrollTo(0,0)},[t]),u.jsx(u.Fragment,{children:e.children})},Ia=10,ja=({wrapperRef:e})=>{const t=l.useRef(0),n=l.useCallback(()=>{var c;const r=((c=e==null?void 0:e.current)==null?void 0:c.scrollTop)??0,s=t.current<0?0:t.current;if(Math.abs(r-s)<=Ia)return;const i=r>s;t.current=r;const o=document.querySelector("#root");o!==null&&(i?o.classList.add("scrolled"):o.classList.remove("scrolled"))},[e]);l.useEffect(()=>{const r=e.current;if(r)return r.addEventListener("scroll",n),()=>{r.removeEventListener("scroll",n)}},[e,n])},ka=()=>{const e=l.useRef(null);return ja({wrapperRef:e}),u.jsx(Oa,{children:u.jsx("div",{className:"Wrapper",id:"scrollableDiv",ref:e,children:u.jsx("div",{className:"routeWrapper",children:u.jsx(Ta,{})})})})},on=5,ln=1e3,Na=()=>{window.TsMasterSpot=(e,t)=>{const n=t||1;n>on||setTimeout(()=>{console.debug("[ads] TsMasterSpot didn't load. Waiting",n),window.TsMasterSpot(e,n+1)},ln)}},Ma=()=>{window.NativeAd=(e,t)=>{const n=t||1;n>on||setTimeout(()=>{console.debug("[ads] NativeAd didn't load. Waiting",n),window.NativeAd(e,n+1)},ln)}},Aa=()=>{window.adnLoaded=[]},Fa=()=>In()==="yes",Ua=1e3,Da=({cb:e})=>{try{if(typeof window.goCtrl>"u"&&window.location.pathname.indexOf("/ifr/")!==0){const t=document.createElement("script");t.async=!0,t.onload=e,t.onerror=n=>{fe.sendAdLoaded(!1),console.debug("[ads] eaCtrl not found -- ads blocked?",n)},t.src="/assets/js/goCtrl.js",document.head.appendChild(t)}}catch(t){fe.sendAdLoaded(!1),console.debug("[ads] eaCtrl not found -- ads blocked?",t)}},$a=()=>{Na(),Ma(),Da({cb:()=>{console.debug("[ads] initializing goCtrl");try{window.goCtrl.ctrlId=112,window.goCtrl.debugOn=!0,window.goCtrl.bypassAb=!1,window.goCtrl.lazyLoading=!1,window.goCtrl.connectors={t1:{isproxy:0,type:"url",url:"//go.goasrv.com/eactrl.go"}},window.goCtrl.init(),fe.sendAdLoaded(!0)}catch(e){fe.sendAdLoaded(!1),console.error(`[ads] error initializing goCtrl: ${e}`)}}})},Ga=()=>{const e=q(),t=ue();return l.useEffect(Aa,[e]),l.useEffect(()=>{(async()=>{if(Fa())return;const n=await w.getExperiments();n!=null&&n.noAds||setTimeout(()=>{t(jn()),$a()},Ua)})()},[t]),null},cn=()=>{var e,t;(t=(e=document.documentElement)==null?void 0:e.style)==null||t.setProperty("--app-height",`${window.innerHeight}px`)};let za={data:""},Ba=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||za,Va=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Qa=/\/\*[^]*?\*\/| +/g,St=/\n+/g,te=(e,t)=>{let n="",r="",s="";for(let a in e){let i=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+i+";":r+=a[1]=="f"?te(i,a):a+"{"+te(i,a[1]=="k"?"":t)+"}":typeof i=="object"?r+=te(i,t?t.replace(/([^,])+/g,o=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,o):o?o+" "+c:c)):a):i!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=te.p?te.p(a,i):a+":"+i+";")}return n+(t&&s?t+"{"+s+"}":s)+r},H={},un=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+un(e[n]);return t}return e},Wa=(e,t,n,r,s)=>{let a=un(e),i=H[a]||(H[a]=(c=>{let d=0,f=11;for(;d>>0;return"go"+f})(a));if(!H[i]){let c=a!==e?e:(d=>{let f,h,p=[{}];for(;f=Va.exec(d.replace(Qa,""));)f[4]?p.shift():f[3]?(h=f[3].replace(St," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][f[1]]=f[2].replace(St," ").trim();return p[0]})(e);H[i]=te(s?{["@keyframes "+i]:c}:c,n?"":"."+i)}let o=n&&H.g?H.g:null;return n&&(H.g=H[i]),((c,d,f,h)=>{h?d.data=d.data.replace(h,c):d.data.indexOf(c)===-1&&(d.data=f?c+d.data:d.data+c)})(H[i],t,r,o),i},qa=(e,t,n)=>e.reduce((r,s,a)=>{let i=t[a];if(i&&i.call){let o=i(n),c=o&&o.props&&o.props.className||/^go/.test(o)&&o;i=c?"."+c:o&&typeof o=="object"?o.props?"":te(o,""):o===!1?"":o}return r+s+(i??"")},"");function Ne(e){let t=this||{},n=e.call?e(t.p):e;return Wa(n.unshift?n.raw?qa(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,Ba(t.target),t.g,t.o,t.k)}let dn,We,qe;Ne.bind({g:1});let J=Ne.bind({k:1});function Ka(e,t,n,r){te.p=t,dn=e,We=n,qe=r}function ae(e,t){let n=this||{};return function(){let r=arguments;function s(a,i){let o=Object.assign({},a),c=o.className||s.className;n.p=Object.assign({theme:We&&We()},o),n.o=/ *go\d+/.test(c),o.className=Ne.apply(n,r)+(c?" "+c:""),t&&(o.ref=i);let d=e;return e[0]&&(d=o.as||e,delete o.as),qe&&d[0]&&qe(o),dn(d,o)}return t?t(s):s}}var Ha=e=>typeof e=="function",Te=(e,t)=>Ha(e)?e(t):e,Ja=(()=>{let e=0;return()=>(++e).toString()})(),fn=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ya=20,xe=new Map,Za=1e3,Lt=e=>{if(xe.has(e))return;let t=setTimeout(()=>{xe.delete(e),de({type:4,toastId:e})},Za);xe.set(e,t)},Xa=e=>{let t=xe.get(e);t&&clearTimeout(t)},Ke=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ya)};case 1:return t.toast.id&&Xa(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?Ke(e,{type:1,toast:n}):Ke(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Lt(r):e.toasts.forEach(a=>{Lt(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+s}))}}},be=[],_e={toasts:[],pausedAt:void 0},de=e=>{_e=Ke(_e,e),be.forEach(t=>{t(_e)})},ei={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ti=(e={})=>{let[t,n]=l.useState(_e);l.useEffect(()=>(be.push(n),()=>{let s=be.indexOf(n);s>-1&&be.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var a,i;return{...e,...e[s.type],...s,duration:s.duration||((a=e[s.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||ei[s.type],style:{...e.style,...(i=e[s.type])==null?void 0:i.style,...s.style}}});return{...t,toasts:r}},ni=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Ja()}),we=e=>(t,n)=>{let r=ni(t,e,n);return de({type:2,toast:r}),r.id},F=(e,t)=>we("blank")(e,t);F.error=we("error");F.success=we("success");F.loading=we("loading");F.custom=we("custom");F.dismiss=e=>{de({type:3,toastId:e})};F.remove=e=>de({type:4,toastId:e});F.promise=(e,t,n)=>{let r=F.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(F.success(Te(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{F.error(Te(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var ri=(e,t)=>{de({type:1,toast:{id:e,height:t}})},si=()=>{de({type:5,time:Date.now()})},ai=e=>{let{toasts:t,pausedAt:n}=ti(e);l.useEffect(()=>{if(n)return;let a=Date.now(),i=t.map(o=>{if(o.duration===1/0)return;let c=(o.duration||0)+o.pauseDuration-(a-o.createdAt);if(c<0){o.visible&&F.dismiss(o.id);return}return setTimeout(()=>F.dismiss(o.id),c)});return()=>{i.forEach(o=>o&&clearTimeout(o))}},[t,n]);let r=l.useCallback(()=>{n&&de({type:6,time:Date.now()})},[n]),s=l.useCallback((a,i)=>{let{reverseOrder:o=!1,gutter:c=8,defaultPosition:d}=i||{},f=t.filter(x=>(x.position||d)===(a.position||d)&&x.height),h=f.findIndex(x=>x.id===a.id),p=f.filter((x,g)=>gx.visible).slice(...o?[p+1]:[0,p]).reduce((x,g)=>x+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:ri,startPause:si,endPause:r,calculateOffset:s}}},ii=J` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,oi=J` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,li=J` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,ci=ae("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${ii} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${oi} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${li} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,ui=J` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,di=ae("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${ui} 1s linear infinite; `,fi=J` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,hi=J` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,pi=ae("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${fi} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${hi} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,mi=ae("div")` position: absolute; `,gi=ae("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,vi=J` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,yi=ae("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${vi} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,wi=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?l.createElement(yi,null,t):t:n==="blank"?null:l.createElement(gi,null,l.createElement(di,{...r}),n!=="loading"&&l.createElement(mi,null,n==="error"?l.createElement(ci,{...r}):l.createElement(pi,{...r})))},Ei=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,Ci=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,xi="0%{opacity:0;} 100%{opacity:1;}",bi="0%{opacity:1;} 100%{opacity:0;}",_i=ae("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,Pi=ae("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Ri=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=fn()?[xi,bi]:[Ei(n),Ci(n)];return{animation:t?`${J(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${J(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Si=l.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?Ri(e.position||t||"top-center",e.visible):{opacity:0},a=l.createElement(wi,{toast:e}),i=l.createElement(Pi,{...e.ariaProps},Te(e.message,e));return l.createElement(_i,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:a,message:i}):l.createElement(l.Fragment,null,a,i))});Ka(l.createElement);var Li=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let a=l.useCallback(i=>{if(i){let o=()=>{let c=i.getBoundingClientRect().height;r(e,c)};o(),new MutationObserver(o).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return l.createElement("div",{ref:a,className:t,style:n},s)},Ti=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:fn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Oi=Ne` z-index: 9999; > * { pointer-events: auto; } `,Ce=16,Ii=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:a,containerClassName:i})=>{let{toasts:o,handlers:c}=ai(n);return l.createElement("div",{style:{position:"fixed",zIndex:9999,top:Ce,left:Ce,right:Ce,bottom:Ce,pointerEvents:"none",...a},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},o.map(d=>{let f=d.position||t,h=c.calculateOffset(d,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Ti(f,h);return l.createElement(Li,{id:d.id,key:d.id,onHeightUpdate:c.updateHeight,className:d.visible?Oi:"",style:p},d.type==="custom"?Te(d.message,d):s?s(d):l.createElement(Si,{toast:d,position:f}))}))};const ji=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2C17.523 2 22 6.477 22 12C22.0021 14.6255 20.9715 17.1464 19.1309 19.0186C17.2902 20.8908 14.7872 21.9641 12.162 22.0066C9.53689 22.0491 7.00034 21.0576 5.1 19.246C3.19966 17.4344 2.08799 14.9482 2.005 12.324L2 12L2.004 11.72C2.152 6.327 6.57 2 12 2ZM12.01 15L11.883 15.007C11.64 15.0359 11.4159 15.153 11.2534 15.336C11.0909 15.519 11.0011 15.7552 11.0011 16C11.0011 16.2448 11.0909 16.481 11.2534 16.664C11.4159 16.847 11.64 16.9641 11.883 16.993L12 17L12.127 16.993C12.37 16.9641 12.5941 16.847 12.7566 16.664C12.9191 16.481 13.0089 16.2448 13.0089 16C13.0089 15.7552 12.9191 15.519 12.7566 15.336C12.5941 15.153 12.37 15.0359 12.127 15.007L12.01 15ZM12 7C11.7551 7.00003 11.5187 7.08996 11.3356 7.25272C11.1526 7.41547 11.0357 7.63975 11.007 7.883L11 8V12L11.007 12.117C11.0359 12.36 11.153 12.5841 11.336 12.7466C11.519 12.9091 11.7552 12.9989 12 12.9989C12.2448 12.9989 12.481 12.9091 12.664 12.7466C12.847 12.5841 12.9641 12.36 12.993 12.117L13 12V8L12.993 7.883C12.9643 7.63975 12.8474 7.41547 12.6644 7.25272C12.4813 7.08996 12.2449 7.00003 12 7Z",fill:"white"})),Tt=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17 3.34001C18.5083 4.21087 19.7629 5.46054 20.6398 6.96531C21.5167 8.47009 21.9854 10.1778 21.9994 11.9194C22.0135 13.6609 21.5725 15.376 20.72 16.8947C19.8676 18.4135 18.6332 19.6832 17.1392 20.5783C15.6452 21.4734 13.9434 21.9628 12.2021 21.9981C10.4608 22.0333 8.74055 21.6132 7.21155 20.7793C5.68256 19.9453 4.39787 18.7265 3.48467 17.2435C2.57146 15.7605 2.06141 14.0647 2.005 12.324L2 12L2.005 11.676C2.061 9.94901 2.56355 8.26598 3.46364 6.79101C4.36373 5.31604 5.63065 4.09947 7.14089 3.2599C8.65113 2.42033 10.3531 1.98641 12.081 2.00045C13.8089 2.01449 15.5036 2.47601 17 3.34001ZM15.707 9.29302C15.5348 9.12084 15.3057 9.01741 15.0627 9.00213C14.8197 8.98685 14.5794 9.06076 14.387 9.21001L14.293 9.29302L11 12.585L9.707 11.293L9.613 11.21C9.42058 11.0609 9.18037 10.987 8.9374 11.0024C8.69444 11.0177 8.46541 11.1211 8.29326 11.2933C8.12112 11.4654 8.01768 11.6945 8.00235 11.9374C7.98702 12.1804 8.06086 12.4206 8.21 12.613L8.293 12.707L10.293 14.707L10.387 14.79C10.5624 14.9261 10.778 14.9999 11 14.9999C11.222 14.9999 11.4376 14.9261 11.613 14.79L11.707 14.707L15.707 10.707L15.79 10.613C15.9393 10.4206 16.0132 10.1804 15.9979 9.93733C15.9826 9.69431 15.8792 9.46521 15.707 9.29302Z",fill:"white"})),ki=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17 3.34001C18.5083 4.21087 19.7629 5.46054 20.6398 6.96531C21.5167 8.47009 21.9854 10.1778 21.9994 11.9194C22.0135 13.6609 21.5725 15.376 20.72 16.8947C19.8676 18.4135 18.6332 19.6832 17.1392 20.5783C15.6452 21.4734 13.9434 21.9628 12.2021 21.9981C10.4608 22.0333 8.74055 21.6132 7.21155 20.7793C5.68256 19.9453 4.39787 18.7265 3.48467 17.2435C2.57146 15.7605 2.06141 14.0647 2.005 12.324L2 12L2.005 11.676C2.061 9.94901 2.56355 8.26598 3.46364 6.79101C4.36373 5.31604 5.63065 4.09947 7.14089 3.2599C8.65113 2.42033 10.3531 1.98641 12.081 2.00045C13.8089 2.01449 15.5036 2.47601 17 3.34001ZM10.511 9.14002C10.3015 9.01529 10.0536 8.97142 9.81401 9.01664C9.57441 9.06187 9.35959 9.19308 9.20995 9.3856C9.06031 9.57811 8.98617 9.81867 9.00146 10.062C9.01675 10.3054 9.12043 10.5347 9.293 10.707L10.585 12L9.293 13.293L9.21 13.387C9.05459 13.588 8.98151 13.8406 9.0056 14.0935C9.02969 14.3465 9.14916 14.5807 9.33972 14.7488C9.53029 14.9168 9.77767 15.006 10.0316 14.9982C10.2856 14.9905 10.527 14.8864 10.707 14.707L12 13.415L13.293 14.707L13.387 14.79C13.588 14.9454 13.8406 15.0185 14.0935 14.9944C14.3464 14.9703 14.5807 14.8509 14.7488 14.6603C14.9168 14.4697 15.006 14.2223 14.9982 13.9684C14.9905 13.7144 14.8863 13.473 14.707 13.293L13.415 12L14.707 10.707L14.79 10.613C14.9454 10.412 15.0185 10.1594 14.9944 9.90649C14.9703 9.65357 14.8508 9.4193 14.6603 9.25126C14.4697 9.08323 14.2223 8.99403 13.9684 9.00179C13.7144 9.00954 13.473 9.11367 13.293 9.29302L12 10.585L10.707 9.29302L10.613 9.21001L10.511 9.14002Z",fill:"white"})),Ni=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2C17.523 2 22 6.477 22 12C22.0021 14.6255 20.9715 17.1464 19.1309 19.0186C17.2902 20.8908 14.7872 21.9641 12.162 22.0066C9.53689 22.0491 7.00034 21.0576 5.1 19.246C3.19966 17.4344 2.08799 14.9482 2.005 12.324L2 12L2.004 11.72C2.152 6.327 6.57 2 12 2ZM12 11H11L10.883 11.007C10.64 11.0359 10.4159 11.153 10.2534 11.336C10.0909 11.519 10.0011 11.7552 10.0011 12C10.0011 12.2448 10.0909 12.481 10.2534 12.664C10.4159 12.847 10.64 12.9641 10.883 12.993L11 13V16L11.007 16.117C11.0333 16.3402 11.1341 16.5481 11.293 16.707C11.4519 16.8659 11.6598 16.9667 11.883 16.993L12 17H13L13.117 16.993C13.3402 16.9667 13.5481 16.8659 13.707 16.707C13.8659 16.5481 13.9667 16.3402 13.993 16.117L14 16L13.993 15.883C13.9691 15.679 13.8829 15.4873 13.7462 15.3339C13.6095 15.1806 13.4289 15.0731 13.229 15.026L13.117 15.006L13 15V12L12.993 11.883C12.9667 11.6598 12.8659 11.4519 12.707 11.293C12.5481 11.1341 12.3402 11.0333 12.117 11.007L12 11ZM12.01 8L11.883 8.007C11.64 8.03591 11.4159 8.15296 11.2534 8.33597C11.0909 8.51897 11.0011 8.75524 11.0011 9C11.0011 9.24476 11.0909 9.48103 11.2534 9.66403C11.4159 9.84704 11.64 9.96409 11.883 9.993L12 10L12.127 9.993C12.37 9.96409 12.5941 9.84704 12.7566 9.66403C12.9191 9.48103 13.0089 9.24476 13.0089 9C13.0089 8.75524 12.9191 8.51897 12.7566 8.33597C12.5941 8.15296 12.37 8.03591 12.127 8.007L12.01 8Z",fill:"white"})),Mi=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 6L6 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6 6L18 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));function hn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tu.jsx("button",{className:Ai("Button",`Button_${e}`,`Button_${t}`,r&&"Button_isRound"),...s,children:u.jsx("div",{className:"Button-Wrap",children:n})}),Ui={default:u.jsx(Tt,{"data-testid":"icon-default"}),success:u.jsx(Tt,{"data-testid":"icon-success"}),error:u.jsx(ki,{"data-testid":"icon-error"}),warning:u.jsx(ji,{"data-testid":"icon-warning"}),info:u.jsx(Ni,{"data-testid":"icon-info"})},Di=({title:e,id:t,description:n,variant:r,actionButton:s,secondaryButton:a})=>{const i=Ui[r],o=l.useCallback(c=>{F.dismiss(t),c==null||c.onClick()},[t]);return u.jsxs("div",{className:`Notification Notification_${r}`,children:[u.jsxs("div",{className:"Notification-Default",children:[u.jsx("span",{className:"Notification-Icon",children:i}),u.jsx("span",{className:"Notification-Title",children:e}),u.jsx("button",{className:"Notification-Close",onClick:()=>F.remove(t),"aria-label":"Close notification",children:u.jsx(Mi,{})})]}),n&&u.jsx("p",{className:"Notification-Description",children:n}),u.jsxs("div",{className:"Notification-Footer",children:[a&&u.jsx("button",{className:"Notification-SecBtn",onClick:()=>o(a),children:a.title}),s&&u.jsx(Fi,{variant:"secondary",size:"xs",onClick:()=>o(s),"aria-label":s.title,children:s.title})]})]})},Ot=({toastOptions:e={},...t})=>{F.custom(n=>u.jsx(Di,{...t,id:n.id}),e)},$i=()=>{const{serverError:e,serverResponse:t}=ye(r=>r.application),n=ue();return l.useEffect(()=>{t&&Ot({title:t,variant:"success"}),e&&Ot({title:e?e.message:"Server Error.",variant:"error"});const s=setTimeout(()=>{n(kn(null)),n(Nn(null))},2e3);return()=>clearTimeout(s)},[e,t,n]),u.jsx(Ii,{position:"bottom-center",reverseOrder:!0,toastOptions:{className:"toastItem"}})},Gi=`/* Partytown 0.8.1 - MIT builder.io */ !function(t,e,n,i,o,r,a,s,d,c,l,p){function u(){p||(p=1,"/"==(a=(r.lib||"/~partytown/")+(r.debug?"debug/":""))[0]&&(d=e.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(s=setTimeout(f,1e4),e.addEventListener("pt0",w),o?h(1):n.serviceWorker?n.serviceWorker.register(a+(r.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.style.display="block",c.style.width="0",c.style.height="0",c.style.border="0",c.style.visibility="hidden",c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.8.1":"sandbox-sw.html?"+Date.now()),e.querySelector(r.sandboxParent||"body").appendChild(c)}function f(n,o){for(w(),i==t&&(r.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n{const{forward:n=[],...r}=e||{},s=JSON.stringify(r,(a,i)=>(typeof i=="function"&&(i=String(i),i.startsWith(a+"(")&&(i="function "+i)),i));return["!(function(w,p,f,c){","if(!window.crossOriginIsolated && !navigator.serviceWorker) return;",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${s});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")},It=e=>zi(e,Gi),Bi=({nonce:e,...t}={})=>{if(typeof document<"u"&&!document._partytown){if(!document.querySelector("script[data-partytown]")){const r=document.createElement("script");r.dataset.partytown="",r.innerHTML=It(t),r.nonce=e,document.head.appendChild(r)}document._partytown=!0}const n=It(t)+'document.currentScript.dataset.partytown="";';return G.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},nonce:e})};fe.init();window.addEventListener("resize",cn);cn();const Vi=()=>{const t=!l.useCallback(()=>window.location.pathname.indexOf("/ifr/")===0,[])();return u.jsxs("div",{className:sn({App:!0,nav:t,nonav:!t}),children:[u.jsxs(Dr,{children:[t&&u.jsx(l.Suspense,{children:u.jsx(qr,{})}),u.jsx(ka,{}),t&&u.jsx(l.Suspense,{children:u.jsx(Wr,{})}),u.jsx(_s,{}),u.jsx(Ga,{}),u.jsx(Gs,{}),u.jsx(Bi,{debug:!1,forward:["dataLayer.push"]})]}),u.jsx($i,{})]})},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Sl=()=>{const{search:e}=q();return l.useMemo(()=>new URLSearchParams(e),[e])},Ll=e=>l.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M26.6666 28V25.3333C26.6666 23.9188 26.1047 22.5623 25.1045 21.5621C24.1043 20.5619 22.7477 20 21.3333 20H10.6666C9.2521 20 7.89554 20.5619 6.89535 21.5621C5.89515 22.5623 5.33325 23.9188 5.33325 25.3333V28",stroke:"#E5194D",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M16.0001 14.6667C18.9456 14.6667 21.3334 12.2789 21.3334 9.33333C21.3334 6.38781 18.9456 4 16.0001 4C13.0546 4 10.6667 6.38781 10.6667 9.33333C10.6667 12.2789 13.0546 14.6667 16.0001 14.6667Z",stroke:"#E5194D",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),Tl=e=>l.createElement("svg",{width:20,height:20,fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"m11.999 6-1.763 1.3978c-1.4059 1.1148-2.1089 1.6721-2.2171 2.3515-0.02652 0.16645-0.02652 0.33489 0 0.50134 0.10824 0.67935 0.8112 1.2367 2.2171 2.3515l1.763 1.3978",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5})),jt="data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.64202%2018.0954L10.1874%2013.5919C10.311%2013.3734%2010.4194%2013.1815%2010.5165%2013.0117M10.5165%2013.0117C10.8173%2012.4856%2011.0087%2012.1721%2011.1999%2011.9369C12.7828%209.98919%2015.6057%209.60441%2017.6521%2011.0574C17.9769%2011.288%2018.3381%2011.6486%2019.0563%2012.3668M10.5165%2013.0117L10.023%2012.8573C8.88438%2012.6296%208.31508%2012.5157%207.79258%2012.5268C6.39426%2012.5565%205.07969%2013.1994%204.19777%2014.285C3.86822%2014.6906%203.60858%2015.2099%203.0893%2016.2484L2.98471%2016.4576L2.8694%2016.6525M19.0563%2012.3668C19.0706%2011.6768%2019.0706%2010.8945%2019.0706%2010.0001C19.0706%206.42897%2019.0706%204.64338%2018.1611%203.39164C17.8674%202.98738%2017.5119%202.63187%2017.1077%202.33815C15.8559%201.42871%2014.0703%201.42871%2010.4992%201.42871C6.92799%201.42871%205.1424%201.42871%203.89066%202.33815C3.4864%202.63187%203.13089%202.98738%202.83718%203.39164C1.92773%204.64338%201.92773%206.42897%201.92773%2010.0001C1.92773%2013.5713%201.92773%2015.3569%202.83718%2016.6086C2.84784%2016.6233%202.85858%2016.6379%202.8694%2016.6525M19.0563%2012.3668C19.0136%2014.4322%2018.8428%2015.6704%2018.1611%2016.6086C17.8674%2017.0129%2017.5119%2017.3684%2017.1077%2017.6621C15.8559%2018.5716%2014.0703%2018.5716%2010.4992%2018.5716C6.92799%2018.5716%205.1424%2018.5716%203.89066%2017.6621C3.50107%2017.3791%203.15676%2017.0386%202.8694%2016.6525M7.64202%207.143C7.64202%208.19497%208.49481%209.04776%209.54678%209.04776C10.5988%209.04776%2011.4515%208.19497%2011.4515%207.143C11.4515%206.09103%2010.5988%205.23823%209.54678%205.23823C8.49481%205.23823%207.64202%206.09103%207.64202%207.143Z'%20stroke='white'%20stroke-linecap='round'/%3e%3c/svg%3e",Ol=({className:e,src:t,alt:n,fallback:r,onFailure:s})=>{const a=l.useCallback(i=>{console.warn(`Error loading image ${i.currentTarget.src} -- showing fallback.`),s&&s(i.currentTarget.src),i.currentTarget.src=jt},[s]);return u.jsx("img",{className:sn({[e??""]:!0}),loading:"lazy",src:t??r??jt??void 0,alt:n??void 0,onError:a})},Il={white:"#FFF",black:"#000",backgroundBlack:"#0B0B28",cardBackground:"#0D0C2A",cardBackgroundDarkBlue:"#0F0F37",lightGray:"#25253B",lightGrayPaperBackground:"rgba(216, 223, 236, 0.3)",lightGrayText:"#b9b9b9",lightGray_GoBackButton:"#272740",lightGrayHover:"#31314D",redPink:"#FF536D",purple:"#8F2CF2",textDark:"#1D1D1D",buttonBackgroundSelected:"#1D1D31",selectGreyBorder:"rgb(45, 45, 66)",selectedCollectionItem:"rgb(255, 83, 109, 0.4)",shadowGradient:"linear-gradient(0deg, rgba(0,0,0,1) 28%, rgba(0,0,0,0) 100%)",shadowGradientBothEnds:"linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 33%, rgba(0,0,0,0.2) 68%, rgba(0,0,0,0.5) 100%)",shadowRadialGradient:"radial-gradient(rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 60%)",nicheBackgroundShadow:"linear-gradient(0deg,rgba(11, 11, 40, 1) 0%, rgba(11, 11, 40, 0.7) 90%, rgba(0,0,0,0.5) 100%)",greenGradient:"linear-gradient(180deg, #32B97E 0%, #26EA94 100%)",purpleGradient:"linear-gradient(180deg, #8F2CF2 0%, #CD4CFF 100%)",RedditGradient:"linear-gradient(135deg, #FDDD8F 0%, #DF3200 100%)",TwitterGradient:"linear-gradient(135deg, #71D6FC 0%, #00ACED 100%)",DiscordGradient:"linear-gradient(135deg, #828CFA 0%, #5865F2 100%)"},jl={containerSize:"690px",containerWideSize:"1070px"},kt=()=>{throw new Error("This is a test error.")},Qi=Object.freeze(Object.defineProperty({__proto__:null,CrashPage:kt,default:kt},Symbol.toStringTag,{value:"Module"})),Nt=()=>{const e=je();return l.useEffect(()=>{W().then(t=>{t?e(C.home()):nn()})},[e]),u.jsx(u.Fragment,{})},Wi=Object.freeze(Object.defineProperty({__proto__:null,LoginPage:Nt,default:Nt},Symbol.toStringTag,{value:"Module"}));export{Pl as $,eo as A,ro as B,ll as C,Yi as D,rl as E,fo as F,Hi as G,Ao as H,Ol as I,Tl as J,pl as K,zr as L,co as M,xo as N,bo as O,_o as P,Jr as Q,Yo as R,Ll as S,Hr as T,Fi as U,Ms as V,bl as W,Go as X,$o as Y,go as Z,jo as _,sn as a,yo as a0,il as a1,Ko as a2,Wo as a3,Ro as a4,po as a5,mo as a6,oo as a7,No as a8,ko as a9,Q as aA,sl as aB,to as aC,Zi as aD,Bo as aE,Vo as aF,Xi as aG,Jo as aH,wl as aI,To as aJ,Io as aK,Oo as aL,xl as aM,Lo as aN,_l as aO,Po as aP,Ji as aQ,rs as aR,qo as aS,Uo as aT,Fo as aU,ao as aV,Qo as aW,yl as aX,Rl as aY,Qe as aa,Fa as ab,wo as ac,Ee as ad,jt as ae,El as af,hl as ag,cl as ah,al as ai,ol as aj,vl as ak,ml as al,Xo as am,el as an,tl as ao,Zo as ap,Xe as aq,P as ar,Do as as,jl as at,dl as au,uo as av,io as aw,vo as ax,Eo as ay,Xt as az,q as b,Ai as c,Il as d,gl as e,lo as f,je as g,so as h,Sl as i,Ho as j,fl as k,zo as l,fe as m,nl as n,Cl as o,Co as p,ho as q,C as r,Ot as s,Mo as t,no as u,nn as v,ue as w,ul as x,So as y,tn as z}; //# sourceMappingURL=LoginPage-yYkKaUvX.js.map function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["static/ApplicationFooterContainer-1GPy4oqS.js","static/index-2SI3TtYZ.js","static/moreIcon-hyogBtJh.js","static/share_icon_red-7uXoZm4i.js","static/share_icon_red-EkYzewOh.css","static/ApplicationFooterContainer-flvNF7RU.css","static/ApplicationHeader-aMjc6lmb.js","static/arrowLeftAdornment-jpxA6Zr3.js","static/arrowLeftAdornment-nrQWWTTU.css","static/RGLogo-loMiUGUB.js","static/RGLogo-NnYUV1BX.css","static/PinkBaseButton-q_qjbPgL.js","static/PinkBaseButton-y0h028DM.css","static/ApplicationHeader-ypjvpVgQ.css","static/PreferencesPopup-4EQeEsW_.js","static/Popup-prQjvaC2.js","static/share-P1KryU6L.js","static/share-j6TzcMcZ.css","static/Popup-YKJ1Ic0R.css","static/Checkbox-oYSicZHT.js","static/Checkbox-SO_x82ge.css","static/PreferencesPopup-vqTtbB95.css","static/ChangedEmailPopup-G_XWxw5b.js","static/ChangedEmailPopup-Ia1XEVL1.css","static/AuthPopup-dqCOdfYW.js","static/index.esm-aPERskyX.js","static/Stepper-GuVezeip.js","static/Stepper-1FBmWluz.css","static/SignUpPasswordStep-q10lHjd4.js","static/TextInput-I9LNM4F0.js","static/TextInput-3GauTmZ9.css","static/SignUpPasswordStep-jceUZz3S.css","static/TagSelector-zz-XQHdO.js","static/useFetch-Qhr8dFmz.js","static/index.es-wdExCtik.js","static/TagSelector-VYcPcezN.css","static/PrimaryButton-04f1G5Cf.js","static/PrimaryButton-PWRlEIAz.css","static/AuthPopup-yMMGbaIn.css","static/AddToNichePopupContainer-2RQxHdr9.js","static/AddToNichePopupContainer-TJzU0dcv.css","static/ReportPopup-itpzuXo4.js","static/ReportPopup-PrrGGwes.css","static/AddToCollectionPopup-wu3kkYC8.js","static/useUserCollectionsData-tZWSXbT3.js","static/image_icon-0X2lLNvM.js","static/image_icon-xF599KIy.css","static/useUserCollectionsData-1RvhbNSU.css","static/AddToCollectionPopup-WtxJtkxw.css","static/EditNichePopupContainer-AsLF38pp.js","static/NicheForm-vobIoKTh.js","static/gifUploader-CK8jxmL-.js","static/NicheForm-AKpvloXy.css","static/EditNichePopupContainer-smm0QK5_.css","static/EditNichesDialog-RybFzSQj.js","static/EditNichesDialog-8cOcx3zs.css","static/GifPreferencePopup-1NRAYnlS.js","static/GifPreferenceList-T8Aux7o6.js","static/GifPreferenceList-4UE04ka6.css","static/GifPreferencePopup-y3xzyXah.css","static/ShareGifMenu-k_9Y1zfl.js","static/discord_desktop-9WkRDieH.js","static/discord_desktop-BaTwWXlE.css","static/PopOverMenu-nOCZS-B0.js","static/PopOverMenu-mtC_P2qZ.css","static/ShareGifMenu-JahGGZLy.css","static/MoreMenuContainer-BNeqH-Q1.js","static/MoreMenuContainer-Fpm9lY97.css","static/CookieNoticeWrapper-t04Y-FFg.js","static/CookieNoticeWrapper-hluCSa1D.css","static/EditGifPopup-aNaJr-D1.js","static/GifDescriptionField-kJtg-A9S.js","static/GifDescriptionField-OmDSr4D1.css","static/UnsubscribedPage-ndVJr_to.js","static/UnsubscribedPage-UZ73Y5UF.css","static/EditGifPopup-yYJYZ-9T.css","static/AccountSettingsPage-fZ5P9kU9.js","static/CustomInput--gCbg1wC.js","static/useThemeProps-TFFvJk08.js","static/getThemeProps-pdnhqi5P.js","static/TextField-QTWuO_C8.js","static/Select--qW1KsDi.js","static/utils-Syr1z8NO.js","static/ButtonBase-Cm0nt269.js","static/useMediaQuery-X0JRcKHQ.js","static/Popover-t9LsEyC7.js","static/edit_icon-ZN4OkZYK.js","static/Paper-_y09lSBv.js","static/TopMenu-MqHMuDHH.js","static/ListItem-7h8Kpmzo.js","static/ListItemButton-yN5U0-_l.js","static/FooterAds-9y1BqRF9.js","static/AdUnit-PKaYY-gD.js","static/special-T0lFhGE1.js","static/AdUnit-yhR4u6hd.css","static/FooterAds-hE9y9CGX.css","static/Button-sxVGKVOB.js","static/AccountSettingsPage-RwfgfXsO.css","static/AnalyticsPage-HJQxgf6l.js","static/constants-ZXVhQS0N.js","static/constants-8Kbno1eA.css","static/AnalyticsPage-JL1dT-Cg.css","static/CategoriesPage-R3Zzz9-b.js","static/TagLink-WHi-ys3_.js","static/SuggestedNiches-K4s6RKU5.js","static/Columnizer-zvWOm6Ij.js","static/Columnizer-GJbvDEjn.css","static/SuggestedNiches-loUeR9AH.css","static/TagLink-uD7Uf2hh.css","static/TrendingTags-N7UyHb8s.js","static/WithSideAds-X4ViY0qE.js","static/WithSideAds-R-Mzvasr.css","static/CategoriesPage-eg6i-Uny.css","static/CollectionItemsPage-prixTO4G.js","static/GifList-DjfuY9aT.js","static/bugSnagHelper-PG_5jw6n.js","static/bugSnagHelper-GLqGhAoq.css","static/FeedControl-46TmtfZt.js","static/SortControl-xOMj3qJJ.js","static/MenuItem-_VJxOXLW.js","static/SortControl-EtRG3x9X.css","static/FeedControl-40ByAkq_.css","static/TileItem-GNenK4ZB.js","static/Skeleton-Hw4r-sQ0.js","static/Skeleton-gml8IqzM.css","static/TileItem-E_lIvxYM.css","static/react-beautiful-dnd.esm-uORajCh5.js","static/GifList-rFCM_mgL.css","static/CollectionsList-DZ333HI6.js","static/CollectionsList-vMcuqptJ.css","static/CollectionItemsPage-yrE5f4oR.css","static/CollectionsPage-Y3l2eo8W.js","static/EmbedPage-UMhTpcCe.js","static/busHandlers-qQRaWD8D.js","static/busHandlers-aVdx4rBy.css","static/EmbedPage-vRvKfDv5.css","static/ExploreCreatorsPage-24TCo5fo.js","static/TopicSelector-l3X-d70O.js","static/ExploreCreatorsPage-76akQwAk.css","static/ExploreGifsPage-InHtWXlB.js","static/ExploreGifsPage-fCRS8BgD.css","static/ExploreImagesPage-QRo47ElU.js","static/ExploreImagesPage-el2tYfNX.css","static/ExploreNichesPage-h4j8AfkS.js","static/CreateNichePopup-HmH7reMF.js","static/CreateNichePopup-5Jdf_TJk.css","static/ExploreNichesPage-u3iSxx_F.css","static/ExplorePage-csVRyCr6.js","static/TrendingCreators-KLPdvzmf.js","static/TrendingCreators-wOQYRD4T.css","static/ExplorePage-UN9H75nM.css","static/FavouritesPage-p7pBZRs1.js","static/ComboHeader-1qYW-b2A.js","static/ComboHeader-9MMoDVT2.css","static/FavouritesPage-9HATyO4g.css","static/FollowingPage-PRT6WsTF.js","static/FollowingPage-LY8cF_aG.css","static/HomePage-kaN_GYzG.js","static/Tabs-GVkWZlF0.js","static/Tabs-ASnG77EL.css","static/useNewBoostedGifs-QI0Ixcf0.js","static/InjectionFeed-lksAS7KG.js","static/TagList-kdrnjE9P.js","static/TagList-mZJLXqfd.css","static/InjectionFeed-MeCwrxoq.css","static/HomePage-H179FEdk.css","static/index-CCzw6Pkl.js","static/CircularProgress-Obb4KsQN.js","static/index-64PH2gmb.css","static/MigrateImgurSuccessPage-7ZCmeAfX.js","static/MigrateImgurSuccessPage-WowjZMza.css","static/MyNichesPage-tquvNqoj.js","static/MyNichesPage-lxxJQjDP.css","static/NichePage-7bAOm0Kw.js","static/ProfileMenuPopup-aPeURedx.js","static/ProfileMenuPopup-zhzD4w1_.css","static/NichePage-_9QDj-To.css","static/DMCAPage-VvfPk3Ld.js","static/ProfileSettingsPage-dk5OWWPY.js","static/SocialLinksForm-QTU8ETDK.js","static/v4-yQnnJER4.js","static/SocialLinksForm-vqXjbsWq.css","static/CreatorInfo-62l9xB6I.js","static/CreatorInfo-erffcKQs.css","static/ProfileSettingsPage-GomSeXmR.css","static/SudoPage-mpq6EdZU.js","static/SudoPage-X3Q2xdgi.css","static/TagPage-YppdVXz0.js","static/TagPage-slGPwnU_.css","static/VerifyPage-vMD44e-8.js","static/VerifyPage-Rwvrfes4.css","static/TermsPage-T23BLdy4.js","static/FAQPage-ofEgCTCj.js","static/UploadPage-6VdYjGRE.js","static/UploadPage-k9xLuDZz.css","static/UserPage-7ZEFq6PW.js","static/PageNotFound-9qKTbatM.js","static/PageNotFound-xc3NvcQG.css","static/UserPage-5Hl0-iuu.css","static/WatchPage-kG48OQG7.js","static/WatchPage-lQF3Ox8d.css","static/AuthorizePage-R24ZluBJ.js","static/AuthorizePage-M_tA8Zqs.css","static/ExperimentsPage-duEroOio.js","static/ExperimentsPage-vPGNtU9Q.css","static/ManageAdSlotsPage-U_pt-zI9.js","static/ManageAdSlotsPage-g0F8eLRe.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }