@qratilabs/qrati-connect 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/element/{AuthLayout-yBnXbTdQ.js → AuthLayout-smqrs4PK.js} +1 -1
  3. package/element/{ContentsPage-BpGmiu2Y.js → ContentsPage-BALVk95k.js} +2 -2
  4. package/element/{CuratePage-Bf96ltsu.js → CuratePage-6O-YtfaK.js} +1 -1
  5. package/element/{Dialog-BqAbQiPJ.js → Dialog-0wEAIe3Z.js} +1 -1
  6. package/element/{DotLottiePlayer-BtxapiSJ.js → DotLottiePlayer-q7KyZjj4.js} +1 -1
  7. package/element/{EventHeaderAdminButtons-BplHheBN.js → EventHeaderAdminButtons-AOGt2ZR_.js} +2 -2
  8. package/element/FolderBreadcrumb-DE1SuI3R.js +1 -0
  9. package/element/{ForgotPasswordPage-Z0fY0XwU.js → ForgotPasswordPage-B7SQUSjQ.js} +1 -1
  10. package/element/{InputField-B4v4KXcE.js → InputField-DCqkCRI8.js} +1 -1
  11. package/element/{LazyLoadImage-DAovisp3.js → LazyLoadImage-Dx2kZ_ki.js} +1 -1
  12. package/element/{LeaderboardPage-Ygaebr-t.js → LeaderboardPage-ZllEyvHF.js} +1 -1
  13. package/element/{LoginPage-DIZ7qlYO.js → LoginPage-CT0pEqXM.js} +1 -1
  14. package/element/{NCMVHL6D-CxiMFMqg.js → NCMVHL6D-BwoIucZN.js} +1 -1
  15. package/element/PublicEvents-CIrYMBEL.js +1 -0
  16. package/element/{RegisterPage-Bg7pyJeh.js → RegisterPage-jGyiY6Q1.js} +1 -1
  17. package/element/{SocialLoginButton-DsAt02H9.js → SocialLoginButton-CD7hRRi3.js} +1 -1
  18. package/element/{UploadPage-C0ek4Qqe.js → UploadPage-CITq8Afj.js} +1 -1
  19. package/element/{VideoPlayer-g56XT4-3.js → VideoPlayer-BnGqOvd_.js} +1 -1
  20. package/element/element.es.js +1 -1
  21. package/element/{heic2any-z2RaaSEC.js → heic2any-DYXlMp6f.js} +1 -1
  22. package/element/{index-BhzTVsTo.js → index-D2rVaTyg.js} +1 -1
  23. package/element/{index-DDOpdb3i.js → index-dgkxxAYh.js} +2 -2
  24. package/element/{index.esm-BbqgTw7t.js → index.esm-DH681Jwb.js} +1 -1
  25. package/element/{photoswipe-B7SExy7W.js → photoswipe-CLqAYZuN.js} +1 -1
  26. package/element/styles.css +1 -1
  27. package/element/{tslib.es6-DIRCPYhi.js → tslib.es6-Kir8qsmG.js} +1 -1
  28. package/element/{useOrgAccess-CQNPoSFq.js → useOrgAccess-CQGTKm39.js} +1 -1
  29. package/element/web.es.js +1 -1
  30. package/package.json +1 -1
  31. package/react/{Ck9enZ3e.js → 38fKKEwY.js} +1 -1
  32. package/react/B-cnuYGK.js +1 -0
  33. package/react/{FcDLBnwX.js → B1i756QD.js} +1 -1
  34. package/react/{qwl23nTI.js → B8mLtg2-.js} +1 -1
  35. package/react/BByYodE2.js +1 -0
  36. package/react/{MZeQHhBV.js → BKCu0fMZ.js} +1 -1
  37. package/react/{CouLaMtF.js → B_TCkLjZ.js} +1 -1
  38. package/react/{CBpEkjwz.js → BfbjKTvp.js} +1 -1
  39. package/react/{Dx52SzWS.js → C-DBWaEg.js} +1 -1
  40. package/react/{DqmSOLfe.js → COmmnujB.js} +1 -1
  41. package/react/{BE9_Ublk.js → CTjUKTPO.js} +1 -1
  42. package/react/{BBaDMfm_.js → CUXGA7St.js} +1 -1
  43. package/react/{Cr9MgBeI.js → CeAGRh0t.js} +2 -2
  44. package/react/{Dhcvm9yI.js → CqFENFZB.js} +1 -1
  45. package/react/{Cb66NH94.js → CsN-e_l4.js} +1 -1
  46. package/react/{C1kBrsed.js → Csp0JYSr.js} +2 -2
  47. package/react/{x0a0HaZy.js → CwcF5rKn.js} +1 -1
  48. package/react/{C5XgHCIU.js → DCL2O5W3.js} +1 -1
  49. package/react/{DLUmYnVL.js → DDq_DfWj.js} +1 -1
  50. package/react/{Ld9VPzmf.js → DNOLzzZH.js} +2 -2
  51. package/react/{BX9GvyM-.js → Fz3ptOAl.js} +1 -1
  52. package/react/{C27Sy5Nr.js → T91t2h6g.js} +1 -1
  53. package/react/{DppB7lia.js → fLcJgmSx.js} +1 -1
  54. package/react/index.es.js +2 -2
  55. package/umd/web.umd.js +7 -7
  56. package/element/FolderBreadcrumb-DhqYRcyB.js +0 -1
  57. package/element/PublicEvents-D4eUZCHS.js +0 -1
  58. package/react/DZqtPzMv.js +0 -1
  59. package/react/U0g8gQE-.js +0 -1
@@ -36,7 +36,7 @@ function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
38
  */
