omegga 1.1.2 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/brickadia/server.d.ts +17 -0
- package/dist/brickadia/server.js +81 -4
- package/dist/brickadia/server.js.map +1 -1
- package/dist/cli/auth.js +1 -1
- package/dist/cli/auth.js.map +1 -1
- package/dist/cli/terminal.js +106 -9
- package/dist/cli/terminal.js.map +1 -1
- package/dist/config/reader.js.map +1 -1
- package/dist/config/types.d.ts +5 -0
- package/dist/main.js +43 -47
- package/dist/main.js.map +1 -1
- package/dist/omegga/matchers/join.js +3 -2
- package/dist/omegga/matchers/join.js.map +1 -1
- package/dist/omegga/player.js +5 -3
- package/dist/omegga/player.js.map +1 -1
- package/dist/omegga/plugin/plugin_jsonrpc_stdio.js.map +1 -1
- package/dist/omegga/plugin/plugin_node_safe/proxyOmegga.d.ts +6 -5
- package/dist/omegga/plugin/plugin_node_safe/proxyOmegga.js.map +1 -1
- package/dist/omegga/plugin.d.ts +2 -2
- package/dist/omegga/server.d.ts +7 -5
- package/dist/omegga/server.js +130 -84
- package/dist/omegga/server.js.map +1 -1
- package/dist/omegga/wrapper.d.ts +11 -0
- package/dist/omegga/wrapper.js +16 -0
- package/dist/omegga/wrapper.js.map +1 -1
- package/dist/plugin.d.ts +8 -9
- package/dist/plugin.js.map +1 -1
- package/dist/softconfig.d.ts +1 -0
- package/dist/softconfig.js +2 -1
- package/dist/softconfig.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/updater/index.d.ts +1 -0
- package/dist/updater/index.js +10 -0
- package/dist/updater/index.js.map +1 -0
- package/dist/updater/steam.d.ts +52 -0
- package/dist/updater/steam.js +139 -0
- package/dist/updater/steam.js.map +1 -0
- package/dist/util/color.js +7 -7
- package/dist/util/color.js.map +1 -1
- package/dist/util/time.js +1 -1
- package/dist/util/time.js.map +1 -1
- package/dist/webserver/backend/api.d.ts +84 -1
- package/dist/webserver/backend/api.js +174 -15
- package/dist/webserver/backend/api.js.map +1 -1
- package/dist/webserver/backend/database.d.ts +2 -0
- package/dist/webserver/backend/database.js +31 -6
- package/dist/webserver/backend/database.js.map +1 -1
- package/dist/webserver/backend/index.js +5 -9
- package/dist/webserver/backend/index.js.map +1 -1
- package/dist/webserver/backend/metrics.js +63 -15
- package/dist/webserver/backend/metrics.js.map +1 -1
- package/eslint.config.mjs +53 -0
- package/package.json +37 -29
- package/public/app.html +1873 -0
- package/public/assets/IconArrowRight-CA5_cccJ.js +7 -0
- package/public/assets/IconArrowRight-CA5_cccJ.js.map +1 -0
- package/public/assets/IconCheck-Dyq5qyY1.js +17 -0
- package/public/assets/IconCheck-Dyq5qyY1.js.map +1 -0
- package/public/assets/IconLockOpen-D95XLORK.js +7 -0
- package/public/assets/IconLockOpen-D95XLORK.js.map +1 -0
- package/public/assets/IconWorld-DtARpBKX.js +72 -0
- package/public/assets/IconWorld-DtARpBKX.js.map +1 -0
- package/public/assets/IconWorldPlus-CMeE6oOX.js +182 -0
- package/public/assets/IconWorldPlus-CMeE6oOX.js.map +1 -0
- package/public/assets/IconX-SYtbnYKI.js +12 -0
- package/public/assets/IconX-SYtbnYKI.js.map +1 -0
- package/public/assets/_commonjsHelpers-CE1G-McA.js +2 -0
- package/public/assets/_commonjsHelpers-CE1G-McA.js.map +1 -0
- package/public/assets/app-CtCP4WJN.js +6 -0
- package/public/assets/app-CtCP4WJN.js.map +1 -0
- package/public/assets/auth-CvxEWAMc.js +2 -0
- package/public/assets/auth-CvxEWAMc.js.map +1 -0
- package/public/assets/client-C5T7_OK9.js +26 -0
- package/public/assets/client-C5T7_OK9.js.map +1 -0
- package/public/assets/index-BC_vZ56r.js +10 -0
- package/public/assets/index-BC_vZ56r.js.map +1 -0
- package/public/assets/index-CJ4e7_2M.js +2 -0
- package/public/assets/index-CJ4e7_2M.js.map +1 -0
- package/public/assets/index-CRRRLlCc.js +10 -0
- package/public/assets/index-CRRRLlCc.js.map +1 -0
- package/public/assets/index-CSV4ZXsq.js +2 -0
- package/public/assets/index-CSV4ZXsq.js.map +1 -0
- package/public/assets/index-DYcAgWjJ.js +2 -0
- package/public/assets/index-DYcAgWjJ.js.map +1 -0
- package/public/assets/index-DqHVrEeL.js +10 -0
- package/public/assets/index-DqHVrEeL.js.map +1 -0
- package/public/assets/index-c0qeY2gs.js +10 -0
- package/public/assets/index-c0qeY2gs.js.map +1 -0
- package/public/assets/index-i4mjW0og.js +2 -0
- package/public/assets/index-i4mjW0og.js.map +1 -0
- package/public/assets/jsx-runtime-Bw5QeaCk.js +10 -0
- package/public/assets/jsx-runtime-Bw5QeaCk.js.map +1 -0
- package/public/assets/jsx-runtime-DoEZbXM1.js +2 -0
- package/public/assets/jsx-runtime-DoEZbXM1.js.map +1 -0
- package/public/assets/shared/@components-B442wlEb.js +2 -0
- package/public/assets/shared/@components-B442wlEb.js.map +1 -0
- package/public/assets/shared/@hooks-DfTzYBIL.js +2 -0
- package/public/assets/shared/@hooks-DfTzYBIL.js.map +1 -0
- package/public/assets/shared/@nanostores_react-HTG3s0lp.js +2 -0
- package/public/assets/shared/@nanostores_react-HTG3s0lp.js.map +1 -0
- package/public/assets/shared/@tabler_icons-react-DwfGvIVr.js +29458 -0
- package/public/assets/shared/@tabler_icons-react-DwfGvIVr.js.map +1 -0
- package/public/assets/shared/@utils-BQyGUOvP.js +2 -0
- package/public/assets/shared/@utils-BQyGUOvP.js.map +1 -0
- package/public/assets/shared/nanostores-BFqqIY_c.js +2 -0
- package/public/assets/shared/nanostores-BFqqIY_c.js.map +1 -0
- package/public/assets/shared/react-CR6vSpIu.js +2 -0
- package/public/assets/shared/react-CR6vSpIu.js.map +1 -0
- package/public/assets/shared/react-dom-BznoGTRX.js +2 -0
- package/public/assets/shared/react-dom-BznoGTRX.js.map +1 -0
- package/public/assets/shared/react_jsx-runtime-C15Zu6_p.js +2 -0
- package/public/assets/shared/react_jsx-runtime-C15Zu6_p.js.map +1 -0
- package/public/assets/shared/wouter-DbmGxXTo.js +2 -0
- package/public/assets/shared/wouter-DbmGxXTo.js.map +1 -0
- package/public/auth.html +1210 -0
- package/templates/rust/src/main.rs +25 -0
- package/templates/safe-ts/omegga.d.ts +8 -9
- package/tools/install_steamcmd.sh +1 -1
- package/.prettierignore +0 -6
- package/frontend/app.html +0 -14
- package/frontend/auth.html +0 -14
- package/omegga-config.yml +0 -7
- package/public/app.bundle.js +0 -54537
- package/public/app.bundle.js.map +0 -1
- package/public/app.css +0 -6345
- package/public/app.css.map +0 -1
- package/public/auth.bundle.js +0 -17789
- package/public/auth.bundle.js.map +0 -1
- package/public/auth.css +0 -3313
- package/public/auth.css.map +0 -1
- /package/{frontend/assets/fonts/GlacialIndifferenceBold.ttf → public/assets/GlacialIndifferenceBold-DhenBmgZ.ttf} +0 -0
- /package/{frontend/assets/fonts/GlacialIndifferenceItalic.otf → public/assets/GlacialIndifferenceItalic-BApAEtVA.otf} +0 -0
- /package/{frontend/assets/fonts/GlacialIndifferenceMedium.otf → public/assets/GlacialIndifferenceMedium-CALcoUYm.otf} +0 -0
- /package/{frontend/assets/fonts/GlacialIndifferenceRegular.ttf → public/assets/GlacialIndifferenceRegular-DynFsoUc.ttf} +0 -0
- /package/{frontend/assets/fonts/RobotoBold.ttf → public/assets/RobotoBold-DB1hqCFM.ttf} +0 -0
- /package/{frontend/assets/fonts/RobotoItalic.ttf → public/assets/RobotoItalic-DIrf6xfk.ttf} +0 -0
- /package/{frontend/assets/fonts/RobotoRegular.ttf → public/assets/RobotoRegular-CGSfnFoJ.ttf} +0 -0
- /package/{frontend/assets/img/auth_bg.webp → public/assets/auth_bg-DJZN1T-H.webp} +0 -0
- /package/{frontend/assets/img/dark_bg.webp → public/assets/dark_bg-uu5tZDxN.webp} +0 -0
- /package/{frontend/assets/img/turkey.webp → public/assets/turkey-BW4gu-4u.webp} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CJ4e7_2M.js","sources":["../../node_modules/nanostores/listen-keys/index.js"],"sourcesContent":["export function listenKeys($store, keys, listener) {\n let keysSet = new Set(keys).add(undefined)\n return $store.listen((value, oldValue, changed) => {\n if (keysSet.has(changed)) {\n listener(value, oldValue, changed)\n }\n })\n}\n\nexport function subscribeKeys($store, keys, listener) {\n let unbind = listenKeys($store, keys, listener)\n listener($store.value)\n return unbind\n}\n"],"names":["listenKeys","$store","keys","listener","keysSet","value","oldValue","changed","subscribeKeys","unbind"],"mappings":"AAAO,SAASA,EAAWC,EAAQC,EAAMC,EAAU,CACjD,IAAIC,EAAU,IAAI,IAAIF,CAAI,EAAE,IAAI,MAAS,EACzC,OAAOD,EAAO,OAAO,CAACI,EAAOC,EAAUC,IAAY,CAC7CH,EAAQ,IAAIG,CAAO,GACrBJ,EAASE,EAAOC,EAAUC,CAAO,CAErC,CAAC,CACH,CAEO,SAASC,EAAcP,EAAQC,EAAMC,EAAU,CACpD,IAAIM,EAAST,EAAWC,EAAQC,EAAMC,CAAQ,EAC9C,OAAAA,EAASF,EAAO,KAAK,EACdQ,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{r as u,R as B}from"./index-i4mjW0og.js";import{r as F}from"./index-c0qeY2gs.js";function N(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,s,r,a,o=[],f="",h=e.split("/");for(h[0]||h.shift();r=h.shift();)n=r[0],n==="*"?(o.push(n),f+=r[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(s=r.indexOf("?",1),a=r.indexOf(".",1),o.push(r.substring(1,~s?s:~a?a:r.length)),f+=~s&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(f+=(~s?"?":"")+"\\"+r.substring(a))):f+="/"+r;return{keys:o,pattern:new RegExp("^"+f+(t?"(?=$|/)":"/?$"),"i")}}var w={exports:{}},x={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var L;function T(){if(L)return x;L=1;var e=F();function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:t,s=e.useState,r=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function f(c,d){var y=d(),E=s({inst:{value:y,getSnapshot:d}}),p=E[0].inst,m=E[1];return a(function(){p.value=y,p.getSnapshot=d,h(p)&&m({inst:p})},[c,y,d]),r(function(){return h(p)&&m({inst:p}),c(function(){h(p)&&m({inst:p})})},[c]),o(y),y}function h(c){var d=c.getSnapshot;c=c.value;try{var y=d();return!n(c,y)}catch{return!0}}function l(c,d){return d()}var i=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:f;return x.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:i,x}var C;function z(){return C||(C=1,w.exports=T()),w.exports}var G=z();const Q=B.useInsertionEffect,J=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$=J?u.useLayoutEffect:u.useEffect,W=Q||$,g=e=>{const t=u.useRef([e,(...n)=>t[0](...n)]).current;return W(()=>{t[0]=e}),t[1]},X="popstate",R="pushState",b="replaceState",Y="hashchange",O=[X,R,b,Y],Z=e=>{for(const t of O)addEventListener(t,e);return()=>{for(const t of O)removeEventListener(t,e)}},q=(e,t)=>G.useSyncExternalStore(Z,e,t),ee=()=>location.search,te=({ssrSearch:e=""}={})=>q(ee,()=>e),j=()=>location.pathname,ne=({ssrPath:e}={})=>q(j,e?()=>e:j),re=(e,{replace:t=!1,state:n=null}={})=>history[t?b:R](n,"",e),se=(e={})=>[ne(e),re],_=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[_]>"u"){for(const e of[R,b]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),s=new Event(e);return s.arguments=arguments,dispatchEvent(s),n}}Object.defineProperty(window,_,{value:!0})}const oe=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",D=(e="")=>e==="/"?"":e,ae=(e,t)=>e[0]==="~"?e.slice(1):D(t)+e,ce=(e="",t)=>oe(P(D(e)),P(t)),ue=e=>e[0]==="?"?e.slice(1):e,P=e=>{try{return decodeURI(e)}catch{return e}},ie=e=>P(ue(e)),I={hook:se,searchHook:te,parser:N,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},K=u.createContext(I),S=()=>u.useContext(K),V={},H=u.createContext(V),fe=()=>u.useContext(H),v=e=>{const[t,n]=e.hook(e);return[ce(e.base,t),g((s,r)=>n(ae(s,e.base),r))]},M=()=>v(S()),le=()=>{const e=S();return ie(e.searchHook(e))},k=(e,t,n,s)=>{const{pattern:r,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",s),o=r.exec(n)||[],[f,...h]=o;return f!==void 0?[!0,(()=>{const l=a!==!1?Object.fromEntries(a.map((c,d)=>[c,h[d]])):o.groups;let i={...h};return l&&Object.assign(i,l),i})(),...s?[f]:[]]:[!1,null]},ye=e=>k(S().parser,e,M()[0]),he=({children:e,...t})=>{const n=S(),s=t.hook?I:n;let r=s;const[a,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs;let f=u.useRef({}),h=f.current,l=h;for(let i in s){const c=i==="base"?s[i]+(t[i]||""):t[i]||s[i];h===l&&c!==l[i]&&(f.current=l={...l}),l[i]=c,(c!==s[i]||c!==r[i])&&(r=l)}return u.createElement(K.Provider,{value:r,children:e})},U=({children:e,component:t},n)=>t?u.createElement(t,{params:n}):typeof e=="function"?e(n):e,de=e=>{let t=u.useRef(V);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([s,r])=>r!==n[s])?e:n};function Se(){const[e,t]=M(),n=le(),s=u.useMemo(()=>new URLSearchParams(n),[n]);let r=s;const a=g((o,f)=>{r=new URLSearchParams(typeof o=="function"?o(r):o),t(e+"?"+r,f)});return[s,a]}const Ee=({path:e,nest:t,match:n,...s})=>{const r=S(),[a]=v(r),[o,f,h]=n??k(r.parser,e,a,t),l=de({...fe(),...f});if(!o)return null;const i=h?u.createElement(he,{base:h},U(s,l)):U(s,l);return u.createElement(H.Provider,{value:l,children:i})},ve=u.forwardRef((e,t)=>{const n=S(),[s,r]=v(n),{to:a="",href:o=a,onClick:f,asChild:h,children:l,className:i,replace:c,state:d,...y}=e,E=g(m=>{m.ctrlKey||m.metaKey||m.altKey||m.shiftKey||m.button!==0||(f?.(m),m.defaultPrevented||(m.preventDefault(),r(o,e)))}),p=n.hrefs(o[0]==="~"?o.slice(1):n.base+o,n);return h&&u.isValidElement(l)?u.cloneElement(l,{onClick:E,href:p}):u.createElement("a",{...y,onClick:E,href:p,className:i?.call?i(s===o):i,children:l,ref:t})}),A=e=>Array.isArray(e)?e.flatMap(t=>A(t&&t.type===u.Fragment?t.props.children:t)):[e],ge=({children:e,location:t})=>{const n=S(),[s]=v(n);for(const r of A(e)){let a=0;if(u.isValidElement(r)&&(a=k(n.parser,r.props.path,t||s,r.props.nest))[0])return u.cloneElement(r,{match:a})}return null},we=e=>{const{to:t,href:n=t}=e,s=S(),[,r]=v(s),a=g(()=>r(t||n,e)),{ssrContext:o}=s;return $(()=>{a()},[]),o&&(o.redirectTo=t),null};export{ve as L,Ee as R,ge as S,M as a,he as b,se as c,we as d,fe as e,S as f,le as g,Se as h,k as m,ye as u};
|
|
10
|
+
//# sourceMappingURL=index-CRRRLlCc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CRRRLlCc.js","sources":["../../node_modules/regexparam/dist/index.mjs","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/wouter/esm/react-deps.js","../../node_modules/wouter/esm/use-browser-location.js","../../node_modules/wouter/esm/index.js"],"sourcesContent":["/**\n * @param {string|RegExp} input The route pattern\n * @param {boolean} [loose] Allow open-ended matching. Ignored with `RegExp` input.\n */\nexport function parse(input, loose) {\n\tif (input instanceof RegExp) return { keys:false, pattern:input };\n\tvar c, o, tmp, ext, keys=[], pattern='', arr = input.split('/');\n\tarr[0] || arr.shift();\n\n\twhile (tmp = arr.shift()) {\n\t\tc = tmp[0];\n\t\tif (c === '*') {\n\t\t\tkeys.push(c);\n\t\t\tpattern += tmp[1] === '?' ? '(?:/(.*))?' : '/(.*)';\n\t\t} else if (c === ':') {\n\t\t\to = tmp.indexOf('?', 1);\n\t\t\text = tmp.indexOf('.', 1);\n\t\t\tkeys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) );\n\t\t\tpattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)';\n\t\t\tif (!!~ext) pattern += (!!~o ? '?' : '') + '\\\\' + tmp.substring(ext);\n\t\t} else {\n\t\t\tpattern += '/' + tmp;\n\t\t}\n\t}\n\n\treturn {\n\t\tkeys: keys,\n\t\tpattern: new RegExp('^' + pattern + (loose ? '(?=$|\\/)' : '\\/?$'), 'i')\n\t};\n}\n\nvar RGX = /(\\/|^)([:*][^/]*?)(\\?)?(?=[/.]|$)/g;\n\n// error if key missing?\nexport function inject(route, values) {\n\treturn route.replace(RGX, (x, lead, key, optional) => {\n\t\tx = values[key=='*' ? key : key.substring(1)];\n\t\treturn x ? '/'+x : (optional || key=='*') ? '' : '/' + key;\n\t});\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","import * as React from 'react';\nexport { Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, useContext, useMemo, useRef, useState } from 'react';\nexport { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';\n\n// React.useInsertionEffect is not available in React <18\n// This hack fixes a transpilation issue on some apps\nconst useBuiltinInsertionEffect = React[\"useInsertion\" + \"Effect\"];\n\n// Copied from:\n// https://github.com/facebook/react/blob/main/packages/shared/ExecutionEnvironment.js\nconst canUseDOM = !!(\n typeof window !== \"undefined\" &&\n typeof window.document !== \"undefined\" &&\n typeof window.document.createElement !== \"undefined\"\n);\n\n// Copied from:\n// https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.ts\n// \"React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\"\nconst useIsomorphicLayoutEffect = canUseDOM\n ? React.useLayoutEffect\n : React.useEffect;\n\n// useInsertionEffect is already a noop on the server.\n// See: https://github.com/facebook/react/blob/main/packages/react-server/src/ReactFizzHooks.js\nconst useInsertionEffect =\n useBuiltinInsertionEffect || useIsomorphicLayoutEffect;\n\n// Userland polyfill while we wait for the forthcoming\n// https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md\n// Note: \"A high-fidelity polyfill for useEvent is not possible because\n// there is no lifecycle or Hook in React that we can use to switch\n// .current at the right timing.\"\n// So we will have to make do with this \"close enough\" approach for now.\nconst useEvent = (fn) => {\n const ref = React.useRef([fn, (...args) => ref[0](...args)]).current;\n // Per Dan Abramov: useInsertionEffect executes marginally closer to the\n // correct timing for ref synchronization than useLayoutEffect on React 18.\n // See: https://github.com/facebook/react/pull/25881#issuecomment-1356244360\n useInsertionEffect(() => {\n ref[0] = fn;\n });\n return ref[1];\n};\n\nexport { useEvent, useInsertionEffect, useIsomorphicLayoutEffect };\n","import { useSyncExternalStore } from './react-deps.js';\n\n/**\n * History API docs @see https://developer.mozilla.org/en-US/docs/Web/API/History\n */\nconst eventPopstate = \"popstate\";\nconst eventPushState = \"pushState\";\nconst eventReplaceState = \"replaceState\";\nconst eventHashchange = \"hashchange\";\nconst events = [\n eventPopstate,\n eventPushState,\n eventReplaceState,\n eventHashchange,\n];\n\nconst subscribeToLocationUpdates = (callback) => {\n for (const event of events) {\n addEventListener(event, callback);\n }\n return () => {\n for (const event of events) {\n removeEventListener(event, callback);\n }\n };\n};\n\nconst useLocationProperty = (fn, ssrFn) =>\n useSyncExternalStore(subscribeToLocationUpdates, fn, ssrFn);\n\nconst currentSearch = () => location.search;\n\nconst useSearch = ({ ssrSearch = \"\" } = {}) =>\n useLocationProperty(currentSearch, () => ssrSearch);\n\nconst currentPathname = () => location.pathname;\n\nconst usePathname = ({ ssrPath } = {}) =>\n useLocationProperty(\n currentPathname,\n ssrPath ? () => ssrPath : currentPathname\n );\n\nconst currentHistoryState = () => history.state;\nconst useHistoryState = () =>\n useLocationProperty(currentHistoryState, () => null);\n\nconst navigate = (to, { replace = false, state = null } = {}) =>\n history[replace ? eventReplaceState : eventPushState](state, \"\", to);\n\n// the 2nd argument of the `useBrowserLocation` return value is a function\n// that allows to perform a navigation.\nconst useBrowserLocation = (opts = {}) => [usePathname(opts), navigate];\n\nconst patchKey = Symbol.for(\"wouter_v3\");\n\n// While History API does have `popstate` event, the only\n// proper way to listen to changes via `push/replaceState`\n// is to monkey-patch these methods.\n//\n// See https://stackoverflow.com/a/4585031\nif (typeof history !== \"undefined\" && typeof window[patchKey] === \"undefined\") {\n for (const type of [eventPushState, eventReplaceState]) {\n const original = history[type];\n // TODO: we should be using unstable_batchedUpdates to avoid multiple re-renders,\n // however that will require an additional peer dependency on react-dom.\n // See: https://github.com/reactwg/react-18/discussions/86#discussioncomment-1567149\n history[type] = function () {\n const result = original.apply(this, arguments);\n const event = new Event(type);\n event.arguments = arguments;\n\n dispatchEvent(event);\n return result;\n };\n }\n\n // patch history object only once\n // See: https://github.com/molefrog/wouter/issues/167\n Object.defineProperty(window, patchKey, { value: true });\n}\n\nexport { navigate, useBrowserLocation, useHistoryState, useLocationProperty, usePathname, useSearch };\n","import { parse } from 'regexparam';\nimport { useBrowserLocation, useSearch as useSearch$1 } from './use-browser-location.js';\nimport { createContext, forwardRef, useEvent, isValidElement, cloneElement, createElement, useContext, useRef, useMemo, useIsomorphicLayoutEffect, Fragment } from './react-deps.js';\n\n/*\n * Transforms `path` into its relative `base` version\n * If base isn't part of the path provided returns absolute path e.g. `~/app`\n */\nconst _relativePath = (base, path) =>\n !path.toLowerCase().indexOf(base.toLowerCase())\n ? path.slice(base.length) || \"/\"\n : \"~\" + path;\n\n/**\n * When basepath is `undefined` or '/' it is ignored (we assume it's empty string)\n */\nconst baseDefaults = (base = \"\") => (base === \"/\" ? \"\" : base);\n\nconst absolutePath = (to, base) =>\n to[0] === \"~\" ? to.slice(1) : baseDefaults(base) + to;\n\nconst relativePath = (base = \"\", path) =>\n _relativePath(unescape(baseDefaults(base)), unescape(path));\n\n/*\n * Removes leading question mark\n */\nconst stripQm = (str) => (str[0] === \"?\" ? str.slice(1) : str);\n\n/*\n * decodes escape sequences such as %20\n */\nconst unescape = (str) => {\n try {\n return decodeURI(str);\n } catch (_e) {\n // fail-safe mode: if string can't be decoded do nothing\n return str;\n }\n};\n\nconst sanitizeSearch = (search) => unescape(stripQm(search));\n\n/*\n * Router and router context. Router is a lightweight object that represents the current\n * routing options: how location is managed, base path etc.\n *\n * There is a default router present for most of the use cases, however it can be overridden\n * via the <Router /> component.\n */\n\nconst defaultRouter = {\n hook: useBrowserLocation,\n searchHook: useSearch$1,\n parser: parse,\n base: \"\",\n // this option is used to override the current location during SSR\n ssrPath: undefined,\n ssrSearch: undefined,\n // optional context to track render state during SSR\n ssrContext: undefined,\n // customizes how `href` props are transformed for <Link />\n hrefs: (x) => x,\n};\n\nconst RouterCtx = createContext(defaultRouter);\n\n// gets the closest parent router from the context\nconst useRouter = () => useContext(RouterCtx);\n\n/**\n * Parameters context. Used by `useParams()` to get the\n * matched params from the innermost `Route` component.\n */\n\nconst Params0 = {},\n ParamsCtx = createContext(Params0);\n\nconst useParams = () => useContext(ParamsCtx);\n\n/*\n * Part 1, Hooks API: useRoute and useLocation\n */\n\n// Internal version of useLocation to avoid redundant useRouter calls\n\nconst useLocationFromRouter = (router) => {\n const [location, navigate] = router.hook(router);\n\n // the function reference should stay the same between re-renders, so that\n // it can be passed down as an element prop without any performance concerns.\n // (This is achieved via `useEvent`.)\n return [\n relativePath(router.base, location),\n useEvent((to, navOpts) => navigate(absolutePath(to, router.base), navOpts)),\n ];\n};\n\nconst useLocation = () => useLocationFromRouter(useRouter());\n\nconst useSearch = () => {\n const router = useRouter();\n return sanitizeSearch(router.searchHook(router));\n};\n\nconst matchRoute = (parser, route, path, loose) => {\n // if the input is a regexp, skip parsing\n const { pattern, keys } =\n route instanceof RegExp\n ? { keys: false, pattern: route }\n : parser(route || \"*\", loose);\n\n // array destructuring loses keys, so this is done in two steps\n const result = pattern.exec(path) || [];\n\n // when parser is in \"loose\" mode, `$base` is equal to the\n // first part of the route that matches the pattern\n // (e.g. for pattern `/a/:b` and path `/a/1/2/3` the `$base` is `a/1`)\n // we use this for route nesting\n const [$base, ...matches] = result;\n\n return $base !== undefined\n ? [\n true,\n\n (() => {\n // for regex paths, `keys` will always be false\n\n // an object with parameters matched, e.g. { foo: \"bar\" } for \"/:foo\"\n // we \"zip\" two arrays here to construct the object\n // [\"foo\"], [\"bar\"] → { foo: \"bar\" }\n const groups =\n keys !== false\n ? Object.fromEntries(keys.map((key, i) => [key, matches[i]]))\n : result.groups;\n\n // convert the array to an instance of object\n // this makes it easier to integrate with the existing param implementation\n let obj = { ...matches };\n\n // merge named capture groups with matches array\n groups && Object.assign(obj, groups);\n\n return obj;\n })(),\n\n // the third value if only present when parser is in \"loose\" mode,\n // so that we can extract the base path for nested routes\n ...(loose ? [$base] : []),\n ]\n : [false, null];\n};\n\nconst useRoute = (pattern) =>\n matchRoute(useRouter().parser, pattern, useLocation()[0]);\n\n/*\n * Part 2, Low Carb Router API: Router, Route, Link, Switch\n */\n\nconst Router = ({ children, ...props }) => {\n // the router we will inherit from - it is the closest router in the tree,\n // unless the custom `hook` is provided (in that case it's the default one)\n const parent_ = useRouter();\n const parent = props.hook ? defaultRouter : parent_;\n\n // holds to the context value: the router object\n let value = parent;\n\n // when `ssrPath` contains a `?` character, we can extract the search from it\n const [path, search] = props.ssrPath?.split(\"?\") ?? [];\n if (search) (props.ssrSearch = search), (props.ssrPath = path);\n\n // hooks can define their own `href` formatter (e.g. for hash location)\n props.hrefs = props.hrefs ?? props.hook?.hrefs;\n\n // what is happening below: to avoid unnecessary rerenders in child components,\n // we ensure that the router object reference is stable, unless there are any\n // changes that require reload (e.g. `base` prop changes -> all components that\n // get the router from the context should rerender, even if the component is memoized).\n // the expected behaviour is:\n //\n // 1) when the resulted router is no different from the parent, use parent\n // 2) if the custom `hook` prop is provided, we always inherit from the\n // default router instead. this resets all previously overridden options.\n // 3) when the router is customized here, it should stay stable between renders\n let ref = useRef({}),\n prev = ref.current,\n next = prev;\n\n for (let k in parent) {\n const option =\n k === \"base\"\n ? /* base is special case, it is appended to the parent's base */\n parent[k] + (props[k] || \"\")\n : props[k] || parent[k];\n\n if (prev === next && option !== next[k]) {\n ref.current = next = { ...next };\n }\n\n next[k] = option;\n\n // the new router is no different from the parent or from the memoized value, use parent\n if (option !== parent[k] || option !== value[k]) value = next;\n }\n\n return createElement(RouterCtx.Provider, { value, children });\n};\n\nconst h_route = ({ children, component }, params) => {\n // React-Router style `component` prop\n if (component) return createElement(component, { params });\n\n // support render prop or plain children\n return typeof children === \"function\" ? children(params) : children;\n};\n\n// Cache params object between renders if values are shallow equal\nconst useCachedParams = (value) => {\n let prev = useRef(Params0);\n const curr = prev.current;\n return (prev.current =\n // Update cache if number of params changed or any value changed\n Object.keys(value).length !== Object.keys(curr).length ||\n Object.entries(value).some(([k, v]) => v !== curr[k])\n ? value // Return new value if there are changes\n : curr); // Return cached value if nothing changed\n};\n\nfunction useSearchParams() {\n const [location, navigate] = useLocation();\n\n const search = useSearch();\n const searchParams = useMemo(() => new URLSearchParams(search), [search]);\n\n // cached value before next render, so you can call setSearchParams multiple times\n let tempSearchParams = searchParams;\n\n const setSearchParams = useEvent((nextInit, options) => {\n tempSearchParams = new URLSearchParams(\n typeof nextInit === \"function\" ? nextInit(tempSearchParams) : nextInit\n );\n navigate(location + \"?\" + tempSearchParams, options);\n });\n\n return [searchParams, setSearchParams];\n}\n\nconst Route = ({ path, nest, match, ...renderProps }) => {\n const router = useRouter();\n const [location] = useLocationFromRouter(router);\n\n const [matches, routeParams, base] =\n // `match` is a special prop to give up control to the parent,\n // it is used by the `Switch` to avoid double matching\n match ?? matchRoute(router.parser, path, location, nest);\n\n // when `routeParams` is `null` (there was no match), the argument\n // below becomes {...null} = {}, see the Object Spread specs\n // https://tc39.es/proposal-object-rest-spread/#AbstractOperations-CopyDataProperties\n const params = useCachedParams({ ...useParams(), ...routeParams });\n\n if (!matches) return null;\n\n const children = base\n ? createElement(Router, { base }, h_route(renderProps, params))\n : h_route(renderProps, params);\n\n return createElement(ParamsCtx.Provider, { value: params, children });\n};\n\nconst Link = forwardRef((props, ref) => {\n const router = useRouter();\n const [currentPath, navigate] = useLocationFromRouter(router);\n\n const {\n to = \"\",\n href: targetPath = to,\n onClick: _onClick,\n asChild,\n children,\n className: cls,\n /* eslint-disable no-unused-vars */\n replace /* ignore nav props */,\n state /* ignore nav props */,\n /* eslint-enable no-unused-vars */\n\n ...restProps\n } = props;\n\n const onClick = useEvent((event) => {\n // ignores the navigation when clicked using right mouse button or\n // by holding a special modifier key: ctrl, command, win, alt, shift\n if (\n event.ctrlKey ||\n event.metaKey ||\n event.altKey ||\n event.shiftKey ||\n event.button !== 0\n )\n return;\n\n _onClick?.(event);\n if (!event.defaultPrevented) {\n event.preventDefault();\n navigate(targetPath, props);\n }\n });\n\n // handle nested routers and absolute paths\n const href = router.hrefs(\n targetPath[0] === \"~\" ? targetPath.slice(1) : router.base + targetPath,\n router // pass router as a second argument for convinience\n );\n\n return asChild && isValidElement(children)\n ? cloneElement(children, { onClick, href })\n : createElement(\"a\", {\n ...restProps,\n onClick,\n href,\n // `className` can be a function to apply the class if this link is active\n className: cls?.call ? cls(currentPath === targetPath) : cls,\n children,\n ref,\n });\n});\n\nconst flattenChildren = (children) =>\n Array.isArray(children)\n ? children.flatMap((c) =>\n flattenChildren(c && c.type === Fragment ? c.props.children : c)\n )\n : [children];\n\nconst Switch = ({ children, location }) => {\n const router = useRouter();\n const [originalLocation] = useLocationFromRouter(router);\n\n for (const element of flattenChildren(children)) {\n let match = 0;\n\n if (\n isValidElement(element) &&\n // we don't require an element to be of type Route,\n // but we do require it to contain a truthy `path` prop.\n // this allows to use different components that wrap Route\n // inside of a switch, for example <AnimatedRoute />.\n (match = matchRoute(\n router.parser,\n element.props.path,\n location || originalLocation,\n element.props.nest\n ))[0]\n )\n return cloneElement(element, { match });\n }\n\n return null;\n};\n\nconst Redirect = (props) => {\n const { to, href = to } = props;\n const router = useRouter();\n const [, navigate] = useLocationFromRouter(router);\n const redirect = useEvent(() => navigate(to || href, props));\n const { ssrContext } = router;\n\n // redirect is guaranteed to be stable since it is returned from useEvent\n useIsomorphicLayoutEffect(() => {\n redirect();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n if (ssrContext) {\n ssrContext.redirectTo = to;\n }\n\n return null;\n};\n\nexport { Link, Redirect, Route, Router, Switch, matchRoute, useLocation, useParams, useRoute, useRouter, useSearch, useSearchParams };\n"],"names":["parse","input","loose","c","o","tmp","ext","keys","pattern","arr","React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production","shimModule","useBuiltinInsertionEffect","canUseDOM","useIsomorphicLayoutEffect","React.useLayoutEffect","React.useEffect","useInsertionEffect","useEvent","fn","ref","React.useRef","args","eventPopstate","eventPushState","eventReplaceState","eventHashchange","events","subscribeToLocationUpdates","callback","event","useLocationProperty","ssrFn","useSyncExternalStore","currentSearch","useSearch","ssrSearch","currentPathname","usePathname","ssrPath","navigate","to","replace","state","useBrowserLocation","opts","patchKey","type","original","result","_relativePath","base","path","baseDefaults","absolutePath","relativePath","unescape","stripQm","str","sanitizeSearch","search","defaultRouter","useSearch$1","RouterCtx","createContext","useRouter","useContext","Params0","ParamsCtx","useParams","useLocationFromRouter","router","location","navOpts","useLocation","matchRoute","parser","route","$base","matches","groups","key","i","obj","useRoute","Router","children","props","parent_","parent","useRef","prev","next","k","option","createElement","h_route","component","params","useCachedParams","curr","v","useSearchParams","searchParams","useMemo","tempSearchParams","setSearchParams","nextInit","options","Route","nest","match","renderProps","routeParams","Link","forwardRef","currentPath","targetPath","_onClick","asChild","cls","restProps","onClick","href","isValidElement","cloneElement","flattenChildren","Fragment","Switch","originalLocation","element","Redirect","redirect","ssrContext"],"mappings":"uFAIO,SAASA,EAAMC,EAAOC,EAAO,CACnC,GAAID,aAAiB,OAAQ,MAAO,CAAE,KAAK,GAAO,QAAQA,CAAK,EAC/D,IAAIE,EAAGC,EAAGC,EAAKC,EAAKC,EAAK,CAAA,EAAIC,EAAQ,GAAIC,EAAMR,EAAM,MAAM,GAAG,EAG9D,IAFAQ,EAAI,CAAC,GAAKA,EAAI,MAAK,EAEZJ,EAAMI,EAAI,SAChBN,EAAIE,EAAI,CAAC,EACLF,IAAM,KACTI,EAAK,KAAKJ,CAAC,EACXK,GAAWH,EAAI,CAAC,IAAM,IAAM,aAAe,SACjCF,IAAM,KAChBC,EAAIC,EAAI,QAAQ,IAAK,CAAC,EACtBC,EAAMD,EAAI,QAAQ,IAAK,CAAC,EACxBE,EAAK,KAAMF,EAAI,UAAU,EAAK,CAACD,EAAIA,EAAM,CAACE,EAAMA,EAAMD,EAAI,MAAM,CAAC,EACjEG,GAAa,CAACJ,GAAK,CAAC,CAACE,EAAM,iBAAmB,YACxC,CAACA,IAAKE,IAAc,CAACJ,EAAI,IAAM,IAAM,KAAOC,EAAI,UAAUC,CAAG,IAEnEE,GAAW,IAAMH,EAInB,MAAO,CACN,KAAME,EACN,QAAS,IAAI,OAAO,IAAMC,GAAWN,EAAQ,UAAa,OAAS,GAAG,CACxE,CACA;;;;;;;;wCClBA,IAAIQ,EAAQC,EAAA,EACZ,SAASC,EAAGC,EAAGC,EAAG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AO,IACT,EAEMoB,GAAY5C,GAAU,CAC1B,KAAM,CAAE,GAAA9C,EAAI,KAAAkF,EAAOlF,CAAE,EAAK8C,EACpBhB,EAASN,EAAS,EAClB,EAAGzB,CAAQ,EAAI8B,EAAsBC,CAAM,EAC3C6D,EAAWlH,EAAS,IAAMsB,EAASC,GAAMkF,EAAMpC,CAAK,CAAC,EACrD,CAAE,WAAA8C,CAAU,EAAK9D,EAGvB,OAAAzD,EAA0B,IAAM,CAC9BsH,EAAQ,CACV,EAAG,CAAA,CAAE,EAEDC,IACFA,EAAW,WAAa5F,GAGnB,IACT","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let t=[],i=0;const f=4;let a=0,c=r=>{let s=[],e={get(){return e.lc||e.listen(()=>{})(),e.value},lc:0,listen(l){return e.lc=s.push(l),()=>{for(let u=i+f;u<t.length;)t[u]===l?t.splice(u,f):u+=f;let n=s.indexOf(l);~n&&(s.splice(n,1),--e.lc||e.off())}},notify(l,n){a++;let u=!t.length;for(let o of s)t.push(o,e.value,l,n);if(u){for(i=0;i<t.length;i+=f)t[i](t[i+1],t[i+2],t[i+3]);t.length=0}},off(){},set(l){let n=e.value;n!==l&&(e.value=l,e.notify(n))},subscribe(l){let n=e.listen(l);return l(e.value),n},value:r};return e};const h=r=>r;export{c as a,a as e,h as r};
|
|
2
|
+
//# sourceMappingURL=index-CSV4ZXsq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CSV4ZXsq.js","sources":["../../node_modules/nanostores/atom/index.js"],"sourcesContent":["import { clean } from '../clean-stores/index.js'\n\nlet listenerQueue = []\nlet lqIndex = 0\nconst QUEUE_ITEMS_PER_LISTENER = 4\nexport let epoch = 0\n\nexport let atom = initialValue => {\n let listeners = []\n let $atom = {\n get() {\n if (!$atom.lc) {\n $atom.listen(() => {})()\n }\n return $atom.value\n },\n lc: 0,\n listen(listener) {\n $atom.lc = listeners.push(listener)\n\n return () => {\n for (\n let i = lqIndex + QUEUE_ITEMS_PER_LISTENER;\n i < listenerQueue.length;\n\n ) {\n if (listenerQueue[i] === listener) {\n listenerQueue.splice(i, QUEUE_ITEMS_PER_LISTENER)\n } else {\n i += QUEUE_ITEMS_PER_LISTENER\n }\n }\n\n let index = listeners.indexOf(listener)\n if (~index) {\n listeners.splice(index, 1)\n if (!--$atom.lc) $atom.off()\n }\n }\n },\n notify(oldValue, changedKey) {\n epoch++\n let runListenerQueue = !listenerQueue.length\n for (let listener of listeners) {\n listenerQueue.push(listener, $atom.value, oldValue, changedKey)\n }\n\n if (runListenerQueue) {\n for (\n lqIndex = 0;\n lqIndex < listenerQueue.length;\n lqIndex += QUEUE_ITEMS_PER_LISTENER\n ) {\n listenerQueue[lqIndex](\n listenerQueue[lqIndex + 1],\n listenerQueue[lqIndex + 2],\n listenerQueue[lqIndex + 3]\n )\n }\n listenerQueue.length = 0\n }\n },\n /* It will be called on last listener unsubscribing.\n We will redefine it in onMount and onStop. */\n off() {},\n set(newValue) {\n let oldValue = $atom.value\n if (oldValue !== newValue) {\n $atom.value = newValue\n $atom.notify(oldValue)\n }\n },\n subscribe(listener) {\n let unbind = $atom.listen(listener)\n listener($atom.value)\n return unbind\n },\n value: initialValue\n }\n\n if (process.env.NODE_ENV !== 'production') {\n $atom[clean] = () => {\n listeners = []\n $atom.lc = 0\n $atom.off()\n }\n }\n\n return $atom\n}\n\nexport const readonlyType = store => store\n"],"names":["listenerQueue","lqIndex","QUEUE_ITEMS_PER_LISTENER","epoch","atom","initialValue","listeners","$atom","listener","i","index","oldValue","changedKey","runListenerQueue","newValue","unbind","readonlyType","store"],"mappings":"AAEA,IAAIA,EAAgB,CAAA,EAChBC,EAAU,EACd,MAAMC,EAA2B,EAC1B,IAAIC,EAAQ,EAERC,EAAOC,GAAgB,CAChC,IAAIC,EAAY,CAAA,EACZC,EAAQ,CACV,KAAM,CACJ,OAAKA,EAAM,IACTA,EAAM,OAAO,IAAM,CAAC,CAAC,EAAA,EAEhBA,EAAM,KACf,EACA,GAAI,EACJ,OAAOC,EAAU,CACf,OAAAD,EAAM,GAAKD,EAAU,KAAKE,CAAQ,EAE3B,IAAM,CACX,QACMC,EAAIR,EAAUC,EAClBO,EAAIT,EAAc,QAGdA,EAAcS,CAAC,IAAMD,EACvBR,EAAc,OAAOS,EAAGP,CAAwB,EAEhDO,GAAKP,EAIT,IAAIQ,EAAQJ,EAAU,QAAQE,CAAQ,EAClC,CAACE,IACHJ,EAAU,OAAOI,EAAO,CAAC,EACpB,EAAEH,EAAM,MAAU,IAAA,EAE3B,CACF,EACA,OAAOI,EAAUC,EAAY,CAC3BT,IACA,IAAIU,EAAmB,CAACb,EAAc,OACtC,QAASQ,KAAYF,EACnBN,EAAc,KAAKQ,EAAUD,EAAM,MAAOI,EAAUC,CAAU,EAGhE,GAAIC,EAAkB,CACpB,IACEZ,EAAU,EACVA,EAAUD,EAAc,OACxBC,GAAWC,EAEXF,EAAcC,CAAO,EACnBD,EAAcC,EAAU,CAAC,EACzBD,EAAcC,EAAU,CAAC,EACzBD,EAAcC,EAAU,CAAC,CAAA,EAG7BD,EAAc,OAAS,CACzB,CACF,EAGA,KAAM,CAAC,EACP,IAAIc,EAAU,CACZ,IAAIH,EAAWJ,EAAM,MACjBI,IAAaG,IACfP,EAAM,MAAQO,EACdP,EAAM,OAAOI,CAAQ,EAEzB,EACA,UAAUH,EAAU,CAClB,IAAIO,EAASR,EAAM,OAAOC,CAAQ,EAClC,OAAAA,EAASD,EAAM,KAAK,EACbQ,CACT,EACA,MAAOV,CAAA,EAWT,OAAOE,CACT,EAEO,MAAMS,EAAeC,GAASA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as s}from"./jsx-runtime-DoEZbXM1.js";import{useStore as v}from"./shared/@nanostores_react-HTG3s0lp.js";import{a as j}from"./index-CSV4ZXsq.js";import{I as p,a as f}from"./IconX-SYtbnYKI.js";import{r as x}from"./index-i4mjW0og.js";import{I as g}from"./IconCheck-Dyq5qyY1.js";const N=j(null),b="/assets/dark_bg-uu5tZDxN.webp",$="/assets/auth_bg-DJZN1T-H.webp",z=({children:e})=>{const a=v(N);return s.jsxs("div",{className:"background",children:[s.jsx("img",{className:"bg-img dark",src:b}),s.jsx("img",{className:"bg-img light",src:$}),a&&s.jsxs("div",{className:"version",children:["Omegga v",a]}),e]})},h=({children:e,warn:a,main:r,error:t,info:o,normal:l,disabled:m=!1,icon:n,boxy:i,onClick:c,className:d,...u})=>s.jsx("div",{className:["button",d??"",a&&"warn",r&&"main",t&&"error",o&&"info",l&&"normal",m&&"disabled",i&&"boxy",n&&"icon"].filter(Boolean).join(" "),onClick:c,...u,children:s.jsx("div",{className:"button-content",children:e})}),k=({children:e,className:a,attached:r,...t})=>s.jsx("div",{className:`footer ${r?"attached":""} ${a??""}`,...t,children:e}),w=({children:e,className:a,attached:r,...t})=>s.jsx("div",{className:`header ${r?"attached":""} ${a??""}`,...t,children:e});function E({placeholder:e,tooltip:a,disabled:r,type:t="text",value:o,roboto:l,onBlur:m,onFocus:n,onChange:i,...c}){return s.jsx("div",{className:`input ${r?"disabled":""} ${l?"roboto":""}`,"data-tooltip":a,children:s.jsx("input",{spellCheck:"false",type:t,placeholder:e,disabled:r,value:o,onChange:d=>{const u=t==="number"?Number(d.target.value):d.target.value;i&&i(u)},...c})})}const C={small:"24",normal:"30",huge:"60",massive:"120"},M=({children:e,onClick:a,blur:r,active:t=!0,inline:o=!1,size:l="normal"})=>s.jsx("div",{className:`loader ${t?"active":""} ${o?"inline":""}`,onClick:a,children:s.jsxs("div",{className:`loader-container ${r?"blur":""}`,children:[s.jsx(p,{className:"loader-icon",size:C[l]}),s.jsx("div",{children:e})]})}),B=({visible:e,children:a})=>s.jsx("div",{className:`dimmer ${e?"visible":""}`,children:s.jsx("div",{className:"dimmer-content",children:a})}),I=({children:e})=>s.jsx("div",{className:"popout-content",children:e}),y=({visible:e,children:a})=>s.jsx("div",{className:`modal ${e?"visible":""}`,children:s.jsx("div",{className:"modal-content",children:a})}),S=({leftButton:e,rightButton:a,title:r,content:t}={})=>{const[o,l]=x.useState({show:!1,message:"",children:null,resolve:n=>{}});return{prompt:x.useCallback(n=>new Promise(i=>{l({message:typeof n=="string"?n:"",children:typeof n!="string"&&n?n:null,show:!0,resolve(c){i(c),l({show:!1,message:"",children:null,resolve:()=>{}})}})}),[]),children:s.jsx(B,{visible:o.show,children:s.jsxs(y,{visible:!0,children:[s.jsx(w,{attached:!0,children:r??"Confirmation"}),s.jsx(I,{children:t??o.children??s.jsxs("p",{children:["Are you sure you want to ",o.message,"?"]})}),s.jsxs(k,{attached:!0,children:[e?.(o.resolve)??s.jsxs(h,{main:!0,onClick:()=>o.resolve(!0),children:[s.jsx(g,{}),"Yes"]}),s.jsx("div",{style:{flex:1}}),a?.(o.resolve)??s.jsxs(h,{normal:!0,onClick:()=>o.resolve(!1),children:[s.jsx(f,{}),"No"]})]})]})})}};export{N as $,z as B,B as D,k as F,w as H,E as I,M as L,y as M,I as P,h as a,S as u};
|
|
2
|
+
//# sourceMappingURL=index-DYcAgWjJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DYcAgWjJ.js","sources":["../../frontend/src/stores/version.ts","../../frontend/assets/img/dark_bg.webp","../../frontend/assets/img/auth_bg.webp","../../frontend/src/components/background/index.tsx","../../frontend/src/components/button/index.tsx","../../frontend/src/components/footer/index.tsx","../../frontend/src/components/header/index.tsx","../../frontend/src/components/input/index.tsx","../../frontend/src/components/loader/index.tsx","../../frontend/src/components/dimmer/index.tsx","../../frontend/src/components/popout/index.tsx","../../frontend/src/components/modal/index.tsx"],"sourcesContent":["import { atom } from 'nanostores';\n\nexport const $version = atom<string | null>(null);\n","export default \"__VITE_ASSET__DZw7aIWt__\"","export default \"__VITE_ASSET__CbOwMhlW__\"","import { useStore } from '@nanostores/react';\nimport type React from 'react';\nimport { $version } from '../../stores/version';\nimport darkBg from '../../../assets/img/dark_bg.webp';\nimport lightBg from '../../../assets/img/auth_bg.webp';\n\nexport const Background = ({ children }: React.PropsWithChildren) => {\n const version = useStore($version);\n return (\n <div className=\"background\">\n <img className=\"bg-img dark\" src={darkBg} />\n <img className=\"bg-img light\" src={lightBg} />\n {version && <div className=\"version\">Omegga v{version}</div>}\n {children}\n </div>\n );\n};\n","import type React from 'react';\nimport type { HTMLAttributes, MouseEventHandler } from 'react';\n\nexport const Button = ({\n children,\n warn,\n main,\n error,\n info,\n normal,\n disabled = false,\n icon,\n boxy,\n onClick,\n className,\n ...props\n}: React.PropsWithChildren<{\n warn?: boolean;\n main?: boolean;\n error?: boolean;\n info?: boolean;\n normal?: boolean;\n disabled?: boolean;\n icon?: boolean;\n boxy?: boolean;\n onClick?: MouseEventHandler;\n}> &\n HTMLAttributes<HTMLDivElement>) => (\n <div\n className={[\n 'button',\n className ?? '',\n warn && 'warn',\n main && 'main',\n error && 'error',\n info && 'info',\n normal && 'normal',\n disabled && 'disabled',\n boxy && 'boxy',\n icon && 'icon',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={onClick}\n {...props}\n >\n <div className=\"button-content\">{children}</div>\n </div>\n);\n","import type { HTMLAttributes } from 'react';\n\nexport const Footer = ({\n children,\n className,\n attached,\n ...props\n}: HTMLAttributes<HTMLDivElement> & {\n attached?: boolean;\n}) => (\n <div\n className={`footer ${attached ? 'attached' : ''} ${className ?? ''}`}\n {...props}\n >\n {children}\n </div>\n);\n","import type { HTMLAttributes } from 'react';\nimport type React from 'react';\n\nexport const Header = ({\n children,\n className,\n attached,\n ...props\n}: React.PropsWithChildren &\n HTMLAttributes<HTMLDivElement> & { attached?: boolean }) => (\n <div\n className={`header ${attached ? 'attached' : ''} ${className ?? ''}`}\n {...props}\n >\n {children}\n </div>\n);\n","import type { HTMLAttributes } from 'react';\n\nexport function Input<T extends 'text' | 'number' | 'password'>({\n placeholder,\n tooltip,\n disabled,\n type = 'text' as T,\n value,\n roboto,\n onBlur,\n onFocus,\n onChange,\n ...props\n}: {\n placeholder?: string;\n tooltip?: string;\n disabled?: boolean;\n roboto?: boolean;\n type?: T;\n value: T extends 'number' ? number : string;\n onChange?: (v: T extends 'number' ? number : string) => void;\n} & Omit<HTMLAttributes<HTMLInputElement>, 'onChange'>) {\n return (\n <div\n className={`input ${disabled ? 'disabled' : ''} ${roboto ? 'roboto' : ''}`}\n data-tooltip={tooltip}\n >\n <input\n spellCheck=\"false\"\n type={type}\n placeholder={placeholder}\n disabled={disabled}\n value={value}\n onChange={e => {\n const newValue =\n type === 'number' ? Number(e.target.value) : e.target.value;\n if (onChange)\n onChange(newValue as T extends 'number' ? number : string);\n }}\n {...props}\n />\n </div>\n );\n}\n","import { IconLoader } from '@tabler/icons-react';\nimport type React from 'react';\nimport type { MouseEventHandler } from 'react';\n\nconst sizes = {\n small: '24',\n normal: '30',\n huge: '60',\n massive: '120',\n};\n\nexport const Loader = ({\n children,\n onClick,\n blur,\n active = true,\n inline = false,\n size = 'normal',\n}: React.PropsWithChildren<{\n active?: boolean;\n inline?: boolean;\n blur?: boolean;\n size?: 'small' | 'normal' | 'huge' | 'massive';\n onClick?: MouseEventHandler;\n}>) => {\n return (\n <div\n className={`loader ${active ? 'active' : ''} ${inline ? 'inline' : ''}`}\n onClick={onClick}\n >\n <div className={`loader-container ${blur ? 'blur' : ''}`}>\n <IconLoader className=\"loader-icon\" size={sizes[size]} />\n <div>{children}</div>\n </div>\n </div>\n );\n};\n","import type { PropsWithChildren } from 'react';\n\nexport const Dimmer = ({\n visible,\n children,\n}: PropsWithChildren<{ visible: boolean }>) => (\n <div className={`dimmer ${visible ? 'visible' : ''}`}>\n <div className=\"dimmer-content\">{children}</div>\n </div>\n);\n","export const PopoutContent = ({ children }: React.PropsWithChildren) => (\n <div className=\"popout-content\">{children}</div>\n);\n","import { IconCheck, IconX } from '@tabler/icons-react';\nimport {\n useCallback,\n useState,\n type PropsWithChildren,\n type ReactNode,\n} from 'react';\nimport { Button } from '../button';\nimport { Dimmer } from '../dimmer';\nimport { Footer } from '../footer';\nimport { Header } from '../header';\nimport { PopoutContent } from '../popout';\n\nexport const Modal = ({\n visible,\n children,\n}: PropsWithChildren<{ visible: boolean }>) => (\n <div className={`modal ${visible ? 'visible' : ''}`}>\n <div className=\"modal-content\">{children}</div>\n </div>\n);\n\nexport const useConfirm = <T = boolean,>({\n leftButton,\n rightButton,\n title,\n content,\n}: {\n title?: string;\n content?: ReactNode;\n leftButton?: (confirm: (ok: T) => void) => React.ReactNode;\n rightButton?: (confirm: (ok: T) => void) => React.ReactNode;\n} = {}) => {\n const [confirm, setConfim] = useState({\n show: false,\n message: '',\n children: null as ReactNode | null,\n resolve: (_val: T) => {},\n });\n const prompt = useCallback(\n (message?: string | ReactNode) =>\n new Promise<T>(resolve => {\n setConfim({\n message: typeof message === 'string' ? message : '',\n children: typeof message !== 'string' && message ? message : null,\n show: true,\n resolve(val: T) {\n resolve(val);\n setConfim({\n show: false,\n message: '',\n children: null,\n resolve: () => {},\n });\n },\n });\n }),\n [],\n );\n\n return {\n prompt,\n children: (\n <Dimmer visible={confirm.show}>\n <Modal visible>\n <Header attached>{title ?? 'Confirmation'}</Header>\n <PopoutContent>\n {content ?? confirm.children ?? (\n <p>Are you sure you want to {confirm.message}?</p>\n )}\n </PopoutContent>\n <Footer attached>\n {leftButton?.(confirm.resolve) ?? (\n <Button main onClick={() => confirm.resolve(true as T)}>\n <IconCheck />\n Yes\n </Button>\n )}\n <div style={{ flex: 1 }} />\n {rightButton?.(confirm.resolve) ?? (\n <Button normal onClick={() => confirm.resolve(false as T)}>\n <IconX />\n No\n </Button>\n )}\n </Footer>\n </Modal>\n </Dimmer>\n ),\n };\n};\n"],"names":["$version","atom","darkBg","lightBg","Background","children","version","useStore","jsxs","jsx","Button","warn","main","error","info","normal","disabled","icon","boxy","onClick","className","props","Footer","attached","Header","Input","placeholder","tooltip","type","value","roboto","onBlur","onFocus","onChange","e","newValue","sizes","Loader","blur","active","inline","size","IconLoader","Dimmer","visible","PopoutContent","Modal","useConfirm","leftButton","rightButton","title","content","confirm","setConfim","useState","_val","useCallback","message","resolve","val","IconCheck","IconX"],"mappings":"2RAEO,MAAMA,EAAWC,EAAoB,IAAI,ECFhDC,EAAe,gCCAfC,EAAe,gCCMFC,EAAa,CAAC,CAAE,SAAAC,KAAwC,CACnE,MAAMC,EAAUC,EAASP,CAAQ,EACjC,OACEQ,EAAAA,KAAC,MAAA,CAAI,UAAU,aACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAI,UAAU,cAAc,IAAKP,EAAQ,EAC1CO,EAAAA,IAAC,MAAA,CAAI,UAAU,eAAe,IAAKN,EAAS,EAC3CG,GAAWE,EAAAA,KAAC,MAAA,CAAI,UAAU,UAAU,SAAA,CAAA,WAASF,CAAA,EAAQ,EACrDD,CAAA,EACH,CAEJ,ECbaK,EAAS,CAAC,CACrB,SAAAL,EACA,KAAAM,EACA,KAAAC,EACA,MAAAC,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EAAW,GACX,KAAAC,EACA,KAAAC,EACA,QAAAC,EACA,UAAAC,EACA,GAAGC,CACL,IAYEZ,EAAAA,IAAC,MAAA,CACC,UAAW,CACT,SACAW,GAAa,GACbT,GAAQ,OACRC,GAAQ,OACRC,GAAS,QACTC,GAAQ,OACRC,GAAU,SACVC,GAAY,WACZE,GAAQ,OACRD,GAAQ,MAAA,EAEP,OAAO,OAAO,EACd,KAAK,GAAG,EACX,QAAAE,EACC,GAAGE,EAEJ,SAAAZ,EAAAA,IAAC,MAAA,CAAI,UAAU,iBAAkB,SAAAJ,CAAA,CAAS,CAAA,CAC5C,EC7CWiB,EAAS,CAAC,CACrB,SAAAjB,EACA,UAAAe,EACA,SAAAG,EACA,GAAGF,CACL,IAGEZ,EAAAA,IAAC,MAAA,CACC,UAAW,UAAUc,EAAW,WAAa,EAAE,IAAIH,GAAa,EAAE,GACjE,GAAGC,EAEH,SAAAhB,CAAA,CACH,ECZWmB,EAAS,CAAC,CACrB,SAAAn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A0BA,EAAQ,QAAQ,GAAA,CAAA,CAAC,CAAA,CAElD,EACA5C,EAAAA,KAACc,EAAA,CAAO,SAAQ,GACb,SAAA,CAAA0B,IAAaI,EAAQ,OAAO,GAC3B5C,EAAAA,KAACE,EAAA,CAAO,KAAI,GAAC,QAAS,IAAM0C,EAAQ,QAAQ,EAAS,EACnD,SAAA,CAAA3C,EAAAA,IAACmD,EAAA,EAAU,EAAE,KAAA,EAEf,QAED,MAAA,CAAI,MAAO,CAAE,KAAM,GAAK,EACxBX,IAAcG,EAAQ,OAAO,GAC5B5C,EAAAA,KAACE,EAAA,CAAO,OAAM,GAAC,QAAS,IAAM0C,EAAQ,QAAQ,EAAU,EACtD,SAAA,CAAA3C,EAAAA,IAACoD,EAAA,EAAM,EAAE,IAAA,CAAA,CAEX,CAAA,CAAA,CAEJ,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAGN"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{r as O}from"./index-c0qeY2gs.js";var y={exports:{}},n={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.1.0",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
|
|
10
|
+
//# sourceMappingURL=index-DqHVrEeL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DqHVrEeL.js","sources":["../../node_modules/react-dom/cjs/react-dom.production.js","../../node_modules/react-dom/index.js"],"sourcesContent":["/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.1.0\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"names":["React","require$$0","formatProdErrorMessage","code","url","i","noop","Internals","REACT_PORTAL_TYPE","createPortal$1","children","containerInfo","implementation","key","ReactSharedInternals","getCrossOriginStringAs","as","input","reactDom_production","container","fn","previousTransition","previousUpdatePriority","href","options","crossOrigin","integrity","fetchPriority","form","a","action","initialState","permalink","checkDCE","err","reactDomModule"],"mappings":";;;;;;;;wCAWA,IAAIA,EAAQC,EAAA,EACZ,SAASC,EAAuBC,EAAM,CACpC,IAAIC,EAAM,4BAA8BD,EACxC,GAAI,EAAI,UAAU,OAAQ,CACxBC,GAAO,WAAa,mBAAmB,UAAU,CAAC,CAAC,EACnD,QAASC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IACpCD,GAAO,WAAa,mBAAmB,UAAUC,CAAC,CAAC,CACzD,CACE,MACE,yBACAF,EACA,WACAC,EACA,gHAEJ,CACA,SAASE,GAAO,CAAA,CAChB,IAAIC,EAAY,CACZ,EAAG,CACD,EAAGD,EACH,EAAG,UAAY,CACb,MAAM,MAAMJ,EAAuB,GAAG,CAAC,CAC/C,EACM,EAAGI,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,GAEL,EAAG,EACH,YAAa,MAEfE,EAAoB,OAAO,IAAI,cAAc,EAC/C,SAASC,EAAeC,EAAUC,EAAeC,EAAgB,CAC/D,IAAIC,EACF,EAAI,UAAU,QAAqB,UAAU,CAAC,IAAtB,OAA0B,UAAU,CAAC,EAAI,KACnE,MAAO,CACL,SAAUL,EACV,IAAaK,GAAR,KAAc,KAAO,GAAKA,EAC/B,SAAUH,EACV,cAAeC,EACf,eAAgBC,EAEpB,CACA,IAAIE,EACFd,EAAM,gEACR,SAASe,EAAuBC,EAAIC,EAAO,CACzC,GAAeD,IAAX,OAAe,MAAO,GAC1B,GAAiB,OAAOC,GAApB,SACF,OAA6BA,IAAtB,kBAA8BA,EAAQ,EACjD,CACA,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copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var N;function Z(){if(N)return o;N=1;var E=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),k=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.iterator;function z(t){return t===null||typeof t!="object"?null:(t=w&&t[w]||t["@@iterator"],typeof t=="function"?t:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,S={};function a(t,e,n){this.props=t,this.context=e,this.refs=S,this.updater=n||A}a.prototype.isReactComponent={},a.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},a.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function g(){}g.prototype=a.prototype;function y(t,e,n){this.props=t,this.context=e,this.refs=S,this.updater=n||A}var v=y.prototype=new g;v.constructor=y,h(v,a.prototype),v.isPureReactComponent=!0;var O=Array.isArray,i={H:null,A:null,T:null,S:null,V:null},H=Object.prototype.hasOwnProperty;function R(t,e,n,r,s,f){return n=f.ref,{$$typeof:E,type:t,key:e,ref:n!==void 0?n:null,props:f}}function G(t,e){return R(t.type,e,void 0,void 0,void 0,t.props)}function T(t){return typeof t=="object"&&t!==null&&t.$$typeof===E}function K(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var j=/\/+/g;function d(t,e){return typeof t=="object"&&t!==null&&t.key!=null?K(""+t.key):e.toString(36)}function P(){}function B(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(P,P):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function _(t,e,n,r,s){var f=typeof t;(f==="undefined"||f==="boolean")&&(t=null);var u=!1;if(t===null)u=!0;else switch(f){case"bigint":case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case E:case Y:u=!0;break;case C:return u=t._init,_(u(t._payload),e,n,r,s)}}if(u)return s=s(t),u=r===""?"."+d(t,0):r,O(s)?(n="",u!=null&&(n=u.replace(j,"$&/")+"/"),_(s,e,n,"",function(X){return X})):s!=null&&(T(s)&&(s=G(s,n+(s.key==null||t&&t.key===s.key?"":(""+s.key).replace(j,"$&/")+"/")+u)),e.push(s)),1;u=0;var p=r===""?".":r+":";if(O(t))for(var c=0;c<t.length;c++)r=t[c],f=p+d(r,c),u+=_(r,e,n,f,s);else if(c=z(t),typeof c=="function")for(t=c.call(t),c=0;!(r=t.next()).done;)r=r.value,f=p+d(r,c++),u+=_(r,e,n,f,s);else if(f==="object"){if(typeof t.then=="function")return _(B(t),e,n,r,s);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return u}function l(t,e,n){if(t==null)return t;var r=[],s=0;return _(t,r,"","",function(f){return e.call(n,f,s++)}),r}function W(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var $=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Q(){}return o.Children={map:l,forEach:function(t,e,n){l(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return l(t,function(){e++}),e},toArray:function(t){return l(t,function(e){return e})||[]},only:function(t){if(!T(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},o.Component=a,o.Fragment=x,o.Profiler=L,o.PureComponent=y,o.StrictMode=I,o.Suspense=q,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,o.__COMPILER_RUNTIME={__proto__:null,c:function(t){return i.H.useMemoCache(t)}},o.cache=function(t){return function(){return t.apply(null,arguments)}},o.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=h({},t.props),s=t.key,f=void 0;if(e!=null)for(u in e.ref!==void 0&&(f=void 0),e.key!==void 0&&(s=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var p=Array(u),c=0;c<u;c++)p[c]=arguments[c+2];r.children=p}return R(t.type,s,void 0,void 0,f,r)},o.createContext=function(t){return t={$$typeof:k,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:U,_context:t},t},o.createElement=function(t,e,n){var r,s={},f=null;if(e!=null)for(r in e.key!==void 0&&(f=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(s[r]=e[r]);var u=arguments.length-2;if(u===1)s.children=n;else if(1<u){for(var p=Array(u),c=0;c<u;c++)p[c]=arguments[c+2];s.children=p}if(t&&t.defaultProps)for(r in u=t.defaultProps,u)s[r]===void 0&&(s[r]=u[r]);return R(t,f,void 0,void 0,null,s)},o.createRef=function(){return{current:null}},o.forwardRef=function(t){return{$$typeof:b,render:t}},o.isValidElement=T,o.lazy=function(t){return{$$typeof:C,_payload:{_status:-1,_result:t},_init:W}},o.memo=function(t,e){return{$$typeof:D,type:t,compare:e===void 0?null:e}},o.startTransition=function(t){var e=i.T,n={};i.T=n;try{var r=t(),s=i.S;s!==null&&s(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Q,$)}catch(f){$(f)}finally{i.T=e}},o.unstable_useCacheRefresh=function(){return i.H.useCacheRefresh()},o.use=function(t){return i.H.use(t)},o.useActionState=function(t,e,n){return i.H.useActionState(t,e,n)},o.useCallback=function(t,e){return i.H.useCallback(t,e)},o.useContext=function(t){return i.H.useContext(t)},o.useDebugValue=function(){},o.useDeferredValue=function(t,e){return i.H.useDeferredValue(t,e)},o.useEffect=function(t,e,n){var r=i.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(t,e)},o.useId=function(){return i.H.useId()},o.useImperativeHandle=function(t,e,n){return i.H.useImperativeHandle(t,e,n)},o.useInsertionEffect=function(t,e){return i.H.useInsertionEffect(t,e)},o.useLayoutEffect=function(t,e){return i.H.useLayoutEffect(t,e)},o.useMemo=function(t,e){return i.H.useMemo(t,e)},o.useOptimistic=function(t,e){return i.H.useOptimistic(t,e)},o.useReducer=function(t,e,n){return i.H.useReducer(t,e,n)},o.useRef=function(t){return i.H.useRef(t)},o.useState=function(t){return i.H.useState(t)},o.useSyncExternalStore=function(t,e,n){return i.H.useSyncExternalStore(t,e,n)},o.useTransition=function(){return i.H.useTransition()},o.version="19.1.0",o}var M;function J(){return M||(M=1,m.exports=Z()),m.exports}export{J as r};
|
|
10
|
+
//# sourceMappingURL=index-c0qeY2gs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-c0qeY2gs.js","sources":["../../node_modules/react/cjs/react.production.js","../../node_modules/react/index.js"],"sourcesContent":["/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, self, source, owner, props) {\n self = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== self ? self : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(\n oldElement.type,\n newKey,\n void 0,\n void 0,\n void 0,\n oldElement.props\n );\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction noop$1() {}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop$1, noop$1)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n };\nfunction noop() {}\nexports.Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n};\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n __proto__: null,\n c: function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n }\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = void 0;\n if (null != config)\n for (propName in (void 0 !== config.ref && (owner = void 0),\n void 0 !== config.key && (key = \"\" + config.key),\n config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, void 0, void 0, owner, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, void 0, void 0, null, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n ReactSharedInternals.T = prevTransition;\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, createDeps, update) {\n var dispatcher = ReactSharedInternals.H;\n if (\"function\" === typeof update)\n throw Error(\n \"useEffect CRUD overload is not enabled in this build of React.\"\n );\n return dispatcher.useEffect(create, createDeps);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.1.0\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"],"names":["REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_CONSUMER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","MAYBE_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","ReactNoopUpdateQueue","assign","emptyObject","Component","props","context","updater","partialState","callback","ComponentDummy","PureComponent","pureComponentPrototype","isArrayImpl","ReactSharedInternals","hasOwnProperty","ReactElement","type","key","self","source","owner","cloneAndReplaceKey","oldElement","newKey","isValidElement","object","escape","escaperLookup","match","userProvidedKeyEscapeRegex","getElementKey","element","index","noop$1","resolveThenable","thenable","fulfilledValue","error","mapIntoArray","children","array","escapedPrefix","nameSoFar","invokeCallback","c","nextNamePrefix","i","mapChildren","func","result","count","child","lazyInitializer","payload","ctor","moduleObject","reportGlobalError","event","noop","react_production","forEachFunc","forEachContext","n","size","fn","config","propName","childArray","defaultValue","childrenLength","render","compare","scope","prevTransition","currentTransition","returnValue","onStartTransitionFinish","usable","action","initialState","permalink","deps","Context","value","initialValue","create","createDeps","update","dispatcher","ref","passthrough","reducer","initialArg","init","subscribe","getSnapshot","getServerSnapshot","reactModule","require$$0"],"mappings":";;;;;;;;wCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAoB,OAAO,IAAI,cAAc,EAC7CC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,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U8B,EAAKJ,EAAQJ,EAAM,CACzD,OAAOpE,EAAqB,EAAE,oBAAoB4E,EAAKJ,EAAQJ,CAAI,CACrE,EACAtB,EAAA,mBAA6B,SAAU0B,EAAQJ,EAAM,CACnD,OAAOpE,EAAqB,EAAE,mBAAmBwE,EAAQJ,CAAI,CAC/D,EACAtB,EAAA,gBAA0B,SAAU0B,EAAQJ,EAAM,CAChD,OAAOpE,EAAqB,EAAE,gBAAgBwE,EAAQJ,CAAI,CAC5D,EACAtB,EAAA,QAAkB,SAAU0B,EAAQJ,EAAM,CACxC,OAAOpE,EAAqB,EAAE,QAAQwE,EAAQJ,CAAI,CACpD,EACAtB,EAAA,cAAwB,SAAU+B,EAAaC,EAAS,CACtD,OAAO9E,EAAqB,EAAE,cAAc6E,EAAaC,CAAO,CAClE,EACAhC,EAAA,WAAqB,SAAUgC,EAASC,EAAYC,EAAM,CACxD,OAAOhF,EAAqB,EAAE,WAAW8E,EAASC,EAAYC,CAAI,CACpE,EACAlC,EAAA,OAAiB,SAAUyB,EAAc,CACvC,OAAOvE,EAAqB,EAAE,OAAOuE,CAAY,CACnD,EACAzB,EAAA,SAAmB,SAAUoB,EAAc,CACzC,OAAOlE,EAAqB,EAAE,SAASkE,CAAY,CACrD,EACApB,EAAA,qBAA+B,SAC7BmC,EACAC,EACAC,EACA,CACA,OAAOnF,EAAqB,EAAE,qBAC5BiF,EACAC,EACAC,EAEJ,EACArC,EAAA,cAAwB,UAAY,CAClC,OAAO9C,EAAqB,EAAE,cAAa,CAC7C,EACA8C,EAAA,QAAkB,6CC9hBhBsC,EAAA,QAAiBC,EAAA","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as n}from"./_commonjsHelpers-CE1G-McA.js";import{r as f}from"./index-c0qeY2gs.js";function i(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=f();const p=n(c),l=i({__proto__:null,default:p},[c]);export{l as R,p as a,c as r};
|
|
2
|
+
//# sourceMappingURL=index-i4mjW0og.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-i4mjW0og.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var s={exports:{}},e={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var o;function d(){if(o)return e;o=1;var R=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(v,r,t){var u=null;if(t!==void 0&&(u=""+t),r.key!==void 0&&(u=""+r.key),"key"in r){t={};for(var n in r)n!=="key"&&(t[n]=r[n])}else t=r;return r=t.ref,{$$typeof:R,type:v,key:u,ref:r!==void 0?r:null,props:t}}return e.Fragment=a,e.jsx=i,e.jsxs=i,e}var x;function l(){return x||(x=1,s.exports=d()),s.exports}export{l as r};
|
|
10
|
+
//# sourceMappingURL=jsx-runtime-Bw5QeaCk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-Bw5QeaCk.js","sources":["../../node_modules/react/cjs/react-jsx-runtime.production.js","../../node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","jsxRuntimeModule","require$$0"],"mappings":";;;;;;;;wCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAA,EACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,EAAA,SAAmBP,EACnBO,EAAA,IAAcN,EACdM,EAAA,KAAeN,sCC9BbO,EAAA,QAAiBC,EAAA","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-DoEZbXM1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B as I,a as P,D as c,F as f,H as g,I as N,L as S,M as B,P as v,u as w}from"../index-DYcAgWjJ.js";import{C as L,o as T,D as h,I as x,e as y,c as F,N as M,n as R,P as U,f as k,R as E,a as b,S as j,d as q,T as z,U as A}from"../index-BC_vZ56r.js";import"../jsx-runtime-DoEZbXM1.js";import"../jsx-runtime-Bw5QeaCk.js";import"./@nanostores_react-HTG3s0lp.js";import"../index-i4mjW0og.js";import"../_commonjsHelpers-CE1G-McA.js";import"../index-c0qeY2gs.js";import"../index-CJ4e7_2M.js";import"../index-CSV4ZXsq.js";import"../IconX-SYtbnYKI.js";import"../IconCheck-Dyq5qyY1.js";import"../index-CRRRLlCc.js";import"../IconWorld-DtARpBKX.js";import"./@utils-BQyGUOvP.js";export{I as Background,P as Button,L as ChatEntry,T as ChatTime,c as Dimmer,h as Dropdown,f as Footer,g as Header,x as InfiniteScroll,N as Input,y as ListInput,S as Loader,B as Modal,F as NavBar,M as NavHeader,R as Page,U as PageContent,k as PlayerDropdown,v as PopoutContent,E as RoleDropdown,b as Scroll,j as SideNav,q as SortIcons,z as Toggle,A as UserName,w as useConfirm};
|
|
2
|
+
//# sourceMappingURL=@components-B442wlEb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"@components-B442wlEb.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as o}from"../jsx-runtime-DoEZbXM1.js";import{r as i}from"../index-i4mjW0og.js";import{I as s}from"../IconCheck-Dyq5qyY1.js";import"../jsx-runtime-Bw5QeaCk.js";import"../_commonjsHelpers-CE1G-McA.js";import"../index-c0qeY2gs.js";var m=(t=>(t.Idle="idle",t.Waiting="waiting",t.Fired="fired",t))(m||{});const w=(t,n)=>{const e=i.useRef({callback:t,clearCallback:n,firedTimeout:null,waitingTimeout:null});e.current.callback=t,e.current.clearCallback=n;const[u,r]=i.useState("idle"),a=i.useCallback(()=>{clearTimeout(e.current.waitingTimeout),clearTimeout(e.current.firedTimeout),r("waiting"),e.current.waitingTimeout=setTimeout(()=>{r("fired"),e.current.callback(),e.current.firedTimeout=setTimeout(()=>{r("idle"),e.current.clearCallback?.()},1e3)},1e3)},[]),c=i.useCallback(()=>{clearTimeout(e.current.waitingTimeout),clearTimeout(e.current.firedTimeout),r("waiting")},[]);return{fire:a,cancel:c,status:u}},x=({show:t})=>o.jsxs("span",{className:`saved-note ${t?"show":""}`,children:["SAVED ",o.jsx(s,{size:"20"})]});export{x as SavedSpan,m as SavedStatus,w as useSaved};
|
|
2
|
+
//# sourceMappingURL=@hooks-DfTzYBIL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"@hooks-DfTzYBIL.js","sources":["../../../frontend/src/hooks/useSaved.tsx"],"sourcesContent":["import { IconCheck } from '@tabler/icons-react';\nimport { useCallback, useRef, useState } from 'react';\n\nexport enum SavedStatus {\n Idle = 'idle',\n Waiting = 'waiting',\n Fired = 'fired',\n}\n\nexport const useSaved = (callback: () => void, clearCallback?: () => void) => {\n const refs = useRef({\n callback,\n clearCallback,\n firedTimeout: null as unknown as ReturnType<typeof setTimeout>,\n waitingTimeout: null as unknown as ReturnType<typeof setTimeout>,\n });\n refs.current.callback = callback;\n refs.current.clearCallback = clearCallback;\n const [status, setStatus] = useState(SavedStatus.Idle);\n\n const fire = useCallback(() => {\n clearTimeout(refs.current.waitingTimeout);\n clearTimeout(refs.current.firedTimeout);\n setStatus(SavedStatus.Waiting);\n\n refs.current.waitingTimeout = setTimeout(() => {\n setStatus(SavedStatus.Fired);\n\n refs.current.callback();\n refs.current.firedTimeout = setTimeout(() => {\n setStatus(SavedStatus.Idle);\n refs.current.clearCallback?.();\n }, 1000);\n }, 1000);\n }, []);\n const cancel = useCallback(() => {\n clearTimeout(refs.current.waitingTimeout);\n clearTimeout(refs.current.firedTimeout);\n setStatus(SavedStatus.Waiting);\n }, []);\n\n return { fire, cancel, status };\n};\n\nexport const SavedSpan = ({ show }: { show: boolean }) => (\n <span className={`saved-note ${show ? 'show' : ''}`}>\n SAVED <IconCheck size=\"20\" />\n </span>\n);\n"],"names":["SavedStatus","useSaved","callback","clearCallback","refs","useRef","status","setStatus","useState","fire","useCallback","cancel","SavedSpan","show","jsxs","jsx","IconCheck"],"mappings":"6OAGO,IAAKA,GAAAA,IACVA,EAAA,KAAO,OACPA,EAAA,QAAU,UACVA,EAAA,MAAQ,QAHEA,IAAAA,GAAA,CAAA,CAAA,EAML,MAAMC,EAAW,CAACC,EAAsBC,IAA+B,CAC5E,MAAMC,EAAOC,EAAAA,OAAO,CAClB,SAAAH,EACA,cAAAC,EACA,aAAc,KACd,eAAgB,IAAA,CACjB,EACDC,EAAK,QAAQ,SAAWF,EACxBE,EAAK,QAAQ,cAAgBD,EAC7B,KAAM,CAACG,EAAQC,CAAS,EAAIC,EAAAA,SAAS,MAAA,EAE/BC,EAAOC,EAAAA,YAAY,IAAM,CAC7B,aAAaN,EAAK,QAAQ,cAAc,EACxC,aAAaA,EAAK,QAAQ,YAAY,EACtCG,EAAU,SAAA,EAEVH,EAAK,QAAQ,eAAiB,WAAW,IAAM,CAC7CG,EAAU,OAAA,EAEVH,EAAK,QAAQ,SAAA,EACbA,EAAK,QAAQ,aAAe,WAAW,IAAM,CAC3CG,EAAU,MAAA,EACVH,EAAK,QAAQ,gBAAA,CACf,EAAG,GAAI,CACT,EAAG,GAAI,CACT,EAAG,CAAA,CAAE,EACCO,EAASD,EAAAA,YAAY,IAAM,CAC/B,aAAaN,EAAK,QAAQ,cAAc,EACxC,aAAaA,EAAK,QAAQ,YAAY,EACtCG,EAAU,SAAA,CACZ,EAAG,CAAA,CAAE,EAEL,MAAO,CAAE,KAAAE,EAAM,OAAAE,EAAQ,OAAAL,CAAA,CACzB,EAEaM,EAAY,CAAC,CAAE,KAAAC,CAAA,IAC1BC,EAAAA,KAAC,OAAA,CAAK,UAAW,cAAcD,EAAO,OAAS,EAAE,GAAI,SAAA,CAAA,SAC7CE,EAAAA,IAACC,EAAA,CAAU,KAAK,IAAA,CAAK,CAAA,CAAA,CAC7B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i}from"../index-i4mjW0og.js";import{l as p}from"../index-CJ4e7_2M.js";import"../_commonjsHelpers-CE1G-McA.js";import"../index-c0qeY2gs.js";let n=(r,t)=>u=>{r.current!==u&&(r.current=u,t())};function b(r,{keys:t,deps:u=[r,t]}={}){let e=i.useRef();e.current=r.get();let m=i.useCallback(l=>(n(e,l)(r.value),t?.length>0?p(r,t,n(e,l)):r.listen(n(e,l))),u),c=()=>e.current;return i.useSyncExternalStore(m,c,c)}export{b as useStore};
|
|
2
|
+
//# sourceMappingURL=@nanostores_react-HTG3s0lp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"@nanostores_react-HTG3s0lp.js","sources":["../../../node_modules/@nanostores/react/index.js"],"sourcesContent":["import { listenKeys } from 'nanostores'\nimport { useCallback, useRef, useSyncExternalStore } from 'react'\n\nlet emit = (snapshotRef, onChange) => value => {\n if (snapshotRef.current === value) return\n snapshotRef.current = value\n onChange()\n}\n\nexport function useStore(store, { keys, deps = [store, keys] } = {}) {\n let snapshotRef = useRef()\n snapshotRef.current = store.get()\n\n let subscribe = useCallback(onChange => {\n emit(snapshotRef, onChange)(store.value)\n\n return keys?.length > 0\n ? listenKeys(store, keys, emit(snapshotRef, onChange))\n : store.listen(emit(snapshotRef, onChange))\n }, deps)\n let get = () => snapshotRef.current\n\n return useSyncExternalStore(subscribe, get, get)\n}\n"],"names":["emit","snapshotRef","onChange","value","useStore","store","keys","deps","useRef","subscribe","useCallback","listenKeys","get","useSyncExternalStore"],"mappings":"uJAGA,IAAIA,EAAO,CAACC,EAAaC,IAAaC,GAAS,CACzCF,EAAY,UAAYE,IAC5BF,EAAY,QAAUE,EACtBD,EAAQ,EACV,EAEO,SAASE,EAASC,EAAO,CAAE,KAAAC,EAAM,KAAAC,EAAO,CAACF,EAAOC,CAAI,CAAC,EAAK,GAAI,CACnE,IAAIL,EAAcO,EAAAA,OAAM,EACxBP,EAAY,QAAUI,EAAM,IAAG,EAE/B,IAAII,EAAYC,EAAAA,YAAYR,IAC1BF,EAAKC,EAAaC,CAAQ,EAAEG,EAAM,KAAK,EAEhCC,GAAM,OAAS,EAClBK,EAAWN,EAAOC,EAAMN,EAAKC,EAAaC,CAAQ,CAAC,EACnDG,EAAM,OAAOL,EAAKC,EAAaC,CAAQ,CAAC,GAC3CK,CAAI,EACHK,EAAM,IAAMX,EAAY,QAE5B,OAAOY,EAAAA,qBAAqBJ,EAAWG,EAAKA,CAAG,CACjD","x_google_ignoreList":[0]}
|