39
- return"production"!=={}.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===E?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case A:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case p:return"Portal";case v:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case w:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case x:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch{}}return null}function t(e){return""+e}function n(e){try{t(e);var n=!1}catch{n=!0}if(n){var r=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function r(t){if(t===h)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===C)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return P[t]||(P[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,o,i,s,u){var d=r.children;if(void 0!==d)if(i)if(_(d)){for(i=0;i<d.length;i++)l(d[i]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(d);if(T.call(r,"key")){d=e(t);var p=Object.keys(r).filter(function(e){return"key"!==e});i=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",L[d+i]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,d,p,d),L[d+i]=!0)}if(d=null,void 0!==o&&(n(o),d=""+o),function(e){if(T.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),d=""+r.key),"key"in r)for(var h in o={},r)"key"!==h&&(o[h]=r[h]);else o=r;return d&&function(e,t){function n(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,o,i){var l=n.ref;return e={$$typeof:f,type:e,key:t,props:n,_owner:r},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,d,o,function(){var e=I.A;return null===e?null:e.getOwner()}(),s,u)}function l(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===C&&("fulfilled"===e._payload.status?u(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var c,d=b(),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),I=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,_=Array.isArray,R=console.createTask?console.createTask:function(){return null},P={},O=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,o)(),N=R(r(o)),L={};s.Fragment=h,s.jsx=function(e,t,n){var o=1e4>I.recentlyCreatedOwnerStacks++;return i(e,t,n,!1,o?Error("react-stack-top-frame"):O,o?R(r(e)):N)},s.jsxs=function(e,t,n){var o=1e4>I.recentlyCreatedOwnerStacks++;return i(e,t,n,!0,o?Error("react-stack-top-frame"):O,o?R(r(e)):N)}}(),s}var w=(m||(m=1,a.exports="production"==={}.NODE_ENV?function(){if(o)return i;o=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return i.Fragment=t,i.jsx=n,i.jsxs=n,i}():v()),a.exports),k=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},S={},x={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},C=new class{#e=x;#t=!1;setTimeoutProvider(e){"production"!==S.NODE_ENV&&this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,"production"!==S.NODE_ENV&&(this.#t=!1)}setTimeout(e,t){return"production"!==S.NODE_ENV&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return"production"!==S.NODE_ENV&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var A={},E=typeof window>"u"||"Deno"in globalThis;function I(){}function T(e){return"number"==typeof e&&e>=0&&e!==1/0}function _(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R(e,t){return"function"==typeof e?e(t):e}function P(e,t){return"function"==typeof e?e(t):e}function O(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:l}=e;if(i)if(r){if(t.queryHash!==L(i,t.options))return!1}else if(!D(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return!("boolean"==typeof l&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function N(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(z(t.options.mutationKey)!==z(a))return!1}else if(!D(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function L(e,t){return(t?.queryKeyHashFn||z)(e)}function z(e){return JSON.stringify(e,(e,t)=>U(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function D(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>D(e[n],t[n])))}var j=Object.prototype.hasOwnProperty;function M(e,t){if(e===t)return e;const n=q(e)&&q(t);if(!(n||U(e)&&U(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,i=n?new Array(a):{};let l=0;for(let s=0;s<a;s++){const a=n?s:o[s],u=e[a],c=t[a];if(u===c){i[a]=u,(n?s<r:j.call(e,a))&&l++;continue}if(null===u||null===c||"object"!=typeof u||"object"!=typeof c){i[a]=c;continue}const d=M(u,c);i[a]=d,d===u&&l++}return r===a&&l===r?e:i}function F(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function q(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function U(e){if(!H(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!(!H(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function H(e){return"[object Object]"===Object.prototype.toString.call(e)}function B(e,t,n){if("function"==typeof n.structuralSharing)return n.structuralSharing(e,t);if(!1!==n.structuralSharing){if("production"!==A.NODE_ENV)try{return M(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return M(e,t)}return t}function V(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var G=Symbol();function Q(e,t){return"production"!==A.NODE_ENV&&e.queryFn===G&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==G?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Y=new class extends k{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!E&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}};function $(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var Z=function(e){setTimeout(e,0)};var K=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Z;const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),J=new class extends k{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!E&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function X(e){return Math.min(1e3*2**e,3e4)}function ee(e){return"online"!==(e??"online")||J.isOnline()}var te=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t,n=!1,r=0;const o=$(),a=()=>"pending"!==o.status,i=()=>Y.isFocused()&&("always"===e.networkMode||J.isOnline())&&e.canRun(),l=()=>ee(e.networkMode)&&e.canRun(),s=e=>{a()||(t?.(),o.resolve(e))},u=e=>{a()||(t?.(),o.reject(e))},c=()=>new Promise(n=>{t=e=>{(a()||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(s).catch(t=>{if(a())return;const o=e.retry??(E?0:3),l=e.retryDelay??X,s="function"==typeof l?l(r,t):l,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);!n&&f?(r++,e.onFail?.(r,t),function(e){return new Promise(t=>{C.setTimeout(t,e)})}(s).then(()=>i()?void 0:c()).then(()=>{n?u(t):d()})):u(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const n=new te(t);u(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:l,start:()=>(l()?d():c().then(d),o)}}var re=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=C.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(E?1/0:3e5))}clearGcTimeout(){this.#e&&(C.clearTimeout(this.#e),this.#e=void 0)}},oe={},ae=class extends re{#e;#t;#n;#r;#o;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=le(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=le(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#e=e)}}optionalRemove(){!this.observers.length&&"idle"===this.state.fetchStatus&&this.#n.remove(this)}setData(e,t){const n=B(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(I).catch(I):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==P(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===G||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===R(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!_(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#i?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#o?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==oe.NODE_ENV&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},o=()=>{const e=Q(this.options,t),n=(()=>{const e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#i=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:"fetch",meta:a.fetchOptions?.meta}),this.#o=ne({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof te&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#o.start();if(void 0===e)throw"production"!==oe.NODE_ENV&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof te){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#l({type:"error",error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ie(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),K.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function ie(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ee(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function le(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var se=class extends k{constructor(e,t){super(),this.options=t,this.#e=e,this.#l=null,this.#i=$(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#o;#a;#i;#l;#s;#u;#c;#d;#f;#p;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),ue(this.#t,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ce(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ce(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof P(this.options.enabled,this.#t))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!F(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&de(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||R(this.options.staleTime,this.#t)!==R(t.staleTime,this.#t))&&this.#w();const o=this.#k();r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||o!==this.#p)&&this.#S(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return function(e,t){return!F(e.getCurrentResult(),t)}(this,n)&&(this.#r=n,this.#a=this.options,this.#o=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&"pending"===this.#i.status&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(I)),t}#w(){this.#y();const e=R(this.options.staleTime,this.#t);if(E||this.#r.isStale||!T(e))return;const t=_(this.#r.dataUpdatedAt,e)+1;this.#d=C.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#k(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#S(e){this.#b(),this.#p=e,!E&&!1!==P(this.options.enabled,this.#t)&&T(this.#p)&&0!==this.#p&&(this.#f=C.setInterval(()=>{(this.options.refetchIntervalInBackground||Y.isFocused())&&this.#m()},this.#p))}#g(){this.#w(),this.#S(this.#k())}#y(){this.#d&&(C.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#f&&(C.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,a=this.#o,i=this.#a,l=e!==n?e.state:this.#n,{state:s}=e;let u,c={...s},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&ue(e,t),i=o&&de(e,n,t,r);(a||i)&&(c={...c,...ie(s.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=c;u=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(h="success",u=B(o?.data,e,t),d=!0)}if(t.select&&void 0!==u&&!m)if(o&&u===a?.data&&t.select===this.#s)u=this.#u;else try{this.#s=t.select,u=t.select(u),u=B(o?.data,u,t),this.#u=u,this.#l=null}catch(e){this.#l=e}this.#l&&(f=this.#l,u=this.#u,p=Date.now(),h="error");const g="fetching"===c.fetchStatus,y="pending"===h,b="error"===h,v=y&&g,w=void 0!==u,k={status:h,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===h,isError:b,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:b&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:b&&w,isStale:fe(e,t),refetch:this.refetch,promise:this.#i,isEnabled:!1!==P(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===k.status?e.reject(k.error):void 0!==k.data&&e.resolve(k.data)},r=()=>{const e=this.#i=k.promise=$();t(e)},o=this.#i;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":("error"===k.status||k.data!==o.value)&&r();break;case"rejected":("error"!==k.status||k.error!==o.reason)&&r()}}return k}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#a=this.options,void 0!==this.#o.data&&(this.#c=this.#t),F(t,e))return;this.#r=t;this.#x({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#h.size)return!0;const r=new Set(n??this.#h);return this.options.throwOnError&&r.add("error"),Object.keys(this.#r).some(t=>{const n=t;return this.#r[n]!==e[n]&&r.has(n)})})()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#x(e){K.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ue(e,t){return function(e,t){return!1!==P(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&ce(e,t,t.refetchOnMount)}function ce(e,t,n){if(!1!==P(t.enabled,e)&&"static"!==R(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&fe(e,t)}return!1}function de(e,t,n,r){return(e!==t||!1===P(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&fe(e,n)}function fe(e,t){return!1!==P(t.enabled,e)&&e.isStaleByTime(R(t.staleTime,e))}function pe(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let n=!1;const u=Q(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})})(e),e})(),i=await u(a),{maxPages:l}=t.options,s=o?W:V;return{pages:s(e.pages,i,l),pageParams:s(e.pageParams,r,l)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?me:he)(r,t);l=await c(t,n,e)}else{const t=e??a.length;do{const e=0===s?i[0]??r.initialPageParam:he(r,l);if(s>0&&null==e)break;l=await c(l,e),s++}while(s<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function he(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function me(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ge(e,t){return!!t&&null!=he(e,t)}function ye(e,t){return!(!t||!e.getPreviousPageParam)&&null!=me(e,t)}var be=class extends re{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#o({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r="pending"===this.state.status,o=!this.#r.canStart();try{if(r)t();else{this.#o({type:"pending",variables:e,isPaused:o}),await(this.#n.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:o})}const a=await this.#r.start();return await(this.#n.config.onSuccess?.(a,e,this.state.context,this,n)),await(this.options.onSuccess?.(a,e,this.state.context,n)),await(this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(a,null,e,this.state.context,n)),this.#o({type:"success",data:a}),a}catch(t){try{throw await(this.#n.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#o({type:"error",error:t})}}finally{this.#n.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),K.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};var ve=class extends k{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new be({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=we(e);if("string"==typeof t){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=we(e);if("string"==typeof t){const n=this.#t.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=we(e);if("string"==typeof t){const n=this.#t.get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=we(e);return"string"==typeof t?this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){K.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>N(t,e))}findAll(e={}){return this.getAll().filter(t=>N(e,t))}notify(e){K.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return K.batch(()=>Promise.all(e.map(e=>e.continue().catch(I))))}};function we(e){return e.options.scope?.id}var ke=class extends k{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??L(r,t);let a=this.get(o);return a||(a=new ae({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){K.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>O(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>O(e,t)):t}notify(e){K.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){K.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){K.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=b();const xe=n(Se),Ce=e({__proto__:null,default:xe},[Se]);var Ae=Se.createContext(void 0),Ee=e=>{const t=Se.useContext(Ae);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ie=({client:e,children:t})=>(Se.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(Ae.Provider,{value:e,children:t})),Te=Se.createContext(!1);Te.Provider;var _e=Se.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Re=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}),Pe={};function Oe(e,t,n){if("production"!==Pe.NODE_ENV&&("object"!=typeof e||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Se.useContext(Te),o=Se.useContext(_e),a=Ee(n),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),"production"!==Pe.NODE_ENV&&(i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),i._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{Se.useEffect(()=>{e.clearReset()},[e])})(o);const l=!a.getQueryCache().get(i.queryHash),[s]=Se.useState(()=>new t(a,i)),u=s.getOptimisticResult(i),c=!r&&!1!==e.subscribed;if(Se.useSyncExternalStore(Se.useCallback(e=>{const t=c?s.subscribe(K.batchCalls(e)):I;return s.updateResult(),t},[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Se.useEffect(()=>{s.setOptions(i)},[i,s]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw Re(i,s,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(n,[e.error,r])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!E&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,r)&&(l?Re(i,s,o):a.getQueryCache().get(i.queryHash)?.promise)?.catch(I).finally(()=>{s.updateResult()}),i.notifyOnChangeProps?u:s.trackResult(u)}function Ne(e,t){return Oe(e,se,t)}var Le={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ze(this.context.count)},getNextContextId(){return ze(this.context.count++)}};function ze(e){const t=String(e),n=t.length-1;return Le.context.id+(n?String.fromCharCode(96+n):"")+t}function De(e){Le.context=e}var je=Symbol("solid-proxy"),Me="function"==typeof Proxy,Fe=Symbol("solid-track"),qe={equals:(e,t)=>e===t},Ue=At,He=1,Be=2,Ve={owned:null,cleanups:null,context:null,owner:null},We={},Ge=null,Qe=null,Ye=null,$e=null,Ze=null,Ke=0;function Je(e,t){const n=Ye,r=Ge,o=0===e.length,a=void 0===t?r:t,i=o?Ve:{owned:null,cleanups:null,context:a?a.context:null,owner:a},l=o?e:()=>e(()=>it(()=>_t(i)));Ge=i,Ye=null;try{return Ct(l,!0)}finally{Ye=n,Ge=r}}function Xe(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},qe,t):qe).equals||void 0};return[vt.bind(n),e=>("function"==typeof e&&(e=e(n.value)),wt(n,e))]}function et(e,t,n){kt(St(e,t,!0,He))}function tt(e,t,n){kt(St(e,t,!1,He))}function nt(e,t,n){Ue=Et;const r=St(e,t,!1,He);(!n||!n.render)&&(r.user=!0),Ze?Ze.push(r):kt(r)}function rt(e,t,n){n=n?Object.assign({},qe,n):qe;const r=St(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,kt(r),vt.bind(r)}function ot(e,t,n){let r,o,a;r=!0,o=e,a={};let i=null,l=We,s=null,u=!1,c="initialValue"in a,d=!1;const f=new Set,[p,h]=(a.storage||Xe)(a.initialValue),[m,g]=Xe(void 0),[y,b]=Xe(void 0,{equals:!1}),[v,w]=Xe(c?"ready":"unresolved");function k(e,t,n,r){return i===e&&(i=null,void 0!==r&&(c=!0),(e===l||t===l)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),l=We,function(e,t){Ct(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":c?"ready":"unresolved"),g(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function S(){const e=p(),t=m();if(void 0!==t&&!i)throw t;return Ye&&Ye.user,e}function x(e=!0){if(!1!==e&&u)return;u=!1;const t=d?d():r;if(null==t||!1===t)return void k(i,it(p));let n;const a=l!==We?l:it(()=>{try{return o(t,{value:p(),refetching:e})}catch(e){n=e}});if(void 0===n)return function(e){return e&&"object"==typeof e&&"then"in e}(a)?(i=a,"v"in a?(1===a.s?k(i,a.v,void 0,t):k(i,void 0,Rt(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Ct(()=>{w(c?"refreshing":"pending"),b()},!1),a.then(e=>k(a,e,void 0,t),e=>k(a,void 0,Rt(e),t)))):(k(i,a,void 0,t),a);k(i,void 0,Rt(n),t)}Le.context&&(s=Le.getNextContextId(),"initial"===a.ssrLoadFrom?l=a.initialValue:Le.load&&Le.has(s)&&(l=Le.load(s))),Object.defineProperties(S,{state:{get:()=>v()},error:{get:()=>m()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!c)return S();const e=m();if(e&&!i)throw e;return p()}}});let C=Ge;return d?et(()=>(C=Ge,x(!1))):x(!1),[S,{refetch:e=>dt(C,()=>x(e)),mutate:h}]}function at(e){return Ct(e,!1)}function it(e){if(null===Ye)return e();const t=Ye;Ye=null;try{return e()}finally{Ye=t}}function lt(e,t,n){const r=Array.isArray(e);let o,a=n&&n.defer;return n=>{let i;if(r){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();if(a)return a=!1,n;const l=it(()=>t(i,o,n));return o=i,l}}function st(e){nt(()=>it(e))}function ut(e){return null===Ge||(null===Ge.cleanups?Ge.cleanups=[e]:Ge.cleanups.push(e)),e}function ct(){return Ge}function dt(e,t){const n=Ge,r=Ye;Ge=e,Ye=null;try{return Ct(t,!0)}catch(e){Pt(e)}finally{Ge=n,Ye=r}}function ft(e){const t=Ye,n=Ge;return Promise.resolve().then(()=>(Ye=t,Ge=n,Ct(e,!1),void(Ye=Ge=null)))}var[pt,ht]=Xe(!1);function mt(){return[pt,ft]}function gt(e,t){const n=Symbol("context");return{id:n,Provider:Nt(n),defaultValue:e}}function yt(e){let t;return Ge&&Ge.context&&void 0!==(t=Ge.context[e.id])?t:e.defaultValue}function bt(e){const t=rt(e),n=rt(()=>Ot(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function vt(){if(this.sources&&this.state)if(this.state===He)kt(this);else{const e=$e;$e=null,Ct(()=>It(this),!1),$e=e}if(Ye){const e=this.observers?this.observers.length:0;Ye.sources?(Ye.sources.push(this),Ye.sourceSlots.push(e)):(Ye.sources=[this],Ye.sourceSlots=[e]),this.observers?(this.observers.push(Ye),this.observerSlots.push(Ye.sources.length-1)):(this.observers=[Ye],this.observerSlots=[Ye.sources.length-1])}return this.value}function wt(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Ct(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Qe&&Qe.running;r&&Qe.disposed.has(n),(r?!n.tState:!n.state)&&(n.pure?$e.push(n):Ze.push(n),n.observers&&Tt(n)),r||(n.state=He)}if($e.length>1e6)throw $e=[],new Error},!1)),t}function kt(e){if(!e.fn)return;_t(e);const t=Ke;!function(e,t,n){let r;const o=Ge,a=Ye;Ye=Ge=e;try{r=e.fn(t)}catch(t){return e.pure&&(e.state=He,e.owned&&e.owned.forEach(_t),e.owned=null),e.updatedAt=n+1,Pt(t)}finally{Ye=a,Ge=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?wt(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function St(e,t,n,r=He,o){const a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ge,context:Ge?Ge.context:null,pure:n};return null===Ge||Ge!==Ve&&(Ge.owned?Ge.owned.push(a):Ge.owned=[a]),a}function xt(e){if(0===e.state)return;if(e.state===Be)return It(e);if(e.suspense&&it(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ke);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===He)kt(e);else if(e.state===Be){const n=$e;$e=null,Ct(()=>It(e,t[0]),!1),$e=n}}function Ct(e,t){if($e)return e();let n=!1;t||($e=[]),Ze?n=!0:Ze=[],Ke++;try{const t=e();return function(e){if($e&&(At($e),$e=null),e)return;const t=Ze;Ze=null,t.length&&Ct(()=>Ue(t),!1)}(n),t}catch(e){n||(Ze=null),$e=null,Pt(e)}}function At(e){for(let t=0;t<e.length;t++)xt(e[t])}function Et(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:xt(r)}if(Le.context){if(Le.count)return Le.effects||(Le.effects=[]),void Le.effects.push(...e.slice(0,n));De()}for(Le.effects&&(Le.done||!Le.count)&&(e=[...Le.effects,...e],n+=Le.effects.length,delete Le.effects),t=0;t<n;t++)xt(e[t])}function It(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===He?r!==t&&(!r.updatedAt||r.updatedAt<Ke)&&xt(r):e===Be&&It(r,t)}}}function Tt(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Be,n.pure?$e.push(n):Ze.push(n),n.observers&&Tt(n))}}function _t(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)_t(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)_t(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Rt(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function Pt(e,t=Ge){throw Rt(e)}function Ot(e){if("function"==typeof e&&!e.length)return Ot(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Ot(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Nt(e,t){return function(t){let n;return tt(()=>n=it(()=>(Ge.context={...Ge.context,[e]:t.value},bt(()=>t.children))),void 0),n}}var Lt=Symbol("fallback");function zt(e){for(let t=0;t<e.length;t++)e[t]()}function Dt(e,t){return it(()=>e(t||{}))}function jt(){return!0}var Mt={get:(e,t,n)=>t===je?n:e.get(t),has:(e,t)=>t===je||e.has(t),set:jt,deleteProperty:jt,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:jt,deleteProperty:jt}),ownKeys:e=>e.keys()};function Ft(e){return(e="function"==typeof e?e():e)?e:{}}function qt(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function Ut(...e){let t=!1;for(let n=0;n<e.length;n++){const r=e[n];t=t||!!r&&je in r,e[n]="function"==typeof r?(t=!0,rt(r)):r}if(Me&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Ft(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Ft(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Ft(e[n])));return[...new Set(t)]}},Mt);const n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o)continue;const a=Object.getOwnPropertyNames(o);for(let e=a.length-1;e>=0;e--){const t=a[e];if("__proto__"===t||"constructor"===t)continue;const i=Object.getOwnPropertyDescriptor(o,t);if(r[t]){const e=n[t];e&&(i.get?e.push(i.get.bind(o)):void 0!==i.value&&e.push(()=>i.value))}else r[t]=i.get?{enumerable:!0,configurable:!0,get:qt.bind(n[t]=[i.get.bind(o)])}:void 0!==i.value?i:void 0}}const o={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){const t=a[e],n=r[t];n&&n.get?Object.defineProperty(o,t,n):o[t]=n?n.value:void 0}return o}function Ht(e,...t){if(Me&&je in e){const n=new Set(t.length>1?t.flat():t[0]),r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Mt));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Mt)),r}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const a=Object.getOwnPropertyDescriptor(e,o),i=!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable;let l=!1,s=0;for(const e of t)e.includes(o)&&(l=!0,i?r[s][o]=a.value:Object.defineProperty(r[s],o,a)),++s;l||(i?n[o]=a.value:Object.defineProperty(n,o,a))}return[...r,n]}var Bt=0;function Vt(){return Le.context?Le.getNextContextId():"cl-"+Bt++}var Wt=e=>`Stale read from <${e}>.`;function Gt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return rt(function(e,t,n={}){let r=[],o=[],a=[],i=0,l=t.length>1?[]:null;return ut(()=>zt(a)),()=>{let s,u,c=e()||[],d=c.length;return c[Fe],it(()=>{let e,t,p,h,m,g,y,b,v;if(0===d)0!==i&&(zt(a),a=[],r=[],o=[],i=0,l&&(l=[])),n.fallback&&(r=[Lt],o[0]=Je(e=>(a[0]=e,n.fallback())),i=1);else if(0===i){for(o=new Array(d),u=0;u<d;u++)r[u]=c[u],o[u]=Je(f);i=d}else{for(p=new Array(d),h=new Array(d),l&&(m=new Array(d)),g=0,y=Math.min(i,d);g<y&&r[g]===c[g];g++);for(y=i-1,b=d-1;y>=g&&b>=g&&r[y]===c[b];y--,b--)p[b]=o[y],h[b]=a[y],l&&(m[b]=l[y]);for(e=new Map,t=new Array(b+1),u=b;u>=g;u--)v=c[u],s=e.get(v),t[u]=void 0===s?-1:s,e.set(v,u);for(s=g;s<=y;s++)v=r[s],u=e.get(v),void 0!==u&&-1!==u?(p[u]=o[s],h[u]=a[s],l&&(m[u]=l[s]),u=t[u],e.set(v,u)):a[s]();for(u=g;u<d;u++)u in p?(o[u]=p[u],a[u]=h[u],l&&(l[u]=m[u],l[u](u))):o[u]=Je(f);o=o.slice(0,i=d),r=c.slice(0)}return o});function f(e){if(a[u]=e,l){const[e,n]=Xe(u);return l[u]=n,t(c[u],e)}return t(c[u])}}}(()=>e.each,e.children,t||void 0))}function Qt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return rt(function(e,t,n={}){let r,o=[],a=[],i=[],l=[],s=0;return ut(()=>zt(i)),()=>{const u=e()||[],c=u.length;return u[Fe],it(()=>{if(0===c)return 0!==s&&(zt(i),i=[],o=[],a=[],s=0,l=[]),n.fallback&&(o=[Lt],a[0]=Je(e=>(i[0]=e,n.fallback())),s=1),a;for(o[0]===Lt&&(i[0](),i=[],o=[],a=[],s=0),r=0;r<c;r++)r<o.length&&o[r]!==u[r]?l[r](()=>u[r]):r>=o.length&&(a[r]=Je(d));for(;r<o.length;r++)i[r]();return s=l.length=i.length=c,o=u.slice(0),a=a.slice(0,s)});function d(e){i[r]=e;const[n,o]=Xe(u[r]);return l[r]=o,t(n,r)}}}(()=>e.each,e.children,t||void 0))}function Yt(e){const t=e.keyed,n=rt(()=>e.when,void 0,void 0),r=t?n:rt(n,void 0,{equals:(e,t)=>!e==!t});return rt(()=>{const o=r();if(o){const a=e.children;return"function"==typeof a&&a.length>0?it(()=>a(t?o:()=>{if(!it(r))throw Wt("Show");return n()})):a}return e.fallback},void 0,void 0)}function $t(e){const t=bt(()=>e.children),n=rt(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let e=0;e<n.length;e++){const t=e,o=n[e],a=r,i=rt(()=>a()?void 0:o.when,void 0,void 0),l=o.keyed?i:rt(i,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(l()?[t,i,o]:void 0)}return r});return rt(()=>{const t=n()();if(!t)return e.fallback;const[r,o,a]=t,i=a.children;return"function"==typeof i&&i.length>0?it(()=>i(a.keyed?o():()=>{if(it(n)()?.[0]!==r)throw Wt("Match");return o()})):i},void 0,void 0)}function Zt(e){return e}var Kt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Jt=new Set(["innerHTML","textContent","innerText","children"]),Xt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),en=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});var tn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),nn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),rn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},on=e=>rt(()=>e());var an="_$DX_DELEGATE";function ln(e,t,n,r){let o;const a=()=>(o||(o=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return a.cloneNode=a,a}function sn(e,t=window.document){const n=t[an]||(t[an]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,wn))}}function un(e=window.document){if(e[an]){for(let t of e[an].keys())e.removeEventListener(t,wn);delete e[an]}}function cn(e,t,n){yn(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function dn(e,t){yn(e)||(null==t?e.removeAttribute("class"):e.className=t)}function fn(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}function pn(e,t={},n,r){const o={};return r||tt(()=>o.children=kn(e,t.children,o.children)),tt(()=>"function"==typeof t.ref&&hn(t.ref,e)),tt(()=>function(e,t,n,r,o={},a=!1){t||(t={});for(const r in o)if(!(r in t)){if("children"===r)continue;o[r]=vn(e,r,null,o[r],n,a,t)}for(const r in t){if("children"===r)continue;const i=t[r];o[r]=vn(e,r,i,o[r],n,a,t)}}(e,t,n,0,o,!0)),o}function hn(e,t,n){return it(()=>e(t,n))}function mn(e,t,n,r){if(void 0!==n&&!r&&(r=[]),"function"!=typeof t)return kn(e,t,r,n);tt(r=>kn(e,t(),r,n),r)}function gn(e){let t,n;return yn()&&(t=Le.registry.get(n=Le.getNextContextId()))?(Le.completed&&Le.completed.add(t),Le.registry.delete(n),t):e()}function yn(e){return!!Le.context&&!Le.done&&(!e||e.isConnected)}function bn(e,t,n){const r=t.trim().split(/\s+/);for(let t=0,o=r.length;t<o;t++)e.classList.toggle(r[t],n)}function vn(e,t,n,r,o,a,i){let l,s,u,c,d;if("style"===t)return function(e,t,n){if(!t)return n?cn(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,a;for(a in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[a]&&r.removeProperty(a),delete n[a];for(a in t)o=t[a],o!==n[a]&&(r.setProperty(a,o),n[a]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let a,i;for(a=0,i=o.length;a<i;a++){const r=o[a];!r||"undefined"===r||t[r]||(bn(e,r,!1),delete n[r])}for(a=0,i=r.length;a<i;a++){const o=r[a],i=!!t[o];!o||"undefined"===o||n[o]===i||!i||(bn(e,o,!0),n[o]=i)}return n}(e,n,r);if(n===r)return r;if("ref"===t)a||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),a=tn.has(o);if(!a&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(a||n)&&(fn(e,o,n,a),a&&sn([o]))}else if("attr:"===t.slice(0,5))cn(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){yn(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((d="prop:"===t.slice(0,5))||(u=Jt.has(t))||!o&&((c=function(e,t){const n=en[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(s=Kt.has(t)))||(l=e.nodeName.includes("-")||"is"in i)){if(d)t=t.slice(5),s=!0;else if(yn(e))return n;"class"===t||"className"===t?dn(e,n):!l||s||u?e[c||t]=n:e[function(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}(t)]=n}else{const r=o&&t.indexOf(":")>-1&&rn[t.split(":")[0]];r?function(e,t,n,r){yn(e)||(null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}(e,r,t,n):cn(e,Xt[t]||t,n)}return n}function wn(e){if(Le.registry&&Le.events&&Le.events.find(([t,n])=>n===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),i=()=>{const r=t[n];if(r&&!t.disabled){const o=t[`${n}Data`];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},l=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),Le.registry&&!Le.done&&(Le.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],i());e++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();a(r)}function kn(e,t,n,r,o){const a=yn(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,l=void 0!==r;if(e=l&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(a||"number"===i&&(t=t.toString())===n)return n;if(l){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Cn(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(a)return n;n=Cn(e,n,r)}else{if("function"===i)return tt(()=>{let o=t();for(;"function"==typeof o;)o=o();n=kn(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(Sn(i,t,n,o))return tt(()=>n=kn(e,i,n,r,!0)),()=>n;if(a){if(!i.length)return n;if(void 0===r)return n=[...e.childNodes];let t=i[0];if(t.parentNode!==e)return n;const o=[t];for(;(t=t.nextSibling)!==r;)o.push(t);return n=o}if(0===i.length){if(n=Cn(e,n,r),l)return n}else s?0===n.length?xn(e,i,r):function(e,t,n){let r=n.length,o=t.length,a=r,i=0,l=0,s=t[o-1].nextSibling,u=null;for(;i<o||l<a;)if(t[i]!==n[l]){for(;t[o-1]===n[a-1];)o--,a--;if(o===i){const t=a<r?l?n[l-1].nextSibling:n[a-l]:s;for(;l<a;)e.insertBefore(n[l++],t)}else if(a===l)for(;i<o;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[a-1]&&n[l]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[l++],t[i++].nextSibling),e.insertBefore(n[--a],r),t[o]=n[a]}else{if(!u){u=new Map;let e=l;for(;e<a;)u.set(n[e],e++)}const r=u.get(t[i]);if(null!=r)if(l<r&&r<a){let s,c=i,d=1;for(;++c<o&&c<a&&null!=(s=u.get(t[c]))&&s===r+d;)d++;if(d>r-l){const o=t[i];for(;l<r;)e.insertBefore(n[l++],o)}else e.replaceChild(n[l++],t[i++])}else i++;else t[i++].remove()}}else i++,l++}(e,n,i):(n&&Cn(e),xn(e,i));n=i}else if(t.nodeType){if(a&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=Cn(e,n,r,t);Cn(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Sn(e,t,n,r){let o=!1;for(let a=0,i=t.length;a<i;a++){let i,l=t[a],s=n&&n[e.length];if(null!=l&&!0!==l&&!1!==l)if("object"==(i=typeof l)&&l.nodeType)e.push(l);else if(Array.isArray(l))o=Sn(e,l,s)||o;else if("function"===i)if(r){for(;"function"==typeof l;)l=l();o=Sn(e,Array.isArray(l)?l:[l],Array.isArray(s)?s:[s])||o}else e.push(l),o=!0;else{const t=String(l);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function xn(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Cn(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){const i=t[a];if(o!==i){const t=i.parentNode===e;r||a?t&&i.remove():t?e.replaceChild(o,i):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function An(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function En(e){const{useShadow:t}=e,n=document.createTextNode(""),r=ct();let o,a=!!Le.context;return nt(()=>{a&&(ct().user=a=!1),o||(o=dt(r,()=>rt(()=>e.children)));const i=e.mount||document.body;if(i instanceof HTMLHeadElement){const[e,t]=Xe(!1),n=()=>t(!0);Je(t=>mn(i,()=>e()?t():o(),null)),ut(n)}else{const r=An(e.isSVG?"g":"div",e.isSVG),a=t&&r.attachShadow?r.attachShadow({mode:"open"}):r;Object.defineProperty(r,"_$host",{get:()=>n.parentNode,configurable:!0}),mn(a,o),i.appendChild(r),e.ref&&e.ref(r),ut(()=>i.removeChild(r))}},void 0,{render:!a}),n}function In(e){const[,t]=Ht(e,["component"]);return function(e,t){const n=rt(e);return rt(()=>{const e=n();switch(typeof e){case"function":return it(()=>e(t));case"string":const n=nn.has(e),r=Le.context?gn():An(e,n);return pn(r,t,n),r}})}(()=>e.component,t)}var Tn=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},_n=class{constructor(e){this.generateIdentifier=e,this.kv=new Tn}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Rn=class extends _n{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Pn(e,t){const n=function(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);const r=n;for(let e=0;e<r.length;e++){const n=r[e];if(t(n))return n}}function On(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Nn(e,t){return-1!==e.indexOf(t)}function Ln(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var zn=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Pn(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Dn=e=>typeof e>"u",jn=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),Mn=e=>jn(e)&&0===Object.keys(e).length,Fn=e=>Array.isArray(e),qn=e=>e instanceof Map,Un=e=>e instanceof Set,Hn=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),Bn=e=>"number"==typeof e&&isNaN(e),Vn=e=>(e=>"boolean"==typeof e)(e)||(e=>null===e)(e)||Dn(e)||(e=>"number"==typeof e&&!isNaN(e))(e)||(e=>"string"==typeof e)(e)||Hn(e),Wn=e=>e.replace(/\./g,"\\."),Gn=e=>e.map(String).map(Wn).join("."),Qn=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let o=e.charAt(r);"\\"!==o||"."!==e.charAt(r+1)?"."!==o?n+=o:(t.push(n),n=""):(n+=".",r++)}const r=n;return t.push(r),t};function Yn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var $n=[Yn(Dn,"undefined",()=>null,()=>{}),Yn(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Yn(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),Yn(e=>e instanceof Error,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Yn(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Yn(Un,"set",e=>[...e.values()],e=>new Set(e)),Yn(qn,"map",e=>[...e.entries()],e=>new Map(e)),Yn(e=>Bn(e)||(e=>e===1/0||e===-1/0)(e),"number",e=>Bn(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Yn(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),Yn(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Zn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Kn=Zn((e,t)=>!!Hn(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Jn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Xn=Zn(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Jn[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function er(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var tr=Zn(er,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),nr=Zn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),rr=[tr,Kn,nr,Xn],or=(e,t)=>{const n=Ln(rr,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ln($n,n=>n.isApplicable(e,t));return r?{value:r.transform(e,t),type:r.annotation}:void 0},ar={};$n.forEach(e=>{ar[e.annotation]=e});var ir=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function lr(e){if(Nn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Nn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Nn(e,"constructor"))throw new Error("constructor is not allowed as a property")}var sr=(e,t,n)=>{if(lr(t),0===t.length)return n(e);let r=e;for(let e=0;e<t.length-1;e++){const n=t[e];if(Fn(r)){r=r[+n]}else if(jn(r))r=r[n];else if(Un(r)){r=ir(r,+n)}else if(qn(r)){if(e===t.length-2)break;const o=+n,a=0==+t[++e]?"key":"value",i=ir(r,o);switch(a){case"key":r=i;break;case"value":r=r.get(i)}}}const o=t[t.length-1];if(Fn(r)?r[+o]=n(r[+o]):jn(r)&&(r[o]=n(r[o])),Un(r)){const e=ir(r,+o),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(qn(r)){const e=+t[t.length-2],a=ir(r,e);switch(0==+o?"key":"value"){case"key":{const e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case"value":r.set(a,n(r.get(a)))}}return e};function ur(e,t,n=[]){if(!e)return;if(!Fn(e))return void On(e,(e,r)=>ur(e,t,[...n,...Qn(r)]));const[r,o]=e;o&&On(o,(e,r)=>{ur(e,t,[...n,...Qn(r)])}),t(r,n)}function cr(e,t,n){return ur(t,(t,r)=>{e=sr(e,r,e=>((e,t,n)=>{if(!Fn(t)){const r=ar[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return Kn.untransform(e,t,n);case"class":return tr.untransform(e,t,n);case"custom":return nr.untransform(e,t,n);case"typed-array":return Xn.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}})(e,t,n))}),e}function dr(e,t){function n(t,n){const r=((e,t)=>{lr(t);for(let n=0;n<t.length;n++){const r=t[n];if(Un(e))e=ir(e,+r);else if(qn(e)){const o=+r,a=0==+t[++n]?"key":"value",i=ir(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e})(e,Qn(n));t.map(Qn).forEach(t=>{e=sr(e,t,()=>r)})}if(Fn(t)){const[r,o]=t;r.forEach(t=>{e=sr(e,Qn(t),()=>e)}),o&&On(o,n)}else On(t,n);return e}var fr=(e,t,n,r,o=[],a=[],i=new Map)=>{const l=Vn(e);if(!l){!function(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);const n=i.get(e);if(n)return r?{transformedValue:null}:n}if(!((e,t)=>jn(e)||Fn(e)||qn(e)||Un(e)||er(e,t))(e,n)){const t=or(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return l||i.set(e,r),r}if(Nn(a,e))return{transformedValue:null};const s=or(e,n),u=s?.value??e,c=Fn(u)?[]:{},d={};On(u,(l,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)throw new Error(`Detected property ${s}. This is a prototype pollution risk, please remove it from your object.`);const u=fr(l,t,n,r,[...o,s],[...a,e],i);c[s]=u.transformedValue,Fn(u.annotations)?d[s]=u.annotations:jn(u.annotations)&&On(u.annotations,(e,t)=>{d[Wn(s)+"."+t]=e})});const f=Mn(d)?{transformedValue:c,annotations:s?[s.type]:void 0}:{transformedValue:c,annotations:s?[s.type,d]:d};return l||i.set(e,f),f};function pr(e){return Object.prototype.toString.call(e).slice(8,-1)}function hr(e){return"Array"===pr(e)}function mr(e,t={}){if(hr(e))return e.map(e=>mr(e,t));if(!function(e){if("Object"!==pr(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(hr(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,mr(e[r],t),e,t.nonenumerable),n},{})}var gr=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Rn,this.symbolRegistry=new _n(e=>e.description??""),this.customTransformerRegistry=new zn,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=fr(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=function(e,t){const n={};let r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));const[o,...a]=e;0===o.length?r=a.map(Gn):n[Gn(o)]=a.map(Gn)}),r?Mn(n)?[r]:[r,n]:Mn(n)?void 0:n}(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=mr(t);return n?.values&&(r=cr(r,n.values,this)),n?.referentialEqualities&&(r=dr(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};gr.defaultInstance=new gr,gr.serialize=gr.defaultInstance.serialize.bind(gr.defaultInstance),gr.deserialize=gr.defaultInstance.deserialize.bind(gr.defaultInstance),gr.stringify=gr.defaultInstance.stringify.bind(gr.defaultInstance),gr.parse=gr.defaultInstance.parse.bind(gr.defaultInstance),gr.registerClass=gr.defaultInstance.registerClass.bind(gr.defaultInstance),gr.registerSymbol=gr.defaultInstance.registerSymbol.bind(gr.defaultInstance),gr.registerCustom=gr.defaultInstance.registerCustom.bind(gr.defaultInstance),gr.allowErrorProps=gr.defaultInstance.allowErrorProps.bind(gr.defaultInstance);var yr=gr.serialize,br=gr.stringify;function vr(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function wr(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function kr({queryState:e,observerCount:t,isStale:n}){return"fetching"===e.fetchStatus?"blue":t?"paused"===e.fetchStatus?"purple":n?"yellow":"green":"gray"}function Sr({status:e,isPaused:t}){return t?"purple":"error"===e?"red":"pending"===e?"yellow":"success"===e?"green":"gray"}function xr(e){return"fresh"===e?"green":"stale"===e?"yellow":"paused"===e?"purple":"inactive"===e?"gray":"blue"}var Cr=(e,t=!1)=>{const{json:n}=yr(e);return JSON.stringify(n,null,t?2:void 0)},Ar=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Er=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Ir={status:(e,t)=>Ar(e)===Ar(t)?Er(e,t):Ar(e)>Ar(t)?1:-1,"query hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"last updated":Er},Tr=e=>e.state.isPaused?0:"error"===e.state.status?2:"pending"===e.state.status?1:3,_r=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Rr={status:(e,t)=>Tr(e)===Tr(t)?_r(e,t):Tr(e)>Tr(t)?1:-1,"last updated":_r},Pr=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Or=()=>{const[e,t]=Xe("dark");return st(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t(e.matches?"dark":"light");const n=e=>{t(e.matches?"dark":"light")};e.addEventListener("change",n),ut(()=>e.removeEventListener("change",n))}),e},Nr=(e,t,n)=>{if(0===t.length)return n;if(e instanceof Map){const r=new Map(e);if(1===t.length)return r.set(t[0],n),r;const[o,...a]=t;return r.set(o,Nr(r.get(o),a,n)),r}if(e instanceof Set){const r=Nr(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(1===t.length)return r[t[0]]=n,r;const[o,...a]=t;return r[o]=Nr(r[o],a,n),r}if(e instanceof Object){const r={...e};if(1===t.length)return r[t[0]]=n,r;const[o,...a]=t;return r[o]=Nr(r[o],a,n),r}return e},Lr=(e,t)=>{if(e instanceof Map){const n=new Map(e);if(1===t.length)return n.delete(t[0]),n;const[r,...o]=t;return n.set(r,Lr(n.get(r),o)),n}if(e instanceof Set){const n=Lr(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(1===t.length)return n.filter((e,n)=>n.toString()!==t[0]);const[r,...o]=t;return n[r]=Lr(n[r],o),n}if(e instanceof Object){const n={...e};if(1===t.length)return delete n[t[0]],n;const[r,...o]=t;return n[r]=Lr(n[r],o),n}return e},zr=class{#e;#t;#n;#r;#o=!1;#a;#i;#l;#s;#u;#c;#d;#f;#p;constructor(e){const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:a,position:i,initialIsOpen:l,errorTypes:s,styleNonce:u,shadowDOMTarget:c,hideDisabledQueries:d}=e;this.#e=Xe(t),this.#n=n,this.#r=r,this.#t=o,this.#a=u,this.#i=c,this.#l=Xe(a),this.#s=Xe(i),this.#u=Xe(l),this.#c=Xe(s),this.#d=Xe(d)}setButtonPosition(e){this.#l[1](e)}setPosition(e){this.#s[1](e)}setInitialIsOpen(e){this.#u[1](e)}setErrorTypes(e){this.#c[1](e)}setClient(e){this.#e[1](e)}mount(e){if(this.#o)throw new Error("Devtools is already mounted");const t=function(e,t,n,r={}){let o;return Je(r=>{o=r,t===document?e():mn(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>{const e=this,[t]=this.#l,[n]=this.#s,[r]=this.#u,[o]=this.#c,[a]=this.#d,[i]=this.#e;let l;return this.#f?l=this.#f:(l=function(e){let t,n;const r=r=>{const o=Le.context;if(o){const[r,a]=Xe();Le.count||(Le.count=0),Le.count++,(n||(n=e())).then(e=>{!Le.done&&De(o),Le.count--,a(()=>e.default),De()}),t=r}else if(!t){const[r]=ot(()=>(n||(n=e())).then(e=>e.default));t=r}let a;return rt(()=>(a=t())?it(()=>{if(!o||Le.done)return a(r);const e=Le.context;De(o);const t=a(r);return De(e),t}):"")};return r.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),r}(()=>import("./NCMVHL6D-CxiMFMqg.js")),this.#f=l),((e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;const n=document.createElement("style"),r=document.createTextNode("");n.appendChild(r),n.id="_goober",n.setAttribute("nonce",e),t?t.appendChild(n):document.head.appendChild(n)})(this.#a,this.#i),Dt(l,Ut({get queryFlavor(){return e.#n},get version(){return e.#r},get onlineManager(){return e.#t},get shadowDOMTarget(){return e.#i}},{get client(){return i()},get buttonPosition(){return t()},get position(){return n()},get initialIsOpen(){return r()},get errorTypes(){return o()},get hideDisabledQueries(){return a()}}))},e);this.#o=!0,this.#p=t}unmount(){if(!this.#o)throw new Error("Devtools is not mounted");this.#p?.(),this.#o=!1}};var Dr="development"!=={}.NODE_ENV?function(){return null}:function(e){const t=Ee(e.client),n=Se.useRef(null),{buttonPosition:r,position:o,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:s,hideDisabledQueries:u}=e,[c]=Se.useState(new zr({client:t,queryFlavor:"React Query",version:"5",onlineManager:J,buttonPosition:r,position:o,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:s,hideDisabledQueries:u}));return Se.useEffect(()=>{c.setClient(t)},[t,c]),Se.useEffect(()=>{r&&c.setButtonPosition(r)},[r,c]),Se.useEffect(()=>{o&&c.setPosition(o)},[o,c]),Se.useEffect(()=>{c.setInitialIsOpen(a||!1)},[a,c]),Se.useEffect(()=>{c.setErrorTypes(i||[])},[i,c]),Se.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),w.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})};class jr extends Error{response;request;options;constructor(e,t,n){const r=`${e.status||0===e.status?e.status:""} ${e.statusText??""}`.trim();super(`Request failed with ${r?`status code ${r}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=n}}class Mr extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}const Fr=(()=>{let e=!1,t=!1;const n="function"==typeof globalThis.ReadableStream,r="function"==typeof globalThis.Request;if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),qr="function"==typeof globalThis.AbortController,Ur="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Hr="function"==typeof globalThis.ReadableStream,Br="function"==typeof globalThis.FormData,Vr=["get","post","put","patch","head","delete"],Wr={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Gr=2147483647,Qr=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Yr=Symbol("stop"),$r={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Zr={next:!0},Kr={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Jr=(e,t,n)=>{let r,o=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){o+=r.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),n?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},r)}r=e},flush(){r&&(o+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},r))}}))},Xr=(e,t,n)=>{if(!e.body)return e;const r=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[n,r]of e)t+=Qr,t+=(new TextEncoder).encode(`Content-Disposition: form-data; name="${n}"`).length,t+="string"==typeof r?(new TextEncoder).encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return(new TextEncoder).encode(e).length;if(e instanceof URLSearchParams)return(new TextEncoder).encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length}catch{return 0}return 0})(n??e.body);return new Request(e,{duplex:"half",body:Jr(e.body,r,t)})},eo=e=>null!==e&&"object"==typeof e,to=(...e)=>{for(const t of e)if((!eo(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return io({},...e)},no=(e={},t={})=>{const n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())r&&"undefined"===t||void 0===t?n.delete(e):n.set(e,t);return n};function ro(e,t,n){return Object.hasOwn(t,n)&&void 0===t[n]?[]:io(e[n]??[],t[n]??[])}const oo=(e={},t={})=>({beforeRequest:ro(e,t,"beforeRequest"),beforeRetry:ro(e,t,"beforeRetry"),afterResponse:ro(e,t,"afterResponse"),beforeError:ro(e,t,"beforeError")}),ao=(e,t)=>{const n=new URLSearchParams;for(const r of[e,t])if(void 0!==r)if(r instanceof URLSearchParams)for(const[e,t]of r.entries())n.append(e,t);else if(Array.isArray(r))for(const e of r){if(!Array.isArray(e)||2!==e.length)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(e[0]),String(e[1]))}else if(eo(r))for(const[e,t]of Object.entries(r))void 0!==t&&n.append(e,String(t));else{const e=new URLSearchParams(r);for(const[t,r]of e.entries())n.append(t,r)}return n},io=(...e)=>{let t,n={},r={},o={};const a=[];for(const i of e)if(Array.isArray(i))Array.isArray(n)||(n=[]),n=[...n,...i];else if(eo(i)){for(let[e,r]of Object.entries(i))if("signal"===e&&r instanceof globalThis.AbortSignal)a.push(r);else if("context"!==e)"searchParams"!==e?(eo(r)&&e in n&&(r=io(n[e],r)),n={...n,[e]:r}):t=null==r?void 0:void 0===t?r:ao(t,r);else{if(null!=r&&(!eo(r)||Array.isArray(r)))throw new TypeError("The `context` option must be an object");n={...n,context:null==r?{}:{...n.context,...r}}}eo(i.hooks)&&(o=oo(o,i.hooks),n.hooks=o),eo(i.headers)&&(r=no(r,i.headers),n.headers=r)}return void 0!==t&&(n.searchParams=t),a.length>0&&(1===a.length?n.signal=a[0]:n.signal=Ur?AbortSignal.any(a):a.at(-1)),void 0===n.context&&(n.context={}),n},lo={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},so=(e={})=>{if("number"==typeof e)return{...lo,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...lo,...e}};class uo extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}class co{static create(e,t){const n=new co(e,t),r=async()=>{if("number"==typeof n.#o.timeout&&n.#o.timeout>Gr)throw new RangeError(`The \`timeout\` option cannot be greater than ${Gr}`);await Promise.resolve();let e=await n.#f();for(const t of n.#o.hooks.afterResponse){const r=await t(n.request,n.#p(),n.#c(e.clone()),{retryCount:n.#n});r instanceof globalThis.Response&&(e=r)}if(n.#c(e),!e.ok&&n.#o.throwHttpErrors){let t=new jr(e,n.request,n.#p());for(const e of n.#o.hooks.beforeError)t=await e(t,{retryCount:n.#n});throw t}if(n.#o.onDownloadProgress){if("function"!=typeof n.#o.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Hr)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Jr(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),n.#o.onDownloadProgress)}return e},o=(n.#o.retry.methods.includes(n.request.method.toLowerCase())?n.#d(r):r()).finally(async()=>{const e=n.#a,t=[];e&&!e.bodyUsed&&t.push(e.body?.cancel()),n.request.bodyUsed||t.push(n.request.body?.cancel()),await Promise.all(t)});for(const[e,r]of Object.entries(Wr))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(o[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||r);const a=await o;if("json"===e){if(204===a.status)return"";const e=await a.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return a[e]()});return o}static#e(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#t;#n=0;#r;#o;#a;#i;#l;constructor(e,t={}){if(this.#r=e,this.#o={...t,headers:no(this.#r.headers,t.headers),hooks:oo({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(n=t.method??this.#r.method??"GET",Vr.includes(n)?n.toUpperCase():n),prefixUrl:String(t.prefixUrl||""),retry:so(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#r&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");var n;if(this.#o.prefixUrl&&"string"==typeof this.#r){if(this.#r.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#o.prefixUrl.endsWith("/")||(this.#o.prefixUrl+="/"),this.#r=this.#o.prefixUrl+this.#r}qr&&Ur&&(this.#i=this.#o.signal??this.#r.signal,this.#t=new globalThis.AbortController,this.#o.signal=this.#i?AbortSignal.any([this.#i,this.#t.signal]):this.#t.signal),Fr&&(this.#o.duplex="half"),void 0!==this.#o.json&&(this.#o.body=this.#o.stringifyJson?.(this.#o.json)??JSON.stringify(this.#o.json),this.#o.headers.set("content-type",this.#o.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#r instanceof globalThis.Request&&(Br&&this.#o.body instanceof globalThis.FormData||this.#o.body instanceof URLSearchParams)&&!r&&this.#o.headers.delete("content-type"),this.request=new globalThis.Request(this.#r,this.#o),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#o.searchParams)){const e="?"+("string"==typeof this.#o.searchParams?this.#o.searchParams.replace(/^\?/,""):new URLSearchParams(co.#e(this.#o.searchParams)).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this.#o)}if(this.#o.onUploadProgress){if("function"!=typeof this.#o.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!Fr)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=Xr(this.request,this.#o.onUploadProgress,this.#o.body))}}#s(){const e=this.#o.retry.delay(this.#n);let t=e;return!0===this.#o.retry.jitter?t=Math.random()*e:"function"==typeof this.#o.retry.jitter&&(t=this.#o.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#o.retry.backoffLimit,t)}async#u(e){if(this.#n++,this.#n>this.#o.retry.limit)throw e;const t=e instanceof Error?e:new Mr(e);if(void 0!==this.#o.retry.shouldRetry){const n=await this.#o.retry.shouldRetry({error:t,retryCount:this.#n});if(!1===n)throw e;if(!0===n)return this.#s()}if(((n=e)instanceof uo||n?.name===uo.name)&&!this.#o.retry.retryOnTimeout)throw e;var n;if(function(e){return e instanceof jr||e?.name===jr.name}(e)){if(!this.#o.retry.statusCodes.includes(e.response.status))throw e;const t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#o.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());const n=this.#o.retry.maxRetryAfter??e;return e<n?e:n}if(413===e.response.status)throw e}return this.#s()}#c(e){return this.#o.parseJson&&(e.json=async()=>this.#o.parseJson(await e.text())),e}async#d(e){try{return await e()}catch(t){const n=Math.min(await this.#u(t),Gr);if(this.#n<1)throw t;await async function(e,{signal:t}){return new Promise((n,r)=>{function o(){clearTimeout(a),r(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));const a=setTimeout(()=>{t?.removeEventListener("abort",o),n()},e)})}(n,this.#i?{signal:this.#i}:{});for(const e of this.#o.hooks.beforeRetry){const n=await e({request:this.request,options:this.#p(),error:t,retryCount:this.#n});if(n instanceof globalThis.Request){this.request=n;break}if(n instanceof globalThis.Response)return n;if(n===Yr)return}return this.#d(e)}}async#f(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#o.signal=this.#i?AbortSignal.any([this.#i,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#o.signal}));for(const e of this.#o.hooks.beforeRequest){const t=await e(this.request,this.#p(),{retryCount:this.#n});if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}const e=((e,t)=>{const n={};for(const r in t)Object.hasOwn(t,r)&&!(r in Kr)&&!(r in $r)&&(!(r in e)||r in Zr)&&(n[r]=t[r]);return n})(this.request,this.#o);return this.#a=this.request,this.request=this.#a.clone(),!1===this.#o.timeout?this.#o.fetch(this.#a,e):async function(e,t,n,r){return new Promise((o,a)=>{const i=setTimeout(()=>{n&&n.abort(),a(new uo(e))},r.timeout);r.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(i)})})}(this.#a,e,this.#t,this.#o)}#p(){if(!this.#l){const{hooks:e,...t}=this.#o;this.#l=Object.freeze(t)}return this.#l}}
39
+ return"production"!=={}.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===E?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case A:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case p:return"Portal";case v:return t.displayName||"Context";case y:return(t._context.displayName||"Context")+".Consumer";case w:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case x:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch{}}return null}function t(e){return""+e}function n(e){try{t(e);var n=!1}catch{n=!0}if(n){var r=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function r(t){if(t===h)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===C)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return P[t]||(P[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,o,i,s,u){var d=r.children;if(void 0!==d)if(i)if(_(d)){for(i=0;i<d.length;i++)l(d[i]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(d);if(T.call(r,"key")){d=e(t);var p=Object.keys(r).filter(function(e){return"key"!==e});i=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",L[d+i]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,d,p,d),L[d+i]=!0)}if(d=null,void 0!==o&&(n(o),d=""+o),function(e){if(T.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),d=""+r.key),"key"in r)for(var h in o={},r)"key"!==h&&(o[h]=r[h]);else o=r;return d&&function(e,t){function n(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,o,i){var l=n.ref;return e={$$typeof:f,type:e,key:t,props:n,_owner:r},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,d,o,function(){var e=I.A;return null===e?null:e.getOwner()}(),s,u)}function l(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===C&&("fulfilled"===e._payload.status?u(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var c,d=b(),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),I=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,_=Array.isArray,R=console.createTask?console.createTask:function(){return null},P={},O=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,o)(),N=R(r(o)),L={};s.Fragment=h,s.jsx=function(e,t,n){var o=1e4>I.recentlyCreatedOwnerStacks++;return i(e,t,n,!1,o?Error("react-stack-top-frame"):O,o?R(r(e)):N)},s.jsxs=function(e,t,n){var o=1e4>I.recentlyCreatedOwnerStacks++;return i(e,t,n,!0,o?Error("react-stack-top-frame"):O,o?R(r(e)):N)}}(),s}var w=(m||(m=1,a.exports="production"==={}.NODE_ENV?function(){if(o)return i;o=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return i.Fragment=t,i.jsx=n,i.jsxs=n,i}():v()),a.exports),k=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},S={},x={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},C=new class{#e=x;#t=!1;setTimeoutProvider(e){"production"!==S.NODE_ENV&&this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,"production"!==S.NODE_ENV&&(this.#t=!1)}setTimeout(e,t){return"production"!==S.NODE_ENV&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return"production"!==S.NODE_ENV&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var A={},E=typeof window>"u"||"Deno"in globalThis;function I(){}function T(e){return"number"==typeof e&&e>=0&&e!==1/0}function _(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R(e,t){return"function"==typeof e?e(t):e}function P(e,t){return"function"==typeof e?e(t):e}function O(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:l}=e;if(i)if(r){if(t.queryHash!==L(i,t.options))return!1}else if(!D(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return!("boolean"==typeof l&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function N(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(z(t.options.mutationKey)!==z(a))return!1}else if(!D(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function L(e,t){return(t?.queryKeyHashFn||z)(e)}function z(e){return JSON.stringify(e,(e,t)=>U(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function D(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>D(e[n],t[n])))}var j=Object.prototype.hasOwnProperty;function M(e,t){if(e===t)return e;const n=q(e)&&q(t);if(!(n||U(e)&&U(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,i=n?new Array(a):{};let l=0;for(let s=0;s<a;s++){const a=n?s:o[s],u=e[a],c=t[a];if(u===c){i[a]=u,(n?s<r:j.call(e,a))&&l++;continue}if(null===u||null===c||"object"!=typeof u||"object"!=typeof c){i[a]=c;continue}const d=M(u,c);i[a]=d,d===u&&l++}return r===a&&l===r?e:i}function F(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function q(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function U(e){if(!H(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!(!H(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function H(e){return"[object Object]"===Object.prototype.toString.call(e)}function B(e,t,n){if("function"==typeof n.structuralSharing)return n.structuralSharing(e,t);if(!1!==n.structuralSharing){if("production"!==A.NODE_ENV)try{return M(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return M(e,t)}return t}function V(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var G=Symbol();function Q(e,t){return"production"!==A.NODE_ENV&&e.queryFn===G&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==G?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Y=new class extends k{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!E&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}};function $(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var Z=function(e){setTimeout(e,0)};var K=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Z;const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),J=new class extends k{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!E&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function X(e){return Math.min(1e3*2**e,3e4)}function ee(e){return"online"!==(e??"online")||J.isOnline()}var te=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t,n=!1,r=0;const o=$(),a=()=>"pending"!==o.status,i=()=>Y.isFocused()&&("always"===e.networkMode||J.isOnline())&&e.canRun(),l=()=>ee(e.networkMode)&&e.canRun(),s=e=>{a()||(t?.(),o.resolve(e))},u=e=>{a()||(t?.(),o.reject(e))},c=()=>new Promise(n=>{t=e=>{(a()||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(s).catch(t=>{if(a())return;const o=e.retry??(E?0:3),l=e.retryDelay??X,s="function"==typeof l?l(r,t):l,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);!n&&f?(r++,e.onFail?.(r,t),function(e){return new Promise(t=>{C.setTimeout(t,e)})}(s).then(()=>i()?void 0:c()).then(()=>{n?u(t):d()})):u(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const n=new te(t);u(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:l,start:()=>(l()?d():c().then(d),o)}}var re=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=C.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(E?1/0:3e5))}clearGcTimeout(){this.#e&&(C.clearTimeout(this.#e),this.#e=void 0)}},oe={},ae=class extends re{#e;#t;#n;#r;#o;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=le(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=le(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#e=e)}}optionalRemove(){!this.observers.length&&"idle"===this.state.fetchStatus&&this.#n.remove(this)}setData(e,t){const n=B(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(I).catch(I):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==P(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===G||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===R(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!_(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#i?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#o?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==oe.NODE_ENV&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},o=()=>{const e=Q(this.options,t),n=(()=>{const e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#i=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:"fetch",meta:a.fetchOptions?.meta}),this.#o=ne({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof te&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#o.start();if(void 0===e)throw"production"!==oe.NODE_ENV&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof te){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#l({type:"error",error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ie(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),K.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function ie(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ee(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function le(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var se=class extends k{constructor(e,t){super(),this.options=t,this.#e=e,this.#l=null,this.#i=$(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#o;#a;#i;#l;#s;#u;#c;#d;#f;#p;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),ue(this.#t,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ce(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ce(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof P(this.options.enabled,this.#t))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!F(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&de(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||R(this.options.staleTime,this.#t)!==R(t.staleTime,this.#t))&&this.#w();const o=this.#k();r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||o!==this.#p)&&this.#S(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return function(e,t){return!F(e.getCurrentResult(),t)}(this,n)&&(this.#r=n,this.#a=this.options,this.#o=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&"pending"===this.#i.status&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(I)),t}#w(){this.#y();const e=R(this.options.staleTime,this.#t);if(E||this.#r.isStale||!T(e))return;const t=_(this.#r.dataUpdatedAt,e)+1;this.#d=C.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#k(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#S(e){this.#b(),this.#p=e,!E&&!1!==P(this.options.enabled,this.#t)&&T(this.#p)&&0!==this.#p&&(this.#f=C.setInterval(()=>{(this.options.refetchIntervalInBackground||Y.isFocused())&&this.#m()},this.#p))}#g(){this.#w(),this.#S(this.#k())}#y(){this.#d&&(C.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#f&&(C.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,a=this.#o,i=this.#a,l=e!==n?e.state:this.#n,{state:s}=e;let u,c={...s},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&ue(e,t),i=o&&de(e,n,t,r);(a||i)&&(c={...c,...ie(s.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=c;u=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(h="success",u=B(o?.data,e,t),d=!0)}if(t.select&&void 0!==u&&!m)if(o&&u===a?.data&&t.select===this.#s)u=this.#u;else try{this.#s=t.select,u=t.select(u),u=B(o?.data,u,t),this.#u=u,this.#l=null}catch(e){this.#l=e}this.#l&&(f=this.#l,u=this.#u,p=Date.now(),h="error");const g="fetching"===c.fetchStatus,y="pending"===h,b="error"===h,v=y&&g,w=void 0!==u,k={status:h,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===h,isError:b,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:b&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:b&&w,isStale:fe(e,t),refetch:this.refetch,promise:this.#i,isEnabled:!1!==P(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===k.status?e.reject(k.error):void 0!==k.data&&e.resolve(k.data)},r=()=>{const e=this.#i=k.promise=$();t(e)},o=this.#i;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":("error"===k.status||k.data!==o.value)&&r();break;case"rejected":("error"!==k.status||k.error!==o.reason)&&r()}}return k}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#a=this.options,void 0!==this.#o.data&&(this.#c=this.#t),F(t,e))return;this.#r=t;this.#x({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#h.size)return!0;const r=new Set(n??this.#h);return this.options.throwOnError&&r.add("error"),Object.keys(this.#r).some(t=>{const n=t;return this.#r[n]!==e[n]&&r.has(n)})})()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#x(e){K.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ue(e,t){return function(e,t){return!1!==P(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&ce(e,t,t.refetchOnMount)}function ce(e,t,n){if(!1!==P(t.enabled,e)&&"static"!==R(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&fe(e,t)}return!1}function de(e,t,n,r){return(e!==t||!1===P(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&fe(e,n)}function fe(e,t){return!1!==P(t.enabled,e)&&e.isStaleByTime(R(t.staleTime,e))}function pe(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let n=!1;const u=Q(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})})(e),e})(),i=await u(a),{maxPages:l}=t.options,s=o?W:V;return{pages:s(e.pages,i,l),pageParams:s(e.pageParams,r,l)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?me:he)(r,t);l=await c(t,n,e)}else{const t=e??a.length;do{const e=0===s?i[0]??r.initialPageParam:he(r,l);if(s>0&&null==e)break;l=await c(l,e),s++}while(s<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function he(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function me(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ge(e,t){return!!t&&null!=he(e,t)}function ye(e,t){return!(!t||!e.getPreviousPageParam)&&null!=me(e,t)}var be=class extends re{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#o({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r="pending"===this.state.status,o=!this.#r.canStart();try{if(r)t();else{this.#o({type:"pending",variables:e,isPaused:o}),await(this.#n.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:o})}const a=await this.#r.start();return await(this.#n.config.onSuccess?.(a,e,this.state.context,this,n)),await(this.options.onSuccess?.(a,e,this.state.context,n)),await(this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(a,null,e,this.state.context,n)),this.#o({type:"success",data:a}),a}catch(t){try{throw await(this.#n.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#o({type:"error",error:t})}}finally{this.#n.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),K.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};var ve=class extends k{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new be({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=we(e);if("string"==typeof t){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=we(e);if("string"==typeof t){const n=this.#t.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=we(e);if("string"==typeof t){const n=this.#t.get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=we(e);return"string"==typeof t?this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){K.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>N(t,e))}findAll(e={}){return this.getAll().filter(t=>N(e,t))}notify(e){K.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return K.batch(()=>Promise.all(e.map(e=>e.continue().catch(I))))}};function we(e){return e.options.scope?.id}var ke=class extends k{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??L(r,t);let a=this.get(o);return a||(a=new ae({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){K.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>O(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>O(e,t)):t}notify(e){K.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){K.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){K.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Se=b();const xe=n(Se),Ce=e({__proto__:null,default:xe},[Se]);var Ae=Se.createContext(void 0),Ee=e=>{const t=Se.useContext(Ae);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ie=({client:e,children:t})=>(Se.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),w.jsx(Ae.Provider,{value:e,children:t})),Te=Se.createContext(!1);Te.Provider;var _e=Se.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Re=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}),Pe={};function Oe(e,t,n){if("production"!==Pe.NODE_ENV&&("object"!=typeof e||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Se.useContext(Te),o=Se.useContext(_e),a=Ee(n),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),"production"!==Pe.NODE_ENV&&(i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),i._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{Se.useEffect(()=>{e.clearReset()},[e])})(o);const l=!a.getQueryCache().get(i.queryHash),[s]=Se.useState(()=>new t(a,i)),u=s.getOptimisticResult(i),c=!r&&!1!==e.subscribed;if(Se.useSyncExternalStore(Se.useCallback(e=>{const t=c?s.subscribe(K.batchCalls(e)):I;return s.updateResult(),t},[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Se.useEffect(()=>{s.setOptions(i)},[i,s]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw Re(i,s,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(n,[e.error,r])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!E&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,r)&&(l?Re(i,s,o):a.getQueryCache().get(i.queryHash)?.promise)?.catch(I).finally(()=>{s.updateResult()}),i.notifyOnChangeProps?u:s.trackResult(u)}function Ne(e,t){return Oe(e,se,t)}var Le={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ze(this.context.count)},getNextContextId(){return ze(this.context.count++)}};function ze(e){const t=String(e),n=t.length-1;return Le.context.id+(n?String.fromCharCode(96+n):"")+t}function De(e){Le.context=e}var je=Symbol("solid-proxy"),Me="function"==typeof Proxy,Fe=Symbol("solid-track"),qe={equals:(e,t)=>e===t},Ue=At,He=1,Be=2,Ve={owned:null,cleanups:null,context:null,owner:null},We={},Ge=null,Qe=null,Ye=null,$e=null,Ze=null,Ke=0;function Je(e,t){const n=Ye,r=Ge,o=0===e.length,a=void 0===t?r:t,i=o?Ve:{owned:null,cleanups:null,context:a?a.context:null,owner:a},l=o?e:()=>e(()=>it(()=>_t(i)));Ge=i,Ye=null;try{return Ct(l,!0)}finally{Ye=n,Ge=r}}function Xe(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},qe,t):qe).equals||void 0};return[vt.bind(n),e=>("function"==typeof e&&(e=e(n.value)),wt(n,e))]}function et(e,t,n){kt(St(e,t,!0,He))}function tt(e,t,n){kt(St(e,t,!1,He))}function nt(e,t,n){Ue=Et;const r=St(e,t,!1,He);(!n||!n.render)&&(r.user=!0),Ze?Ze.push(r):kt(r)}function rt(e,t,n){n=n?Object.assign({},qe,n):qe;const r=St(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,kt(r),vt.bind(r)}function ot(e,t,n){let r,o,a;r=!0,o=e,a={};let i=null,l=We,s=null,u=!1,c="initialValue"in a,d=!1;const f=new Set,[p,h]=(a.storage||Xe)(a.initialValue),[m,g]=Xe(void 0),[y,b]=Xe(void 0,{equals:!1}),[v,w]=Xe(c?"ready":"unresolved");function k(e,t,n,r){return i===e&&(i=null,void 0!==r&&(c=!0),(e===l||t===l)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),l=We,function(e,t){Ct(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":c?"ready":"unresolved"),g(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function S(){const e=p(),t=m();if(void 0!==t&&!i)throw t;return Ye&&Ye.user,e}function x(e=!0){if(!1!==e&&u)return;u=!1;const t=d?d():r;if(null==t||!1===t)return void k(i,it(p));let n;const a=l!==We?l:it(()=>{try{return o(t,{value:p(),refetching:e})}catch(e){n=e}});if(void 0===n)return function(e){return e&&"object"==typeof e&&"then"in e}(a)?(i=a,"v"in a?(1===a.s?k(i,a.v,void 0,t):k(i,void 0,Rt(a.v),t),a):(u=!0,queueMicrotask(()=>u=!1),Ct(()=>{w(c?"refreshing":"pending"),b()},!1),a.then(e=>k(a,e,void 0,t),e=>k(a,void 0,Rt(e),t)))):(k(i,a,void 0,t),a);k(i,void 0,Rt(n),t)}Le.context&&(s=Le.getNextContextId(),"initial"===a.ssrLoadFrom?l=a.initialValue:Le.load&&Le.has(s)&&(l=Le.load(s))),Object.defineProperties(S,{state:{get:()=>v()},error:{get:()=>m()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!c)return S();const e=m();if(e&&!i)throw e;return p()}}});let C=Ge;return d?et(()=>(C=Ge,x(!1))):x(!1),[S,{refetch:e=>dt(C,()=>x(e)),mutate:h}]}function at(e){return Ct(e,!1)}function it(e){if(null===Ye)return e();const t=Ye;Ye=null;try{return e()}finally{Ye=t}}function lt(e,t,n){const r=Array.isArray(e);let o,a=n&&n.defer;return n=>{let i;if(r){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();if(a)return a=!1,n;const l=it(()=>t(i,o,n));return o=i,l}}function st(e){nt(()=>it(e))}function ut(e){return null===Ge||(null===Ge.cleanups?Ge.cleanups=[e]:Ge.cleanups.push(e)),e}function ct(){return Ge}function dt(e,t){const n=Ge,r=Ye;Ge=e,Ye=null;try{return Ct(t,!0)}catch(e){Pt(e)}finally{Ge=n,Ye=r}}function ft(e){const t=Ye,n=Ge;return Promise.resolve().then(()=>(Ye=t,Ge=n,Ct(e,!1),void(Ye=Ge=null)))}var[pt,ht]=Xe(!1);function mt(){return[pt,ft]}function gt(e,t){const n=Symbol("context");return{id:n,Provider:Nt(n),defaultValue:e}}function yt(e){let t;return Ge&&Ge.context&&void 0!==(t=Ge.context[e.id])?t:e.defaultValue}function bt(e){const t=rt(e),n=rt(()=>Ot(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function vt(){if(this.sources&&this.state)if(this.state===He)kt(this);else{const e=$e;$e=null,Ct(()=>It(this),!1),$e=e}if(Ye){const e=this.observers?this.observers.length:0;Ye.sources?(Ye.sources.push(this),Ye.sourceSlots.push(e)):(Ye.sources=[this],Ye.sourceSlots=[e]),this.observers?(this.observers.push(Ye),this.observerSlots.push(Ye.sources.length-1)):(this.observers=[Ye],this.observerSlots=[Ye.sources.length-1])}return this.value}function wt(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Ct(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Qe&&Qe.running;r&&Qe.disposed.has(n),(r?!n.tState:!n.state)&&(n.pure?$e.push(n):Ze.push(n),n.observers&&Tt(n)),r||(n.state=He)}if($e.length>1e6)throw $e=[],new Error},!1)),t}function kt(e){if(!e.fn)return;_t(e);const t=Ke;!function(e,t,n){let r;const o=Ge,a=Ye;Ye=Ge=e;try{r=e.fn(t)}catch(t){return e.pure&&(e.state=He,e.owned&&e.owned.forEach(_t),e.owned=null),e.updatedAt=n+1,Pt(t)}finally{Ye=a,Ge=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?wt(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function St(e,t,n,r=He,o){const a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ge,context:Ge?Ge.context:null,pure:n};return null===Ge||Ge!==Ve&&(Ge.owned?Ge.owned.push(a):Ge.owned=[a]),a}function xt(e){if(0===e.state)return;if(e.state===Be)return It(e);if(e.suspense&&it(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ke);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===He)kt(e);else if(e.state===Be){const n=$e;$e=null,Ct(()=>It(e,t[0]),!1),$e=n}}function Ct(e,t){if($e)return e();let n=!1;t||($e=[]),Ze?n=!0:Ze=[],Ke++;try{const t=e();return function(e){if($e&&(At($e),$e=null),e)return;const t=Ze;Ze=null,t.length&&Ct(()=>Ue(t),!1)}(n),t}catch(e){n||(Ze=null),$e=null,Pt(e)}}function At(e){for(let t=0;t<e.length;t++)xt(e[t])}function Et(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:xt(r)}if(Le.context){if(Le.count)return Le.effects||(Le.effects=[]),void Le.effects.push(...e.slice(0,n));De()}for(Le.effects&&(Le.done||!Le.count)&&(e=[...Le.effects,...e],n+=Le.effects.length,delete Le.effects),t=0;t<n;t++)xt(e[t])}function It(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===He?r!==t&&(!r.updatedAt||r.updatedAt<Ke)&&xt(r):e===Be&&It(r,t)}}}function Tt(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Be,n.pure?$e.push(n):Ze.push(n),n.observers&&Tt(n))}}function _t(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)_t(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)_t(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Rt(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function Pt(e,t=Ge){throw Rt(e)}function Ot(e){if("function"==typeof e&&!e.length)return Ot(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Ot(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Nt(e,t){return function(t){let n;return tt(()=>n=it(()=>(Ge.context={...Ge.context,[e]:t.value},bt(()=>t.children))),void 0),n}}var Lt=Symbol("fallback");function zt(e){for(let t=0;t<e.length;t++)e[t]()}function Dt(e,t){return it(()=>e(t||{}))}function jt(){return!0}var Mt={get:(e,t,n)=>t===je?n:e.get(t),has:(e,t)=>t===je||e.has(t),set:jt,deleteProperty:jt,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:jt,deleteProperty:jt}),ownKeys:e=>e.keys()};function Ft(e){return(e="function"==typeof e?e():e)?e:{}}function qt(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function Ut(...e){let t=!1;for(let n=0;n<e.length;n++){const r=e[n];t=t||!!r&&je in r,e[n]="function"==typeof r?(t=!0,rt(r)):r}if(Me&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Ft(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Ft(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Ft(e[n])));return[...new Set(t)]}},Mt);const n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o)continue;const a=Object.getOwnPropertyNames(o);for(let e=a.length-1;e>=0;e--){const t=a[e];if("__proto__"===t||"constructor"===t)continue;const i=Object.getOwnPropertyDescriptor(o,t);if(r[t]){const e=n[t];e&&(i.get?e.push(i.get.bind(o)):void 0!==i.value&&e.push(()=>i.value))}else r[t]=i.get?{enumerable:!0,configurable:!0,get:qt.bind(n[t]=[i.get.bind(o)])}:void 0!==i.value?i:void 0}}const o={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){const t=a[e],n=r[t];n&&n.get?Object.defineProperty(o,t,n):o[t]=n?n.value:void 0}return o}function Ht(e,...t){if(Me&&je in e){const n=new Set(t.length>1?t.flat():t[0]),r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Mt));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Mt)),r}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const a=Object.getOwnPropertyDescriptor(e,o),i=!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable;let l=!1,s=0;for(const e of t)e.includes(o)&&(l=!0,i?r[s][o]=a.value:Object.defineProperty(r[s],o,a)),++s;l||(i?n[o]=a.value:Object.defineProperty(n,o,a))}return[...r,n]}var Bt=0;function Vt(){return Le.context?Le.getNextContextId():"cl-"+Bt++}var Wt=e=>`Stale read from <${e}>.`;function Gt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return rt(function(e,t,n={}){let r=[],o=[],a=[],i=0,l=t.length>1?[]:null;return ut(()=>zt(a)),()=>{let s,u,c=e()||[],d=c.length;return c[Fe],it(()=>{let e,t,p,h,m,g,y,b,v;if(0===d)0!==i&&(zt(a),a=[],r=[],o=[],i=0,l&&(l=[])),n.fallback&&(r=[Lt],o[0]=Je(e=>(a[0]=e,n.fallback())),i=1);else if(0===i){for(o=new Array(d),u=0;u<d;u++)r[u]=c[u],o[u]=Je(f);i=d}else{for(p=new Array(d),h=new Array(d),l&&(m=new Array(d)),g=0,y=Math.min(i,d);g<y&&r[g]===c[g];g++);for(y=i-1,b=d-1;y>=g&&b>=g&&r[y]===c[b];y--,b--)p[b]=o[y],h[b]=a[y],l&&(m[b]=l[y]);for(e=new Map,t=new Array(b+1),u=b;u>=g;u--)v=c[u],s=e.get(v),t[u]=void 0===s?-1:s,e.set(v,u);for(s=g;s<=y;s++)v=r[s],u=e.get(v),void 0!==u&&-1!==u?(p[u]=o[s],h[u]=a[s],l&&(m[u]=l[s]),u=t[u],e.set(v,u)):a[s]();for(u=g;u<d;u++)u in p?(o[u]=p[u],a[u]=h[u],l&&(l[u]=m[u],l[u](u))):o[u]=Je(f);o=o.slice(0,i=d),r=c.slice(0)}return o});function f(e){if(a[u]=e,l){const[e,n]=Xe(u);return l[u]=n,t(c[u],e)}return t(c[u])}}}(()=>e.each,e.children,t||void 0))}function Qt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return rt(function(e,t,n={}){let r,o=[],a=[],i=[],l=[],s=0;return ut(()=>zt(i)),()=>{const u=e()||[],c=u.length;return u[Fe],it(()=>{if(0===c)return 0!==s&&(zt(i),i=[],o=[],a=[],s=0,l=[]),n.fallback&&(o=[Lt],a[0]=Je(e=>(i[0]=e,n.fallback())),s=1),a;for(o[0]===Lt&&(i[0](),i=[],o=[],a=[],s=0),r=0;r<c;r++)r<o.length&&o[r]!==u[r]?l[r](()=>u[r]):r>=o.length&&(a[r]=Je(d));for(;r<o.length;r++)i[r]();return s=l.length=i.length=c,o=u.slice(0),a=a.slice(0,s)});function d(e){i[r]=e;const[n,o]=Xe(u[r]);return l[r]=o,t(n,r)}}}(()=>e.each,e.children,t||void 0))}function Yt(e){const t=e.keyed,n=rt(()=>e.when,void 0,void 0),r=t?n:rt(n,void 0,{equals:(e,t)=>!e==!t});return rt(()=>{const o=r();if(o){const a=e.children;return"function"==typeof a&&a.length>0?it(()=>a(t?o:()=>{if(!it(r))throw Wt("Show");return n()})):a}return e.fallback},void 0,void 0)}function $t(e){const t=bt(()=>e.children),n=rt(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let e=0;e<n.length;e++){const t=e,o=n[e],a=r,i=rt(()=>a()?void 0:o.when,void 0,void 0),l=o.keyed?i:rt(i,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(l()?[t,i,o]:void 0)}return r});return rt(()=>{const t=n()();if(!t)return e.fallback;const[r,o,a]=t,i=a.children;return"function"==typeof i&&i.length>0?it(()=>i(a.keyed?o():()=>{if(it(n)()?.[0]!==r)throw Wt("Match");return o()})):i},void 0,void 0)}function Zt(e){return e}var Kt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Jt=new Set(["innerHTML","textContent","innerText","children"]),Xt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),en=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});var tn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),nn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),rn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},on=e=>rt(()=>e());var an="_$DX_DELEGATE";function ln(e,t,n,r){let o;const a=()=>(o||(o=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return a.cloneNode=a,a}function sn(e,t=window.document){const n=t[an]||(t[an]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,wn))}}function un(e=window.document){if(e[an]){for(let t of e[an].keys())e.removeEventListener(t,wn);delete e[an]}}function cn(e,t,n){yn(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function dn(e,t){yn(e)||(null==t?e.removeAttribute("class"):e.className=t)}function fn(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}function pn(e,t={},n,r){const o={};return r||tt(()=>o.children=kn(e,t.children,o.children)),tt(()=>"function"==typeof t.ref&&hn(t.ref,e)),tt(()=>function(e,t,n,r,o={},a=!1){t||(t={});for(const r in o)if(!(r in t)){if("children"===r)continue;o[r]=vn(e,r,null,o[r],n,a,t)}for(const r in t){if("children"===r)continue;const i=t[r];o[r]=vn(e,r,i,o[r],n,a,t)}}(e,t,n,0,o,!0)),o}function hn(e,t,n){return it(()=>e(t,n))}function mn(e,t,n,r){if(void 0!==n&&!r&&(r=[]),"function"!=typeof t)return kn(e,t,r,n);tt(r=>kn(e,t(),r,n),r)}function gn(e){let t,n;return yn()&&(t=Le.registry.get(n=Le.getNextContextId()))?(Le.completed&&Le.completed.add(t),Le.registry.delete(n),t):e()}function yn(e){return!!Le.context&&!Le.done&&(!e||e.isConnected)}function bn(e,t,n){const r=t.trim().split(/\s+/);for(let t=0,o=r.length;t<o;t++)e.classList.toggle(r[t],n)}function vn(e,t,n,r,o,a,i){let l,s,u,c,d;if("style"===t)return function(e,t,n){if(!t)return n?cn(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,a;for(a in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[a]&&r.removeProperty(a),delete n[a];for(a in t)o=t[a],o!==n[a]&&(r.setProperty(a,o),n[a]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let a,i;for(a=0,i=o.length;a<i;a++){const r=o[a];!r||"undefined"===r||t[r]||(bn(e,r,!1),delete n[r])}for(a=0,i=r.length;a<i;a++){const o=r[a],i=!!t[o];!o||"undefined"===o||n[o]===i||!i||(bn(e,o,!0),n[o]=i)}return n}(e,n,r);if(n===r)return r;if("ref"===t)a||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),a=tn.has(o);if(!a&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(a||n)&&(fn(e,o,n,a),a&&sn([o]))}else if("attr:"===t.slice(0,5))cn(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){yn(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((d="prop:"===t.slice(0,5))||(u=Jt.has(t))||!o&&((c=function(e,t){const n=en[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(s=Kt.has(t)))||(l=e.nodeName.includes("-")||"is"in i)){if(d)t=t.slice(5),s=!0;else if(yn(e))return n;"class"===t||"className"===t?dn(e,n):!l||s||u?e[c||t]=n:e[function(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}(t)]=n}else{const r=o&&t.indexOf(":")>-1&&rn[t.split(":")[0]];r?function(e,t,n,r){yn(e)||(null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}(e,r,t,n):cn(e,Xt[t]||t,n)}return n}function wn(e){if(Le.registry&&Le.events&&Le.events.find(([t,n])=>n===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),i=()=>{const r=t[n];if(r&&!t.disabled){const o=t[`${n}Data`];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},l=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),Le.registry&&!Le.done&&(Le.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],i());e++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();a(r)}function kn(e,t,n,r,o){const a=yn(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,l=void 0!==r;if(e=l&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(a||"number"===i&&(t=t.toString())===n)return n;if(l){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Cn(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(a)return n;n=Cn(e,n,r)}else{if("function"===i)return tt(()=>{let o=t();for(;"function"==typeof o;)o=o();n=kn(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(Sn(i,t,n,o))return tt(()=>n=kn(e,i,n,r,!0)),()=>n;if(a){if(!i.length)return n;if(void 0===r)return n=[...e.childNodes];let t=i[0];if(t.parentNode!==e)return n;const o=[t];for(;(t=t.nextSibling)!==r;)o.push(t);return n=o}if(0===i.length){if(n=Cn(e,n,r),l)return n}else s?0===n.length?xn(e,i,r):function(e,t,n){let r=n.length,o=t.length,a=r,i=0,l=0,s=t[o-1].nextSibling,u=null;for(;i<o||l<a;)if(t[i]!==n[l]){for(;t[o-1]===n[a-1];)o--,a--;if(o===i){const t=a<r?l?n[l-1].nextSibling:n[a-l]:s;for(;l<a;)e.insertBefore(n[l++],t)}else if(a===l)for(;i<o;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[a-1]&&n[l]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[l++],t[i++].nextSibling),e.insertBefore(n[--a],r),t[o]=n[a]}else{if(!u){u=new Map;let e=l;for(;e<a;)u.set(n[e],e++)}const r=u.get(t[i]);if(null!=r)if(l<r&&r<a){let s,c=i,d=1;for(;++c<o&&c<a&&null!=(s=u.get(t[c]))&&s===r+d;)d++;if(d>r-l){const o=t[i];for(;l<r;)e.insertBefore(n[l++],o)}else e.replaceChild(n[l++],t[i++])}else i++;else t[i++].remove()}}else i++,l++}(e,n,i):(n&&Cn(e),xn(e,i));n=i}else if(t.nodeType){if(a&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=Cn(e,n,r,t);Cn(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Sn(e,t,n,r){let o=!1;for(let a=0,i=t.length;a<i;a++){let i,l=t[a],s=n&&n[e.length];if(null!=l&&!0!==l&&!1!==l)if("object"==(i=typeof l)&&l.nodeType)e.push(l);else if(Array.isArray(l))o=Sn(e,l,s)||o;else if("function"===i)if(r){for(;"function"==typeof l;)l=l();o=Sn(e,Array.isArray(l)?l:[l],Array.isArray(s)?s:[s])||o}else e.push(l),o=!0;else{const t=String(l);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function xn(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Cn(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){const i=t[a];if(o!==i){const t=i.parentNode===e;r||a?t&&i.remove():t?e.replaceChild(o,i):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function An(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function En(e){const{useShadow:t}=e,n=document.createTextNode(""),r=ct();let o,a=!!Le.context;return nt(()=>{a&&(ct().user=a=!1),o||(o=dt(r,()=>rt(()=>e.children)));const i=e.mount||document.body;if(i instanceof HTMLHeadElement){const[e,t]=Xe(!1),n=()=>t(!0);Je(t=>mn(i,()=>e()?t():o(),null)),ut(n)}else{const r=An(e.isSVG?"g":"div",e.isSVG),a=t&&r.attachShadow?r.attachShadow({mode:"open"}):r;Object.defineProperty(r,"_$host",{get:()=>n.parentNode,configurable:!0}),mn(a,o),i.appendChild(r),e.ref&&e.ref(r),ut(()=>i.removeChild(r))}},void 0,{render:!a}),n}function In(e){const[,t]=Ht(e,["component"]);return function(e,t){const n=rt(e);return rt(()=>{const e=n();switch(typeof e){case"function":return it(()=>e(t));case"string":const n=nn.has(e),r=Le.context?gn():An(e,n);return pn(r,t,n),r}})}(()=>e.component,t)}var Tn=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},_n=class{constructor(e){this.generateIdentifier=e,this.kv=new Tn}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Rn=class extends _n{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Pn(e,t){const n=function(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);const r=n;for(let e=0;e<r.length;e++){const n=r[e];if(t(n))return n}}function On(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Nn(e,t){return-1!==e.indexOf(t)}function Ln(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var zn=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Pn(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Dn=e=>typeof e>"u",jn=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),Mn=e=>jn(e)&&0===Object.keys(e).length,Fn=e=>Array.isArray(e),qn=e=>e instanceof Map,Un=e=>e instanceof Set,Hn=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),Bn=e=>"number"==typeof e&&isNaN(e),Vn=e=>(e=>"boolean"==typeof e)(e)||(e=>null===e)(e)||Dn(e)||(e=>"number"==typeof e&&!isNaN(e))(e)||(e=>"string"==typeof e)(e)||Hn(e),Wn=e=>e.replace(/\./g,"\\."),Gn=e=>e.map(String).map(Wn).join("."),Qn=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let o=e.charAt(r);"\\"!==o||"."!==e.charAt(r+1)?"."!==o?n+=o:(t.push(n),n=""):(n+=".",r++)}const r=n;return t.push(r),t};function Yn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var $n=[Yn(Dn,"undefined",()=>null,()=>{}),Yn(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Yn(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),Yn(e=>e instanceof Error,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Yn(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Yn(Un,"set",e=>[...e.values()],e=>new Set(e)),Yn(qn,"map",e=>[...e.entries()],e=>new Map(e)),Yn(e=>Bn(e)||(e=>e===1/0||e===-1/0)(e),"number",e=>Bn(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Yn(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),Yn(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Zn(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Kn=Zn((e,t)=>!!Hn(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Jn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Xn=Zn(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Jn[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function er(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var tr=Zn(er,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),nr=Zn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),rr=[tr,Kn,nr,Xn],or=(e,t)=>{const n=Ln(rr,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ln($n,n=>n.isApplicable(e,t));return r?{value:r.transform(e,t),type:r.annotation}:void 0},ar={};$n.forEach(e=>{ar[e.annotation]=e});var ir=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function lr(e){if(Nn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Nn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Nn(e,"constructor"))throw new Error("constructor is not allowed as a property")}var sr=(e,t,n)=>{if(lr(t),0===t.length)return n(e);let r=e;for(let e=0;e<t.length-1;e++){const n=t[e];if(Fn(r)){r=r[+n]}else if(jn(r))r=r[n];else if(Un(r)){r=ir(r,+n)}else if(qn(r)){if(e===t.length-2)break;const o=+n,a=0==+t[++e]?"key":"value",i=ir(r,o);switch(a){case"key":r=i;break;case"value":r=r.get(i)}}}const o=t[t.length-1];if(Fn(r)?r[+o]=n(r[+o]):jn(r)&&(r[o]=n(r[o])),Un(r)){const e=ir(r,+o),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(qn(r)){const e=+t[t.length-2],a=ir(r,e);switch(0==+o?"key":"value"){case"key":{const e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case"value":r.set(a,n(r.get(a)))}}return e};function ur(e,t,n=[]){if(!e)return;if(!Fn(e))return void On(e,(e,r)=>ur(e,t,[...n,...Qn(r)]));const[r,o]=e;o&&On(o,(e,r)=>{ur(e,t,[...n,...Qn(r)])}),t(r,n)}function cr(e,t,n){return ur(t,(t,r)=>{e=sr(e,r,e=>((e,t,n)=>{if(!Fn(t)){const r=ar[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return Kn.untransform(e,t,n);case"class":return tr.untransform(e,t,n);case"custom":return nr.untransform(e,t,n);case"typed-array":return Xn.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}})(e,t,n))}),e}function dr(e,t){function n(t,n){const r=((e,t)=>{lr(t);for(let n=0;n<t.length;n++){const r=t[n];if(Un(e))e=ir(e,+r);else if(qn(e)){const o=+r,a=0==+t[++n]?"key":"value",i=ir(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e})(e,Qn(n));t.map(Qn).forEach(t=>{e=sr(e,t,()=>r)})}if(Fn(t)){const[r,o]=t;r.forEach(t=>{e=sr(e,Qn(t),()=>e)}),o&&On(o,n)}else On(t,n);return e}var fr=(e,t,n,r,o=[],a=[],i=new Map)=>{const l=Vn(e);if(!l){!function(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);const n=i.get(e);if(n)return r?{transformedValue:null}:n}if(!((e,t)=>jn(e)||Fn(e)||qn(e)||Un(e)||er(e,t))(e,n)){const t=or(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return l||i.set(e,r),r}if(Nn(a,e))return{transformedValue:null};const s=or(e,n),u=s?.value??e,c=Fn(u)?[]:{},d={};On(u,(l,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)throw new Error(`Detected property ${s}. This is a prototype pollution risk, please remove it from your object.`);const u=fr(l,t,n,r,[...o,s],[...a,e],i);c[s]=u.transformedValue,Fn(u.annotations)?d[s]=u.annotations:jn(u.annotations)&&On(u.annotations,(e,t)=>{d[Wn(s)+"."+t]=e})});const f=Mn(d)?{transformedValue:c,annotations:s?[s.type]:void 0}:{transformedValue:c,annotations:s?[s.type,d]:d};return l||i.set(e,f),f};function pr(e){return Object.prototype.toString.call(e).slice(8,-1)}function hr(e){return"Array"===pr(e)}function mr(e,t={}){if(hr(e))return e.map(e=>mr(e,t));if(!function(e){if("Object"!==pr(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(hr(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,mr(e[r],t),e,t.nonenumerable),n},{})}var gr=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Rn,this.symbolRegistry=new _n(e=>e.description??""),this.customTransformerRegistry=new zn,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=fr(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=function(e,t){const n={};let r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));const[o,...a]=e;0===o.length?r=a.map(Gn):n[Gn(o)]=a.map(Gn)}),r?Mn(n)?[r]:[r,n]:Mn(n)?void 0:n}(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=mr(t);return n?.values&&(r=cr(r,n.values,this)),n?.referentialEqualities&&(r=dr(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};gr.defaultInstance=new gr,gr.serialize=gr.defaultInstance.serialize.bind(gr.defaultInstance),gr.deserialize=gr.defaultInstance.deserialize.bind(gr.defaultInstance),gr.stringify=gr.defaultInstance.stringify.bind(gr.defaultInstance),gr.parse=gr.defaultInstance.parse.bind(gr.defaultInstance),gr.registerClass=gr.defaultInstance.registerClass.bind(gr.defaultInstance),gr.registerSymbol=gr.defaultInstance.registerSymbol.bind(gr.defaultInstance),gr.registerCustom=gr.defaultInstance.registerCustom.bind(gr.defaultInstance),gr.allowErrorProps=gr.defaultInstance.allowErrorProps.bind(gr.defaultInstance);var yr=gr.serialize,br=gr.stringify;function vr(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function wr(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function kr({queryState:e,observerCount:t,isStale:n}){return"fetching"===e.fetchStatus?"blue":t?"paused"===e.fetchStatus?"purple":n?"yellow":"green":"gray"}function Sr({status:e,isPaused:t}){return t?"purple":"error"===e?"red":"pending"===e?"yellow":"success"===e?"green":"gray"}function xr(e){return"fresh"===e?"green":"stale"===e?"yellow":"paused"===e?"purple":"inactive"===e?"gray":"blue"}var Cr=(e,t=!1)=>{const{json:n}=yr(e);return JSON.stringify(n,null,t?2:void 0)},Ar=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Er=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Ir={status:(e,t)=>Ar(e)===Ar(t)?Er(e,t):Ar(e)>Ar(t)?1:-1,"query hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"last updated":Er},Tr=e=>e.state.isPaused?0:"error"===e.state.status?2:"pending"===e.state.status?1:3,_r=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Rr={status:(e,t)=>Tr(e)===Tr(t)?_r(e,t):Tr(e)>Tr(t)?1:-1,"last updated":_r},Pr=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Or=()=>{const[e,t]=Xe("dark");return st(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");t(e.matches?"dark":"light");const n=e=>{t(e.matches?"dark":"light")};e.addEventListener("change",n),ut(()=>e.removeEventListener("change",n))}),e},Nr=(e,t,n)=>{if(0===t.length)return n;if(e instanceof Map){const r=new Map(e);if(1===t.length)return r.set(t[0],n),r;const[o,...a]=t;return r.set(o,Nr(r.get(o),a,n)),r}if(e instanceof Set){const r=Nr(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(1===t.length)return r[t[0]]=n,r;const[o,...a]=t;return r[o]=Nr(r[o],a,n),r}if(e instanceof Object){const r={...e};if(1===t.length)return r[t[0]]=n,r;const[o,...a]=t;return r[o]=Nr(r[o],a,n),r}return e},Lr=(e,t)=>{if(e instanceof Map){const n=new Map(e);if(1===t.length)return n.delete(t[0]),n;const[r,...o]=t;return n.set(r,Lr(n.get(r),o)),n}if(e instanceof Set){const n=Lr(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(1===t.length)return n.filter((e,n)=>n.toString()!==t[0]);const[r,...o]=t;return n[r]=Lr(n[r],o),n}if(e instanceof Object){const n={...e};if(1===t.length)return delete n[t[0]],n;const[r,...o]=t;return n[r]=Lr(n[r],o),n}return e},zr=class{#e;#t;#n;#r;#o=!1;#a;#i;#l;#s;#u;#c;#d;#f;#p;constructor(e){const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:a,position:i,initialIsOpen:l,errorTypes:s,styleNonce:u,shadowDOMTarget:c,hideDisabledQueries:d}=e;this.#e=Xe(t),this.#n=n,this.#r=r,this.#t=o,this.#a=u,this.#i=c,this.#l=Xe(a),this.#s=Xe(i),this.#u=Xe(l),this.#c=Xe(s),this.#d=Xe(d)}setButtonPosition(e){this.#l[1](e)}setPosition(e){this.#s[1](e)}setInitialIsOpen(e){this.#u[1](e)}setErrorTypes(e){this.#c[1](e)}setClient(e){this.#e[1](e)}mount(e){if(this.#o)throw new Error("Devtools is already mounted");const t=function(e,t,n,r={}){let o;return Je(r=>{o=r,t===document?e():mn(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>{const e=this,[t]=this.#l,[n]=this.#s,[r]=this.#u,[o]=this.#c,[a]=this.#d,[i]=this.#e;let l;return this.#f?l=this.#f:(l=function(e){let t,n;const r=r=>{const o=Le.context;if(o){const[r,a]=Xe();Le.count||(Le.count=0),Le.count++,(n||(n=e())).then(e=>{!Le.done&&De(o),Le.count--,a(()=>e.default),De()}),t=r}else if(!t){const[r]=ot(()=>(n||(n=e())).then(e=>e.default));t=r}let a;return rt(()=>(a=t())?it(()=>{if(!o||Le.done)return a(r);const e=Le.context;De(o);const t=a(r);return De(e),t}):"")};return r.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),r}(()=>import("./NCMVHL6D-BwoIucZN.js")),this.#f=l),((e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;const n=document.createElement("style"),r=document.createTextNode("");n.appendChild(r),n.id="_goober",n.setAttribute("nonce",e),t?t.appendChild(n):document.head.appendChild(n)})(this.#a,this.#i),Dt(l,Ut({get queryFlavor(){return e.#n},get version(){return e.#r},get onlineManager(){return e.#t},get shadowDOMTarget(){return e.#i}},{get client(){return i()},get buttonPosition(){return t()},get position(){return n()},get initialIsOpen(){return r()},get errorTypes(){return o()},get hideDisabledQueries(){return a()}}))},e);this.#o=!0,this.#p=t}unmount(){if(!this.#o)throw new Error("Devtools is not mounted");this.#p?.(),this.#o=!1}};var Dr="development"!=={}.NODE_ENV?function(){return null}:function(e){const t=Ee(e.client),n=Se.useRef(null),{buttonPosition:r,position:o,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:s,hideDisabledQueries:u}=e,[c]=Se.useState(new zr({client:t,queryFlavor:"React Query",version:"5",onlineManager:J,buttonPosition:r,position:o,initialIsOpen:a,errorTypes:i,styleNonce:l,shadowDOMTarget:s,hideDisabledQueries:u}));return Se.useEffect(()=>{c.setClient(t)},[t,c]),Se.useEffect(()=>{r&&c.setButtonPosition(r)},[r,c]),Se.useEffect(()=>{o&&c.setPosition(o)},[o,c]),Se.useEffect(()=>{c.setInitialIsOpen(a||!1)},[a,c]),Se.useEffect(()=>{c.setErrorTypes(i||[])},[i,c]),Se.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),w.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})};class jr extends Error{response;request;options;constructor(e,t,n){const r=`${e.status||0===e.status?e.status:""} ${e.statusText??""}`.trim();super(`Request failed with ${r?`status code ${r}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=n}}class Mr extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}const Fr=(()=>{let e=!1,t=!1;const n="function"==typeof globalThis.ReadableStream,r="function"==typeof globalThis.Request;if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),qr="function"==typeof globalThis.AbortController,Ur="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Hr="function"==typeof globalThis.ReadableStream,Br="function"==typeof globalThis.FormData,Vr=["get","post","put","patch","head","delete"],Wr={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Gr=2147483647,Qr=(new TextEncoder).encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,Yr=Symbol("stop"),$r={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Zr={next:!0},Kr={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Jr=(e,t,n)=>{let r,o=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){o+=r.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),n?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},r)}r=e},flush(){r&&(o+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},r))}}))},Xr=(e,t,n)=>{if(!e.body)return e;const r=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[n,r]of e)t+=Qr,t+=(new TextEncoder).encode(`Content-Disposition: form-data; name="${n}"`).length,t+="string"==typeof r?(new TextEncoder).encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return(new TextEncoder).encode(e).length;if(e instanceof URLSearchParams)return(new TextEncoder).encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{const t=JSON.stringify(e);return(new TextEncoder).encode(t).length}catch{return 0}return 0})(n??e.body);return new Request(e,{duplex:"half",body:Jr(e.body,r,t)})},eo=e=>null!==e&&"object"==typeof e,to=(...e)=>{for(const t of e)if((!eo(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return io({},...e)},no=(e={},t={})=>{const n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())r&&"undefined"===t||void 0===t?n.delete(e):n.set(e,t);return n};function ro(e,t,n){return Object.hasOwn(t,n)&&void 0===t[n]?[]:io(e[n]??[],t[n]??[])}const oo=(e={},t={})=>({beforeRequest:ro(e,t,"beforeRequest"),beforeRetry:ro(e,t,"beforeRetry"),afterResponse:ro(e,t,"afterResponse"),beforeError:ro(e,t,"beforeError")}),ao=(e,t)=>{const n=new URLSearchParams;for(const r of[e,t])if(void 0!==r)if(r instanceof URLSearchParams)for(const[e,t]of r.entries())n.append(e,t);else if(Array.isArray(r))for(const e of r){if(!Array.isArray(e)||2!==e.length)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(e[0]),String(e[1]))}else if(eo(r))for(const[e,t]of Object.entries(r))void 0!==t&&n.append(e,String(t));else{const e=new URLSearchParams(r);for(const[t,r]of e.entries())n.append(t,r)}return n},io=(...e)=>{let t,n={},r={},o={};const a=[];for(const i of e)if(Array.isArray(i))Array.isArray(n)||(n=[]),n=[...n,...i];else if(eo(i)){for(let[e,r]of Object.entries(i))if("signal"===e&&r instanceof globalThis.AbortSignal)a.push(r);else if("context"!==e)"searchParams"!==e?(eo(r)&&e in n&&(r=io(n[e],r)),n={...n,[e]:r}):t=null==r?void 0:void 0===t?r:ao(t,r);else{if(null!=r&&(!eo(r)||Array.isArray(r)))throw new TypeError("The `context` option must be an object");n={...n,context:null==r?{}:{...n.context,...r}}}eo(i.hooks)&&(o=oo(o,i.hooks),n.hooks=o),eo(i.headers)&&(r=no(r,i.headers),n.headers=r)}return void 0!==t&&(n.searchParams=t),a.length>0&&(1===a.length?n.signal=a[0]:n.signal=Ur?AbortSignal.any(a):a.at(-1)),void 0===n.context&&(n.context={}),n},lo={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},so=(e={})=>{if("number"==typeof e)return{...lo,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...lo,...e}};class uo extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}class co{static create(e,t){const n=new co(e,t),r=async()=>{if("number"==typeof n.#o.timeout&&n.#o.timeout>Gr)throw new RangeError(`The \`timeout\` option cannot be greater than ${Gr}`);await Promise.resolve();let e=await n.#f();for(const t of n.#o.hooks.afterResponse){const r=await t(n.request,n.#p(),n.#c(e.clone()),{retryCount:n.#n});r instanceof globalThis.Response&&(e=r)}if(n.#c(e),!e.ok&&n.#o.throwHttpErrors){let t=new jr(e,n.request,n.#p());for(const e of n.#o.hooks.beforeError)t=await e(t,{retryCount:n.#n});throw t}if(n.#o.onDownloadProgress){if("function"!=typeof n.#o.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!Hr)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return((e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Jr(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})})(e.clone(),n.#o.onDownloadProgress)}return e},o=(n.#o.retry.methods.includes(n.request.method.toLowerCase())?n.#d(r):r()).finally(async()=>{const e=n.#a,t=[];e&&!e.bodyUsed&&t.push(e.body?.cancel()),n.request.bodyUsed||t.push(n.request.body?.cancel()),await Promise.all(t)});for(const[e,r]of Object.entries(Wr))"bytes"===e&&"function"!=typeof globalThis.Response?.prototype?.bytes||(o[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||r);const a=await o;if("json"===e){if(204===a.status)return"";const e=await a.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return a[e]()});return o}static#e(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#t;#n=0;#r;#o;#a;#i;#l;constructor(e,t={}){if(this.#r=e,this.#o={...t,headers:no(this.#r.headers,t.headers),hooks:oo({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(n=t.method??this.#r.method??"GET",Vr.includes(n)?n.toUpperCase():n),prefixUrl:String(t.prefixUrl||""),retry:so(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#r&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");var n;if(this.#o.prefixUrl&&"string"==typeof this.#r){if(this.#r.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#o.prefixUrl.endsWith("/")||(this.#o.prefixUrl+="/"),this.#r=this.#o.prefixUrl+this.#r}qr&&Ur&&(this.#i=this.#o.signal??this.#r.signal,this.#t=new globalThis.AbortController,this.#o.signal=this.#i?AbortSignal.any([this.#i,this.#t.signal]):this.#t.signal),Fr&&(this.#o.duplex="half"),void 0!==this.#o.json&&(this.#o.body=this.#o.stringifyJson?.(this.#o.json)??JSON.stringify(this.#o.json),this.#o.headers.set("content-type",this.#o.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#r instanceof globalThis.Request&&(Br&&this.#o.body instanceof globalThis.FormData||this.#o.body instanceof URLSearchParams)&&!r&&this.#o.headers.delete("content-type"),this.request=new globalThis.Request(this.#r,this.#o),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#o.searchParams)){const e="?"+("string"==typeof this.#o.searchParams?this.#o.searchParams.replace(/^\?/,""):new URLSearchParams(co.#e(this.#o.searchParams)).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this.#o)}if(this.#o.onUploadProgress){if("function"!=typeof this.#o.onUploadProgress)throw new TypeError("The `onUploadProgress` option must be a function");if(!Fr)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=Xr(this.request,this.#o.onUploadProgress,this.#o.body))}}#s(){const e=this.#o.retry.delay(this.#n);let t=e;return!0===this.#o.retry.jitter?t=Math.random()*e:"function"==typeof this.#o.retry.jitter&&(t=this.#o.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#o.retry.backoffLimit,t)}async#u(e){if(this.#n++,this.#n>this.#o.retry.limit)throw e;const t=e instanceof Error?e:new Mr(e);if(void 0!==this.#o.retry.shouldRetry){const n=await this.#o.retry.shouldRetry({error:t,retryCount:this.#n});if(!1===n)throw e;if(!0===n)return this.#s()}if(((n=e)instanceof uo||n?.name===uo.name)&&!this.#o.retry.retryOnTimeout)throw e;var n;if(function(e){return e instanceof jr||e?.name===jr.name}(e)){if(!this.#o.retry.statusCodes.includes(e.response.status))throw e;const t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#o.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());const n=this.#o.retry.maxRetryAfter??e;return e<n?e:n}if(413===e.response.status)throw e}return this.#s()}#c(e){return this.#o.parseJson&&(e.json=async()=>this.#o.parseJson(await e.text())),e}async#d(e){try{return await e()}catch(t){const n=Math.min(await this.#u(t),Gr);if(this.#n<1)throw t;await async function(e,{signal:t}){return new Promise((n,r)=>{function o(){clearTimeout(a),r(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));const a=setTimeout(()=>{t?.removeEventListener("abort",o),n()},e)})}(n,this.#i?{signal:this.#i}:{});for(const e of this.#o.hooks.beforeRetry){const n=await e({request:this.request,options:this.#p(),error:t,retryCount:this.#n});if(n instanceof globalThis.Request){this.request=n;break}if(n instanceof globalThis.Response)return n;if(n===Yr)return}return this.#d(e)}}async#f(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#o.signal=this.#i?AbortSignal.any([this.#i,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#o.signal}));for(const e of this.#o.hooks.beforeRequest){const t=await e(this.request,this.#p(),{retryCount:this.#n});if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}const e=((e,t)=>{const n={};for(const r in t)Object.hasOwn(t,r)&&!(r in Kr)&&!(r in $r)&&(!(r in e)||r in Zr)&&(n[r]=t[r]);return n})(this.request,this.#o);return this.#a=this.request,this.request=this.#a.clone(),!1===this.#o.timeout?this.#o.fetch(this.#a,e):async function(e,t,n,r){return new Promise((o,a)=>{const i=setTimeout(()=>{n&&n.abort(),a(new uo(e))},r.timeout);r.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(i)})})}(this.#a,e,this.#t,this.#o)}#p(){if(!this.#l){const{hooks:e,...t}=this.#o;this.#l=Object.freeze(t)}return this.#l}}
40
40
  /*! MIT License © Sindre Sorhus */const fo=e=>{const t=(t,n)=>co.create(t,to(e,n));for(const n of Vr)t[n]=(t,r)=>co.create(t,to(e,r,{method:n}));return t.create=e=>fo(to(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),fo(to(e,t))),t.stop=Yr,t},po=fo(),ho={PUBLIC_EVENTS:"/",FOLDER_EVENTS:e=>`/${e}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:e=>`/event/${e}`,UPLOAD:e=>`/event/${e}/upload`,CURATE:e=>`/event/${e}/curate`,LEADERBOARD:e=>`/event/${e}/leaderboard`},mo={ORGANIZATION_SETTINGS:e=>`https://qrati.com/org/${e}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:e=>`https://qrati.com/org/${e}/settings/integration`,ORGANIZATION_DASHBOARD:e=>`https://qrati.com/org/${e}/dashboard`,ORGANIZATION_ADMINS:e=>`https://qrati.com/org/${e}/admins`,EVENT_SETTINGS_BASIC_DETAILS:e=>`https://qrati.com/event/${e}/settings`,EVENT_REVIEW_CONTENTS:e=>`https://qrati.com/event/${e}/review-contents`,EVENT_DEEP_SEARCH:e=>`https://qrati.com/event/${e}/deep-search`,EVENT_GENERATE_ARTICLE:e=>`https://qrati.com/event/${e}/generate-article`,EVENT_ACCESS_REQUESTS:e=>`https://qrati.com/event/${e}/access-requests`,EVENT_SHOT_INSPECTOR:e=>`https://qrati.com/event/${e}/shot-inspector`,EVENT_CURATION_DETAILS:e=>`https://qrati.com/event/${e}/curation-details`},go={PRIVATE:"PRIVATE"},yo="https://qrati.com/api/connect",bo={INITIALIZE_SESSION:`${yo}/session/initialize`,REGISTER:`${yo}/auth/register`,LOGIN:`${yo}/auth/login`,LOGOUT:`${yo}/auth/logout`,UPDATE_SESSION:`${yo}/session/update`,EXTERNAL_LOGIN:`${yo}/auth/external-login`,PUBLIC_EVENTS:`${yo}/event/public-events`,FOLDER_DETAILS:`${yo}/folder/details`,NESTED_FOLDERS:`${yo}/folder/nested-folders`,GET_EVENT_POINTS:`${yo}/event/points`,ELIGIBLE_TO_CURATE:`${yo}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${yo}/content/for-curation`,CURATE_CONTENT:`${yo}/content/curate`,GET_LEADERBOARD:`${yo}/event/leaderboard`,GET_UPLOAD_COUNT:`${yo}/event/upload-count`,SINGLE_UPLOAD:`${yo}/content/single-upload`,UPDATE_REACTION:`${yo}/content/update-reaction`,EVENT_DATA:`${yo}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${yo}/event/update-layout`,GET_EVENT_STATISTICS:`${yo}/event/statistics`,GET_CONTENTS:`${yo}/content/for-gallery`,GET_CONTENTS_COUNT:`${yo}/content/count`,UPDATE_AD_ANALYTICS:`${yo}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${yo}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${yo}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${yo}/auth/verify-password-reset-code`,RESET_PASSWORD:`${yo}/auth/reset-password`,REPORT_ERROR:`${yo}/session/report-error`},vo={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},wo={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},ko={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},So={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},xo={WAITING:"Waiting",UPLOADING:"Uploading",DONE:"Done",ERROR:"Error"},Co={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Ao={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Eo={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Io={CONTEST:"CONTEST",REACTION:"REACTION"},To=3,_o={GRID:"grid",SINGLE:"single"},Ro={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Po={[Ro.POPULAR]:{label:"Popular",sortField:"score"},[Ro.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[Ro.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Oo=Ro.UPLOAD_TIME,No={ASC:"asc",DESC:"desc"},Lo={[No.ASC]:{label:"Ascending",sortOrder:""},[No.DESC]:{label:"Descending",sortOrder:"-"}},zo=No.DESC,Do={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},jo={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Mo={[jo.LINK]:"material-symbols:open-in-new-rounded",[jo.EMAIL]:"material-symbols:alternate-email-rounded",[jo.PHONE]:"material-symbols:call-outline",[jo.SMS]:"material-symbols:sms-outline-rounded",[jo.WHATSAPP]:"logos:whatsapp-icon",[jo.MESSENGER]:"logos:messenger"},Fo={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},qo={EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Uo=e=>({google:"Google",apple:"Apple"}[e]||e.charAt(0).toUpperCase()+e.slice(1));function Ho(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ho(e))&&(r&&(r+=" "),r+=t);return r}const Vo=e=>{const t=Yo(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Wo(n,t)||Qo(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Wo=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Wo(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},Go=/^\[(.+)\]$/,Qo=e=>{if(Go.test(e)){const t=Go.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Yo=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)$o(n[e],r,e,t);return r},$o=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Zo(t,e)).classGroupId=n)}if("function"==typeof e)return Ko(e)?void $o(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{$o(o,Zo(t,e),n,r)})})},Zo=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Ko=e=>e.isThemeGetter,Jo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Xo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;for(let i=0;i<e.length;i++){let l=e[i];if(0===r&&0===o){if(":"===l){t.push(e.slice(a,i)),a=i+1;continue}if("/"===l){n=i;continue}}"["===l?r++:"]"===l?r--:"("===l?o++:")"===l&&o--}const i=0===t.length?e:e.substring(a),l=ea(i);return{modifiers:t,hasImportantModifier:l!==i,baseClassName:l,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},ea=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,ta=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},na=/\s+/;function ra(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=oa(e))&&(r&&(r+=" "),r+=t);return r}const oa=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oa(e[r]))&&(n&&(n+=" "),n+=t);return n};function aa(e,...t){let n,r,o,a=function(l){const s=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Jo(e.cacheSize),parseClassName:Xo(e),sortModifiers:ta(e),...Vo(e)}))(s),r=n.cache.get,o=n.cache.set,a=i,i(l)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(na);let s="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){s=t+(s.length>0?" "+s:s);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){s=t+(s.length>0?" "+s:s);continue}if(m=r(f),!m){s=t+(s.length>0?" "+s:s);continue}h=!1}const g=a(c).join(":"),y=d?g+"!":g,b=y+m;if(i.includes(b))continue;i.push(b);const v=o(m,h);for(let e=0;e<v.length;++e){const t=v[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(ra.apply(null,arguments))}}const ia=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},la=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ua=/^\d+\/\d+$/,ca=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ha=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ma=e=>ua.test(e),ga=e=>!!e&&!Number.isNaN(Number(e)),ya=e=>!!e&&Number.isInteger(Number(e)),ba=e=>e.endsWith("%")&&ga(e.slice(0,-1)),va=e=>ca.test(e),wa=()=>!0,ka=e=>da.test(e)&&!fa.test(e),Sa=()=>!1,xa=e=>pa.test(e),Ca=e=>ha.test(e),Aa=e=>!Ia(e)&&!Na(e),Ea=e=>qa(e,Va,Sa),Ia=e=>la.test(e),Ta=e=>qa(e,Wa,ka),_a=e=>qa(e,Ga,ga),Ra=e=>qa(e,Ha,Sa),Pa=e=>qa(e,Ba,Ca),Oa=e=>qa(e,Ya,xa),Na=e=>sa.test(e),La=e=>Ua(e,Wa),za=e=>Ua(e,Qa),Da=e=>Ua(e,Ha),ja=e=>Ua(e,Va),Ma=e=>Ua(e,Ba),Fa=e=>Ua(e,Ya,!0),qa=(e,t,n)=>{const r=la.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ua=(e,t,n=!1)=>{const r=sa.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ha=e=>"position"===e||"percentage"===e,Ba=e=>"image"===e||"url"===e,Va=e=>"length"===e||"size"===e||"bg-size"===e,Wa=e=>"length"===e,Ga=e=>"number"===e,Qa=e=>"family-name"===e,Ya=e=>"shadow"===e,$a=()=>{const e=ia("color"),t=ia("font"),n=ia("text"),r=ia("font-weight"),o=ia("tracking"),a=ia("leading"),i=ia("breakpoint"),l=ia("container"),s=ia("spacing"),u=ia("radius"),c=ia("shadow"),d=ia("inset-shadow"),f=ia("text-shadow"),p=ia("drop-shadow"),h=ia("blur"),m=ia("perspective"),g=ia("aspect"),y=ia("ease"),b=ia("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Na,Ia],w=()=>[Na,Ia,s],k=()=>[ma,"full","auto",...w()],S=()=>[ya,"none","subgrid",Na,Ia],x=()=>["auto",{span:["full",ya,Na,Ia]},ya,Na,Ia],C=()=>[ya,"auto",Na,Ia],A=()=>["auto","min","max","fr",Na,Ia],E=()=>["auto",...w()],I=()=>[ma,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],T=()=>[e,Na,Ia],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Da,Ra,{position:[Na,Ia]}],R=()=>["auto","cover","contain",ja,Ea,{size:[Na,Ia]}],P=()=>[ba,La,Ta],O=()=>["","none","full",u,Na,Ia],N=()=>["",ga,La,Ta],L=()=>[ga,ba,Da,Ra],z=()=>["","none",h,Na,Ia],D=()=>["none",ga,Na,Ia],j=()=>["none",ga,Na,Ia],M=()=>[ga,Na,Ia],F=()=>[ma,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[va],breakpoint:[va],color:[wa],container:[va],"drop-shadow":[va],ease:["in","out","in-out"],font:[Aa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[va],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[va],shadow:[va],spacing:["px",ga],text:[va],"text-shadow":[va],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ma,Ia,Na,g]}],container:["container"],columns:[{columns:[ga,Ia,Na,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ya,"auto",Na,Ia]}],basis:[{basis:[ma,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ga,ma,"auto","initial","none",Ia]}],grow:[{grow:["",ga,Na,Ia]}],shrink:[{shrink:["",ga,Na,Ia]}],order:[{order:[ya,"first","last","none",Na,Ia]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[l,"screen",...I()]}],"min-w":[{"min-w":[l,"screen","none",...I()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",n,La,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Na,_a]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ba,Ia]}],"font-family":[{font:[za,Ia,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Na,Ia]}],"line-clamp":[{"line-clamp":[ga,"none",Na,_a]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",Na,Ia]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Na,Ia]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ga,"from-font","auto",Na,Ta]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ga,"auto",Na,Ia]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Na,Ia]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Na,Ia]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ya,Na,Ia],radial:["",Na,Ia],conic:[ya,Na,Ia]},Ma,Pa]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ga,Na,Ia]}],"outline-w":[{outline:["",ga,La,Ta]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",c,Fa,Oa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,Fa,Oa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ga,Ta]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,Fa,Oa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ga,Na,Ia]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ga]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Na,Ia]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ga]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Na,Ia]}],filter:[{filter:["","none",Na,Ia]}],blur:[{blur:z()}],brightness:[{brightness:[ga,Na,Ia]}],contrast:[{contrast:[ga,Na,Ia]}],"drop-shadow":[{"drop-shadow":["","none",p,Fa,Oa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ga,Na,Ia]}],"hue-rotate":[{"hue-rotate":[ga,Na,Ia]}],invert:[{invert:["",ga,Na,Ia]}],saturate:[{saturate:[ga,Na,Ia]}],sepia:[{sepia:["",ga,Na,Ia]}],"backdrop-filter":[{"backdrop-filter":["","none",Na,Ia]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[ga,Na,Ia]}],"backdrop-contrast":[{"backdrop-contrast":[ga,Na,Ia]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ga,Na,Ia]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ga,Na,Ia]}],"backdrop-invert":[{"backdrop-invert":["",ga,Na,Ia]}],"backdrop-opacity":[{"backdrop-opacity":[ga,Na,Ia]}],"backdrop-saturate":[{"backdrop-saturate":[ga,Na,Ia]}],"backdrop-sepia":[{"backdrop-sepia":["",ga,Na,Ia]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Na,Ia]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ga,"initial",Na,Ia]}],ease:[{ease:["linear","initial",y,Na,Ia]}],delay:[{delay:[ga,Na,Ia]}],animate:[{animate:["none",b,Na,Ia]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Na,Ia]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:j()}],"scale-x":[{"scale-x":j()}],"scale-y":[{"scale-y":j()}],"scale-z":[{"scale-z":j()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[Na,Ia,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Na,Ia]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Na,Ia]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ga,La,Ta,_a]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Za=aa($a),Ka=(...e)=>Bo(Za(...e.filter(Boolean))),Ja=e=>{const t=e.replace(/#/g,"");return(299*parseInt(t.slice(0,2),16)+587*parseInt(t.slice(2,4),16)+114*parseInt(t.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"},Xa="#ffffff",ei="#252629",ti="#888888",ni="#8e949a",ri="#e9ecef",oi="#e9ecef",ai="#ff4800",ii="#ffffff",li="#252629",si="#2563eb",ui="#f59e0b",ci="#10b981",di="#ef4444",fi="10",pi="px",hi="0",mi="0",gi="0",yi="0",bi="px",vi=e=>{const t=e?.themeSettings?.colors,n=e?.themeSettings?.border,r=e?.themeSettings?.shadow;return{"--qc-background":t?.backgroundLight||Xa,"--qc-foreground":t?.foregroundLight||ei,"--qc-muted":t?.mutedLight||ti,"--qc-muted-foreground":t?.mutedForegroundLight||ni,"--qc-border":t?.light||ri,"--qc-input":t?.inputLight||oi,"--qc-primary":t?.primaryLight||ai,"--qc-primary-foreground":Ja(t?.primaryLight||ai),"--qc-popover":t?.popoverLight||ii,"--qc-popover-foreground":t?.popoverForegroundLight||li,"--qc-info":t?.infoLight||si,"--qc-warning":t?.warningLight||ui,"--qc-success":t?.successLight||ci,"--qc-destructive":t?.destructiveLight||di,"--qc-radius":`${n?.radius||fi}${n?.unit||pi}`,"--shadow-outer-horizontal-offset":`${r?.outerHorizontalOffset||hi}${r?.unit||bi}`,"--shadow-outer-vertical-offset":`${r?.outerVerticalOffset||mi}${r?.unit||bi}`,"--shadow-outer-blur":`${r?.outerBlur||gi}${r?.unit||bi}`,"--shadow-outer-spread":`${r?.outerSpread||yi}${r?.unit||bi}`}},wi=async({hardwareOnly:e=!0,debug:t=!1}={})=>{const{cookieEnabled:n,deviceMemory:r,doNotTrack:o,hardwareConcurrency:a,language:i,languages:l,maxTouchPoints:s,platform:u,userAgent:c,vendor:d}=window.navigator,f=/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent),{width:p,height:h,colorDepth:m,pixelDepth:g}=f?window.screen:{},y=(new Date).getTimezoneOffset(),b=Intl.DateTimeFormat().resolvedOptions().timeZone,v="ontouchstart"in window,w=window.devicePixelRatio,k=ki(t),S=await Ai(t),x=Ci(),C=Si(t),A=xi(),E=e?{audioInfo:x,audio:S,canvas:k,colorDepth:m,deviceMemory:r,devicePixelRatio:w,hardwareConcurrency:a,height:h,maxTouchPoints:s,pixelDepth:g,platform:u,touchSupport:v,webgl:C,webglInfo:A,width:p}:{audioInfo:x,audio:S,canvas:k,colorDepth:m,cookieEnabled:n,deviceMemory:r,devicePixelRatio:w,doNotTrack:o,hardwareConcurrency:a,height:h,language:i,languages:l,maxTouchPoints:s,pixelDepth:g,platform:u,timezone:b,timezoneOffset:y,touchSupport:v,userAgent:c,vendor:d,webgl:C,webglInfo:A,width:p};t&&console.log("Fingerprint data:",JSON.stringify(E,null,2));const I=JSON.stringify(E,null,2);return Ti(I)},ki=e=>{try{const t=document.createElement("canvas"),n=t.getContext("2d"),r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~1!2@3#4$5%6^7&8*9(0)-_=+[{]}|;:',<.>/?";n.textBaseline="top",n.font="14px 'Arial'",n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.fillText(r,2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.fillText(r,4,17);const o=t.toDataURL();return e?document.body.appendChild(t):n.clearRect(0,0,t.width,t.height),Ti(o)}catch{return null}},Si=e=>{try{const t=document.createElement("canvas"),n=t.getContext("webgl");t.width=256,t.height=128;const r="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",o="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",a=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,a);const i=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.7321,0]);n.bufferData(n.ARRAY_BUFFER,i,n.STATIC_DRAW),a.itemSize=3,a.numItems=3;const l=n.createProgram(),s=n.createShader(n.VERTEX_SHADER);n.shaderSource(s,r),n.compileShader(s);const u=n.createShader(n.FRAGMENT_SHADER);n.shaderSource(u,o),n.compileShader(u),n.attachShader(l,s),n.attachShader(l,u),n.linkProgram(l),n.useProgram(l),l.vertexPosAttrib=n.getAttribLocation(l,"attrVertex"),l.offsetUniform=n.getUniformLocation(l,"uniformOffset"),n.enableVertexAttribArray(l.vertexPosArray),n.vertexAttribPointer(l.vertexPosAttrib,a.itemSize,n.FLOAT,!1,0,0),n.uniform2f(l.offsetUniform,1,1),n.drawArrays(n.TRIANGLE_STRIP,0,a.numItems);const c=new Uint8Array(t.width*t.height*4);n.readPixels(0,0,t.width,t.height,n.RGBA,n.UNSIGNED_BYTE,c);const d=JSON.stringify(c).replace(/,?"[0-9]+":/g,"");return e?document.body.appendChild(t):n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT|n.STENCIL_BUFFER_BIT),Ti(d)}catch{return null}},xi=()=>{try{const e=document.createElement("canvas").getContext("webgl");return{VERSION:String(e.getParameter(e.VERSION)),SHADING_LANGUAGE_VERSION:String(e.getParameter(e.SHADING_LANGUAGE_VERSION)),VENDOR:String(e.getParameter(e.VENDOR)),SUPPORTED_EXTENSIONS:String(e.getSupportedExtensions())}}catch{return null}},Ci=()=>{try{const e=window.OfflineAudioContext||window.webkitOfflineAudioContext,t=new e(1,44100,44100);return{sampleRate:t.sampleRate,channelCount:t.destination.maxChannelCount,outputLatency:t.outputLatency,state:t.state,baseLatency:t.baseLatency}}catch{return null}},Ai=async e=>{try{const t=window.OfflineAudioContext||window.webkitOfflineAudioContext,n=new t(1,44100,44100),r=n.createOscillator();r.type="sine",r.frequency.value=440,r.connect(n.destination),r.start();const o=await n.startRendering(),a=o.getChannelData(0).reduce((e,t)=>e+Math.abs(t),0).toString();if(e){const e=Ei(o),t=URL.createObjectURL(e),n=document.createElement("audio");n.controls=!0,n.src=t,document.body.appendChild(n)}return Ti(a)}catch{return null}},Ei=e=>{const t=e.numberOfChannels,n=e.length*t*2+44,r=new ArrayBuffer(n),o=new DataView(r);Ii(o,0,"RIFF"),o.setUint32(4,n-8,!0),Ii(o,8,"WAVE"),Ii(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,t,!0),o.setUint32(24,e.sampleRate,!0),o.setUint32(28,e.sampleRate*t*2,!0),o.setUint16(32,2*t,!0),o.setUint16(34,16,!0),Ii(o,36,"data"),o.setUint32(40,n-44,!0);let a=44;for(let n=0;n<e.length;n++)for(let r=0;r<t;r++){const t=e.getChannelData(r)[n],i=32767*Math.max(-1,Math.min(1,t));o.setInt16(a,i,!0),a+=2}return new Blob([o],{type:"audio/wav"})},Ii=(e,t,n)=>{for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},Ti=e=>{const t=3&e.length,n=e.length-t,r=3432918353,o=461845907;let a,i,l;for(let t=0;t<n;t++)l=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24,++t,l=(65535&l)*r+(((l>>>16)*r&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295,a^=l,a=a<<13|a>>>19,i=5*(65535&a)+((5*(a>>>16)&65535)<<16)&4294967295,a=27492+(65535&i)+(((i>>>16)+58964&65535)<<16);const s=n-1;switch(l=0,t){case 3:l^=(255&e.charCodeAt(s+2))<<16;break;case 2:l^=(255&e.charCodeAt(s+1))<<8;break;case 1:l^=255&e.charCodeAt(s)}return l=(65535&l)*r+(((l>>>16)*r&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295,a^=l,a^=e.length,a^=a>>>16,a=2246822507*(65535&a)+((2246822507*(a>>>16)&65535)<<16)&4294967295,a^=a>>>13,a=3266489909*(65535&a)+((3266489909*(a>>>16)&65535)<<16)&4294967295,a^=a>>>16,a>>>0};typeof window<"u"&&(window.getBrowserFingerprint=wi);const _i=Se.createContext(),Ri=({props:e={},children:t})=>{const{organizationId:n,uid:r,fname:o,lname:a}=e,[i,l]=Se.useState(null),{isLoading:s,data:u,error:c}=Ne({queryKey:["qrati-connect-session",n],queryFn:async()=>{const e=await wi();return(await po.post(bo.INITIALIZE_SESSION,{json:{uid:r,fname:o,lname:a,browserFingerprint:e},headers:{"x-org-id":n,Authorization:r||o||a||!localStorage.getItem("qrati_token")?void 0:localStorage.getItem("qrati_token")}}).json()).data},enabled:!!n});Se.useEffect(()=>{u?.authSession?.user&&u?.authSession?.token?(l({...u?.authSession?.user,token:u?.authSession?.token}),u?.organization?.customAuth||localStorage.setItem("qrati_token",u?.authSession?.token)):l(null)},[u]);const d=async e=>{try{const t="https://qrati.com",r=await((e,t,n)=>new Promise((r,o)=>{if(!e)return void o(new Error("Provider is required"));if(!t)return void o(new Error("Organization ID is required"));const a=new URL(`${n}/qc-social-auth`);a.searchParams.set("provider",e),a.searchParams.set("organizationId",t),a.searchParams.set("origin",window.location.origin);const i=(window.screen.width-500)/2,l=(window.screen.height-600)/2,s=window.open(a.toString(),"qrati_social_auth",`width=500,height=600,left=${i},top=${l},scrollbars=yes,resizable=yes,status=yes`);if(!s)return void o(new Error("Failed to open popup window. Please allow popups and try again."));const u=()=>{clearInterval(d),clearTimeout(f),window.removeEventListener("message",c)},c=e=>{try{const t=new URL(n).origin;if(e.origin!==t)return void console.warn("Origin mismatch:",e.origin,"expected:",t)}catch{console.warn("Could not parse origin for verification")}const{type:a,data:i,error:l,organizationId:c}=e.data;if(c===t)switch(a){case"QRATI_SOCIAL_AUTH_SUCCESS":u(),s.close(),r({user:i.user,session:i.session,token:i.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",l),u(),s.close(),o(new Error(l||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":u(),s.close(),o(new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",c,"expected:",t)},d=setInterval(()=>{try{s.closed&&(u(),o(new Error("Authentication was cancelled")))}catch{}},1e3);window.addEventListener("message",c);const f=setTimeout(()=>{u(),s.closed||s.close(),o(new Error("Authentication timeout. Please try again."))},3e5)}))(e,n,t);return r.user&&r.token&&l({...r.user,token:r.token}),r}catch(e){throw console.error("Social login error:",e),e}};return s?w.jsx("div",{className:"qc:h-[80vh] qc:w-full"}):c?w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-labelledby":"error-svg-title",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:401===c?.response?.status?"Page not registered":"Something went wrong"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:c?.message}),w.jsxs("h5",{className:"qc:text-muted qc:text-center",children:["If you are an admin of this organization, please add the current page URL in Allowed URLs under"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:mo.ORGANIZATION_SETTINGS(n),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨"," ",w.jsx("a",{className:"qc:font-medium qc:text-blue-500",href:mo.ORGANIZATION_SETTINGS_INTEGRATION(n),target:"_blank",rel:"noreferrer",children:"Integration Settings"}),". For more details please contact Qrati support."]})]})]}):!u?.organization?.customAuth||r&&o&&a?w.jsx(_i.Provider,{value:{props:e,initializing:s,sessionId:u?.sessionId,organization:u?.organization,folders:u?.folders,loadingUser:s,user:i,registerUsingEmail:async(e,t,r,o)=>{try{const a=await po.post(bo.REGISTER,{json:{email:e,password:t,fname:r,lname:o},headers:{"x-org-id":n}}).json();return a.error?{error:a.error}:(l({...a.user,token:a.token}),a)}catch(e){return{error:e.message}}},loginWithGoogle:async()=>{try{return await d("google")}catch(e){throw console.error("Google login error:",e),e}},loginWithApple:async()=>{try{return await d("apple")}catch(e){throw console.error("Apple login error:",e),e}},loginUsingEmail:async(e,t)=>{try{try{const r=await po.post(bo.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":n}}).json();return r.error?{error:r.error}:(l({...r.user,token:r.token}),r)}catch(e){return{error:e.message}}}catch{}},signout:async()=>{try{const e=await po.post(bo.LOGOUT,{headers:{"x-org-id":n,Authorization:`Bearer ${i?.token}`}}).json();return e.error?{error:e.error}:(localStorage.removeItem("qrati_token"),l(null),e)}catch(e){return console.error(e),{error:e.message}}},error:c},children:w.jsx("div",{id:"qrati-connect-container",style:vi(u?.organization),className:Ka("qc:relative qc:min-h-[80vh]",e?.fontClassName),children:t})}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:max-w-xl qc:space-y-8",children:[w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 538.71577 579.81872",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("title",{children:"Error illustration"}),w.jsx("path",{d:"M506.76759,441.45795H101.83199c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V98.12604c.0087-7.51244,6.09659-13.6003,13.60901-13.60899H506.76759c7.51245,.0087,13.60028,6.09656,13.60901,13.60899V427.84894c-.00873,7.51245-6.09656,13.60028-13.60901,13.60901Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M467.42311,432.2785H111.01366c-7.51245-.00873-13.60031-6.09656-13.60901-13.60901V107.31283c.0087-7.51242,6.09659-13.6003,13.60901-13.60899H497.58809c7.51245,.0087,13.60028,6.09657,13.60901,13.60899V388.50445c-.02716,24.16443-19.60956,43.74683-43.77399,43.77405Z",fill:"#fff"}),w.jsx("path",{d:"M369.4825,164.10681H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h162.75317c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#ff4800"}),w.jsx("path",{d:"M451.87105,201.55386H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,239.00091H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,276.448H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.50977s1.57135-3.5098,3.50977-3.5098h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.5098s-1.57135,3.50977-3.50977,3.50977Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M451.87105,313.89505H206.72933c-1.93842,0-3.50977-1.57138-3.50977-3.5098s1.57135-3.50977,3.50977-3.50977h245.14172c1.93842,0,3.50977,1.57138,3.50977,3.50977s-1.57135,3.5098-3.50977,3.5098Z",fill:"#e6e6e6"}),w.jsx("path",{d:"M440.84718,373.56909c-9.81519,0-17.77191-7.95679-17.77191-17.77197s7.95679-17.77194,17.77197-17.77191c9.81519,0,17.77191,7.95679,17.77191,17.77197h0c-.00006,9.81519-7.95679,17.77191-17.77197,17.77191Z",fill:"#ff4800"}),w.jsx("path",{d:"M450.84529,354.95294l-5.03827-7.35388c-.4646-.68201-1.39417-.85818-2.07617-.39359-.68195,.46463-.85815,1.39417-.39355,2.07617l.00446,.00647,3.25842,4.75601h-12.76538c-.9682-.00287-1.75543,.77966-1.7583,1.74786s.77966,1.75543,1.74786,1.7583h12.93616l-3.41876,4.98999c-.4635,.68274-.28571,1.612,.39703,2.0755,.67865,.46063,1.60175,.28815,2.06824-.38647l5.03827-7.35388c.33362-.59741,.33362-1.32507,0-1.92249Z",fill:"#fff"}),w.jsx("path",{d:"M536.9474,35.89259H71.6544c-.99774-.02133-1.78931-.84746-1.76797-1.84521,.02069-.96771,.80026-1.74727,1.76797-1.76796h465.293c.99774,.02133,1.78931,.84746,1.76794,1.84521-.02069,.96771-.80023,1.74727-1.76794,1.76796Z",fill:"#cacaca"}),w.jsx("path",{d:"M129.88332,392.03558c2.69046-2.25092,3.04681-6.25665,.7959-8.94714-.24002-.28687-.50488-.552-.79156-.79224l-3.85318-33.29462-12.23428,2.83279,6.79901,31.56052c-2.08167,2.84705-1.46118,6.84253,1.38586,8.92419,2.38205,1.7417,5.64722,1.62445,7.89825-.28351Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M128.61916,354.4306l-14.16388,8.83612s-.86215,5.17871-1.83612-7.83612c-.10168-1.35852,.84622-3.72528,.742-5.11966-.11755-1.57309-4.62335-2.2887-4.742-3.88034-.0845-1.13293,1.21814-2.1409,1.134-3.27075-.12741-1.71158-.254-3.41367-.37827-5.08826-.104-1.401-1.6557-2.289-1.75574-3.64099-.10089-1.36349,1.25-3.19043,1.15479-4.48245-.71393-9.68848,1.75491-34.06335,1.75491-34.55923-.19077-1.24442-.71036-2.41531-1.5051-3.39169l.75601-2.26111-.49991-4.24243c-.65692-5.57474,.51501-11.21204,3.33932-16.06308h0l3.59717-2.35538,16.59769,27.91714c-6.98453,24.15781-11.54385,33.64658-4.19489,59.43823Z",fill:"#ff4800"}),w.jsx("polygon",{points:"117.56702 562.58543 126.13502 562.58543 130.21301 529.53642 117.56702 529.53642 117.56702 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M114.77113,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08273,3.43109,.9332,5.09601-.68396,.99066-1.811,1.58203-3.01483,1.58197h-16.29678l-2.80899-5.80115-1.09677,5.80115h-6.14453l1.72604-20.71375Z",fill:"#2f2e41"}),w.jsx("polygon",{points:"165.69602 562.58543 174.26402 562.58543 178.34102 529.53642 165.69602 529.53642 165.69602 562.58543",fill:"#ffb6b6"}),w.jsx("path",{d:"M162.8994,556.7168l13.68857-.81702v5.86481l13.0141,8.98798c1.66492,1.14954,2.08276,3.43109,.93323,5.09601-.68402,.99066-1.81104,1.58203-3.01489,1.58197h-16.29678l-2.80899-5.80115-1.09671,5.80121h-6.14453l1.72601-20.71381Z",fill:"#2f2e41"}),w.jsx("path",{d:"M113.93041,534.08581h.03333l1.64783-78.70483c-2.16583-4.17767-2.09665-9.16217,.18436-13.27814l.23593-.42706-.61169-2.83545c-.78564-3.64294-.42511-7.43976,1.0321-10.86975l1.53726-50.12524c-5.492-35.59256,20.68112-58.80466,20.68112-58.80466h39.20764l8.41745,28.92029c5.56464,54.21457,4.55493,132.01437-4.27539,183.19821l.24072,.1217c.94843,.52899,1.31409,1.70972,.83063,2.68213-.40802,1.18213-1.44147,1.89789-2.30829,1.59869l-20.70612-.72021c-.94852-.52893-1.31418-1.70972-.8306-2.68213,.40799-1.18213,1.44147-1.89783,2.30829-1.59869l1.4079,.7121-1.45267-2.95715c-1.78177-3.62714-1.43726-7.93823,.89792-11.23639h0l-.25443-6.50977h0c-2.20139-2.57782-2.93311-6.10175-1.94009-9.3429l1.39676-4.55884-1.64999-42.21698,.33322-9.47119-.68646-10.74493-3.17386-48.33057-12.01355,59.43298-12.27142,89.34686c.60062,.54187,.8642,1.36444,.69037,2.15448-.26059,1.05988-1.22098,1.79761-2.31223,1.77612h-16.65585c-1.25314-.00116-2.26804-1.01801-2.26688-2.27112,.00021-.20325,.02771-.40552,.08176-.60144,.28894-.9953,1.20868-1.67383,2.24493-1.65613Z",fill:"#2f2e41"}),w.jsx("path",{d:"M209.20992,379.09808c2.21375-2.72113,1.80243-6.72162-.9187-8.93536-.29016-.23602-.60052-.44598-.92761-.62738l-10.10931-31.95596-11.47314,5.1058,12.672,29.69373c-1.50281,3.19067-.13452,6.99554,3.05621,8.49835,2.66962,1.25739,5.85315,.52185,7.70062-1.77917h-.00006Z",fill:"#ffb6b6"}),w.jsx("path",{d:"M167.61156,277.5068s11.52975,40.80206,11.0076,44.92377c-1.07687,8.49966-54.05972,34.62692-58,23l.49393-3.82181c-1.9906-3.98123,10.15421-19.78131,10.74377-21.84821,.74908-2.64258-2.64258-11.31946-2.64258-11.31946,0,0,2.34436-7.92081,1.96979-12.82452-.38147-4.90372-1.51199-4.14771-5.6597-7.17178-4.14767-3.01712-10.93799-16.9722-10.93799-16.9722,0,0,3.01715-13.58057,3.01715-16.22314s12.3945-7.14401,13.8996-8.64914c.65521-.87424,1.20685-1.82153,1.6438-2.82288,.30518-.61035,.11099-2.02533,.43701-2.72586,.20807-.45776,.93634-.1734,1.1514-.64499,.20807-.45776,.02774-.98489,.23578-1.43576,.27051-.59647,.92249-1.11667,1.17911-1.67847,1.17911-2.58014,2.18481-4.68176,2.49692-4.68176,.74908,0,24.89999,3.39862,24.89999,3.39862,1.31448,2.03296,2.8295,3.92899,4.52225,5.6597,2.64258,2.63565,15.00931,9.05139,15.00931,9.05139l-15.46713,26.7865Z",fill:"#ff4800"}),w.jsx("path",{d:"M200.22267,346.15008c-1.88654,1.8866-11.22198,10.54852-11.60352,8.28046-.37451-2.26111-.57843-2.53137-2.09045-3.28046-1.51202-.75601-1.51202-1.13055-1.88654-3.77316-.37457-2.64258-3.77316-5.28519-3.39169-6.41574,.37454-1.13055,.0249,.30768,.0249-.82983,0-1.13055-1.13055-5.27823-2.64258-6.03427-1.5051-.75601-3.77316-1.50507-2.63565-3.39169,1.13055-1.88654-10.6467-58.48383-10.6467-58.48383l10.56345-20.74536,7.16479-.75601s2.17712,1.24573,2.85925,12.47653c.03455,.56876,.65479,1.61267,.68121,2.2338,.02191,.51627-.54865,.6015-.5329,1.1554,.0033,.11829,.00659,.23743,.00964,.35745,.01428,.5506,1.50098,.95566,1.52332,1.48715,.03986,.94949,.62384,7.0047,.68677,7.89462,.07092,1.0033,.15472,1.9697,.25128,2.89923,1.04254,10.12073,1.41583,10.97568,2.06189,14.20615,1,5,5.14539,34.20227,5.14539,34.20227,0,0,3.01709,.74908,3.01709,3.39169s3.32764,7.95386,1.82251,10.97101c-1.51202,3.02405,1.50519,2.2681-.38147,4.1546Z",fill:"#ff4800"}),w.jsx("circle",{cx:"148.8745",cy:"213.9424",r:"17.89357",fill:"#ffb8b8"}),w.jsx("path",{d:"M110.31502,251.54758c-3.78656-1.34195-7.57309-2.68634-11.35962-4.0332,.65262-1.09512,1.4838-2.07336,2.45911-2.89432,3.60519-3.01041,8.58139-3.55444,13.1586-4.57001,4.5845-1.01556,9.5607-3.09744,11.23639-7.47882,1.74091-4.55551-.78345-9.47366-2.24875-14.11618-2.16422-6.51166-1.90143-13.58618,.73993-19.91934,2.73499-6.33997,8.26752-11.04382,14.96487-12.72339,6.63007-1.47256,14.12341,.92847,18.20013,6.35446,5.43567-1.63062,11.23318,1.05328,13.50684,6.2529,1.0488,2.38864,.8869,5.13562-.43521,7.38452-1.41452,2.13992-4.43942,3.23526-6.71716,2.04562l1.32022-3.35132c-4.08401,1.38547-6.73889,8.76999-6.18765,13.04984,.54404,4.27258,3.0394,8.01559,5.57108,11.50476s5.23007,7.01456,6.31815,11.18555c1.56686,5.99899-.5513,12.55658-4.46841,17.36594s-9.43738,8.07364-15.1535,10.4747c-4.27887,1.79898-8.72549,3.16946-13.27469,4.09131,.81244-1.58136,1.61761-3.16272,2.43005-4.74408l-9.64047,5.83215c-1.86426,.18134-3.74307,.29016-5.6218,.32642-5.46945,.0943-11.0477-.47879-16.05301-2.66217-5.01242-2.1907-9.41559-6.15863-11.2291-11.31619-.58139-1.66821-.8566-3.42773-.81235-5.19379,4.43204-.95752,8.86417-1.91263,13.29636-2.86536Z",fill:"#2f2e41"}),w.jsx("path",{d:"M283.23262,578.79364h-33.18652l-.14258-.25879c-.42432-.76953-.83398-1.58502-1.2168-2.42285-3.41846-7.31836-4.86328-15.68848-6.13818-23.07324l-.96002-5.56641c-.32257-1.87054,.93225-3.64838,2.8028-3.97095,.91565-.15796,1.85626,.06165,2.60736,.60864,5.04346,3.66986,10.08887,7.33624,15.13623,10.99902,1.91113,1.39062,4.09375,3,6.18408,4.73926,.20166-.97949,.4126-1.96191,.62354-2.93066,.40363-1.85602,2.23541-3.03345,4.09143-2.62982,.90845,.19757,1.69824,.75452,2.18933,1.54388l3.88281,6.23828c2.83197,4.55566,5.33154,9.04492,4.82227,13.88672,.0025,.0589-.00195,.11792-.01318,.17578-.10187,.79529-.29083,1.57703-.56348,2.33105l-.11908,.33008Z",fill:"#f0f0f0"}),w.jsx("path",{d:"M316.54201,579.51141l-315.35751,.30731c-.65759-.00342-1.1879-.53931-1.18448-1.1969,.00342-.65271,.53174-1.18103,1.18448-1.18445l315.35751-.30731c.65759,.00342,1.18787,.53931,1.18445,1.1969-.00342,.65271-.53168,1.18103-1.18445,1.18445Z",fill:"#cacaca"}),w.jsx("ellipse",{cx:"89.88544",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"119.0992",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"148.31295",cy:"8.64507",rx:"8.45661",ry:"8.64507",fill:"#3f3d56"}),w.jsx("path",{d:"M181.62437,15.47786c-.25977,0-.51904-.10059-.71484-.30078l-5.70605-5.83301c-.38037-.38867-.38037-1.00977,0-1.39844l5.70605-5.83252c.38721-.39453,1.021-.40088,1.41406-.01562,.39502,.38623,.40186,1.01953,.01562,1.41406l-5.02197,5.1333,5.02197,5.13379c.38623,.39453,.37939,1.02783-.01562,1.41406-.19434,.19043-.44678,.28516-.69922,.28516Z",fill:"#3f3d56"}),w.jsx("path",{d:"M191.21275,15.47786c-.25244,0-.50488-.09473-.69922-.28516-.39502-.38623-.40186-1.01904-.01562-1.41406l5.02148-5.13379-5.02148-5.1333c-.38623-.39453-.37939-1.02783,.01562-1.41406,.39404-.38672,1.02783-.37939,1.41406,.01562l5.70557,5.83252c.38037,.38867,.38037,1.00977,0,1.39844l-5.70557,5.83301c-.1958,.2002-.45508,.30078-.71484,.30078Z",fill:"#3f3d56"}),w.jsx("path",{d:"M489.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M463.72257,1.0009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V13.8109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.1909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M514.22257,1.5009h-10.60999c-1.21002,0-2.19,.97998-2.19,2.19V14.3109c0,1.21002,.97998,2.19,2.19,2.19h10.60999c1.21002,0,2.20001-.97998,2.20001-2.19V3.6909c0-1.21002-.98999-2.19-2.20001-2.19Z",fill:"#3f3d56"}),w.jsx("path",{d:"M354.30088,5.54088h-84.81c-1.48004,0-2.67004,1.20001-2.67004,2.67004s1.19,2.66998,2.67004,2.66998h84.81c1.46997,0,2.66998-1.20001,2.66998-2.66998s-1.20001-2.67004-2.66998-2.67004Z",fill:"#3f3d56"})]}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Invalid input"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Custom auth mode requires uid, fname, lname. For more details please contact Qrati support."})]})]})},Pi=()=>{const e=Se.useContext(_i);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};
41
41
  /**
42
42
  * react-router v7.9.5
@@ -47,7 +47,7 @@ return"production"!=={}.NODE_ENV&&function(){function e(t){if(null==t)return nul
47
47
  * LICENSE.md file in the root directory of this source tree.
48
48
  *
49
49
  * @license MIT
50
- */var Oi="popstate";function Ni(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l="POP",s=null,u=c();function c(){return(i.state||{idx:null}).idx}function d(){l="POP";let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:m.location,delta:t})}function f(e,t){l="PUSH";let r=ji(m.location,e,t);n&&n(r,e),u=c()+1;let d=Di(r,u),f=m.createHref(r);try{i.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&s&&s({action:l,location:m.location,delta:1})}function p(e,t){l="REPLACE";let r=ji(m.location,e,t);n&&n(r,e),u=c();let o=Di(r,u),d=m.createHref(r);i.replaceState(o,"",d),a&&s&&s({action:l,location:m.location,delta:0})}function h(e){return function(e,t=!1){let n="http://localhost";typeof window<"u"&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Li(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Mi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let m={get action(){return l},get location(){return e(o,i)},listen(e){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Oi,d),s=e,()=>{o.removeEventListener(Oi,d),s=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>i.go(e)};return m}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=Fi(e.location.hash.substring(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),ji("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Mi(t))},function(e,t){zi("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function Li(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function zi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Di(e,t){return{usr:e.state,key:e.key,idx:t}}function ji(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Fi(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Mi({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Fi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qi(e,t,n="/"){return function(e,t,n,r){let o="string"==typeof t?Fi(t):t,a=el(o.pathname||"/",n);if(null==a)return null;let i=Ui(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let l=null;for(let e=0;null==l&&e<i.length;++e){let t=Xi(a);l=Ki(i[e],t,r)}return l}(e,t,n,!1)}function Ui(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;Li(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=al([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(Li(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Ui(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:Zi(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Hi(e.path))a(e,t,!0,n);else a(e,t)}),t}function Hi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=Hi(r.join("/")),l=[];return l.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var Bi=/^:[\w-]+$/,Vi=3,Wi=2,Gi=1,Qi=10,Yi=-2,$i=e=>"*"===e;function Zi(e,t){let n=e.split("/"),r=n.length;return n.some($i)&&(r+=Yi),t&&(r+=Wi),n.filter(e=>!$i(e)).reduce((e,t)=>e+(Bi.test(t)?Vi:""===t?Gi:Qi),r)}function Ki(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===a?t:t.slice(a.length)||"/",c=Ji({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=Ji({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),i.push({params:o,pathname:al([a,c.pathname]),pathnameBase:il(al([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=al([a,c.pathnameBase]))}return i}function Ji(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){zi("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:a,pathnameBase:i,pattern:e}}function Xi(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return zi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function el(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 tl(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function nl(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 <Link to="..."> and the router will parse it for you.`}function rl(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ol(e,t,n,r=!1){let o;"string"==typeof e?o=Fi(e):(o={...e},Li(!o.pathname||!o.pathname.includes("?"),nl("?","pathname","search",o)),Li(!o.pathname||!o.pathname.includes("#"),nl("#","pathname","hash",o)),Li(!o.search||!o.search.includes("#"),nl("#","search","hash",o)));let a,i=""===e||""===o.pathname,l=i?"/":o.pathname;if(null==l)a=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?Fi(e):e;return{pathname:n?n.startsWith("/")?n:tl(n,t):t,search:ll(r),hash:sl(o)}}(o,a),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var al=e=>e.join("/").replace(/\/\/+/g,"/"),il=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ll=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",sl=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ul=["POST","PUT","PATCH","DELETE"];new Set(ul);var cl=["GET",...ul];new Set(cl);var dl=Se.createContext(null);dl.displayName="DataRouter";var fl=Se.createContext(null);fl.displayName="DataRouterState",Se.createContext(!1);var pl=Se.createContext({isTransitioning:!1});pl.displayName="ViewTransition",Se.createContext(new Map).displayName="Fetchers",Se.createContext(null).displayName="Await";var hl=Se.createContext(null);hl.displayName="Navigation";var ml=Se.createContext(null);ml.displayName="Location";var gl=Se.createContext({outlet:null,matches:[],isDataRoute:!1});gl.displayName="Route";var yl=Se.createContext(null);function bl(){return null!=Se.useContext(ml)}function vl(){return Li(bl(),"useLocation() may be used only in the context of a <Router> component."),Se.useContext(ml).location}yl.displayName="RouteError";var wl="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kl(e){Se.useContext(hl).static||Se.useLayoutEffect(e)}function Sl(){let{isDataRoute:e}=Se.useContext(gl);return e?function(){let{router:e}=function(e){let t=Se.useContext(dl);return Li(t,Pl(e)),t}("useNavigate"),t=Ol("useNavigate"),n=Se.useRef(!1);return kl(()=>{n.current=!0}),Se.useCallback(async(r,o={})=>{zi(n.current,wl),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){Li(bl(),"useNavigate() may be used only in the context of a <Router> component.");let e=Se.useContext(dl),{basename:t,navigator:n}=Se.useContext(hl),{matches:r}=Se.useContext(gl),{pathname:o}=vl(),a=JSON.stringify(rl(r)),i=Se.useRef(!1);return kl(()=>{i.current=!0}),Se.useCallback((r,l={})=>{if(zi(i.current,wl),!i.current)return;if("number"==typeof r)return void n.go(r);let s=ol(r,JSON.parse(a),o,"path"===l.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:al([t,s.pathname])),(l.replace?n.replace:n.push)(s,l.state,l)},[t,n,a,o,e])}()}var xl=Se.createContext(null);function Cl(){let{matches:e}=Se.useContext(gl),t=e[e.length-1];return t?t.params:{}}function Al(e,{relative:t}={}){let{matches:n}=Se.useContext(gl),{pathname:r}=vl(),o=JSON.stringify(rl(n));return Se.useMemo(()=>ol(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function El(e,t,n,r,o){Li(bl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=Se.useContext(hl),{matches:i}=Se.useContext(gl),l=i[i.length-1],s=l?l.params:{},u=l?l.pathname:"/",c=l?l.pathnameBase:"/",d=l&&l.route;{let e=d&&d.path||"";Ll(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,p=vl();if(t){let e="string"==typeof t?Fi(t):t;Li("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=p;let h=f.pathname||"/",m=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=qi(e,{pathname:m});zi(d||null!=g,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),zi(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=n?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);Li(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let i=!1,l=-1;if(n)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){i=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}return o.reduceRight((e,s,u)=>{let c,d=!1,f=null,p=null;n&&(c=a&&s.route.id?a[s.route.id]:void 0,f=s.route.errorElement||Tl,i&&(l<0&&0===u?(Ll("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):l===u&&(d=!0,p=s.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,u+1)),m=()=>{let t;return t=c?f:d?p:s.route.Component?Se.createElement(s.route.Component,null):s.route.element?s.route.element:e,Se.createElement(Rl,{match:s,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(s.route.ErrorBoundary||s.route.errorElement||0===u)?Se.createElement(_l,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},unstable_onError:r}):m()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:al([c,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:al([c,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n,r,o);return t&&y?Se.createElement(ml.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},y):y}function Il(){let e=function(){let e=Se.useContext(yl),t=function(e){let t=Se.useContext(fl);return Li(t,Pl(e)),t}("useRouteError"),n=Ol("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=Se.createElement(Se.Fragment,null,Se.createElement("p",null,"💿 Hey developer 👋"),Se.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Se.createElement("code",{style:a},"ErrorBoundary")," or"," ",Se.createElement("code",{style:a},"errorElement")," prop on your route.")),Se.createElement(Se.Fragment,null,Se.createElement("h2",null,"Unexpected Application Error!"),Se.createElement("h3",{style:{fontStyle:"italic"}},t),n?Se.createElement("pre",{style:o},n):null,i)}var Tl=Se.createElement(Il,null),_l=class extends Se.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?Se.createElement(gl.Provider,{value:this.props.routeContext},Se.createElement(yl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Rl({routeContext:e,match:t,children:n}){let r=Se.useContext(dl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),Se.createElement(gl.Provider,{value:e},n)}function Pl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ol(e){let t=function(e){let t=Se.useContext(gl);return Li(t,Pl(e)),t}(e),n=t.matches[t.matches.length-1];return Li(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Nl={};function Ll(e,t,n){!t&&!Nl[e]&&(Nl[e]=!0,zi(!1,n))}function zl({basename:e,children:t,initialEntries:n,initialIndex:r}){let o=Se.useRef();null==o.current&&(o.current=function(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let a=s(r??t.length-1),i="POP",l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function c(e,n=null,r){let o=ji(t?u().pathname:"/",e,n,r);return zi("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:Mi(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Fi(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=c(e,n);a+=1,t.splice(a,t.length,r),o&&l&&l({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=c(e,n);t[a]=r,o&&l&&l({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,l&&l({action:i,location:r,delta:e})},listen:e=>(l=e,()=>{l=null})}}({initialEntries:n,initialIndex:r,v5Compat:!0}));let a=o.current,[i,l]=Se.useState({action:a.action,location:a.location}),s=Se.useCallback(e=>{Se.startTransition(()=>l(e))},[l]);return Se.useLayoutEffect(()=>a.listen(s),[a,s]),Se.createElement(Fl,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}function Dl({to:e,replace:t,state:n,relative:r}){Li(bl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=Se.useContext(hl);zi(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=Se.useContext(gl),{pathname:i}=vl(),l=Sl(),s=ol(e,rl(a),i,"path"===r),u=JSON.stringify(s);return Se.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function jl(e){return function(e){let t=Se.useContext(gl).outlet;return Se.useMemo(()=>t&&Se.createElement(xl.Provider,{value:e},t),[t,e])}(e.context)}function Ml(e){Li(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Fl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Li(!bl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=Se.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);"string"==typeof n&&(n=Fi(n));let{pathname:s="/",search:u="",hash:c="",state:d=null,key:f="default"}=n,p=Se.useMemo(()=>{let e=el(s,i);return null==e?null:{location:{pathname:e,search:u,hash:c,state:d,key:f},navigationType:r}},[i,s,u,c,d,f,r]);return zi(null!=p,`<Router basename="${i}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),null==p?null:Se.createElement(hl.Provider,{value:l},Se.createElement(ml.Provider,{children:t,value:p}))}function ql({children:e,location:t}){return function(e,t){return El(e,t)}(Ul(e),t)}function Ul(e,t=[]){let n=[];return Se.Children.forEach(e,(e,r)=>{if(!Se.isValidElement(e))return;let o=[...t,r];if(e.type===Se.Fragment)return void n.push.apply(n,Ul(e.props.children,o));Li(e.type===Ml,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Li(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ul(e.props.children,o)),n.push(a)}),n}Se.memo(function({routes:e,future:t,state:n,unstable_onError:r}){return El(e,void 0,n,r,t)});var Hl="get",Bl="application/x-www-form-urlencoded";function Vl(e){return null!=e&&"string"==typeof e.tagName}var Wl=null;var Gl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ql(e){return null==e||Gl.has(e)?e:(zi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bl}"`),null)}function Yl(e,t){let n,r,o,a,i;if(function(e){return Vl(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?el(i,t):null,n=e.getAttribute("method")||Hl,o=Ql(e.getAttribute("enctype"))||Bl,a=new FormData(e)}else if(function(e){return Vl(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Vl(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?el(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Hl,o=Ql(e.getAttribute("formenctype"))||Ql(i.getAttribute("enctype"))||Bl,a=new FormData(i,e),!function(){if(null===Wl)try{new FormData(document.createElement("form"),0),Wl=!1}catch{Wl=!0}return Wl}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Vl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Hl,r=null,o=Bl,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function $l(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function Zl(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function Kl(e,t,n){let r=await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}));return function(e,t){let n=new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}(r.flat(1).filter(Zl).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function Jl(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===a?t.filter((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||l(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Xl(e,t,{includeHydrateFallback:n}={}){return function(e){return[...new Set(e)]}(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function es(){let e=Se.useContext(dl);return $l(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ts=Se.createContext(void 0);function ns(){let e=Se.useContext(ts);return $l(e,"You must render this element inside a <HydratedRouter> element"),e}function rs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function os({page:e,...t}){let{router:n}=es(),r=Se.useMemo(()=>qi(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?Se.createElement(as,{page:e,matches:r,...t}):null}function as({page:e,matches:t,...n}){let r=vl(),{manifest:o,routeModules:a}=ns(),{basename:i}=es(),{loaderData:l,matches:s}=function(){let e=Se.useContext(fl);return $l(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),u=Se.useMemo(()=>Jl(e,t,s,o,r,"data"),[e,t,s,o,r]),c=Se.useMemo(()=>Jl(e,t,s,o,r,"assets"),[e,t,s,o,r]),d=Se.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),0===n.size)return[];let c=function(e,t,n){let r="string"==typeof e?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===el(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}(e,i,"data");return s&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[i,l,r,o,u,t,e,a]),f=Se.useMemo(()=>Xl(c,o),[c,o]),p=function(e){let{manifest:t,routeModules:n}=ns(),[r,o]=Se.useState([]);return Se.useEffect(()=>{let r=!1;return Kl(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}(c);return Se.createElement(Se.Fragment,null,d.map(e=>Se.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),f.map(e=>Se.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),p.map(({key:e,link:t})=>Se.createElement("link",{key:e,nonce:n.nonce,...t})))}function is(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}ts.displayName="FrameworkContext";var ls=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ls&&(window.__reactRouterVersion="7.9.5")}catch{}function ss({basename:e,children:t,window:n}){let r=Se.useRef();null==r.current&&(r.current=Ni({window:n,v5Compat:!0}));let o=r.current,[a,i]=Se.useState({action:o.action,location:o.location}),l=Se.useCallback(e=>{Se.startTransition(()=>i(e))},[i]);return Se.useLayoutEffect(()=>o.listen(l),[o,l]),Se.createElement(Fl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o})}var us=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cs=Se.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u,viewTransition:c,...d},f){let p,{basename:h}=Se.useContext(hl),m="string"==typeof s&&us.test(s),g=!1;if("string"==typeof s&&m&&(p=s,ls))try{let e=new URL(window.location.href),t=s.startsWith("//")?new URL(e.protocol+s):new URL(s),n=el(t.pathname,h);t.origin===e.origin&&null!=n?s=n+t.search+t.hash:g=!0}catch{zi(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=function(e,{relative:t}={}){Li(bl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Se.useContext(hl),{hash:o,pathname:a,search:i}=Al(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:al([n,a])),r.createHref({pathname:l,search:i,hash:o})}(s,{relative:r}),[b,v,w]=function(e,t){let n=Se.useContext(ts),[r,o]=Se.useState(!1),[a,i]=Se.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=Se.useRef(null);Se.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),Se.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{o(!0)},h=()=>{o(!1),i(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:rs(l,p),onBlur:rs(s,h),onMouseEnter:rs(u,p),onMouseLeave:rs(c,h),onTouchStart:rs(d,p)}]:[!1,f,{}]}(n,d),k=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let l=Sl(),s=vl(),u=Al(e,{relative:a});return Se.useCallback(c=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(c,t)){c.preventDefault();let t=void 0!==n?n:Mi(s)===Mi(u);l(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[s,l,u,n,r,t,e,o,a,i])}(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:r,viewTransition:c});let S=Se.createElement("a",{...d,...w,href:p||y,onClick:g||o?e:function(t){e&&e(t),t.defaultPrevented||k(t)},ref:is(f,v),target:l,"data-discover":m||"render"!==t?void 0:"true"});return b&&!m?Se.createElement(Se.Fragment,null,S,Se.createElement(os,{page:y})):S});cs.displayName="Link";var ds=Se.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:a,viewTransition:i,children:l,...s},u){let c=Al(a,{relative:s.relative}),d=vl(),f=Se.useContext(fl),{navigator:p,basename:h}=Se.useContext(hl),m=null!=f&&function(e,{relative:t}={}){let n=Se.useContext(pl);Li(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ps("useViewTransitionState"),o=Al(e,{relative:t});if(!n.isTransitioning)return!1;let a=el(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=el(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ji(o.pathname,i)||null!=Ji(o.pathname,a)}(c)&&!0===i,g=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,y=d.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(y=y.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&h&&(b=el(b,h)||b);const v="/"!==g&&g.endsWith("/")?g.length-1:g.length;let w,k=y===g||!r&&y.startsWith(g)&&"/"===y.charAt(v),S=null!=b&&(b===g||!r&&b.startsWith(g)&&"/"===b.charAt(g.length)),x={isActive:k,isPending:S,isTransitioning:m},C=k?e:void 0;w="function"==typeof n?n(x):[n,k?"active":null,S?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof o?o(x):o;return Se.createElement(cs,{...s,"aria-current":C,className:w,ref:u,style:A,to:a,viewTransition:i},"function"==typeof l?l(x):l)});ds.displayName="NavLink";var fs=Se.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=Hl,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,...f},p)=>{let h=function(){let{router:e}=ps("useSubmit"),{basename:t}=Se.useContext(hl),n=Ol("useRouteId");return Se.useCallback(async(r,o={})=>{let{action:a,method:i,encType:l,formData:s,body:u}=Yl(r,t);if(!1===o.navigate){let t=o.fetcherKey||ms();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}(),m=function(e,{relative:t}={}){let{basename:n}=Se.useContext(hl),r=Se.useContext(gl);Li(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Al(e||".",{relative:t})},i=vl();if(null==e){a.search=i.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();a.search=n?`?${n}`:""}}return(!e||"."===e)&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:al([n,a.pathname])),Mi(a)}(l,{relative:u}),g="get"===i.toLowerCase()?"get":"post",y="string"==typeof l&&us.test(l);return Se.createElement("form",{ref:p,method:g,action:m,onSubmit:r?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||i;h(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:a,relative:u,preventScrollReset:c,viewTransition:d})},...f,"data-discover":y||"render"!==e?void 0:"true"})});function ps(e){let t=Se.useContext(dl);return Li(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}fs.displayName="Form";var hs=0,ms=()=>`__${String(++hs)}__`;const gs=()=>{const e=vl(),{props:{organizationId:t},sessionId:n}=Pi(),r=Se.useRef([]),o=Se.useRef(null),a=Se.useRef(null),i=Se.useRef(!1),l=Se.useRef(!0),s=async e=>{if(n&&e.length)try{await po.post(bo.UPDATE_SESSION,{headers:{"x-org-id":t},json:{sessionId:n,pageViews:e}})}catch(e){console.error("Failed to send page views:",e)}},u=Se.useCallback(()=>{if(i.current)return null;i.current=!0;const e=Date.now();if(o.current&&a.current){if(e-a.current<100)return i.current=!1,null;const t={page:o.current,entryTime:a.current,exitTime:e},n=[...r.current,t];return n.length>=5?(s(n),r.current=[]):r.current=n,i.current=!1,t}return i.current=!1,null},[]),c=Se.useCallback(e=>{o.current!==e&&(u(),o.current=e,a.current=Date.now())},[u]);return Se.useEffect(()=>{if(l.current)return l.current=!1,o.current=e.pathname,void(a.current=Date.now());const t=document.getElementById("qrati-connect-container");t&&t.scrollIntoView({behavior:"smooth",block:"start"}),c(e.pathname)},[e,c]),Se.useEffect(()=>{const e=()=>{const e=u();if(e){const o=[...r.current,e];if(o.length>0)try{try{fetch(bo.UPDATE_SESSION,{method:"POST",headers:{"Content-Type":"application/json","x-org-id":t},body:JSON.stringify({sessionId:n,pageViews:o}),keepalive:!0})}catch(e){console.error("Failed to send final page views with fetch keepalive:",e),s(o)}}catch(e){console.error("Failed to send final page views:",e),s(o)}}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e);const t=u(),n=t?[...r.current,t]:r.current;n.length>0&&s(n)}},[u,n]),null};const ys=Object.freeze({left:0,top:0,width:16,height:16}),bs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vs=Object.freeze({...ys,...bs}),ws=Object.freeze({...vs,body:"",hidden:!1});function ks(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in ws)r in bs?r in e&&!(r in n)&&(n[r]=bs[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ss(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let a={};function i(e){a=ks(r[e]||o[e],a)}return i(t),n.forEach(i),ks(e,a)}function xs(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});const r=function(e){const t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);return Object.keys(t).concat(Object.keys(n)).forEach(function e(o){if(t[o])return r[o]=[];if(!(o in r)){r[o]=null;const t=n[o]&&n[o].parent,a=t&&e(t);a&&(r[o]=[t].concat(a))}return r[o]}),r}(e);for(const o in r){const a=r[o];a&&(t(o,Ss(e,o,a)),n.push(o))}return n}const Cs={provider:"",aliases:{},not_found:{},...ys};function As(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Es(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!As(e,Cs))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e||"string"!=typeof t.body||!As(t,ws))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e||"string"!=typeof o||!n[o]&&!r[o]||!As(t,ws))return null}return t}const Is=Object.create(null);function Ts(e,t){const n=Is[e]||(Is[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function _s(e,t){return Es(t)?xs(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}const Rs=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ps=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),a={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!Os(a)?null:a}const a=o[0],i=a.split("-");if(i.length>1){const e={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Os(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:a};return t&&!Os(e,n)?null:e}return null},Os=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);let Ns=!1;function Ls(e){return"boolean"==typeof e&&(Ns=e),Ns}function zs(e){const t="string"==typeof e?Ps(e,!0,Ns):e;if(t){const e=Ts(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ds(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Ns&&!t&&!e.prefix){let t=!1;return Es(e)&&(e.prefix="",xs(e,(e,n)=>{(function(e,t){const n=Ps(e,!0,Ns);if(!n)return!1;const r=Ts(n.provider,n.prefix);return t?function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(r,n.name,t):(r.missing.add(n.name),!0)})(e,n)&&(t=!0)})),t}const n=e.prefix;if(!Os({prefix:n,name:"a"}))return!1;return!!_s(Ts(t,n),e)}const js=Object.freeze({width:null,height:null}),Ms=Object.freeze({...js,...bs}),Fs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Us(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Fs);if(null===r||!r.length)return e;const o=[];let a=r.shift(),i=qs.test(a);for(;;){if(i){const e=parseFloat(a);isNaN(e)?o.push(a):o.push(Math.ceil(e*t*n)/n)}else o.push(a);if(a=r.shift(),void 0===a)return o.join("");i=!i}}const Hs=/\sid="(\S+)"/g,Bs="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Vs=0;function Ws(e,t=Bs){const n=[];let r;for(;r=Hs.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach(n=>{const r="function"==typeof t?t(n):t+(Vs++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),e=e.replace(new RegExp(o,"g"),"")}const Gs=Object.create(null);function Qs(e){return Gs[e]||Gs[""]}function Ys(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const $s=Object.create(null),Zs=["https://api.simplesvg.com","https://api.unisvg.com"],Ks=[];for(;Zs.length>0;)1===Zs.length||Math.random()>.5?Ks.push(Zs.shift()):Ks.push(Zs.pop());function Js(e,t){const n=Ys(t);return null!==n&&($s[e]=n,!0)}function Xs(e){return $s[e]}$s[""]=Ys({resources:["https://api.iconify.design"].concat(Ks)});let eu=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const tu={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=Xs(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),a="icons";let i={type:a,provider:e,prefix:t,icons:[]},l=0;return n.forEach((n,s)=>{l+=n.length+1,l>=o&&s>0&&(r.push(i),i={type:a,provider:e,prefix:t,icons:[]},l=n.length),i.icons.push(n)}),r.push(i),r},send:(e,t,n)=>{if(!eu)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=Xs(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;eu(e+r).then(e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout(()=>{n(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{n("success",e)}):setTimeout(()=>{404===e?n("abort",e):n("next",o)})}).catch(()=>{n("next",o)})}};function nu(e,t){e.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let ru=0;const ou={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function au(e,t,n,r){const o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){const e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===u&&(u="aborted"),h(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function y(){u="failed",p.forEach(e=>{e(void 0,s)})}function b(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function v(){if("pending"!==u)return;h();const r=i.shift();if(void 0===r)return f.length?void(d=setTimeout(()=>{h(),"pending"===u&&(b(),y())},e.timeout)):void y();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(f=f.filter(e=>e!==t),u){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=r,void y();if(o)return s=r,void(f.length||(i.length?v():y()));if(h(),b(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach(e=>{e(r)})}(o,t,n)}};f.push(o),c++,d=setTimeout(v,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&p.push(r),setTimeout(v),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:g,abort:m}}}function iu(e){const t={...ou,...e};let n=[];function r(){n=n.filter(e=>"pending"===e().status)}return{query:function(e,o,a){const i=au(t,e,o,(e,t)=>{r(),a&&a(e,t)});return n.push(i),i},find:function(e){return n.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function lu(){}const su=Object.create(null);function uu(e,t,n){let r,o;if("string"==typeof e){const t=Qs(e);if(!t)return n(void 0,424),lu;o=t.send;const a=function(e){if(!su[e]){const t=Xs(e);if(!t)return;const n={config:t,redundancy:iu(t)};su[e]=n}return su[e]}(e);a&&(r=a.redundancy)}else{const t=Ys(e);if(t){r=iu(t);const n=Qs(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),lu)}function cu(){}function du(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(t=>{const a=t.icons,i=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==o)return!0;const i=t.name;if(e.icons[i])a.loaded.push({provider:r,prefix:o,name:i});else{if(!e.missing.has(i))return n=!0,!0;a.missing.push({provider:r,prefix:o,name:i})}return!1}),a.pending.length!==i&&(n||nu([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}(e)}))}function fu(e,t,n){function r(){const n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&"object"==typeof n)try{if(!_s(e,n).length)return void r()}catch(e){console.error(e)}r(),du(e)}function pu(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function hu(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const o=e.loadIcon;if(e.loadIcons&&(r.length>1||!o))return void pu(e.loadIcons(r,n,t),t=>{fu(e,r,t)});if(o)return void r.forEach(r=>{pu(o(r,n,t),t=>{fu(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});const{valid:a,invalid:i}=function(e){const t=[],n=[];return e.forEach(e=>{(e.match(Rs)?t:n).push(e)}),{valid:t,invalid:n}}(r);if(i.length&&fu(e,i,null),!a.length)return;const l=n.match(Rs)?Qs(t):null;l?l.prepare(t,n,a).forEach(n=>{uu(t,n,t=>{fu(e,n.icons,t)})}):fu(e,a,null)}))}const mu=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach(e=>{const o="string"==typeof e?Ps(e,t,n):e;o&&r.push(o)}),r}(e,!0,Ls()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let r={provider:"",prefix:"",name:""};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,a=e.prefix,i=e.name,l=n[o]||(n[o]=Object.create(null)),s=l[a]||(l[a]=Ts(o,a));let u;u=i in s.icons?t.loaded:""===a||s.missing.has(i)?t.missing:t.pending;const c={provider:o,prefix:a,name:i};u.push(c)}),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(r.loaded,r.missing,r.pending,cu)}),()=>{e=!1}}const o=Object.create(null),a=[];let i,l;return r.pending.forEach(e=>{const{provider:t,prefix:n}=e;if(n===l&&t===i)return;i=t,l=n,a.push(Ts(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])}),r.pending.forEach(e=>{const{provider:t,prefix:n,name:r}=e,a=Ts(t,n),i=a.pendingIcons||(a.pendingIcons=new Set);i.has(r)||(i.add(r),o[t][n].push(r))}),a.forEach(e=>{const t=o[e.provider][e.prefix];t.length&&hu(e,t)}),t?function(e,t,n){const r=ru++,o=nu.bind(null,n,r);if(!t.pending.length)return o;const a={id:r,icons:t,callback:e,abort:o};return n.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(a)}),o}(t,r,a):cu};const gu=/[\s,]+/;function yu(e,t){t.split(gu).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function bu(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function vu(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let wu;function ku(e){return void 0===wu&&function(){try{wu=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{wu=null}}(),wu?wu.createHTML(e):e}const Su={...Ms,inline:!1},xu={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Cu={display:"inline-block"},Au={backgroundColor:"currentColor"},Eu={backgroundColor:"transparent"},Iu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Tu={WebkitMask:Au,mask:Au,background:Eu};for(const e in Tu){const t=Tu[e];for(const n in Iu)t[e+n]=Iu[n]}const _u={...Su,inline:!0};function Ru(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pu=(e,t,n)=>{const r=t.inline?_u:Su,o=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in js?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(r,t),a=t.mode||"svg",i={},l=t.style||{},s={..."svg"===a?xu:{}};if(n){const e=Ps(n,!1,!0);if(e){const t=["iconify"],n=["provider","prefix"];for(const r of n)e[r]&&t.push("iconify--"+e[r]);s.className=t.join(" ")}}for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":s.ref=n;break;case"className":s[e]=(s[e]?s[e]+" ":"")+n;break;case"inline":case"hFlip":case"vFlip":o[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&yu(o,n);break;case"color":i.color=n;break;case"rotate":"string"==typeof n?o[e]=bu(n):"number"==typeof n&&(o[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete s["aria-hidden"];break;default:void 0===r[e]&&(s[e]=n)}}const u=function(e,t){const n={...vs,...e},r={...Ms,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(e=>{const t=[],n=e.hFlip,r=e.vFlip;let i,l=e.rotate;switch(n?r?l+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:i=o.height/2+o.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:i=o.width/2+o.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}l%2==1&&(o.left!==o.top&&(i=o.left,o.left=o.top,o.top=i),o.width!==o.height&&(i=o.width,o.width=o.height,o.height=i)),t.length&&(a=function(e,t,n){const r=function(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===o||-1===a)break;const i=e.indexOf(">",a);if(-1===i)break;n+=e.slice(o+1,a).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}(e);return function(e,t){return e?"<defs>"+e+"</defs>"+t:t}(r.defs,t+r.content+n)}(a,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,s=o.width,u=o.height;let c,d;null===i?(d=null===l?"1em":"auto"===l?u:l,c=Us(d,s/u)):(c="auto"===i?s:i,d=null===l?Us(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};p("width",c),p("height",d);const h=[o.left,o.top,s,u];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:a}}(e,o),c=u.attributes;if(o.inline&&(i.verticalAlign="-0.125em"),"svg"===a){s.style={...i,...l},Object.assign(s,c);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),s.dangerouslySetInnerHTML={__html:ku(Ws(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},Se.createElement("svg",s)}const{body:d,width:f,height:p}=e,h="mask"===a||"bg"!==a&&-1!==d.indexOf("currentColor"),m=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(d,{...c,width:f+"",height:p+""});return s.style={...i,"--svg":vu(m),width:Ru(c.width),height:Ru(c.height),...Cu,...h?Au:Eu,...l},Se.createElement("span",s)};var Ou;if(Ls(!0),Ou=tu,Gs[""]=Ou,typeof document<"u"&&typeof window<"u"){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Ds(e))&&console.error(n)}catch{console.error(n)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Js(e,r)||console.error(n)}catch{console.error(n)}}}}function Nu(e){const[t,n]=Se.useState(!!e.ssr),[r,o]=Se.useState({});const[a,i]=Se.useState(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const n=zs(t);if(n)return{name:t,data:n}}return{name:""}}(!!e.ssr));function l(){const e=r.callback;e&&(e(),o({}))}function s(e){if(JSON.stringify(a)!==JSON.stringify(e))return l(),i(e),!0}function u(){var t;const n=e.icon;if("object"==typeof n)return void s({name:"",data:n});const r=zs(n);if(s({name:n,data:r}))if(void 0===r){const e=mu([n],u);o({callback:e})}else r&&(null===(t=e.onLoad)||void 0===t||t.call(e,n))}Se.useEffect(()=>(n(!0),l),[]),Se.useEffect(()=>{t&&u()},[e.icon,t]);const{name:c,data:d}=a;return d?Pu({...vs,...d},e,c):e.children?e.children:e.fallback?e.fallback:Se.createElement("span",{})}const Lu=Se.forwardRef((e,t)=>Nu({...e,_ref:t}));Se.forwardRef((e,t)=>Nu({inline:!0,...e,_ref:t}));const zu=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Du=Bo,ju=(e,t)=>n=>{var r;if(null==t?.variants)return Du(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=n?.[e],r=a?.[e];if(null===t)return null;const i=zu(t)||zu(r);return o[e][i]}),l=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),s=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...l}[t]):{...a,...l}[t]===n})?[...e,n,r]:e},[]);return Du(e,i,s,n?.class,n?.className)},Mu=ju("",{variants:{variant:{default:"qc:border-none",outline:"qc:rounded",solid:"qc:bg-background"},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6",xl:"qc:size-7","2xl":"qc:size-8","3xl":"qc:size-9"},color:{foreground:"qc:text-foreground",primary:"qc:text-primary",secondary:"qc:text-muted-foreground",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"qc:border-primary"},{variant:"outline",color:"secondary",class:"qc:border-border"},{variant:"outline",color:"info",class:"qc:border-info"},{variant:"outline",color:"warning",class:"qc:border-warning"},{variant:"outline",color:"success",class:"qc:border-success"},{variant:"outline",color:"error",class:"qc:border-destructive"},{variant:"solid",color:"primary",class:"qc:bg-background qc:text-foreground"},{variant:"solid",color:"secondary",class:"qc:bg-background qc:text-muted"},{variant:"solid",color:"info",class:"qc:bg-info qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"warning",class:"qc:bg-warning qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"success",class:"qc:bg-success qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"error",class:"qc:bg-destructive qc:text-foreground qc:text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Fu=({className:e,color:t="foreground",size:n="md",variant:r="default",name:o="line-md:iconify1",...a})=>w.jsx(Lu,{icon:o,className:Ka(Mu({color:t,size:n,variant:r,className:e})),...a});function qu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=qu(e,t);return!n&&"function"==typeof r&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():qu(e[t],null)}}}}function Hu(...e){return Se.useCallback(Uu(...e),e)}function Bu(e){const t=Wu(e),n=Se.forwardRef((e,n)=>{const{children:r,...o}=e,a=Se.Children.toArray(r),i=a.find(Qu);if(i){const e=i.props.children,r=a.map(t=>t===i?Se.Children.count(e)>1?Se.Children.only(null):Se.isValidElement(e)?e.props.children:null:t);return w.jsx(t,{...o,ref:n,children:Se.isValidElement(e)?Se.cloneElement(e,void 0,r):null})}return w.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Vu=Bu("Slot");function Wu(e){const t=Se.forwardRef((e,t)=>{const{children:n,...r}=e;if(Se.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Se.Fragment&&(o.ref=t?Uu(t,e):e),Se.cloneElement(n,o)}return Se.Children.count(n)>1?Se.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Qu(e){return Se.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Gu}const Yu=ju("qc:shadow-outer qc:inline-flex qc:size-fit qc:items-center qc:justify-center qc:rounded qc:font-medium qc:duration-500 disabled:qc:pointer-events-none disabled:qc:opacity-50",{variants:{variant:{default:"hover:qc:bg-opacity-80",outlined:"qc:bg-opacity-0 hover:qc:bg-opacity-10",ghost:"qc:border-transparent qc:bg-opacity-0 qc:shadow-none hover:qc:bg-opacity-20"},size:{sm:"qc:gap-1 qc:p-2 qc:text-xs",md:"qc:gap-2 qc:px-9 qc:py-1.5 qc:text-sm qc:sm:text-base",lg:"qc:gap-2 qc:px-4 qc:py-3 qc:text-base"}},compoundVariants:[{variant:"default",color:"primary",class:"qc:bg-primary qc:text-primary-foreground qc:border-border qc:border"},{variant:"default",color:"secondary",class:"qc:bg-background qc:text-muted-foreground qc:border-border qc:border"},{variant:"default",color:"info",class:"qc:bg-info qc:border-info qc:border qc:text-white"},{variant:"default",color:"warning",class:"qc:bg-warning qc:border-warning qc:border qc:text-white"},{variant:"default",color:"success",class:"qc:bg-success qc:border-success qc:border qc:text-white"},{variant:"default",color:"error",class:"qc:bg-destructive qc:border-destructive qc:border qc:text-white"},{variant:"outlined",color:"primary",class:"qc:border-border qc:text-foreground qc:bg-background qc:border"},{variant:"outlined",color:"secondary",class:"qc:border-border qc:text-muted qc:bg-background qc:border"},{variant:"outlined",color:"info",class:"qc:border-info qc:text-info qc:bg-info qc:border"},{variant:"outlined",color:"warning",class:"qc:border-warning qc:text-warning qc:bg-warning qc:border"},{variant:"outlined",color:"success",class:"qc:border-success qc:text-success qc:bg-success qc:border"},{variant:"outlined",color:"error",class:"qc:border-destructive qc:text-destructive qc:bg-destructive qc:border"},{variant:"ghost",color:"primary",class:"qc:text-primary"},{variant:"ghost",color:"secondary",class:"qc:text-muted-foreground"},{variant:"ghost",color:"info",class:"qc:text-info"},{variant:"ghost",color:"warning",class:"qc:text-warning"},{variant:"ghost",color:"success",class:"qc:text-success"},{variant:"ghost",color:"error",class:"qc:text-destructive"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),$u=ju("",{variants:{variant:{default:"",outlined:"",ghost:""},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6"},color:{primary:"qc:text-primary-foreground",secondary:"qc:text-muted",info:"qc:text-text-primary-dark",warning:"qc:text-text-primary-dark",success:"qc:text-text-primary-dark",error:"qc:text-text-primary-dark",light:"qc:text-text-primary-dark"}},compoundVariants:[{variant:"outlined",color:"primary",class:"qc:text-primary-foreground"},{variant:"outlined",color:"secondary",class:"qc:text-muted-foreground"},{variant:"outlined",color:"info",class:"qc:text-info"},{variant:"outlined",color:"warning",class:"qc:text-warning"},{variant:"outlined",color:"success",class:"qc:text-success"},{variant:"outlined",color:"error",class:"qc:text-destructive"}],defaultVariants:{size:"md",variant:"default",color:"primary"}}),Zu=Se.forwardRef(({className:e,type:t="button",disabled:n,loading:r,fullWidth:o,color:a,size:i,variant:l,iconSvg:s,icon:u,asChild:c=!1,immutable:d,...f},p)=>{const h=c?Vu:"button",{props:{textClassName:m}}=Pi();return w.jsxs(h,{ref:p,type:t,disabled:n||r,className:Ka(Yu({color:a,size:i,variant:l,className:e}),o&&"qc:w-full"),...f,children:[w.jsxs("div",{className:Ka(r?"qc:collapse":"qc:visible qc:flex qc:items-center qc:gap-2",!d&&m),children:[s&&!r&&s,u&&!r&&!s&&w.jsx(Fu,{className:Ka($u({color:a,size:i,variant:l})),name:u}),f.children]}),r&&w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"qc:absolute",children:[w.jsx("title",{children:"Loading"}),w.jsxs("circle",{cx:"18",cy:"12",r:"0",fill:"currentColor",children:[" ",w.jsx("animate",{attributeName:"r",begin:".67",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})," "]})," ",w.jsx("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:".33",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),w.jsx("circle",{cx:"6",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:"0",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})})]})]})}),Ku={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"p"},Ju=ju("qc:select-none",{variants:{variant:{h1:"qc:scroll-m-20 qc:text-4xl qc:font-semibold qc:tracking-tight qc:lg:text-5xl",h2:"qc:scroll-m-20 qc:text-2xl qc:font-semibold qc:tracking-tight first:qc:mt-0 qc:sm:text-3xl qc:sm:font-semibold",h3:"qc:scroll-m-20 qc:text-xl qc:font-semibold qc:sm:text-2xl",h4:"qc:scroll-m-20 qc:text-xl qc:font-medium",h5:"qc:scroll-m-20 qc:text-base qc:font-medium",h6:"qc:scroll-m-20 qc:text-sm qc:font-medium",body1:"qc:text-lg",body2:"qc:text-base qc:sm:text-lg",body3:"qc:text-sm qc:sm:text-base",p:"qc:leading-7 [&:not(:first-child)]:qc:mt-6",blockquote:"qc:border-l-2 qc:pl-4 qc:text-sm qc:italic",caption:"qc:text-xs"},color:{foreground:"qc:text-foreground",muted:"qc:text-muted-foreground",primary:"qc:text-primary",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",light:"qc:text-text-primary-light",white:"qc:text-white",black:"qc:text-black"},align:{left:"qc:text-left",right:"qc:text-right",center:"qc:text-center"}},defaultVariants:{variant:"p",color:"foreground",align:"left"}}),Xu=Se.forwardRef(({variant:e="p",color:t,align:n,transform:r,lines:o,shadow:a,className:i,immutable:l,...s},u)=>{const{props:{textClassName:c}}=Pi(),d=Ku[e];return w.jsx(d,{ref:u,className:Ka(Ju({variant:e,color:t,align:n,className:i}),r,o&&`qc:line-clamp-${o}`,a&&"qc:drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",!l&&c),...s,children:s.children})}),ec=({title:e,description:t,iconSvg:n,className:r})=>{const{props:{emptyStateImage:o,textClassName:a},organization:i}=Pi();return w.jsxs("div",{className:Ka("qc:mx-auto qc:flex qc:w-full qc:max-w-md qc:flex-col qc:items-center qc:justify-center qc:gap-8",a,r),children:[i?.integrationSettings?.showLogo?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:i?.logoUrl||"/images/qrati-logo.svg"}):o?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:o,alt:e}):n?w.jsx("div",{className:"qc:text-primary qc:h-44 qc:w-auto",children:n}):null,w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx(Xu,{variant:"h4",align:"center",children:e}),"string"==typeof t&&w.jsx(Xu,{variant:"h6",align:"center",className:"qc:font-normal",children:t}),"string"!=typeof t&&t]})]})},tc=({className:e,rounded:t=!1,...n})=>w.jsx("div",{className:Ka("qc:animate-pulse qc:bg-[#EAEAEA]",t?"qc:rounded-full":"qc:rounded",e),...n}),nc=()=>{const e=vl(),t=Sl(),{initializing:n,organization:r,loadingUser:o,user:a,signout:i}=Pi();return n||o?w.jsx("div",{className:"qc:my-2 qc:flex qc:justify-end",children:w.jsx(tc,{className:"qc:h-9 qc:w-64"})}):w.jsxs("div",{className:"qc:mx-auto qc:mb-4",children:[!a&&w.jsx("div",{className:"qc:flex qc:justify-end qc:gap-4",children:w.jsx(ds,{to:ho.LOGIN,state:{referrer:e.pathname},children:w.jsx(Zu,{children:"Login"})})}),a&&w.jsxs("div",{className:"qc:mt-2 qc:flex qc:items-center qc:justify-end qc:gap-4",children:[w.jsx(Xu,{variant:"h5",children:a.name}),!r.customAuth&&w.jsx("button",{onClick:async()=>{await i(),t(ho.PUBLIC_EVENTS)},children:w.jsx(Fu,{name:"material-symbols:exit-to-app-rounded",color:"error"})})]})]})},rc=({eventSlug:e})=>{const{props:{organizationId:t}}=Pi(),{isLoading:n,data:r,isError:o,error:a}=Ne({queryKey:[`event-data-${t}-${e}`],queryFn:async()=>{try{const n=await po.get(bo.EVENT_DATA,{searchParams:e?{eventSlug:e}:void 0,headers:{"x-org-id":t}}).json();if(n.error)throw new Error(n.error);return n.data}catch(e){throw new Error(e?.message||e||"Failed to fetch public events")}},enabled:!!t&&!!e});return{loading:n,event:r?.event,ads:r?.ads,parameters:r?.parameters,isError:o,error:a}},oc=()=>{const e=Sl();return w.jsx("button",{type:"button",onClick:()=>{window.history.length>1?e(-1):e(ho.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"qc:text-primary qc:absolute qc:left-0 qc:top-0",children:w.jsx(Fu,{name:"material-symbols:arrow-back-rounded",size:"lg"})})},ac=()=>{const{organization:e}=Pi();return e&&!e.integrationSettings?.hideQratiBranding?w.jsxs("a",{href:"https://qrati.com/powered-by-qrati",target:"_blank",className:"qc:flex qc:items-center qc:justify-center qc:gap-2 qc:pb-4",rel:"noopener noreferrer",children:[w.jsxs(Xu,{variant:"body2",align:"center",children:["Powered by"," "]}),w.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAACNCAYAAAC9tWG4AAAAyXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBBDsQgCLzzin2CMKj4HLttk/3BPn+x0qRtdhKHEXREaPt+dnoNCCtprlZaKcmhTZt0F5Ym+sGc9OAD1ULxPU+2xiXxF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9jdW1lbnRBbmNlc3RvcnM+CiAgICA8cmRmOkJhZz4KICAgICA8cmRmOmxpPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDoxOGYxNzA1ZC00ZjFhLTExZTctOTM4Zi05NmE5MjY5ZWJiNjI8L3JkZjpsaT4KICAgIDwvcmRmOkJhZz4KICAgPC9waG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz7H0zEnAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5wQcCzAyMx5H7wAAIABJREFUeNrtnXm8HeP9x9/PXZKbfSGRRJAmKiFiT5XGz1YyKIqi1SrVNqW0tkMpPce9qtTvqqW0tL9StJTUvnQsoQSlSO1iiUQ22SN7crfn98f3udykWe6ZZ845M+d+36/XvBCZOTPP88xnvvOd72JQFEVREo0NqAJGA9sAXYAWYAHwmgmZtaH9jA6doihKYoW9C/BD4BhgB6AnUAlYYDUwHXgB+IMJeVkFXlEUJR3iPhK4FtgfqNjEX58HXAFcY0JshxN4G1DpnnymzXUb9yRsAZpNSLMuK0VREqBXo4DxwPA8d70K+FmrlpkyGpA+QB+gO9AXGAQMBDYDaoAeQGcn8pVtBL4ZaHKvOyuAlcAiYCbwMbAEWAYsMiErdekpilJgLdsc+AewR8RDnGNCrk6twNuAzsD2wNbAUGAXYIj7775AN6Aqhp9qAD51rz/TgbeA14DZwLsmZJ4uR0VRYta3y4ELPA6xCNjfhLxhUnTRgxFf1GhgFPLBoX+JTqfBif0rwL+BZ03IB7o0FUXx1LmhwItAP89D1ZuQ80zCL3YYsC9wGDCS/P1RxWIq8CHwd+AJEzJVl6qiKBE073jgbzEc6l/AYVUJvMBeQAAcAhyI+NErEz4vX3DbgcBMG/A0cB/wqAlp1GWrKEo7GRnTcYYDX0iMBW8D+gM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AAAElFTkSuQmCC",alt:"Qrati Logo",className:"qc:h-4 qc:w-auto"})]}):null},ic=()=>{const e=Sl(),t=vl(),{user:n,organization:r,signout:o}=Pi();return w.jsxs("div",{children:[r&&!r.customAuth&&w.jsxs("div",{className:"qc:mx-auto qc:py-4",children:[!n&&w.jsxs(Xu,{variant:"h6",align:"center",children:[w.jsx(ds,{className:"qc:text-primary hover:qc:underline",to:ho.LOGIN,state:{referrer:t.pathname},children:"Login"})," ","•"," ",w.jsx(ds,{className:"qc:text-primary hover:qc:underline",to:ho.REGISTER,state:{referrer:t.pathname},children:"Register"})]}),n&&w.jsxs(Xu,{variant:"h6",align:"center",children:["Logged in as ",n.name," •"," ",w.jsx("span",{className:"qc:text-destructive hover:qc:underline",onClick:async()=>{await o(),e(ho.PUBLIC_EVENTS)},children:"Logout"})]})]}),w.jsx(ac,{})]})},lc=()=>{const e=Cl(),{organization:t,props:{organizationId:n}}=Pi(),{loading:r,event:o}=rc({eventSlug:e.eventSlug});return r?w.jsxs("div",{children:[w.jsx(tc,{className:"qc:mx-auto qc:mt-4 qc:h-8 qc:w-64"}),w.jsx(tc,{className:"qc:mx-auto qc:mt-6 qc:h-6 qc:w-72"}),w.jsx(tc,{className:"qc:mx-auto qc:mt-6 qc:h-8 qc:w-72"}),w.jsx("div",{className:"qc:mt-8 qc:grid qc:grid-cols-1 qc:gap-4 qc:sm:grid-cols-3",children:Array.from({length:8}).map((e,t)=>w.jsx(tc,{className:"qc:h-72"},t))})]}):o&&o?.organizationId===n?w.jsxs("div",{className:"qc:bg-background qc:relative qc:min-h-screen",children:[t?.navigationSettings?.enableNavbar&&w.jsx(nc,{}),w.jsx(oc,{}),w.jsx(jl,{}),w.jsx(ic,{})]}):w.jsxs("div",{className:"qc:flex qc:w-full qc:flex-col qc:items-center qc:gap-8",children:[w.jsx(ec,{className:"qc:mt-16",title:"Event not found",description:"Please check the provided link",iconSvg:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:size-full",viewBox:"0 0 997.86122 450.8081",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("rect",{x:"871.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"922.068 266.317 848.715 179.052 701.475 180.398 612.156 267.396 613.961 268.556 613.316 268.556 613.316 449.513 921.871 449.513 921.871 268.556 922.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"848.792 179.238 757.154 286.674 757.154 449.513 921.871 449.513 921.871 266.236 848.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"633.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"684.068 266.317 610.715 179.052 463.475 180.398 374.156 267.396 375.961 268.556 375.316 268.556 375.316 449.513 683.871 449.513 683.871 268.556 684.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"610.792 179.238 519.154 286.674 519.154 449.513 683.871 449.513 683.871 266.236 610.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"380.1536",y:"91.46021",width:"40.30032",height:"139.50112",fill:"#f2f2f2"}),w.jsx("polygon",{points:"447.068 204.718 349.051 88.112 152.302 89.91 32.951 206.161 35.362 207.711 34.501 207.711 34.501 449.513 446.804 449.513 446.804 207.711 447.068 204.718",fill:"#f2f2f2"}),w.jsx("polygon",{points:"349.153 88.36 226.702 231.921 226.702 449.513 446.804 449.513 446.804 204.611 349.153 88.36",fill:"#e6e6e6"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"318.63912",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"249.8692",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{y:"448.61997",width:"963.95079",height:"2",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"151.87223",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M255.62882,674.25425c-11.65458-69.92526-.11734-139.59789.00056-140.29293l2.267.384c-.11734.69167-11.58834,69.99825.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"251.0257",y:"571.20214",width:"29.84136",height:"2.29972",transform:"translate(-339.58156 -31.50095) rotate(-28.1416)",fill:"currentColor"}),w.jsx("rect",{x:"237.02319",y:"564.48509",width:"2.29972",height:"29.84239",transform:"translate(-486.12468 291.37147) rotate(-61.84204)",fill:"currentColor"}),w.jsx("ellipse",{cx:"81.9552",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M189.364,675.40405c-22.76459-136.58529-.22963-272.67316.00056-274.03181l2.267.384c-.22962,1.35528-22.69834,137.0771.00057,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"179.27648",y:"475.12522",width:"58.36761",height:"2.29972",transform:"translate(-301.0624 -69.97216) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"152.98936",y:"460.88882",width:"2.29972",height:"58.36761",transform:"translate(-451.74248 170.111) rotate(-61.84258)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"216.75351",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M326.9161,675.40405c-31.1399-186.83717-.3144-372.9922.00056-374.85051l2.267.384c-.3144,1.85494-31.07366,187.64393.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"312.69421",y:"401.83114",width:"79.87126",height:"2.29972",transform:"translate(-249.45002 -10.63875) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"277.14586",y:"381.92603",width:"2.29972",height:"79.87126",transform:"translate(-326.03583 243.55793) rotate(-61.84329)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"871.02934",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M969.41153,674.25425c11.65459-69.92526.11734-139.59789-.00056-140.29293l-2.267.384c.11733.69167,11.58833,69.99825-.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"957.94412",y:"557.43132",width:"2.29972",height:"29.84136",transform:"translate(-99.02545 923.51928) rotate(-61.8584)",fill:"currentColor"}),w.jsx("rect",{x:"971.94611",y:"578.25643",width:"29.84239",height:"2.29972",transform:"translate(-257.69773 309.6834) rotate(-28.15796)",fill:"currentColor"}),w.jsx("ellipse",{cx:"940.94638",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M1035.67632,675.40405c22.76459-136.58529.22962-272.67316-.00056-274.03181l-2.267.384c.22962,1.35528,22.69834,137.0771-.00056,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"1015.43021",y:"447.09128",width:"2.29972",height:"58.36761",transform:"translate(16.06635 923.44761) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"1041.71733",y:"488.92276",width:"58.36761",height:"2.29972",transform:"translate(-205.59609 338.75568) rotate(-28.15742)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"806.14806",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M898.12426,675.40405c31.1399-186.83717.31439-372.9922-.00056-374.85051l-2.267.384c.3144,1.85494,31.07365,187.64393-.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"871.26065",y:"363.04537",width:"2.29972",height:"79.87126",transform:"translate(4.52428 757.59634) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"906.809",y:"420.7118",width:"79.87126",height:"2.29972",transform:"translate(-188.10195 272.08136) rotate(-28.15671)",fill:"#3f3d56"}),w.jsx("path",{d:"M690.67376,326.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,690.67376,326.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M465.67376,261.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,465.67376,261.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M832.67376,232.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,832.67376,232.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M851.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,819.26034,674.648h45.94952A13.99045,13.99045,0,0,0,851.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M384.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,352.26034,674.648h45.94952A13.99045,13.99045,0,0,0,384.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M623.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,591.26034,674.648h45.94952A13.99045,13.99045,0,0,0,623.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("polygon",{points:"471.759 404.228 339.191 404.228 339.191 408.504 359.866 408.504 359.866 449.13 364.142 449.13 364.142 408.504 444.669 408.504 444.669 449.13 448.946 449.13 448.946 408.504 471.759 408.504 471.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("polygon",{points:"678.759 404.228 546.191 404.228 546.191 408.504 566.866 408.504 566.866 449.13 571.142 449.13 571.142 408.504 651.669 408.504 651.669 449.13 655.946 449.13 655.946 408.504 678.759 408.504 678.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"})]})}),w.jsx(ds,{to:ho.PUBLIC_EVENTS,state:{internalNavigation:!0},children:w.jsx(Zu,{children:"All events"})})]})},sc=Se.lazy(()=>import("./PublicEvents-D4eUZCHS.js")),uc=Se.lazy(()=>import("./ContentsPage-BpGmiu2Y.js").then(e=>e.l)),cc=Se.lazy(()=>import("./UploadPage-C0ek4Qqe.js")),dc=Se.lazy(()=>import("./LeaderboardPage-Ygaebr-t.js")),fc=Se.lazy(()=>import("./CuratePage-Bf96ltsu.js")),pc=Se.lazy(()=>import("./AuthLayout-yBnXbTdQ.js")),hc=Se.lazy(()=>import("./LoginPage-DIZ7qlYO.js")),mc=Se.lazy(()=>import("./RegisterPage-Bg7pyJeh.js")),gc=Se.lazy(()=>import("./ForgotPasswordPage-Z0fY0XwU.js")),yc=()=>w.jsx("div",{className:"qc:flex qc:h-[80vh] qc:w-full qc:items-center qc:justify-center",children:w.jsx("div",{className:"qc:text-foreground qc:text-lg"})}),bc=({router:e="memory"})=>{const t="hash"===e.toLowerCase()?ss:zl;return w.jsxs(t,{children:[w.jsx(gs,{}),w.jsx(Se.Suspense,{fallback:w.jsx(yc,{}),children:w.jsxs(ql,{children:[w.jsx(Ml,{path:"/:folderId?",element:w.jsx(sc,{})}),w.jsxs(Ml,{path:"/event/:eventSlug",element:w.jsx(lc,{}),children:[w.jsx(Ml,{path:"",element:w.jsx(uc,{})}),w.jsx(Ml,{path:"upload",element:w.jsx(cc,{})}),w.jsx(Ml,{path:"curate",element:w.jsx(fc,{})}),w.jsx(Ml,{path:"curate/:contentId",element:w.jsx(fc,{})}),w.jsx(Ml,{path:"leaderboard",element:w.jsx(dc,{})})]}),w.jsxs(Ml,{path:"/auth",element:w.jsx(pc,{}),children:[w.jsx(Ml,{path:"login",element:w.jsx(hc,{})}),w.jsx(Ml,{path:"register",element:w.jsx(mc,{})}),w.jsx(Ml,{path:"forgot-password",element:w.jsx(gc,{})})]})]})})]})};!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var vc=e=>"number"==typeof e&&!isNaN(e),wc=e=>"string"==typeof e,kc=e=>"function"==typeof e,Sc=e=>wc(e)||kc(e)?e:null,xc=(e,t)=>!1===e||vc(e)&&e>0?e:t,Cc=e=>Se.isValidElement(e)||wc(e)||kc(e)||vc(e);function Ac(e,t){return{content:Ec(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function Ec(e,t,n=!1){return Se.isValidElement(e)&&!wc(e.type)?Se.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):kc(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function Ic({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:a,controlledProgress:i,progress:l,rtl:s,isIn:u,theme:c}){let d=o||i&&0===l,f={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};i&&(f.transform=`scaleX(${l})`);let p=Bo("Toastify__progress-bar",i?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${c}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":s}),h=kc(a)?a({rtl:s,type:r,defaultClassName:p}):Bo(p,a),m={[i&&l>=1?"onTransitionEnd":"onAnimationEnd"]:i&&l<1?null:()=>{u&&n()}};return xe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},xe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${c} Toastify__progress-bar--${r}`}),xe.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:h,style:f,...m}))}var Tc=1,_c=()=>""+Tc++;function Rc(e,t,n){let r=1,o=0,a=[],i=[],l=t,s=new Map,u=new Set,c=()=>{i=Array.from(s.values()),u.forEach(e=>e())},d=e=>{var t,n;null==(n=null==(t=e.props)?void 0:t.onClose)||n.call(t,e.removalReason),e.isActive=!1},f=e=>{if(null==e)s.forEach(d);else{let t=s.get(e);t&&d(t)}c()},p=e=>{var t,r;let{toastId:o,updateId:a}=e.props,i=null==a;e.staleId&&s.delete(e.staleId),e.isActive=!0,s.set(o,e),c(),n(Ac(e,i?"added":"updated")),i&&(null==(r=(t=e.props).onOpen)||r.call(t))};return{id:e,props:l,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{s.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:f,toasts:s,clearQueue:()=>{o-=a.length,a=[]},buildToast:(t,i)=>{if((({containerId:t,toastId:n,updateId:r})=>{let o=t?t!==e:1!==e,a=s.has(n)&&null==r;return o||a})(i))return;let{toastId:u,updateId:d,data:h,staleId:m,delay:g}=i,y=null==d;y&&o++;let b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(i).filter(([e,t])=>null!=t)),toastId:u,updateId:d,data:h,isIn:!1,className:Sc(i.className||l.toastClassName),progressClassName:Sc(i.progressClassName||l.progressClassName),autoClose:!i.isLoading&&xc(i.autoClose,l.autoClose),closeToast(e){s.get(u).removalReason=e,f(u)},deleteToast(){let e=s.get(u);if(null!=e){if(n(Ac(e,"removed")),s.delete(u),o--,o<0&&(o=0),a.length>0)return void p(a.shift());c()}}};b.closeButton=l.closeButton,!1===i.closeButton||Cc(i.closeButton)?b.closeButton=i.closeButton:!0===i.closeButton&&(b.closeButton=!Cc(l.closeButton)||l.closeButton);let v={content:t,props:b,staleId:m};l.limit&&l.limit>0&&o>l.limit&&y?a.push(v):vc(g)?setTimeout(()=>{p(v)},g):p(v)},setProps(e){l=e},setToggle:(e,t)=>{let n=s.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=s.get(e))?void 0:t.isActive},getSnapshot:()=>i}}var Pc=new Map,Oc=[],Nc=new Set,Lc=e=>Nc.forEach(t=>t(e)),zc=()=>Pc.size>0;function Dc(e,t){var n;if(t)return!(null==(n=Pc.get(t))||!n.isToastActive(e));let r=!1;return Pc.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function jc(e){if(zc()){if(null==e||(e=>wc(e)||vc(e))(e))Pc.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Pc.get(e.containerId);t?t.removeToast(e.id):Pc.forEach(t=>{t.removeToast(e.id)})}}else Oc=Oc.filter(t=>null!=e&&t.options.toastId!==e)}function Mc(e,t){Cc(e)&&(zc()||Oc.push({content:e,options:t}),Pc.forEach(n=>{n.buildToast(e,t)}))}function Fc(e,t){Pc.forEach(n=>{(null==t||null==t||!t.containerId||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function qc(e){let t=e.containerId||1;return{subscribe(n){let r=Rc(t,e,Lc);Pc.set(t,r);let o=r.observe(n);return Oc.forEach(e=>Mc(e.content,e.options)),Oc=[],()=>{o(),Pc.delete(t)}},setProps(e){var n;null==(n=Pc.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=Pc.get(t))?void 0:e.getSnapshot()}}}function Uc(e){return e&&(wc(e.toastId)||vc(e.toastId))?e.toastId:_c()}function Hc(e,t){return Mc(e,t),t.toastId}function Bc(e,t){return{...t,type:t&&t.type||e,toastId:Uc(t)}}function Vc(e){return(t,n)=>Hc(t,Bc(e,n))}function Wc(e,t){return Hc(e,Bc("default",t))}function Gc(e){let[t,n]=Se.useState(!1),[r,o]=Se.useState(!1),a=Se.useRef(null),i=Se.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:s,closeToast:u,onClick:c,closeOnClick:d}=e;function f(){n(!0)}function p(){n(!1)}function h(n){let r=a.current;if(i.canDrag&&r){i.didMove=!0,t&&p(),"x"===e.draggableDirection?i.delta=n.clientX-i.start:i.delta=n.clientY-i.start,i.start!==n.clientX&&(i.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`;r.style.transform=`translate3d(${o},0)`,r.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance))}}function m(){document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",m);let t=a.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=Pc.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:n}),Se.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",f),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);let g={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){i.didMove=!1,document.addEventListener("pointermove",h),document.addEventListener("pointerup",m);let n=a.current;i.canCloseOnClick=!0,i.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(i.start=t.clientX,i.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(i.start=t.clientY,i.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:o,right:i}=a.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=i&&t.clientY>=n&&t.clientY<=r?p():f()}};return l&&s&&(g.onMouseEnter=p,e.stacked||(g.onMouseLeave=f)),d&&(g.onClick=e=>{c&&c(e),i.canCloseOnClick&&u(!0)}),{playToast:f,pauseToast:p,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:g}}Wc.loading=(e,t)=>Hc(e,Bc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Wc.promise=function(e,{pending:t,error:n,success:r},o){let a;t&&(a=wc(t)?Wc.loading(t,o):Wc.loading(t.render,{...o,...t}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,n)=>{if(null==t)return void Wc.dismiss(a);let r={type:e,...i,...o,data:n},l=wc(t)?{render:t}:t;return a?Wc.update(a,{...r,...l}):Wc(l.render,{...r,...l}),n},s=kc(e)?e():e;return s.then(e=>l("success",r,e)).catch(e=>l("error",n,e)),s},Wc.success=Vc("success"),Wc.info=Vc("info"),Wc.error=Vc("error"),Wc.warning=Vc("warning"),Wc.warn=Wc.warning,Wc.dark=(e,t)=>Hc(e,Bc("default",{theme:"dark",...t})),Wc.dismiss=function(e){jc(e)},Wc.clearWaitingQueue=(e={})=>{Pc.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Wc.isActive=Dc,Wc.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=Pc.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:_c()};a.toastId!==e&&(a.staleId=e);let i=a.render||o;delete a.render,Hc(i,a)}},Wc.done=e=>{Wc.update(e,{progress:1})},Wc.onChange=function(e){return Nc.add(e),()=>{Nc.delete(e)}},Wc.play=e=>Fc(!0,e),Wc.pause=e=>Fc(!1,e);var Qc=typeof window<"u"?Se.useLayoutEffect:Se.useEffect,Yc=({theme:e,type:t,isLoading:n,...r})=>xe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...r});var $c={info:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return xe.createElement("div",{className:"Toastify__spinner"})}};function Zc({theme:e,type:t,isLoading:n,icon:r}){let o=null,a={theme:e,type:t};return!1===r||(kc(r)?o=r({...a,isLoading:n}):Se.isValidElement(r)?o=Se.cloneElement(r,a):n?o=$c.spinner():(e=>e in $c)(t)&&(o=$c[t](a))),o}var Kc=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:a}=Gc(e),{closeButton:i,children:l,autoClose:s,onClick:u,type:c,hideProgressBar:d,closeToast:f,transition:p,position:h,className:m,style:g,progressClassName:y,updateId:b,role:v,progress:w,rtl:k,toastId:S,deleteToast:x,isIn:C,isLoading:A,closeOnClick:E,theme:I,ariaLabel:T}=e,_=Bo("Toastify__toast",`Toastify__toast-theme--${I}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":E}),R=kc(m)?m({rtl:k,position:h,type:c,defaultClassName:_}):Bo(_,m),P=Zc(e),O=!!w||!s,N={closeToast:f,type:c,theme:I},L=null;return!1===i||(L=kc(i)?i(N):Se.isValidElement(i)?Se.cloneElement(i,N):function({closeToast:e,theme:t,ariaLabel:n="close"}){return xe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},xe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},xe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(N)),xe.createElement(p,{isIn:C,done:x,position:h,preventExitTransition:n,nodeRef:r,playToast:a},xe.createElement("div",{id:S,tabIndex:0,onClick:u,"data-in":C,className:R,...o,style:g,ref:r,...C&&{role:v,"aria-label":T}},null!=P&&xe.createElement("div",{className:Bo("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},P),Ec(l,e,!t),L,!e.customProgressBar&&xe.createElement(Ic,{...b&&!O?{key:`p-${b}`}:{},rtl:k,theme:I,delay:s,isRunning:t,isIn:C,closeToast:f,hide:d,type:c,className:y,controlledProgress:O,progress:w||0})))},Jc=function({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:a,position:i,preventExitTransition:l,done:s,nodeRef:u,isIn:c,playToast:d}){let f=n?`${e}--${i}`:e,p=n?`${t}--${i}`:t,h=Se.useRef(0);return Se.useLayoutEffect(()=>{let e=u.current,t=f.split(" "),n=r=>{r.target===u.current&&(d(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===h.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),Se.useEffect(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),r?function(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,s,o):s()};c||(l?t():(h.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[c]),xe.createElement(xe.Fragment,null,a)}}(((e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}))("bounce",!0)),Xc={position:"top-right",transition:Jc,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function ed(e){let t={...Xc,...e},n=e.stacked,[r,o]=Se.useState(!0),a=Se.useRef(null),{getToastToRender:i,isToastActive:l,count:s}=function(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=Se.useRef(qc(e)).current;o(e);let a=null==(t=Se.useSyncExternalStore(n,r,r))?void 0:t.slice();return{getToastToRender:function(t){if(!a)return[];let n=new Map;return e.newestOnTop&&a.reverse(),a.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:Dc,count:a?.length}}(t),{className:u,style:c,rtl:d,containerId:f,hotKeys:p}=t;function h(e){let t=Bo("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return kc(u)?u({position:e,rtl:d,defaultClassName:t}):Bo(t,Sc(u))}function m(){n&&(o(!0),Wc.play())}return Qc(()=>{var e;if(n){let n=a.current.querySelectorAll('[data-in="true"]'),o=12,i=null==(e=t.position)?void 0:e.includes("top"),l=0,s=0;Array.from(n).reverse().forEach((e,t)=>{let n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=i?"top":"bot");let a=l*(r?.2:1)+(r?0:o*t);n.style.setProperty("--y",`${i?a:-1*a}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(r?s:0))),l+=n.offsetHeight,s+=.025})}},[r,s,n]),Se.useEffect(()=>{function e(e){var t;let n=a.current;p(e)&&(null==(t=n.querySelector('[tabIndex="0"]'))||t.focus(),o(!1),Wc.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(o(!0),Wc.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[p]),xe.createElement("section",{ref:a,className:"Toastify",id:f,onMouseEnter:()=>{n&&(o(!1),Wc.pause())},onMouseLeave:m,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},i((e,t)=>{let r=t.length?{...c}:{...c,pointerEvents:"none"};return xe.createElement("div",{tabIndex:-1,className:h(e),"data-stacked":n,style:r,key:`c-${e}`},t.map(({content:e,props:t})=>xe.createElement(Kc,{...t,stacked:n,collapseAll:m,isIn:l(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}const td=new class{#e;#t;#n;#r;#o;#a;#i;#l;constructor(e={}){this.#e=e.queryCache||new ke,this.#t=e.mutationCache||new ve,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#a=0}mount(){this.#a++,1===this.#a&&(this.#i=Y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=J.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,0===this.#a&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(R(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(r.queryHash)?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==a)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return K.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;K.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#e;return K.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=K.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(I).catch(I)}invalidateQueries(e,t={}){return K.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=K.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(I)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(I)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(R(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(I).catch(I)}fetchInfiniteQuery(e){return e.behavior=pe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(I).catch(I)}ensureInfiniteQueryData(e){return e.behavior=pe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return J.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(z(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(t=>{D(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(z(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(t=>{D(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=L(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===G&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},nd=e=>{const{organizationId:t,router:n}=e;return t?w.jsxs(Ie,{client:td,children:[w.jsxs(Ri,{props:e,children:[w.jsx(bc,{router:n}),w.jsx(ed,{position:"bottom-right",autoClose:3e3})]}),w.jsx(Dr,{initialIsOpen:!1})]}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:space-y-8",children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 799.031 618.112",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-label":"Error illustration showing a computer screen with an exclamation mark",children:w.jsxs("g",{transform:"translate(-893 -197)",children:[w.jsx("path",{d:"M15.18,488.763c0,.872.478,1.573,1.073,1.573h535.1c.6,0,1.073-.7,1.073-1.573s-.478-1.573-1.073-1.573H16.253C15.658,487.191,15.18,487.891,15.18,488.763Z",transform:"translate(1007.711 324.776)",fill:"#ccc"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1198.162 808.354)",fill:"#b6b3c5"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1367.295 808.917)",fill:"#b6b3c5"}),w.jsx("path",{d:"M352.955,370.945a27.529,27.529,0,0,1-54.321,0H229.146V521.536h193.3V370.945Z",transform:"translate(966.721 287.378)",fill:"#d6d6e3"}),w.jsx("rect",{width:"193.296",height:"5.242",transform:"translate(1196.43 796.983)",fill:"#090814"}),w.jsx("path",{d:"M788.255,487.17H10.776A10.788,10.788,0,0,1,0,476.394V32.688A10.788,10.788,0,0,1,10.776,21.911H788.255a10.789,10.789,0,0,1,10.776,10.776V476.394a10.789,10.789,0,0,1-10.776,10.776Z",transform:"translate(893 175.089)",fill:"#090814"}),w.jsx("rect",{width:"760.822",height:"429.297",transform:"translate(911.104 213.968)",fill:"#fff"}),w.jsxs("g",{transform:"translate(20.477 16.308)",children:[w.jsx("path",{d:"M604.463,379.271H317.442a8.655,8.655,0,0,1-8.645-8.645V273.8a8.655,8.655,0,0,1,8.645-8.645H604.463a8.655,8.655,0,0,1,8.645,8.645v96.826a8.655,8.655,0,0,1-8.645,8.645Z",transform:"translate(811.648 85.826)",fill:"#ff4800"}),w.jsx("rect",{width:"76.078",height:"8.645",rx:"2",transform:"translate(1165.4 380.374)",fill:"#fff"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1336.576 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1353.865 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1371.156 380.374)",fill:"#090814"})]}),w.jsx("ellipse",{cx:"40.952",cy:"40.952",rx:"40.952",ry:"40.952",transform:"translate(1404.281 440.452)",fill:"#090814"}),w.jsx("path",{d:"M10.863-57.7l-.524-29.6h8.246l-.554,29.6Zm3.613,14.307a4.7,4.7,0,0,1-3.409-1.3,4.368,4.368,0,0,1-1.34-3.278,4.39,4.39,0,0,1,1.34-3.322,4.732,4.732,0,0,1,3.409-1.282,4.732,4.732,0,0,1,3.409,1.282,4.39,4.39,0,0,1,1.34,3.322,4.368,4.368,0,0,1-1.34,3.278A4.7,4.7,0,0,1,14.476-43.394Z",transform:"translate(1430.76 546.754)",fill:"#fff"})]})}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Organization ID is required"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Please contact the admin for more information"})]})]})};var rd,od={exports:{}},ad={},id={exports:{}},ld={};
50
+ */var Oi="popstate";function Ni(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l="POP",s=null,u=c();function c(){return(i.state||{idx:null}).idx}function d(){l="POP";let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:m.location,delta:t})}function f(e,t){l="PUSH";let r=ji(m.location,e,t);n&&n(r,e),u=c()+1;let d=Di(r,u),f=m.createHref(r);try{i.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&s&&s({action:l,location:m.location,delta:1})}function p(e,t){l="REPLACE";let r=ji(m.location,e,t);n&&n(r,e),u=c();let o=Di(r,u),d=m.createHref(r);i.replaceState(o,"",d),a&&s&&s({action:l,location:m.location,delta:0})}function h(e){return function(e,t=!1){let n="http://localhost";typeof window<"u"&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Li(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Mi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let m={get action(){return l},get location(){return e(o,i)},listen(e){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Oi,d),s=e,()=>{o.removeEventListener(Oi,d),s=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>i.go(e)};return m}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=Fi(e.location.hash.substring(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),ji("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Mi(t))},function(e,t){zi("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function Li(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function zi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Di(e,t){return{usr:e.state,key:e.key,idx:t}}function ji(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Fi(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Mi({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Fi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qi(e,t,n="/"){return function(e,t,n,r){let o="string"==typeof t?Fi(t):t,a=el(o.pathname||"/",n);if(null==a)return null;let i=Ui(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let l=null;for(let e=0;null==l&&e<i.length;++e){let t=Xi(a);l=Ki(i[e],t,r)}return l}(e,t,n,!1)}function Ui(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;Li(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=al([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(Li(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Ui(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:Zi(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Hi(e.path))a(e,t,!0,n);else a(e,t)}),t}function Hi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=Hi(r.join("/")),l=[];return l.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var Bi=/^:[\w-]+$/,Vi=3,Wi=2,Gi=1,Qi=10,Yi=-2,$i=e=>"*"===e;function Zi(e,t){let n=e.split("/"),r=n.length;return n.some($i)&&(r+=Yi),t&&(r+=Wi),n.filter(e=>!$i(e)).reduce((e,t)=>e+(Bi.test(t)?Vi:""===t?Gi:Qi),r)}function Ki(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===a?t:t.slice(a.length)||"/",c=Ji({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=Ji({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),i.push({params:o,pathname:al([a,c.pathname]),pathnameBase:il(al([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=al([a,c.pathnameBase]))}return i}function Ji(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){zi("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:a,pathnameBase:i,pattern:e}}function Xi(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return zi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function el(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 tl(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function nl(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 <Link to="..."> and the router will parse it for you.`}function rl(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ol(e,t,n,r=!1){let o;"string"==typeof e?o=Fi(e):(o={...e},Li(!o.pathname||!o.pathname.includes("?"),nl("?","pathname","search",o)),Li(!o.pathname||!o.pathname.includes("#"),nl("#","pathname","hash",o)),Li(!o.search||!o.search.includes("#"),nl("#","search","hash",o)));let a,i=""===e||""===o.pathname,l=i?"/":o.pathname;if(null==l)a=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?Fi(e):e;return{pathname:n?n.startsWith("/")?n:tl(n,t):t,search:ll(r),hash:sl(o)}}(o,a),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var al=e=>e.join("/").replace(/\/\/+/g,"/"),il=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ll=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",sl=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ul=["POST","PUT","PATCH","DELETE"];new Set(ul);var cl=["GET",...ul];new Set(cl);var dl=Se.createContext(null);dl.displayName="DataRouter";var fl=Se.createContext(null);fl.displayName="DataRouterState",Se.createContext(!1);var pl=Se.createContext({isTransitioning:!1});pl.displayName="ViewTransition",Se.createContext(new Map).displayName="Fetchers",Se.createContext(null).displayName="Await";var hl=Se.createContext(null);hl.displayName="Navigation";var ml=Se.createContext(null);ml.displayName="Location";var gl=Se.createContext({outlet:null,matches:[],isDataRoute:!1});gl.displayName="Route";var yl=Se.createContext(null);function bl(){return null!=Se.useContext(ml)}function vl(){return Li(bl(),"useLocation() may be used only in the context of a <Router> component."),Se.useContext(ml).location}yl.displayName="RouteError";var wl="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kl(e){Se.useContext(hl).static||Se.useLayoutEffect(e)}function Sl(){let{isDataRoute:e}=Se.useContext(gl);return e?function(){let{router:e}=function(e){let t=Se.useContext(dl);return Li(t,Pl(e)),t}("useNavigate"),t=Ol("useNavigate"),n=Se.useRef(!1);return kl(()=>{n.current=!0}),Se.useCallback(async(r,o={})=>{zi(n.current,wl),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){Li(bl(),"useNavigate() may be used only in the context of a <Router> component.");let e=Se.useContext(dl),{basename:t,navigator:n}=Se.useContext(hl),{matches:r}=Se.useContext(gl),{pathname:o}=vl(),a=JSON.stringify(rl(r)),i=Se.useRef(!1);return kl(()=>{i.current=!0}),Se.useCallback((r,l={})=>{if(zi(i.current,wl),!i.current)return;if("number"==typeof r)return void n.go(r);let s=ol(r,JSON.parse(a),o,"path"===l.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:al([t,s.pathname])),(l.replace?n.replace:n.push)(s,l.state,l)},[t,n,a,o,e])}()}var xl=Se.createContext(null);function Cl(){let{matches:e}=Se.useContext(gl),t=e[e.length-1];return t?t.params:{}}function Al(e,{relative:t}={}){let{matches:n}=Se.useContext(gl),{pathname:r}=vl(),o=JSON.stringify(rl(n));return Se.useMemo(()=>ol(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function El(e,t,n,r,o){Li(bl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=Se.useContext(hl),{matches:i}=Se.useContext(gl),l=i[i.length-1],s=l?l.params:{},u=l?l.pathname:"/",c=l?l.pathnameBase:"/",d=l&&l.route;{let e=d&&d.path||"";Ll(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,p=vl();if(t){let e="string"==typeof t?Fi(t):t;Li("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=p;let h=f.pathname||"/",m=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=qi(e,{pathname:m});zi(d||null!=g,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),zi(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=n?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);Li(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let i=!1,l=-1;if(n)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){i=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}return o.reduceRight((e,s,u)=>{let c,d=!1,f=null,p=null;n&&(c=a&&s.route.id?a[s.route.id]:void 0,f=s.route.errorElement||Tl,i&&(l<0&&0===u?(Ll("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):l===u&&(d=!0,p=s.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,u+1)),m=()=>{let t;return t=c?f:d?p:s.route.Component?Se.createElement(s.route.Component,null):s.route.element?s.route.element:e,Se.createElement(Rl,{match:s,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(s.route.ErrorBoundary||s.route.errorElement||0===u)?Se.createElement(_l,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},unstable_onError:r}):m()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:al([c,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:al([c,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n,r,o);return t&&y?Se.createElement(ml.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},y):y}function Il(){let e=function(){let e=Se.useContext(yl),t=function(e){let t=Se.useContext(fl);return Li(t,Pl(e)),t}("useRouteError"),n=Ol("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=Se.createElement(Se.Fragment,null,Se.createElement("p",null,"💿 Hey developer 👋"),Se.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Se.createElement("code",{style:a},"ErrorBoundary")," or"," ",Se.createElement("code",{style:a},"errorElement")," prop on your route.")),Se.createElement(Se.Fragment,null,Se.createElement("h2",null,"Unexpected Application Error!"),Se.createElement("h3",{style:{fontStyle:"italic"}},t),n?Se.createElement("pre",{style:o},n):null,i)}var Tl=Se.createElement(Il,null),_l=class extends Se.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?Se.createElement(gl.Provider,{value:this.props.routeContext},Se.createElement(yl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Rl({routeContext:e,match:t,children:n}){let r=Se.useContext(dl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),Se.createElement(gl.Provider,{value:e},n)}function Pl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ol(e){let t=function(e){let t=Se.useContext(gl);return Li(t,Pl(e)),t}(e),n=t.matches[t.matches.length-1];return Li(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Nl={};function Ll(e,t,n){!t&&!Nl[e]&&(Nl[e]=!0,zi(!1,n))}function zl({basename:e,children:t,initialEntries:n,initialIndex:r}){let o=Se.useRef();null==o.current&&(o.current=function(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let a=s(r??t.length-1),i="POP",l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function c(e,n=null,r){let o=ji(t?u().pathname:"/",e,n,r);return zi("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:Mi(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Fi(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=c(e,n);a+=1,t.splice(a,t.length,r),o&&l&&l({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=c(e,n);t[a]=r,o&&l&&l({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,l&&l({action:i,location:r,delta:e})},listen:e=>(l=e,()=>{l=null})}}({initialEntries:n,initialIndex:r,v5Compat:!0}));let a=o.current,[i,l]=Se.useState({action:a.action,location:a.location}),s=Se.useCallback(e=>{Se.startTransition(()=>l(e))},[l]);return Se.useLayoutEffect(()=>a.listen(s),[a,s]),Se.createElement(Fl,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}function Dl({to:e,replace:t,state:n,relative:r}){Li(bl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=Se.useContext(hl);zi(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=Se.useContext(gl),{pathname:i}=vl(),l=Sl(),s=ol(e,rl(a),i,"path"===r),u=JSON.stringify(s);return Se.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function jl(e){return function(e){let t=Se.useContext(gl).outlet;return Se.useMemo(()=>t&&Se.createElement(xl.Provider,{value:e},t),[t,e])}(e.context)}function Ml(e){Li(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Fl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Li(!bl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=Se.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);"string"==typeof n&&(n=Fi(n));let{pathname:s="/",search:u="",hash:c="",state:d=null,key:f="default"}=n,p=Se.useMemo(()=>{let e=el(s,i);return null==e?null:{location:{pathname:e,search:u,hash:c,state:d,key:f},navigationType:r}},[i,s,u,c,d,f,r]);return zi(null!=p,`<Router basename="${i}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),null==p?null:Se.createElement(hl.Provider,{value:l},Se.createElement(ml.Provider,{children:t,value:p}))}function ql({children:e,location:t}){return function(e,t){return El(e,t)}(Ul(e),t)}function Ul(e,t=[]){let n=[];return Se.Children.forEach(e,(e,r)=>{if(!Se.isValidElement(e))return;let o=[...t,r];if(e.type===Se.Fragment)return void n.push.apply(n,Ul(e.props.children,o));Li(e.type===Ml,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Li(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ul(e.props.children,o)),n.push(a)}),n}Se.memo(function({routes:e,future:t,state:n,unstable_onError:r}){return El(e,void 0,n,r,t)});var Hl="get",Bl="application/x-www-form-urlencoded";function Vl(e){return null!=e&&"string"==typeof e.tagName}var Wl=null;var Gl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ql(e){return null==e||Gl.has(e)?e:(zi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bl}"`),null)}function Yl(e,t){let n,r,o,a,i;if(function(e){return Vl(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?el(i,t):null,n=e.getAttribute("method")||Hl,o=Ql(e.getAttribute("enctype"))||Bl,a=new FormData(e)}else if(function(e){return Vl(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Vl(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?el(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Hl,o=Ql(e.getAttribute("formenctype"))||Ql(i.getAttribute("enctype"))||Bl,a=new FormData(i,e),!function(){if(null===Wl)try{new FormData(document.createElement("form"),0),Wl=!1}catch{Wl=!0}return Wl}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Vl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Hl,r=null,o=Bl,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function $l(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function Zl(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function Kl(e,t,n){let r=await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}));return function(e,t){let n=new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}(r.flat(1).filter(Zl).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function Jl(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===a?t.filter((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||l(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Xl(e,t,{includeHydrateFallback:n}={}){return function(e){return[...new Set(e)]}(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function es(){let e=Se.useContext(dl);return $l(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ts=Se.createContext(void 0);function ns(){let e=Se.useContext(ts);return $l(e,"You must render this element inside a <HydratedRouter> element"),e}function rs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function os({page:e,...t}){let{router:n}=es(),r=Se.useMemo(()=>qi(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?Se.createElement(as,{page:e,matches:r,...t}):null}function as({page:e,matches:t,...n}){let r=vl(),{manifest:o,routeModules:a}=ns(),{basename:i}=es(),{loaderData:l,matches:s}=function(){let e=Se.useContext(fl);return $l(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),u=Se.useMemo(()=>Jl(e,t,s,o,r,"data"),[e,t,s,o,r]),c=Se.useMemo(()=>Jl(e,t,s,o,r,"assets"),[e,t,s,o,r]),d=Se.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),0===n.size)return[];let c=function(e,t,n){let r="string"==typeof e?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===el(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}(e,i,"data");return s&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[i,l,r,o,u,t,e,a]),f=Se.useMemo(()=>Xl(c,o),[c,o]),p=function(e){let{manifest:t,routeModules:n}=ns(),[r,o]=Se.useState([]);return Se.useEffect(()=>{let r=!1;return Kl(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}(c);return Se.createElement(Se.Fragment,null,d.map(e=>Se.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),f.map(e=>Se.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),p.map(({key:e,link:t})=>Se.createElement("link",{key:e,nonce:n.nonce,...t})))}function is(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}ts.displayName="FrameworkContext";var ls=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ls&&(window.__reactRouterVersion="7.9.5")}catch{}function ss({basename:e,children:t,window:n}){let r=Se.useRef();null==r.current&&(r.current=Ni({window:n,v5Compat:!0}));let o=r.current,[a,i]=Se.useState({action:o.action,location:o.location}),l=Se.useCallback(e=>{Se.startTransition(()=>i(e))},[i]);return Se.useLayoutEffect(()=>o.listen(l),[o,l]),Se.createElement(Fl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o})}var us=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cs=Se.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u,viewTransition:c,...d},f){let p,{basename:h}=Se.useContext(hl),m="string"==typeof s&&us.test(s),g=!1;if("string"==typeof s&&m&&(p=s,ls))try{let e=new URL(window.location.href),t=s.startsWith("//")?new URL(e.protocol+s):new URL(s),n=el(t.pathname,h);t.origin===e.origin&&null!=n?s=n+t.search+t.hash:g=!0}catch{zi(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=function(e,{relative:t}={}){Li(bl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Se.useContext(hl),{hash:o,pathname:a,search:i}=Al(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:al([n,a])),r.createHref({pathname:l,search:i,hash:o})}(s,{relative:r}),[b,v,w]=function(e,t){let n=Se.useContext(ts),[r,o]=Se.useState(!1),[a,i]=Se.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=Se.useRef(null);Se.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),Se.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{o(!0)},h=()=>{o(!1),i(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:rs(l,p),onBlur:rs(s,h),onMouseEnter:rs(u,p),onMouseLeave:rs(c,h),onTouchStart:rs(d,p)}]:[!1,f,{}]}(n,d),k=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let l=Sl(),s=vl(),u=Al(e,{relative:a});return Se.useCallback(c=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(c,t)){c.preventDefault();let t=void 0!==n?n:Mi(s)===Mi(u);l(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[s,l,u,n,r,t,e,o,a,i])}(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:r,viewTransition:c});let S=Se.createElement("a",{...d,...w,href:p||y,onClick:g||o?e:function(t){e&&e(t),t.defaultPrevented||k(t)},ref:is(f,v),target:l,"data-discover":m||"render"!==t?void 0:"true"});return b&&!m?Se.createElement(Se.Fragment,null,S,Se.createElement(os,{page:y})):S});cs.displayName="Link";var ds=Se.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:a,viewTransition:i,children:l,...s},u){let c=Al(a,{relative:s.relative}),d=vl(),f=Se.useContext(fl),{navigator:p,basename:h}=Se.useContext(hl),m=null!=f&&function(e,{relative:t}={}){let n=Se.useContext(pl);Li(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ps("useViewTransitionState"),o=Al(e,{relative:t});if(!n.isTransitioning)return!1;let a=el(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=el(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ji(o.pathname,i)||null!=Ji(o.pathname,a)}(c)&&!0===i,g=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,y=d.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(y=y.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&h&&(b=el(b,h)||b);const v="/"!==g&&g.endsWith("/")?g.length-1:g.length;let w,k=y===g||!r&&y.startsWith(g)&&"/"===y.charAt(v),S=null!=b&&(b===g||!r&&b.startsWith(g)&&"/"===b.charAt(g.length)),x={isActive:k,isPending:S,isTransitioning:m},C=k?e:void 0;w="function"==typeof n?n(x):[n,k?"active":null,S?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof o?o(x):o;return Se.createElement(cs,{...s,"aria-current":C,className:w,ref:u,style:A,to:a,viewTransition:i},"function"==typeof l?l(x):l)});ds.displayName="NavLink";var fs=Se.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=Hl,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,...f},p)=>{let h=function(){let{router:e}=ps("useSubmit"),{basename:t}=Se.useContext(hl),n=Ol("useRouteId");return Se.useCallback(async(r,o={})=>{let{action:a,method:i,encType:l,formData:s,body:u}=Yl(r,t);if(!1===o.navigate){let t=o.fetcherKey||ms();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}(),m=function(e,{relative:t}={}){let{basename:n}=Se.useContext(hl),r=Se.useContext(gl);Li(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Al(e||".",{relative:t})},i=vl();if(null==e){a.search=i.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();a.search=n?`?${n}`:""}}return(!e||"."===e)&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:al([n,a.pathname])),Mi(a)}(l,{relative:u}),g="get"===i.toLowerCase()?"get":"post",y="string"==typeof l&&us.test(l);return Se.createElement("form",{ref:p,method:g,action:m,onSubmit:r?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||i;h(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:a,relative:u,preventScrollReset:c,viewTransition:d})},...f,"data-discover":y||"render"!==e?void 0:"true"})});function ps(e){let t=Se.useContext(dl);return Li(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}fs.displayName="Form";var hs=0,ms=()=>`__${String(++hs)}__`;const gs=()=>{const e=vl(),{props:{organizationId:t},sessionId:n}=Pi(),r=Se.useRef([]),o=Se.useRef(null),a=Se.useRef(null),i=Se.useRef(!1),l=Se.useRef(!0),s=async e=>{if(n&&e.length)try{await po.post(bo.UPDATE_SESSION,{headers:{"x-org-id":t},json:{sessionId:n,pageViews:e}})}catch(e){console.error("Failed to send page views:",e)}},u=Se.useCallback(()=>{if(i.current)return null;i.current=!0;const e=Date.now();if(o.current&&a.current){if(e-a.current<100)return i.current=!1,null;const t={page:o.current,entryTime:a.current,exitTime:e},n=[...r.current,t];return n.length>=5?(s(n),r.current=[]):r.current=n,i.current=!1,t}return i.current=!1,null},[]),c=Se.useCallback(e=>{o.current!==e&&(u(),o.current=e,a.current=Date.now())},[u]);return Se.useEffect(()=>{if(l.current)return l.current=!1,o.current=e.pathname,void(a.current=Date.now());const t=document.getElementById("qrati-connect-container");t&&t.scrollIntoView({behavior:"smooth",block:"start"}),c(e.pathname)},[e,c]),Se.useEffect(()=>{const e=()=>{const e=u();if(e){const o=[...r.current,e];if(o.length>0)try{try{fetch(bo.UPDATE_SESSION,{method:"POST",headers:{"Content-Type":"application/json","x-org-id":t},body:JSON.stringify({sessionId:n,pageViews:o}),keepalive:!0})}catch(e){console.error("Failed to send final page views with fetch keepalive:",e),s(o)}}catch(e){console.error("Failed to send final page views:",e),s(o)}}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e);const t=u(),n=t?[...r.current,t]:r.current;n.length>0&&s(n)}},[u,n]),null};const ys=Object.freeze({left:0,top:0,width:16,height:16}),bs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vs=Object.freeze({...ys,...bs}),ws=Object.freeze({...vs,body:"",hidden:!1});function ks(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in ws)r in bs?r in e&&!(r in n)&&(n[r]=bs[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ss(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let a={};function i(e){a=ks(r[e]||o[e],a)}return i(t),n.forEach(i),ks(e,a)}function xs(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});const r=function(e){const t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);return Object.keys(t).concat(Object.keys(n)).forEach(function e(o){if(t[o])return r[o]=[];if(!(o in r)){r[o]=null;const t=n[o]&&n[o].parent,a=t&&e(t);a&&(r[o]=[t].concat(a))}return r[o]}),r}(e);for(const o in r){const a=r[o];a&&(t(o,Ss(e,o,a)),n.push(o))}return n}const Cs={provider:"",aliases:{},not_found:{},...ys};function As(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Es(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!As(e,Cs))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e||"string"!=typeof t.body||!As(t,ws))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e||"string"!=typeof o||!n[o]&&!r[o]||!As(t,ws))return null}return t}const Is=Object.create(null);function Ts(e,t){const n=Is[e]||(Is[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function _s(e,t){return Es(t)?xs(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}const Rs=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ps=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),a={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!Os(a)?null:a}const a=o[0],i=a.split("-");if(i.length>1){const e={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Os(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:a};return t&&!Os(e,n)?null:e}return null},Os=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);let Ns=!1;function Ls(e){return"boolean"==typeof e&&(Ns=e),Ns}function zs(e){const t="string"==typeof e?Ps(e,!0,Ns):e;if(t){const e=Ts(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ds(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Ns&&!t&&!e.prefix){let t=!1;return Es(e)&&(e.prefix="",xs(e,(e,n)=>{(function(e,t){const n=Ps(e,!0,Ns);if(!n)return!1;const r=Ts(n.provider,n.prefix);return t?function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(r,n.name,t):(r.missing.add(n.name),!0)})(e,n)&&(t=!0)})),t}const n=e.prefix;if(!Os({prefix:n,name:"a"}))return!1;return!!_s(Ts(t,n),e)}const js=Object.freeze({width:null,height:null}),Ms=Object.freeze({...js,...bs}),Fs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Us(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Fs);if(null===r||!r.length)return e;const o=[];let a=r.shift(),i=qs.test(a);for(;;){if(i){const e=parseFloat(a);isNaN(e)?o.push(a):o.push(Math.ceil(e*t*n)/n)}else o.push(a);if(a=r.shift(),void 0===a)return o.join("");i=!i}}const Hs=/\sid="(\S+)"/g,Bs="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Vs=0;function Ws(e,t=Bs){const n=[];let r;for(;r=Hs.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach(n=>{const r="function"==typeof t?t(n):t+(Vs++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),e=e.replace(new RegExp(o,"g"),"")}const Gs=Object.create(null);function Qs(e){return Gs[e]||Gs[""]}function Ys(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const $s=Object.create(null),Zs=["https://api.simplesvg.com","https://api.unisvg.com"],Ks=[];for(;Zs.length>0;)1===Zs.length||Math.random()>.5?Ks.push(Zs.shift()):Ks.push(Zs.pop());function Js(e,t){const n=Ys(t);return null!==n&&($s[e]=n,!0)}function Xs(e){return $s[e]}$s[""]=Ys({resources:["https://api.iconify.design"].concat(Ks)});let eu=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const tu={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=Xs(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),a="icons";let i={type:a,provider:e,prefix:t,icons:[]},l=0;return n.forEach((n,s)=>{l+=n.length+1,l>=o&&s>0&&(r.push(i),i={type:a,provider:e,prefix:t,icons:[]},l=n.length),i.icons.push(n)}),r.push(i),r},send:(e,t,n)=>{if(!eu)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=Xs(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;eu(e+r).then(e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout(()=>{n(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{n("success",e)}):setTimeout(()=>{404===e?n("abort",e):n("next",o)})}).catch(()=>{n("next",o)})}};function nu(e,t){e.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let ru=0;const ou={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function au(e,t,n,r){const o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){const e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===u&&(u="aborted"),h(),f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function y(){u="failed",p.forEach(e=>{e(void 0,s)})}function b(){f.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),f=[]}function v(){if("pending"!==u)return;h();const r=i.shift();if(void 0===r)return f.length?void(d=setTimeout(()=>{h(),"pending"===u&&(b(),y())},e.timeout)):void y();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(f=f.filter(e=>e!==t),u){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=r,void y();if(o)return s=r,void(f.length||(i.length?v():y()));if(h(),b(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach(e=>{e(r)})}(o,t,n)}};f.push(o),c++,d=setTimeout(v,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&p.push(r),setTimeout(v),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:g,abort:m}}}function iu(e){const t={...ou,...e};let n=[];function r(){n=n.filter(e=>"pending"===e().status)}return{query:function(e,o,a){const i=au(t,e,o,(e,t)=>{r(),a&&a(e,t)});return n.push(i),i},find:function(e){return n.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function lu(){}const su=Object.create(null);function uu(e,t,n){let r,o;if("string"==typeof e){const t=Qs(e);if(!t)return n(void 0,424),lu;o=t.send;const a=function(e){if(!su[e]){const t=Xs(e);if(!t)return;const n={config:t,redundancy:iu(t)};su[e]=n}return su[e]}(e);a&&(r=a.redundancy)}else{const t=Ys(e);if(t){r=iu(t);const n=Qs(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),lu)}function cu(){}function du(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(t=>{const a=t.icons,i=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==o)return!0;const i=t.name;if(e.icons[i])a.loaded.push({provider:r,prefix:o,name:i});else{if(!e.missing.has(i))return n=!0,!0;a.missing.push({provider:r,prefix:o,name:i})}return!1}),a.pending.length!==i&&(n||nu([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}(e)}))}function fu(e,t,n){function r(){const n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&"object"==typeof n)try{if(!_s(e,n).length)return void r()}catch(e){console.error(e)}r(),du(e)}function pu(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function hu(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const o=e.loadIcon;if(e.loadIcons&&(r.length>1||!o))return void pu(e.loadIcons(r,n,t),t=>{fu(e,r,t)});if(o)return void r.forEach(r=>{pu(o(r,n,t),t=>{fu(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});const{valid:a,invalid:i}=function(e){const t=[],n=[];return e.forEach(e=>{(e.match(Rs)?t:n).push(e)}),{valid:t,invalid:n}}(r);if(i.length&&fu(e,i,null),!a.length)return;const l=n.match(Rs)?Qs(t):null;l?l.prepare(t,n,a).forEach(n=>{uu(t,n,t=>{fu(e,n.icons,t)})}):fu(e,a,null)}))}const mu=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach(e=>{const o="string"==typeof e?Ps(e,t,n):e;o&&r.push(o)}),r}(e,!0,Ls()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let r={provider:"",prefix:"",name:""};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,a=e.prefix,i=e.name,l=n[o]||(n[o]=Object.create(null)),s=l[a]||(l[a]=Ts(o,a));let u;u=i in s.icons?t.loaded:""===a||s.missing.has(i)?t.missing:t.pending;const c={provider:o,prefix:a,name:i};u.push(c)}),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(r.loaded,r.missing,r.pending,cu)}),()=>{e=!1}}const o=Object.create(null),a=[];let i,l;return r.pending.forEach(e=>{const{provider:t,prefix:n}=e;if(n===l&&t===i)return;i=t,l=n,a.push(Ts(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])}),r.pending.forEach(e=>{const{provider:t,prefix:n,name:r}=e,a=Ts(t,n),i=a.pendingIcons||(a.pendingIcons=new Set);i.has(r)||(i.add(r),o[t][n].push(r))}),a.forEach(e=>{const t=o[e.provider][e.prefix];t.length&&hu(e,t)}),t?function(e,t,n){const r=ru++,o=nu.bind(null,n,r);if(!t.pending.length)return o;const a={id:r,icons:t,callback:e,abort:o};return n.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(a)}),o}(t,r,a):cu};const gu=/[\s,]+/;function yu(e,t){t.split(gu).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function bu(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function vu(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let wu;function ku(e){return void 0===wu&&function(){try{wu=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{wu=null}}(),wu?wu.createHTML(e):e}const Su={...Ms,inline:!1},xu={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Cu={display:"inline-block"},Au={backgroundColor:"currentColor"},Eu={backgroundColor:"transparent"},Iu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Tu={WebkitMask:Au,mask:Au,background:Eu};for(const e in Tu){const t=Tu[e];for(const n in Iu)t[e+n]=Iu[n]}const _u={...Su,inline:!0};function Ru(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pu=(e,t,n)=>{const r=t.inline?_u:Su,o=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in js?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(r,t),a=t.mode||"svg",i={},l=t.style||{},s={..."svg"===a?xu:{}};if(n){const e=Ps(n,!1,!0);if(e){const t=["iconify"],n=["provider","prefix"];for(const r of n)e[r]&&t.push("iconify--"+e[r]);s.className=t.join(" ")}}for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":s.ref=n;break;case"className":s[e]=(s[e]?s[e]+" ":"")+n;break;case"inline":case"hFlip":case"vFlip":o[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&yu(o,n);break;case"color":i.color=n;break;case"rotate":"string"==typeof n?o[e]=bu(n):"number"==typeof n&&(o[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete s["aria-hidden"];break;default:void 0===r[e]&&(s[e]=n)}}const u=function(e,t){const n={...vs,...e},r={...Ms,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(e=>{const t=[],n=e.hFlip,r=e.vFlip;let i,l=e.rotate;switch(n?r?l+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:i=o.height/2+o.top,t.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:i=o.width/2+o.left,t.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}l%2==1&&(o.left!==o.top&&(i=o.left,o.left=o.top,o.top=i),o.width!==o.height&&(i=o.width,o.width=o.height,o.height=i)),t.length&&(a=function(e,t,n){const r=function(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===o||-1===a)break;const i=e.indexOf(">",a);if(-1===i)break;n+=e.slice(o+1,a).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}(e);return function(e,t){return e?"<defs>"+e+"</defs>"+t:t}(r.defs,t+r.content+n)}(a,'<g transform="'+t.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,s=o.width,u=o.height;let c,d;null===i?(d=null===l?"1em":"auto"===l?u:l,c=Us(d,s/u)):(c="auto"===i?s:i,d=null===l?Us(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};p("width",c),p("height",d);const h=[o.left,o.top,s,u];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:a}}(e,o),c=u.attributes;if(o.inline&&(i.verticalAlign="-0.125em"),"svg"===a){s.style={...i,...l},Object.assign(s,c);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),s.dangerouslySetInnerHTML={__html:ku(Ws(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},Se.createElement("svg",s)}const{body:d,width:f,height:p}=e,h="mask"===a||"bg"!==a&&-1!==d.indexOf("currentColor"),m=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(d,{...c,width:f+"",height:p+""});return s.style={...i,"--svg":vu(m),width:Ru(c.width),height:Ru(c.height),...Cu,...h?Au:Eu,...l},Se.createElement("span",s)};var Ou;if(Ls(!0),Ou=tu,Gs[""]=Ou,typeof document<"u"&&typeof window<"u"){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!Ds(e))&&console.error(n)}catch{console.error(n)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Js(e,r)||console.error(n)}catch{console.error(n)}}}}function Nu(e){const[t,n]=Se.useState(!!e.ssr),[r,o]=Se.useState({});const[a,i]=Se.useState(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const n=zs(t);if(n)return{name:t,data:n}}return{name:""}}(!!e.ssr));function l(){const e=r.callback;e&&(e(),o({}))}function s(e){if(JSON.stringify(a)!==JSON.stringify(e))return l(),i(e),!0}function u(){var t;const n=e.icon;if("object"==typeof n)return void s({name:"",data:n});const r=zs(n);if(s({name:n,data:r}))if(void 0===r){const e=mu([n],u);o({callback:e})}else r&&(null===(t=e.onLoad)||void 0===t||t.call(e,n))}Se.useEffect(()=>(n(!0),l),[]),Se.useEffect(()=>{t&&u()},[e.icon,t]);const{name:c,data:d}=a;return d?Pu({...vs,...d},e,c):e.children?e.children:e.fallback?e.fallback:Se.createElement("span",{})}const Lu=Se.forwardRef((e,t)=>Nu({...e,_ref:t}));Se.forwardRef((e,t)=>Nu({inline:!0,...e,_ref:t}));const zu=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Du=Bo,ju=(e,t)=>n=>{var r;if(null==t?.variants)return Du(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=n?.[e],r=a?.[e];if(null===t)return null;const i=zu(t)||zu(r);return o[e][i]}),l=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),s=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...l}[t]):{...a,...l}[t]===n})?[...e,n,r]:e},[]);return Du(e,i,s,n?.class,n?.className)},Mu=ju("",{variants:{variant:{default:"qc:border-none",outline:"qc:rounded",solid:"qc:bg-background"},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6",xl:"qc:size-7","2xl":"qc:size-8","3xl":"qc:size-9"},color:{foreground:"qc:text-foreground",primary:"qc:text-primary",secondary:"qc:text-muted-foreground",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"qc:border-primary"},{variant:"outline",color:"secondary",class:"qc:border-border"},{variant:"outline",color:"info",class:"qc:border-info"},{variant:"outline",color:"warning",class:"qc:border-warning"},{variant:"outline",color:"success",class:"qc:border-success"},{variant:"outline",color:"error",class:"qc:border-destructive"},{variant:"solid",color:"primary",class:"qc:bg-background qc:text-foreground"},{variant:"solid",color:"secondary",class:"qc:bg-background qc:text-muted"},{variant:"solid",color:"info",class:"qc:bg-info qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"warning",class:"qc:bg-warning qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"success",class:"qc:bg-success qc:text-foreground qc:text-text-primary-dark"},{variant:"solid",color:"error",class:"qc:bg-destructive qc:text-foreground qc:text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Fu=({className:e,color:t="foreground",size:n="md",variant:r="default",name:o="line-md:iconify1",...a})=>w.jsx(Lu,{icon:o,className:Ka(Mu({color:t,size:n,variant:r,className:e})),...a});function qu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=qu(e,t);return!n&&"function"==typeof r&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():qu(e[t],null)}}}}function Hu(...e){return Se.useCallback(Uu(...e),e)}function Bu(e){const t=Wu(e),n=Se.forwardRef((e,n)=>{const{children:r,...o}=e,a=Se.Children.toArray(r),i=a.find(Qu);if(i){const e=i.props.children,r=a.map(t=>t===i?Se.Children.count(e)>1?Se.Children.only(null):Se.isValidElement(e)?e.props.children:null:t);return w.jsx(t,{...o,ref:n,children:Se.isValidElement(e)?Se.cloneElement(e,void 0,r):null})}return w.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Vu=Bu("Slot");function Wu(e){const t=Se.forwardRef((e,t)=>{const{children:n,...r}=e;if(Se.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Se.Fragment&&(o.ref=t?Uu(t,e):e),Se.cloneElement(n,o)}return Se.Children.count(n)>1?Se.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Qu(e){return Se.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Gu}const Yu=ju("qc:shadow-outer qc:inline-flex qc:size-fit qc:items-center qc:justify-center qc:rounded qc:font-medium qc:duration-500 qc:disabled:pointer-events-none qc:disabled:opacity-50",{variants:{variant:{default:"qc:hover:bg-opacity-80",outlined:"qc:bg-opacity-0 qc:hover:bg-opacity-10",ghost:"qc:border-transparent qc:bg-opacity-0 qc:shadow-none qc:hover:bg-opacity-20"},size:{sm:"qc:gap-1 qc:p-2 qc:text-xs",md:"qc:gap-2 qc:px-9 qc:py-1.5 qc:text-sm qc:sm:text-base",lg:"qc:gap-2 qc:px-4 qc:py-3 qc:text-base"}},compoundVariants:[{variant:"default",color:"primary",class:"qc:bg-primary qc:text-primary-foreground qc:border-primary qc:border"},{variant:"default",color:"secondary",class:"qc:bg-background qc:text-muted-foreground qc:border-muted-foreground qc:border"},{variant:"default",color:"info",class:"qc:bg-info qc:border-info qc:border qc:text-white"},{variant:"default",color:"warning",class:"qc:bg-warning qc:border-warning qc:border qc:text-white"},{variant:"default",color:"success",class:"qc:bg-success qc:border-success qc:border qc:text-white"},{variant:"default",color:"error",class:"qc:bg-destructive qc:border-destructive qc:border qc:text-white"},{variant:"outlined",color:"primary",class:"qc:border-primary qc:text-primary qc:bg-background qc:border"},{variant:"outlined",color:"secondary",class:"qc:border-border qc:text-muted qc:bg-background qc:border"},{variant:"outlined",color:"info",class:"qc:border-info qc:text-info qc:bg-info qc:border"},{variant:"outlined",color:"warning",class:"qc:border-warning qc:text-warning qc:bg-warning qc:border"},{variant:"outlined",color:"success",class:"qc:border-success qc:text-success qc:bg-success qc:border"},{variant:"outlined",color:"error",class:"qc:border-destructive qc:text-destructive qc:bg-destructive qc:border"},{variant:"ghost",color:"primary",class:"qc:text-primary"},{variant:"ghost",color:"secondary",class:"qc:text-muted-foreground"},{variant:"ghost",color:"info",class:"qc:text-info"},{variant:"ghost",color:"warning",class:"qc:text-warning"},{variant:"ghost",color:"success",class:"qc:text-success"},{variant:"ghost",color:"error",class:"qc:text-destructive"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),$u=ju("",{variants:{variant:{default:"",outlined:"",ghost:""},size:{sm:"qc:size-4",md:"qc:size-5",lg:"qc:size-6"},color:{primary:"qc:text-primary-foreground",secondary:"qc:text-muted",info:"qc:text-text-primary-dark",warning:"qc:text-text-primary-dark",success:"qc:text-text-primary-dark",error:"qc:text-text-primary-dark",light:"qc:text-text-primary-dark"}},compoundVariants:[{variant:"outlined",color:"primary",class:"qc:text-primary-foreground"},{variant:"outlined",color:"secondary",class:"qc:text-muted-foreground"},{variant:"outlined",color:"info",class:"qc:text-info"},{variant:"outlined",color:"warning",class:"qc:text-warning"},{variant:"outlined",color:"success",class:"qc:text-success"},{variant:"outlined",color:"error",class:"qc:text-destructive"}],defaultVariants:{size:"md",variant:"default",color:"primary"}}),Zu=Se.forwardRef(({className:e,type:t="button",disabled:n,loading:r,fullWidth:o,color:a,size:i,variant:l,iconSvg:s,icon:u,asChild:c=!1,immutable:d,...f},p)=>{const h=c?Vu:"button",{props:{textClassName:m}}=Pi();return w.jsxs(h,{ref:p,type:t,disabled:n||r,className:Ka(Yu({color:a,size:i,variant:l,className:e}),o&&"qc:w-full"),...f,children:[w.jsxs("div",{className:Ka(r?"qc:collapse":"qc:visible qc:flex qc:items-center qc:gap-2",!d&&m),children:[s&&!r&&s,u&&!r&&!s&&w.jsx(Fu,{className:Ka($u({color:a,size:i,variant:l})),name:u}),f.children]}),r&&w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"qc:absolute",children:[w.jsx("title",{children:"Loading"}),w.jsxs("circle",{cx:"18",cy:"12",r:"0",fill:"currentColor",children:[" ",w.jsx("animate",{attributeName:"r",begin:".67",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})," "]})," ",w.jsx("circle",{cx:"12",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:".33",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})}),w.jsx("circle",{cx:"6",cy:"12",r:"0",fill:"currentColor",children:w.jsx("animate",{attributeName:"r",begin:"0",calcMode:"spline",dur:"1.5s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8",repeatCount:"indefinite",values:"0;2;0;0"})})]})]})}),Ku={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"p"},Ju=ju("qc:select-none",{variants:{variant:{h1:"qc:scroll-m-20 qc:text-4xl qc:font-semibold qc:tracking-tight qc:lg:text-5xl",h2:"qc:scroll-m-20 qc:text-2xl qc:font-semibold qc:tracking-tight qc:first:mt-0 qc:sm:text-3xl qc:sm:font-semibold",h3:"qc:scroll-m-20 qc:text-xl qc:font-semibold qc:sm:text-2xl",h4:"qc:scroll-m-20 qc:text-xl qc:font-medium",h5:"qc:scroll-m-20 qc:text-base qc:font-medium",h6:"qc:scroll-m-20 qc:text-sm qc:font-medium",body1:"qc:text-lg",body2:"qc:text-base qc:sm:text-lg",body3:"qc:text-sm qc:sm:text-base",p:"qc:leading-7 qc:[&:not(:first-child)]:mt-6",blockquote:"qc:border-l-2 qc:pl-4 qc:text-sm qc:italic",caption:"qc:text-xs"},color:{foreground:"qc:text-foreground",muted:"qc:text-muted-foreground",primary:"qc:text-primary",info:"qc:text-info",warning:"qc:text-warning",success:"qc:text-success",error:"qc:text-destructive",a11y:"qc:text-primary-foreground",light:"qc:text-text-primary-light",white:"qc:text-white",black:"qc:text-black"},align:{left:"qc:text-left",right:"qc:text-right",center:"qc:text-center"}},defaultVariants:{variant:"p",color:"foreground",align:"left"}}),Xu=Se.forwardRef(({variant:e="p",color:t,align:n,transform:r,lines:o,shadow:a,className:i,immutable:l,...s},u)=>{const{props:{textClassName:c}}=Pi(),d=Ku[e];return w.jsx(d,{ref:u,className:Ka(Ju({variant:e,color:t,align:n,className:i}),r,o&&`qc:line-clamp-${o}`,a&&"qc:drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",!l&&c),...s,children:s.children})}),ec=({title:e,description:t,iconSvg:n,className:r})=>{const{props:{emptyStateImage:o,textClassName:a},organization:i}=Pi();return w.jsxs("div",{className:Ka("qc:mx-auto qc:flex qc:w-full qc:max-w-md qc:flex-col qc:items-center qc:justify-center qc:gap-8",a,r),children:[i?.integrationSettings?.showLogo?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:i?.logoUrl||"/images/qrati-logo.svg"}):o?w.jsx("img",{className:"qc:h-44 qc:w-auto",src:o,alt:e}):n?w.jsx("div",{className:"qc:text-primary qc:h-44 qc:w-auto",children:n}):null,w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx(Xu,{variant:"h4",align:"center",children:e}),"string"==typeof t&&w.jsx(Xu,{variant:"h6",align:"center",className:"qc:font-normal",children:t}),"string"!=typeof t&&t]})]})},tc=({className:e,rounded:t=!1,...n})=>w.jsx("div",{className:Ka("qc:animate-pulse qc:bg-[#EAEAEA]",t?"qc:rounded-full":"qc:rounded",e),...n}),nc=()=>{const e=vl(),t=Sl(),{initializing:n,organization:r,loadingUser:o,user:a,signout:i}=Pi();return n||o?w.jsx("div",{className:"qc:my-2 qc:flex qc:justify-end",children:w.jsx(tc,{className:"qc:h-9 qc:w-64"})}):w.jsxs("div",{className:"qc:mx-auto qc:mb-4",children:[!a&&w.jsx("div",{className:"qc:flex qc:justify-end qc:gap-4",children:w.jsx(ds,{to:ho.LOGIN,state:{referrer:e.pathname},children:w.jsx(Zu,{children:"Login"})})}),a&&w.jsxs("div",{className:"qc:mt-2 qc:flex qc:items-center qc:justify-end qc:gap-4",children:[w.jsx(Xu,{variant:"h5",children:a.name}),!r.customAuth&&w.jsx("button",{onClick:async()=>{await i(),t(ho.PUBLIC_EVENTS)},children:w.jsx(Fu,{name:"material-symbols:exit-to-app-rounded",color:"error"})})]})]})},rc=({eventSlug:e})=>{const{props:{organizationId:t}}=Pi(),{isLoading:n,data:r,isError:o,error:a}=Ne({queryKey:[`event-data-${t}-${e}`],queryFn:async()=>{try{const n=await po.get(bo.EVENT_DATA,{searchParams:e?{eventSlug:e}:void 0,headers:{"x-org-id":t}}).json();if(n.error)throw new Error(n.error);return n.data}catch(e){throw new Error(e?.message||e||"Failed to fetch public events")}},enabled:!!t&&!!e});return{loading:n,event:r?.event,ads:r?.ads,parameters:r?.parameters,isError:o,error:a}},oc=()=>{const e=Sl();return w.jsx("button",{type:"button",onClick:()=>{window.history.length>1?e(-1):e(ho.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"qc:text-primary qc:absolute qc:left-0 qc:top-0",children:w.jsx(Fu,{name:"material-symbols:arrow-back-rounded",size:"lg"})})},ac=()=>{const{organization:e}=Pi();return e&&!e.integrationSettings?.hideQratiBranding?w.jsxs("a",{href:"https://qrati.com/powered-by-qrati",target:"_blank",className:"qc:flex qc:items-center qc:justify-center qc:gap-2 qc:pb-4",rel:"noopener noreferrer",children:[w.jsxs(Xu,{variant:"body2",align:"center",children:["Powered by"," "]}),w.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAACNCAYAAAC9tWG4AAAAyXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBBDsQgCLzzin2CMKj4HLttk/3BPn+x0qRtdhKHEXREaPt+dnoNCCtprlZaKcmhTZt0F5Ym+sGc9OAD1ULxPU+2xiXxFDxibq3MyGc+LpyRu6t8NXpHYbkXmoa/PYziIYyOxEU0Qi2MILPAYdDnt1JpVq9fWLZ0h81Fg/a3tJHLy6w991p9emv2dyCygZGcAZ0NYCwQugt1FpgfZFTXDHPOOGfiA/k3pxP0A93kWphy31yAAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TiqIVBzuIdMhQnSyIijiWKhbBQmkrtOpgcukXNGlIUlwcBdeCgx+LVQcXZ10dXAVB8APE1cVJ0UVK/F9SaBHjwXE/3t173L0DhGaVqWYgBqiaZaQTcTGXXxV7XxFAGAOYRERipp7MLGbhOb7u4ePrXZRneZ/7cwwqBZMBPpE4xnTDIt4gnt20dM77xCFWlhTic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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz7H0zEnAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5wQcC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+EXXHhiGuajBklUOg44CEkai8PSbgZmA/cBfwUmxeEWc28BuyNlU5rymJcKYKYJeSm1r8o2oBJJ3e6L1IMY7sR/kBObvk74uzoxqWjzSmnWI9yWz2tNrEJSkxe7bS6SBj0FeMNZSyvbWxwqm8tUIZEMQaGGA0ltf9NtTwKP1NXWl2MySxqF3iBZj6OQrNTtnbhs6dZpF2dFr7s+rVuPzUhdmtlI45HpwEvAP4FZJvTqNtUR56PajftXgQOdkTgY2AKpP1W1HvdTqz40IT2oZ7ntA+AZJEt/vk8lykK/Zpeb5dQfqX3TC6n10aPNjVS5jrg3Ij665W5b4qyjucCnJvR/3crmMqOBJ4gvvXk1UilzElIP+3ngxbra+ia9hVOxRjs7URngDJJWY6Tt+mxEilwtRYrlTXOWWYuOYOzzsY2zlPu5uahh7ZIQjUhdmsXAPOBjE6YmB6K8BD6pOFfNtR6HWANMdm6hR4BJdbX1U3RkFUXZGFU6BEXhJiRmet889mlE4nlbX8mfLeIHVEVRygC14ItnxbfHVTMH+A/SJu5N4NW62vqlOnqKoqjAJ1/ka4HsOn/8thP1Z5DonBl1tfUrdLQURfFFXTTFpR4pMzACqS3+AlLpb2Fdbf0aHR5FUdSCT7cV/wsn8NcB/66rrbc6KoqiFIL/B3G38Ji8VyggAAAAAElFTkSuQmCC",alt:"Qrati Logo",className:"qc:h-4 qc:w-auto"})]}):null},ic=()=>{const e=Sl(),t=vl(),{user:n,organization:r,signout:o}=Pi();return w.jsxs("div",{children:[r&&!r.customAuth&&w.jsxs("div",{className:"qc:mx-auto qc:py-4",children:[!n&&w.jsxs(Xu,{variant:"h6",align:"center",children:[w.jsx(ds,{className:"qc:text-primary qc:hover:underline",to:ho.LOGIN,state:{referrer:t.pathname},children:"Login"})," ","•"," ",w.jsx(ds,{className:"qc:text-primary qc:hover:underline",to:ho.REGISTER,state:{referrer:t.pathname},children:"Register"})]}),n&&w.jsxs(Xu,{variant:"h6",align:"center",children:["Logged in as ",n.name," •"," ",w.jsx("span",{className:"qc:text-destructive qc:hover:underline",onClick:async()=>{await o(),e(ho.PUBLIC_EVENTS)},children:"Logout"})]})]}),w.jsx(ac,{})]})},lc=()=>{const e=Cl(),{organization:t,props:{organizationId:n}}=Pi(),{loading:r,event:o}=rc({eventSlug:e.eventSlug});return r?w.jsxs("div",{children:[w.jsx(tc,{className:"qc:mx-auto qc:mt-4 qc:h-8 qc:w-64"}),w.jsx(tc,{className:"qc:mx-auto qc:mt-6 qc:h-6 qc:w-72"}),w.jsx(tc,{className:"qc:mx-auto qc:mt-6 qc:h-8 qc:w-72"}),w.jsx("div",{className:"qc:mt-8 qc:grid qc:grid-cols-1 qc:gap-4 qc:sm:grid-cols-3",children:Array.from({length:8}).map((e,t)=>w.jsx(tc,{className:"qc:h-72"},t))})]}):o&&o?.organizationId===n?w.jsxs("div",{className:"qc:bg-background qc:relative qc:min-h-screen",children:[t?.navigationSettings?.enableNavbar&&w.jsx(nc,{}),w.jsx(oc,{}),w.jsx(jl,{}),w.jsx(ic,{})]}):w.jsxs("div",{className:"qc:flex qc:w-full qc:flex-col qc:items-center qc:gap-8",children:[w.jsx(ec,{className:"qc:mt-16",title:"Event not found",description:"Please check the provided link",iconSvg:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:size-full",viewBox:"0 0 997.86122 450.8081",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[w.jsx("rect",{x:"871.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"922.068 266.317 848.715 179.052 701.475 180.398 612.156 267.396 613.961 268.556 613.316 268.556 613.316 449.513 921.871 449.513 921.871 268.556 922.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"848.792 179.238 757.154 286.674 757.154 449.513 921.871 449.513 921.871 266.236 848.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"673.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"633.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}),w.jsx("polygon",{points:"684.068 266.317 610.715 179.052 463.475 180.398 374.156 267.396 375.961 268.556 375.316 268.556 375.316 449.513 683.871 449.513 683.871 268.556 684.068 266.317",fill:"#f2f2f2"}),w.jsx("polygon",{points:"610.792 179.238 519.154 286.674 519.154 449.513 683.871 449.513 683.871 266.236 610.792 179.238",fill:"#e6e6e6"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}),w.jsx("rect",{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}),w.jsx("rect",{x:"435.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}),w.jsx("rect",{x:"380.1536",y:"91.46021",width:"40.30032",height:"139.50112",fill:"#f2f2f2"}),w.jsx("polygon",{points:"447.068 204.718 349.051 88.112 152.302 89.91 32.951 206.161 35.362 207.711 34.501 207.711 34.501 449.513 446.804 449.513 446.804 207.711 447.068 204.718",fill:"#f2f2f2"}),w.jsx("polygon",{points:"349.153 88.36 226.702 231.921 226.702 449.513 446.804 449.513 446.804 204.611 349.153 88.36",fill:"#e6e6e6"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#3f3d56"}),w.jsx("rect",{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"318.63912",width:"44.95039",height:"39.73094",fill:"#fff"}),w.jsx("rect",{x:"115.29041",y:"249.8692",width:"44.95039",height:"39.10088",fill:"#fff"}),w.jsx("rect",{y:"448.61997",width:"963.95079",height:"2",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"151.87223",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M255.62882,674.25425c-11.65458-69.92526-.11734-139.59789.00056-140.29293l2.267.384c-.11734.69167-11.58834,69.99825.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"251.0257",y:"571.20214",width:"29.84136",height:"2.29972",transform:"translate(-339.58156 -31.50095) rotate(-28.1416)",fill:"currentColor"}),w.jsx("rect",{x:"237.02319",y:"564.48509",width:"2.29972",height:"29.84239",transform:"translate(-486.12468 291.37147) rotate(-61.84204)",fill:"currentColor"}),w.jsx("ellipse",{cx:"81.9552",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M189.364,675.40405c-22.76459-136.58529-.22963-272.67316.00056-274.03181l2.267.384c-.22962,1.35528-22.69834,137.0771.00057,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"179.27648",y:"475.12522",width:"58.36761",height:"2.29972",transform:"translate(-301.0624 -69.97216) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"152.98936",y:"460.88882",width:"2.29972",height:"58.36761",transform:"translate(-451.74248 170.111) rotate(-61.84258)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"216.75351",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M326.9161,675.40405c-31.1399-186.83717-.3144-372.9922.00056-374.85051l2.267.384c-.3144,1.85494-31.07366,187.64393.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"312.69421",y:"401.83114",width:"79.87126",height:"2.29972",transform:"translate(-249.45002 -10.63875) rotate(-28.1416)",fill:"#3f3d56"}),w.jsx("rect",{x:"277.14586",y:"381.92603",width:"2.29972",height:"79.87126",transform:"translate(-326.03583 243.55793) rotate(-61.84329)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"871.02934",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}),w.jsx("path",{d:"M969.41153,674.25425c11.65459-69.92526.11734-139.59789-.00056-140.29293l-2.267.384c.11733.69167,11.58833,69.99825-.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"currentColor"}),w.jsx("rect",{x:"957.94412",y:"557.43132",width:"2.29972",height:"29.84136",transform:"translate(-99.02545 923.51928) rotate(-61.8584)",fill:"currentColor"}),w.jsx("rect",{x:"971.94611",y:"578.25643",width:"29.84239",height:"2.29972",transform:"translate(-257.69773 309.6834) rotate(-28.15796)",fill:"currentColor"}),w.jsx("ellipse",{cx:"940.94638",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"currentColor"}),w.jsx("path",{d:"M1035.67632,675.40405c22.76459-136.58529.22962-272.67316-.00056-274.03181l-2.267.384c.22962,1.35528,22.69834,137.0771-.00056,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"1015.43021",y:"447.09128",width:"2.29972",height:"58.36761",transform:"translate(16.06635 923.44761) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"1041.71733",y:"488.92276",width:"58.36761",height:"2.29972",transform:"translate(-205.59609 338.75568) rotate(-28.15742)",fill:"#3f3d56"}),w.jsx("ellipse",{cx:"806.14806",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"currentColor"}),w.jsx("path",{d:"M898.12426,675.40405c31.1399-186.83717.31439-372.9922-.00056-374.85051l-2.267.384c.3144,1.85494,31.07365,187.64393-.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("rect",{x:"871.26065",y:"363.04537",width:"2.29972",height:"79.87126",transform:"translate(4.52428 757.59634) rotate(-61.8584)",fill:"#3f3d56"}),w.jsx("rect",{x:"906.809",y:"420.7118",width:"79.87126",height:"2.29972",transform:"translate(-188.10195 272.08136) rotate(-28.15671)",fill:"#3f3d56"}),w.jsx("path",{d:"M690.67376,326.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,690.67376,326.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M465.67376,261.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,465.67376,261.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M832.67376,232.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,832.67376,232.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M851.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,819.26034,674.648h45.94952A13.99045,13.99045,0,0,0,851.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M384.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,352.26034,674.648h45.94952A13.99045,13.99045,0,0,0,384.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("path",{d:"M623.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,591.26034,674.648h45.94952A13.99045,13.99045,0,0,0,623.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}),w.jsx("polygon",{points:"471.759 404.228 339.191 404.228 339.191 408.504 359.866 408.504 359.866 449.13 364.142 449.13 364.142 408.504 444.669 408.504 444.669 449.13 448.946 449.13 448.946 408.504 471.759 408.504 471.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"339.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("polygon",{points:"678.759 404.228 546.191 404.228 546.191 408.504 566.866 408.504 566.866 449.13 571.142 449.13 571.142 408.504 651.669 408.504 651.669 449.13 655.946 449.13 655.946 408.504 678.759 408.504 678.759 404.228",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}),w.jsx("rect",{x:"546.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"})]})}),w.jsx(ds,{to:ho.PUBLIC_EVENTS,state:{internalNavigation:!0},children:w.jsx(Zu,{children:"All events"})})]})},sc=Se.lazy(()=>import("./PublicEvents-CIrYMBEL.js")),uc=Se.lazy(()=>import("./ContentsPage-BALVk95k.js").then(e=>e.l)),cc=Se.lazy(()=>import("./UploadPage-CITq8Afj.js")),dc=Se.lazy(()=>import("./LeaderboardPage-ZllEyvHF.js")),fc=Se.lazy(()=>import("./CuratePage-6O-YtfaK.js")),pc=Se.lazy(()=>import("./AuthLayout-smqrs4PK.js")),hc=Se.lazy(()=>import("./LoginPage-CT0pEqXM.js")),mc=Se.lazy(()=>import("./RegisterPage-jGyiY6Q1.js")),gc=Se.lazy(()=>import("./ForgotPasswordPage-B7SQUSjQ.js")),yc=()=>w.jsx("div",{className:"qc:flex qc:h-[80vh] qc:w-full qc:items-center qc:justify-center",children:w.jsx("div",{className:"qc:text-foreground qc:text-lg"})}),bc=({router:e="memory"})=>{const t="hash"===e.toLowerCase()?ss:zl;return w.jsxs(t,{children:[w.jsx(gs,{}),w.jsx(Se.Suspense,{fallback:w.jsx(yc,{}),children:w.jsxs(ql,{children:[w.jsx(Ml,{path:"/:folderId?",element:w.jsx(sc,{})}),w.jsxs(Ml,{path:"/event/:eventSlug",element:w.jsx(lc,{}),children:[w.jsx(Ml,{path:"",element:w.jsx(uc,{})}),w.jsx(Ml,{path:"upload",element:w.jsx(cc,{})}),w.jsx(Ml,{path:"curate",element:w.jsx(fc,{})}),w.jsx(Ml,{path:"curate/:contentId",element:w.jsx(fc,{})}),w.jsx(Ml,{path:"leaderboard",element:w.jsx(dc,{})})]}),w.jsxs(Ml,{path:"/auth",element:w.jsx(pc,{}),children:[w.jsx(Ml,{path:"login",element:w.jsx(hc,{})}),w.jsx(Ml,{path:"register",element:w.jsx(mc,{})}),w.jsx(Ml,{path:"forgot-password",element:w.jsx(gc,{})})]})]})})]})};!function(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var vc=e=>"number"==typeof e&&!isNaN(e),wc=e=>"string"==typeof e,kc=e=>"function"==typeof e,Sc=e=>wc(e)||kc(e)?e:null,xc=(e,t)=>!1===e||vc(e)&&e>0?e:t,Cc=e=>Se.isValidElement(e)||wc(e)||kc(e)||vc(e);function Ac(e,t){return{content:Ec(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function Ec(e,t,n=!1){return Se.isValidElement(e)&&!wc(e.type)?Se.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):kc(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function Ic({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:a,controlledProgress:i,progress:l,rtl:s,isIn:u,theme:c}){let d=o||i&&0===l,f={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};i&&(f.transform=`scaleX(${l})`);let p=Bo("Toastify__progress-bar",i?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${c}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":s}),h=kc(a)?a({rtl:s,type:r,defaultClassName:p}):Bo(p,a),m={[i&&l>=1?"onTransitionEnd":"onAnimationEnd"]:i&&l<1?null:()=>{u&&n()}};return xe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},xe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${c} Toastify__progress-bar--${r}`}),xe.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:h,style:f,...m}))}var Tc=1,_c=()=>""+Tc++;function Rc(e,t,n){let r=1,o=0,a=[],i=[],l=t,s=new Map,u=new Set,c=()=>{i=Array.from(s.values()),u.forEach(e=>e())},d=e=>{var t,n;null==(n=null==(t=e.props)?void 0:t.onClose)||n.call(t,e.removalReason),e.isActive=!1},f=e=>{if(null==e)s.forEach(d);else{let t=s.get(e);t&&d(t)}c()},p=e=>{var t,r;let{toastId:o,updateId:a}=e.props,i=null==a;e.staleId&&s.delete(e.staleId),e.isActive=!0,s.set(o,e),c(),n(Ac(e,i?"added":"updated")),i&&(null==(r=(t=e.props).onOpen)||r.call(t))};return{id:e,props:l,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{s.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:f,toasts:s,clearQueue:()=>{o-=a.length,a=[]},buildToast:(t,i)=>{if((({containerId:t,toastId:n,updateId:r})=>{let o=t?t!==e:1!==e,a=s.has(n)&&null==r;return o||a})(i))return;let{toastId:u,updateId:d,data:h,staleId:m,delay:g}=i,y=null==d;y&&o++;let b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(i).filter(([e,t])=>null!=t)),toastId:u,updateId:d,data:h,isIn:!1,className:Sc(i.className||l.toastClassName),progressClassName:Sc(i.progressClassName||l.progressClassName),autoClose:!i.isLoading&&xc(i.autoClose,l.autoClose),closeToast(e){s.get(u).removalReason=e,f(u)},deleteToast(){let e=s.get(u);if(null!=e){if(n(Ac(e,"removed")),s.delete(u),o--,o<0&&(o=0),a.length>0)return void p(a.shift());c()}}};b.closeButton=l.closeButton,!1===i.closeButton||Cc(i.closeButton)?b.closeButton=i.closeButton:!0===i.closeButton&&(b.closeButton=!Cc(l.closeButton)||l.closeButton);let v={content:t,props:b,staleId:m};l.limit&&l.limit>0&&o>l.limit&&y?a.push(v):vc(g)?setTimeout(()=>{p(v)},g):p(v)},setProps(e){l=e},setToggle:(e,t)=>{let n=s.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=s.get(e))?void 0:t.isActive},getSnapshot:()=>i}}var Pc=new Map,Oc=[],Nc=new Set,Lc=e=>Nc.forEach(t=>t(e)),zc=()=>Pc.size>0;function Dc(e,t){var n;if(t)return!(null==(n=Pc.get(t))||!n.isToastActive(e));let r=!1;return Pc.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function jc(e){if(zc()){if(null==e||(e=>wc(e)||vc(e))(e))Pc.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Pc.get(e.containerId);t?t.removeToast(e.id):Pc.forEach(t=>{t.removeToast(e.id)})}}else Oc=Oc.filter(t=>null!=e&&t.options.toastId!==e)}function Mc(e,t){Cc(e)&&(zc()||Oc.push({content:e,options:t}),Pc.forEach(n=>{n.buildToast(e,t)}))}function Fc(e,t){Pc.forEach(n=>{(null==t||null==t||!t.containerId||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function qc(e){let t=e.containerId||1;return{subscribe(n){let r=Rc(t,e,Lc);Pc.set(t,r);let o=r.observe(n);return Oc.forEach(e=>Mc(e.content,e.options)),Oc=[],()=>{o(),Pc.delete(t)}},setProps(e){var n;null==(n=Pc.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=Pc.get(t))?void 0:e.getSnapshot()}}}function Uc(e){return e&&(wc(e.toastId)||vc(e.toastId))?e.toastId:_c()}function Hc(e,t){return Mc(e,t),t.toastId}function Bc(e,t){return{...t,type:t&&t.type||e,toastId:Uc(t)}}function Vc(e){return(t,n)=>Hc(t,Bc(e,n))}function Wc(e,t){return Hc(e,Bc("default",t))}function Gc(e){let[t,n]=Se.useState(!1),[r,o]=Se.useState(!1),a=Se.useRef(null),i=Se.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:s,closeToast:u,onClick:c,closeOnClick:d}=e;function f(){n(!0)}function p(){n(!1)}function h(n){let r=a.current;if(i.canDrag&&r){i.didMove=!0,t&&p(),"x"===e.draggableDirection?i.delta=n.clientX-i.start:i.delta=n.clientY-i.start,i.start!==n.clientX&&(i.canCloseOnClick=!1);let o="x"===e.draggableDirection?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`;r.style.transform=`translate3d(${o},0)`,r.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance))}}function m(){document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",m);let t=a.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=Pc.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:n}),Se.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",f),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);let g={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){i.didMove=!1,document.addEventListener("pointermove",h),document.addEventListener("pointerup",m);let n=a.current;i.canCloseOnClick=!0,i.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(i.start=t.clientX,i.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(i.start=t.clientY,i.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:o,right:i}=a.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=i&&t.clientY>=n&&t.clientY<=r?p():f()}};return l&&s&&(g.onMouseEnter=p,e.stacked||(g.onMouseLeave=f)),d&&(g.onClick=e=>{c&&c(e),i.canCloseOnClick&&u(!0)}),{playToast:f,pauseToast:p,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:g}}Wc.loading=(e,t)=>Hc(e,Bc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Wc.promise=function(e,{pending:t,error:n,success:r},o){let a;t&&(a=wc(t)?Wc.loading(t,o):Wc.loading(t.render,{...o,...t}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,n)=>{if(null==t)return void Wc.dismiss(a);let r={type:e,...i,...o,data:n},l=wc(t)?{render:t}:t;return a?Wc.update(a,{...r,...l}):Wc(l.render,{...r,...l}),n},s=kc(e)?e():e;return s.then(e=>l("success",r,e)).catch(e=>l("error",n,e)),s},Wc.success=Vc("success"),Wc.info=Vc("info"),Wc.error=Vc("error"),Wc.warning=Vc("warning"),Wc.warn=Wc.warning,Wc.dark=(e,t)=>Hc(e,Bc("default",{theme:"dark",...t})),Wc.dismiss=function(e){jc(e)},Wc.clearWaitingQueue=(e={})=>{Pc.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},Wc.isActive=Dc,Wc.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=Pc.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:_c()};a.toastId!==e&&(a.staleId=e);let i=a.render||o;delete a.render,Hc(i,a)}},Wc.done=e=>{Wc.update(e,{progress:1})},Wc.onChange=function(e){return Nc.add(e),()=>{Nc.delete(e)}},Wc.play=e=>Fc(!0,e),Wc.pause=e=>Fc(!1,e);var Qc=typeof window<"u"?Se.useLayoutEffect:Se.useEffect,Yc=({theme:e,type:t,isLoading:n,...r})=>xe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...r});var $c={info:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return xe.createElement(Yc,{...e},xe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return xe.createElement("div",{className:"Toastify__spinner"})}};function Zc({theme:e,type:t,isLoading:n,icon:r}){let o=null,a={theme:e,type:t};return!1===r||(kc(r)?o=r({...a,isLoading:n}):Se.isValidElement(r)?o=Se.cloneElement(r,a):n?o=$c.spinner():(e=>e in $c)(t)&&(o=$c[t](a))),o}var Kc=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:a}=Gc(e),{closeButton:i,children:l,autoClose:s,onClick:u,type:c,hideProgressBar:d,closeToast:f,transition:p,position:h,className:m,style:g,progressClassName:y,updateId:b,role:v,progress:w,rtl:k,toastId:S,deleteToast:x,isIn:C,isLoading:A,closeOnClick:E,theme:I,ariaLabel:T}=e,_=Bo("Toastify__toast",`Toastify__toast-theme--${I}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":E}),R=kc(m)?m({rtl:k,position:h,type:c,defaultClassName:_}):Bo(_,m),P=Zc(e),O=!!w||!s,N={closeToast:f,type:c,theme:I},L=null;return!1===i||(L=kc(i)?i(N):Se.isValidElement(i)?Se.cloneElement(i,N):function({closeToast:e,theme:t,ariaLabel:n="close"}){return xe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},xe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},xe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(N)),xe.createElement(p,{isIn:C,done:x,position:h,preventExitTransition:n,nodeRef:r,playToast:a},xe.createElement("div",{id:S,tabIndex:0,onClick:u,"data-in":C,className:R,...o,style:g,ref:r,...C&&{role:v,"aria-label":T}},null!=P&&xe.createElement("div",{className:Bo("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},P),Ec(l,e,!t),L,!e.customProgressBar&&xe.createElement(Ic,{...b&&!O?{key:`p-${b}`}:{},rtl:k,theme:I,delay:s,isRunning:t,isIn:C,closeToast:f,hide:d,type:c,className:y,controlledProgress:O,progress:w||0})))},Jc=function({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:a,position:i,preventExitTransition:l,done:s,nodeRef:u,isIn:c,playToast:d}){let f=n?`${e}--${i}`:e,p=n?`${t}--${i}`:t,h=Se.useRef(0);return Se.useLayoutEffect(()=>{let e=u.current,t=f.split(" "),n=r=>{r.target===u.current&&(d(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===h.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),Se.useEffect(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),r?function(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,s,o):s()};c||(l?t():(h.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[c]),xe.createElement(xe.Fragment,null,a)}}(((e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}))("bounce",!0)),Xc={position:"top-right",transition:Jc,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function ed(e){let t={...Xc,...e},n=e.stacked,[r,o]=Se.useState(!0),a=Se.useRef(null),{getToastToRender:i,isToastActive:l,count:s}=function(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=Se.useRef(qc(e)).current;o(e);let a=null==(t=Se.useSyncExternalStore(n,r,r))?void 0:t.slice();return{getToastToRender:function(t){if(!a)return[];let n=new Map;return e.newestOnTop&&a.reverse(),a.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:Dc,count:a?.length}}(t),{className:u,style:c,rtl:d,containerId:f,hotKeys:p}=t;function h(e){let t=Bo("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return kc(u)?u({position:e,rtl:d,defaultClassName:t}):Bo(t,Sc(u))}function m(){n&&(o(!0),Wc.play())}return Qc(()=>{var e;if(n){let n=a.current.querySelectorAll('[data-in="true"]'),o=12,i=null==(e=t.position)?void 0:e.includes("top"),l=0,s=0;Array.from(n).reverse().forEach((e,t)=>{let n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=i?"top":"bot");let a=l*(r?.2:1)+(r?0:o*t);n.style.setProperty("--y",`${i?a:-1*a}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(r?s:0))),l+=n.offsetHeight,s+=.025})}},[r,s,n]),Se.useEffect(()=>{function e(e){var t;let n=a.current;p(e)&&(null==(t=n.querySelector('[tabIndex="0"]'))||t.focus(),o(!1),Wc.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(o(!0),Wc.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[p]),xe.createElement("section",{ref:a,className:"Toastify",id:f,onMouseEnter:()=>{n&&(o(!1),Wc.pause())},onMouseLeave:m,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},i((e,t)=>{let r=t.length?{...c}:{...c,pointerEvents:"none"};return xe.createElement("div",{tabIndex:-1,className:h(e),"data-stacked":n,style:r,key:`c-${e}`},t.map(({content:e,props:t})=>xe.createElement(Kc,{...t,stacked:n,collapseAll:m,isIn:l(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}const td=new class{#e;#t;#n;#r;#o;#a;#i;#l;constructor(e={}){this.#e=e.queryCache||new ke,this.#t=e.mutationCache||new ve,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#a=0}mount(){this.#a++,1===this.#a&&(this.#i=Y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=J.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,0===this.#a&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(R(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(r.queryHash)?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==a)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return K.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;K.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#e;return K.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=K.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(I).catch(I)}invalidateQueries(e,t={}){return K.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=K.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(I)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(I)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(R(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(I).catch(I)}fetchInfiniteQuery(e){return e.behavior=pe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(I).catch(I)}ensureInfiniteQueryData(e){return e.behavior=pe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return J.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(z(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(t=>{D(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(z(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(t=>{D(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=L(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===G&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},nd=e=>{const{organizationId:t,router:n}=e;return t?w.jsxs(Ie,{client:td,children:[w.jsxs(Ri,{props:e,children:[w.jsx(bc,{router:n}),w.jsx(ed,{position:"bottom-right",autoClose:3e3})]}),w.jsx(Dr,{initialIsOpen:!1})]}):w.jsxs("div",{className:"qc:mx-auto qc:mt-24 qc:w-fit qc:space-y-8",children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"qc:mx-auto qc:h-48",viewBox:"0 0 799.031 618.112",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img","aria-label":"Error illustration showing a computer screen with an exclamation mark",children:w.jsxs("g",{transform:"translate(-893 -197)",children:[w.jsx("path",{d:"M15.18,488.763c0,.872.478,1.573,1.073,1.573h535.1c.6,0,1.073-.7,1.073-1.573s-.478-1.573-1.073-1.573H16.253C15.658,487.191,15.18,487.891,15.18,488.763Z",transform:"translate(1007.711 324.776)",fill:"#ccc"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1198.162 808.354)",fill:"#b6b3c5"}),w.jsx("rect",{width:"19.105",height:"3.371",transform:"translate(1367.295 808.917)",fill:"#b6b3c5"}),w.jsx("path",{d:"M352.955,370.945a27.529,27.529,0,0,1-54.321,0H229.146V521.536h193.3V370.945Z",transform:"translate(966.721 287.378)",fill:"#d6d6e3"}),w.jsx("rect",{width:"193.296",height:"5.242",transform:"translate(1196.43 796.983)",fill:"#090814"}),w.jsx("path",{d:"M788.255,487.17H10.776A10.788,10.788,0,0,1,0,476.394V32.688A10.788,10.788,0,0,1,10.776,21.911H788.255a10.789,10.789,0,0,1,10.776,10.776V476.394a10.789,10.789,0,0,1-10.776,10.776Z",transform:"translate(893 175.089)",fill:"#090814"}),w.jsx("rect",{width:"760.822",height:"429.297",transform:"translate(911.104 213.968)",fill:"#fff"}),w.jsxs("g",{transform:"translate(20.477 16.308)",children:[w.jsx("path",{d:"M604.463,379.271H317.442a8.655,8.655,0,0,1-8.645-8.645V273.8a8.655,8.655,0,0,1,8.645-8.645H604.463a8.655,8.655,0,0,1,8.645,8.645v96.826a8.655,8.655,0,0,1-8.645,8.645Z",transform:"translate(811.648 85.826)",fill:"#ff4800"}),w.jsx("rect",{width:"76.078",height:"8.645",rx:"2",transform:"translate(1165.4 380.374)",fill:"#fff"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1336.576 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1353.865 380.374)",fill:"#090814"}),w.jsx("ellipse",{cx:"5.187",cy:"5.187",rx:"5.187",ry:"5.187",transform:"translate(1371.156 380.374)",fill:"#090814"})]}),w.jsx("ellipse",{cx:"40.952",cy:"40.952",rx:"40.952",ry:"40.952",transform:"translate(1404.281 440.452)",fill:"#090814"}),w.jsx("path",{d:"M10.863-57.7l-.524-29.6h8.246l-.554,29.6Zm3.613,14.307a4.7,4.7,0,0,1-3.409-1.3,4.368,4.368,0,0,1-1.34-3.278,4.39,4.39,0,0,1,1.34-3.322,4.732,4.732,0,0,1,3.409-1.282,4.732,4.732,0,0,1,3.409,1.282,4.39,4.39,0,0,1,1.34,3.322,4.368,4.368,0,0,1-1.34,3.278A4.7,4.7,0,0,1,14.476-43.394Z",transform:"translate(1430.76 546.754)",fill:"#fff"})]})}),w.jsxs("div",{className:"qc:space-y-4",children:[w.jsx("h4",{className:"qc:text-foreground qc:text-center qc:text-lg qc:font-medium",children:"Organization ID is required"}),w.jsx("h5",{className:"qc:text-muted qc:text-center",children:"Please contact the admin for more information"})]})]})};var rd,od={exports:{}},ad={},id={exports:{}},ld={};
51
51
  /**
52
52
  * @license React
53
53
  * scheduler.production.js